summaryrefslogtreecommitdiff
path: root/include/android
AgeCommit message (Collapse)Author
2025-03-18Merge "Update thermal headroom listener API doc for NDK" into main Xiang Wang
2025-03-18Merge "frameworks/native: Include stdint.h for int32_t type" into main am: ↵ Steven Moreland
1a8be4f98b am: d3418085a0 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3526633 Change-Id: I4bc7559197eadb25b81f44cb625c941a11bf78e0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-18Merge "frameworks/native: Include stdint.h for int32_t type" into main Steven Moreland
2025-03-17Update thermal headroom listener API doc for NDK Xiang Wang
Copy over the SDK doc suggested from API review Test: n/a Flag: EXEMPT NDK Bug: n/a Change-Id: I68b3a241fe337d2b6c34936251cbf8c1eeb0aee4
2025-03-05frameworks/native: Include stdint.h for int32_t type Biswapriyo Nath
This commit fixes the following compiler error with gcc 14.2.0. native/include/android/configuration.h:531:1: error: 'int32_t' does not name a type 531 | int32_t AConfiguration_getMcc(AConfiguration* config); | ^~~~~~~ native/include/android/configuration.h:536:52: error: 'int32_t' has not been declared 536 | void AConfiguration_setMcc(AConfiguration* config, int32_t mcc); | ^~~~~~~ Change-Id: I11fd658d799801fb6267ab48d4a890cab2086121
2025-03-04Remove the API comment on calculation window superset Xiang Wang
Bug: 346604998 Flag: EXEMPT doc only Test: n/a Change-Id: Icfc2869a5cf602dd4dc37b2f296591c26d62114f
2025-02-26Merge 25Q1 (ab/12770256) to aosp-main-future Xin Li
Bug: 385190204 Merged-In: I0fb567cbcca67a2fc6c088f652c8af570b8d7e53 Change-Id: Iaae8cd491ff963cf422f4b19c54be33e1244a9a1
2025-02-18inputflinger: Restricted invalid MotionEvent button enum values Akhilesh Sanikop
Fixes an issue by passing valid MotionEvent buttons through NotifyMotionArgs() in FuzzedInputStream.h. Added IfThisThenThat Lint to remind the actionButton to sync Test: m frameworks/native/services/inputflinger/tests/fuzzers Bug: 392345690 Flag: EXEMPT bugfix in fuzzer Change-Id: I7c2108a255114b24e6544aa930696079e4f06b77
2025-02-05InputVerifier: verify button events and states (attempt 2) Harry Cutts
Check the following things: * BUTTON_PRESS and _RELEASE actions have a single, valid action button * No redundant BUTTON_PRESS or _RELEASE actions (i.e. for buttons that are already pressed or released) * Button state remains consistent throughout the stream, i.e.: * Buttons are only added to the state by BUTTON_PRESS (though DOWN events can have "pending" buttons on them) * Buttons are only removed from the state by BUTTON_RELEASE * When a DOWN event has pending buttons in its state, it is immediately followed by a BUTTON_PRESS for each one We could also verify that press and release events for primary, secondary, and tertiary buttons are accompanied by down and up events. However, I couldn't find any documentation that states which buttons should result in down or up events, so I haven't implemented this for now. This is the second attempt to land this change, due to the original causing test failures. Change I5c259c13d433d3010d2cf9c6fe01e08ba5990ef7 fixes the failures. v2 also adds a separate flag for button state verification, as it is actually used in production to check events injected by assistive technologies, whether or not the flag that I previously thought was guarding it is enabled. Test: connect a mouse and a touchpad, enable the verifier, play around with the buttons, and check that any issues found by the verifier appear to be legitimate. (I found b/391298464 , and checked that the verifier caught a button problem with a partial fix to b/372571823 .) Test: atest --host libinput_rust_tests Test: atest --host frameworks/native/libs/input/tests/InputVerifier_test.cpp Test: atest --host \ frameworks/native/services/inputflinger/tests/InputDispatcher_test.cpp Bug: 392870542 Flag: com.android.input.flags.enable_button_state_verification Change-Id: I46f489b26df8785563e41e58135b6b5de4ff62a2
2025-01-24Revert "InputVerifier: verify button events and states" Priyanka Advani (xWF)
This reverts commit fb477b1399b4501acdb2516b6a0a00765dd8aba3. Reason for revert: Droidmonitor created revert due to b/392150793. Will be verifying through ABTD before submission. Change-Id: Ie2c9d9e4271addf5b198e34875ee02082b0132ba
2025-01-23InputVerifier: verify button events and states Harry Cutts
Check the following things: * BUTTON_PRESS and _RELEASE actions have a single, valid action button * No redundant BUTTON_PRESS or _RELEASE actions (i.e. for buttons that are already pressed or released) * Button state remains consistent throughout the stream, i.e.: * Buttons are only added to the state by BUTTON_PRESS (though DOWN events can have "pending" buttons on them) * Buttons are only removed from the state by BUTTON_RELEASE * When a DOWN event has pending buttons in its state, it is immediately followed by a BUTTON_PRESS for each one We could also verify that press and release events for primary, secondary, and tertiary buttons are accompanied by down and up events. However, I couldn't find any documentation that states which buttons should result in down or up events, so I haven't implemented this for now. Test: connect a mouse and a touchpad, enable the verifier, play around with the buttons, and check that any issues found by the verifier appear to be legitimate. (I found b/391298464, and checked that the verifier caught a button problem with a partial fix to b/372571823.) Test: atest --host libinput_rust_tests Test: atest --host frameworks/native/libs/input/tests/InputVerifier_test.cpp Test: atest --host \ frameworks/native/services/inputflinger/tests/InputDispatcher_test.cpp Bug: 372571823 Flag: com.android.input.flags.enable_inbound_event_verification Change-Id: I59b886bfb632f0f26ee58c40f82f447f5ea59b41
2025-01-10Merge "Add a private API to set mocking hint manager for testing" into main Treehugger Robot
2025-01-07Document what onKeyEvent/onMotionEvent return values mean Vishnu Nair
Change-Id: I9ca51a93af79360cd57aabba08d83f968618308c Fixes: 346593383 Test: n/a Flag: EXEMPT docs
2025-01-07Add a private API to set mocking hint manager for testing Xiang Wang
Updated the doc of interval methods as they won't fail now Bug: 346604998 Flag: EXEMPT ndk Test: atest NativeSystemHealthUnitTest SystemHealthManagerUnitTest NativeSystemHealthTest HeadroomTest Change-Id: Ia8a3d921f831ee0c07b16926500581fc2a8d5b00
2025-01-06Merge "Address NDK API review feedback" into main Matt Buckley
2024-12-23Merge "Update performance_hint to follow NDK API guidance" into main Matt Buckley
2024-12-20Address NDK API review feedback Xiang Wang
* Add comment on how to use the APIs and the binder call warning * Change to use size_t for size * Allow destroy against nullptr * Add ASystemHealth_getMaxCpuHeadroomTidsSize Bug: 384944829 Bug: 346604998 Flag: EXEMPT ndk Test: atest NativeSystemHealthTest Change-Id: Ia7229e9197a1cd5f1306d2cf672d155ec3899505
2024-12-20Update performance_hint to follow NDK API guidance Matt Buckley
This patch updates the performance_hint NDK in response to API guidance, and updates the tests accordingly. Additionally, this patch updates the documentation and ergonomics of a few related methods to better accomodate these changes, and to downgrade going over the graphics pipeline limit from a breakage to a very severe warning. Flag: EXEMPT NDK Test: atest cts/tests/tests/os/src/android/os/cts/PerformanceHintManagerTest.java Test: atest PerformanceHintNativeTestCases Test: atest HintManagerServiceTest Bug: 380299912 Bug: 381269529 Bug: 384511707 Bug: 384738612 Change-Id: Ie885112368bec7cfa9dc527de2bf1fef3475594d
2024-12-17Address NDK API feedback Xiang Wang
Bug: 346604998 Bug: 384737787 Flag: EXEMPT ndk Test: atest NativeSystemHealthTest Change-Id: Idc1fdd1c4789a71b11dd879b09b5725b6b7ba380
2024-12-12Update documentation on "borrowSessionFromJava" Matt Buckley
Update the "APerformanceHint_borrowSessionFromJava" documentation to specify the lifetime of the returned pointer (it lives until the Java wrapper dies) Test: n/a Bug: 380300424 Flag: EXEMPT NDK Change-Id: I90c74893cdc6febf49cfde5eaa6a88d796660779
2024-12-11Merge "Fix some doxygen issues." into main am: a92a88f6f4 am: 3abe091f59 Dan Albert
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3391721 Change-Id: I4709a3492a0ea6764eb2ce8ceded787aaf4a6047 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-11Merge "Fix some doxygen issues." into main am: a92a88f6f4 Dan Albert
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3391721 Change-Id: I8a9610666b341157cd4e0006e9d16f8b22b820ec Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-11Merge "Fix some doxygen issues." into main Dan Albert
2024-12-11Fix some doxygen issues. Dan Albert
Caught post-submit in https://r.android.com/3353154. Bug: None Test: None Change-Id: I7578ecafea463aa4c7d06a7527c44aba9e558d79
2024-12-05Merge "Add CPU/GPU_LOAD_SPIKE hints for one-off expensive workloads" into main Matt Buckley
2024-12-04Merge "Replace {@code} with backticks in thermal NDK comment" into main am: ↵ Treehugger Robot
e9d9f4059d Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3368406 Change-Id: I233d2a585cf239dcd28580842e6a6a1cdb8b085c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04Merge "Replace {@code} with backticks in thermal NDK comment" into main Treehugger Robot
2024-12-04Replace {@code} with backticks in thermal NDK comment Xiang Wang
This will generate <code> tag properly instead of <pre> Bug: 367803904 Test: n/a Flag: EXEMPT ndk Change-Id: I59d53925cf15b33364190557951a4c03d18f4071 Merged-In: If5456fdc009b1154101cdae95d8d2943b030fbad
2024-12-04Add CPU/GPU_LOAD_SPIKE hints for one-off expensive workloads Matt Buckley
Currently there is ambiguity between single-frame expensive ops (eg: shader compilation) and longer-duration expensive ops (eg: SF client compositon). This load hint aims to resolve this by explicitly annotating one-time expensive workloads so they can be given unique boost and hysteresis expectations. For example, a load_spike aware tracker might want to ignore the timing that comes from a LOAD_SPIKE-marked frame, as it is known to not be representative of the overall workload. Flag: EXEMPT NDK Test: atest PerformanceHintNativeTestCases Test: atest PerformanceHintManagerTest Bug: 367803904 Change-Id: I22458f0d8f0819499f3463aa36e8bb7eb7af15be
2024-12-03Add enum tag to refer to the types Xiang Wang
Bug: 346604998 Flag: EXEMPT ndk Test: build Change-Id: I859685babd1552b45ad48e1fe64d21ed84b55faf
2024-12-04Merge "Add ADPF owners to system_health.h" into main am: 0acb3636cd am: ↵ Xiang Wang
8cd5802ab9 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3390159 Change-Id: I98cad2de0a66e2d6880a842dd95c906ce0c178aa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-04Merge "Add NDK CPU/GPU headroom APIs" into main Xiang Wang
2024-12-04Merge "Add ADPF owners to system_health.h" into main am: 0acb3636cd Xiang Wang
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3390159 Change-Id: I6d9b77e23f4476461f8d4be1067b2a85b64b86ac Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-03Add ADPF owners to system_health.h Xiang Wang
Bug: 346604998 Change-Id: I5cb1331bc4217835666670c4fa5eef3060e65ca5 Test: N/A
2024-12-03Merge "Add NDK support for thermal headroom callback API" into main Xiang Wang
2024-12-02Add NDK CPU/GPU headroom APIs Xiang Wang
Bug: 346604998 Flag: EXEMPT ndk Test: TBD in next change Change-Id: I4a5b04cc40907effff8d68140b89517ffbf3c7f9
2024-12-02Merge "[LUT NDK] Add CIE_Y sampling key to ADisplayLuts_SamplingKey enum." ↵ Sally Qi
into main
2024-12-02Add NDK support for thermal headroom callback API Xiang Wang
Update the thermal headroom thresholds polling API doc on removal of cache update for Android 16. Bug: 360486877 Flag: EXEMPT NDK Test: atest NativeThermalTest NativeThermalUnitTest Change-Id: If5456fdc009b1154101cdae95d8d2943b030fbad
2024-11-28Merge "Revert "Define new ASurfaceTransaction_setFrameRateParams API"" into main Rachel Lee
2024-11-27Revert "Define new ASurfaceTransaction_setFrameRateParams API" Rachel Lee
Revert submission 30112724-asurfacetransaction-setframerateparams Reason for revert: removing API to be landed in another release. Reverted changes: /q/submissionid:30112724-asurfacetransaction-setframerateparams Change-Id: I47b48906c6ac1f77b731637dcb5d30e70b0dc28c
2024-11-27Fix c compat issues Matt Buckley
Bug: 381293544 Change-Id: Ied40d74f9f96e647aa56500b7ed04c573be24b98 Test: build Flag: EXEMPT NDK
2024-11-27Merge "Add new surface binding for ADPF Timeline API" into main Matt Buckley
2024-11-27Merge "Remove stray character." into main am: 7a1b153755 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3347007 Change-Id: I6e201c3e25de27dc06960cebb3147395b2b20e7d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-26Merge "Remove stray character." into main Treehugger Robot
2024-11-25Add new surface binding for ADPF Timeline API Matt Buckley
Add new APIs to allow sessions to bind to ANativeWindows and ASurfaceControls for the ADPF timeline API, and expose a new way for sessions to run automatically in certain circumstances. Flag: EXEMPT NDK_API Bug: 360908317 Bug: 367803904 Test: atest HintManagerServiceTest Test: atest PerformanceHintManagerTest Test: atest PerformanceHintNativeTestCases Change-Id: I0a60743ba6815d400210dc04b9116a675880d443
2024-11-22[LUT NDK] Add CIE_Y sampling key to ADisplayLuts_SamplingKey enum. Sally Qi
Bug: 358422255 Change-Id: I33ffd8c9a843740653f7b838b426ba412aa292a1 Test: builds Flag: EXEMPT NDK
2024-11-22Fix the return type of ADisplayLutsEntry_getDimension and ↵ Sally Qi
ADisplayLutsEntry_getSamplingKey. - to fix https://screenshot.googleplex.com/4BTVD4TjjDfuwcs Bug: n/a Change-Id: I9fdc07acef94be75f251a0246cea5116ac01f892 Test: builds Flag: EXEMPT NDK
2024-11-22Merge "[Lut NDK] Add new ASurfaceTransaction_setLuts api." into main Sally Qi
2024-11-22Merge "Improve wording of ALooper_pollAll docs." into main am: 2d66014572 ↵ Treehugger Robot
am: 931a771b60 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3353154 Change-Id: I6025b33f0a8e00f3b7e2d7e3f8af7dbabcf28fe6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-22Merge "Improve wording of ALooper_pollAll docs." into main am: 2d66014572 Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3353154 Change-Id: Id4266f0da8877bfb7265592c0fdf27a249df5783 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>