summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2024-12-27Update private API owner for system health Xiang Wang
Bug: 346604998 Change-Id: If8fec7a527f58d33b2369ae2df1a63219208a5c8 Test: n/a
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-04Merge "DisplayTopology propagation to IM" into main Oleg Blinnikov
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-29DisplayTopology propagation to IM Oleg Blinnikov
Change-Id: Ic0cf7f798175c7005d1bd0a57d116ef9542cd7a6 Bug: 364907904 Test: builds Flag: com.android.server.display.feature.flags.display_topology
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-25Return message wrapped in Result from receiveMessage Paul Ramirez
Changed receivedMessaged return type from status_t to android::base::Result<>. Enforces checking valid state before using the object. Flag: EXEMPT refactor Bug: 297226446 Test: TEST=libinput_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0c25e864701a6c408b90709493dd30de9b929e2e) Merged-In: Ic2285d38a2d0d2227c1fae92379270a5f52586c7 Change-Id: Ic2285d38a2d0d2227c1fae92379270a5f52586c7
2024-11-25Merge "[audio] Add new mute type to AudioManager" 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-22Merge "input: Remove prefix from InputDeviceSensorAccuracy enum" into main Treehugger Robot
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-22input: Remove prefix from InputDeviceSensorAccuracy enum Harry Cutts
This is an enum class, so the value identifiers aren't in the global namespace and therefore don't need to be Smurf-named. Bug: 245989146 Change-Id: I7ec70dad5651eddcb55f61c3ebaeffc2e31f251d Test: m checkinput Flag: EXEMPT refactor
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>
2024-11-22Merge "Improve wording of ALooper_pollAll docs." into main Treehugger Robot
2024-11-22Improve wording of ALooper_pollAll docs. Dan Albert
Bug: None Test: None Change-Id: I73dda897fe2cc7539bc78a72da22995d54c59787
2024-11-21Merge "Easier ftl::Flags construction" into main Treehugger Robot
2024-11-21[audio] Add new mute type to AudioManager Atneya Nair
For consistency between Java/native. Test: compiles Flag: EXEMPT, safe Bug: 376481063 Change-Id: I3368bdfd38623218f574ab60109df9b64700fa63
2024-11-21Fix typo in ASessionConfig_setGraphicsPipeline signature Andy Yu
Bug: 362801903 Bug: 367803904 Test: atest HintManagerServiceTest atest PerformanceHintNativeTest Flag: EXEMPT_NDK Change-Id: I04e0248572dd9342d1ac35b8fce80768502c56dc
2024-11-20Easier ftl::Flags construction Lloyd Pique
As demonstrated by the existing test, while it is possible to construct a ftl::Flags<E> from multiple values, it requires an extra `using namespace ftl::flag_operators` or alternatively a `using ftl::flag_operators::operator|` to implicitly construct a `ftl::Flags<E>` type. But there is an easier way -- allow implicit construction from a `std::initializer_list<E>`. This means as an alternative to: using namespace ftl::flag_operators; ftl::Flags<E> x = E::A | E::B; ... one can instead write: ftl::Flags<E> x = {E::A, E::B}; ... and achieve the same initial value. This change adds the new constructor overload. Assignment from an initializer list automatically works, without having to define a explicit `operator=(std::initializer_list<E>)`. Instead the copy constuctor is used. As a useful side effect, you can now also clear the flags by assigning an empty initializer list: ftl::Flags<E> x; x = {}; // Clears x to zero Bug: 185536303 Flag: EXEMPT New library code Test: atest ftl_test Change-Id: I1de7857c93ebef4fc5e6157aac9cf162b49943e1
2024-11-21Merge "Fix One Euro filter's units of computation" into main Treehugger Robot
2024-11-20Fix One Euro filter's units of computation Paul Ramirez
Changed the units that the One Euro filter uses to compute the filtered coordinates. This was causing a crash because if two timestamps were sufficiently close to each other, by the time of implicitly converting from nanoseconds to seconds, they were considered equal. This led to a zero division when calculating the sampling frequency. Now, everything is handled in the scale of nanoseconds, and conversion are done if and only if they're necessary. Bug: 297226446 Flag: EXEMPT bugfix Test: TEST=libinput_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST Change-Id: I7fced6db447074cccb3d938eb9dc7a9707433f53