summaryrefslogtreecommitdiff
path: root/native
AgeCommit message (Collapse)Author
2025-03-04Fix FMQ to use correct total duration Matt Buckley
Bug: 400564582 Test: atest PerformanceHintNativeTestCases Flag: EXEMPT bugfix Change-Id: I055f36496da4e88da04c21ef4f042dfd220af390
2025-03-03Merge "Harden construction sites of android::Surface." into main Anton Ivanov
2025-02-28Add error logging in destructor Xiang Wang
Bug: 399754366 Change-Id: I89a8130b76085f188ffc713fa5a8aa87c18f695e Test: n/a Flag: EXEMPT ndk
2025-02-26Harden construction sites of android::Surface. Anton Ivanov
Since this type is inteded to be managed as a StrongPointer, ensure that is always constructed as such. Bug: 393217449 Test: presubmit Flag: EXEMPT_refactor Change-Id: Ia74493743653a9e41384cfb4c384ac30bef1e907
2025-02-26Remove GtsWebViewHostTestCases from TEST_MAPPING. Torne (Richard Coles)
These tests are being removed. Bug: 296426330 Test: n/a Flag: TEST_ONLY Change-Id: I92cf8054237b347a8d0f0ceb07744f012f0c999f
2025-02-24Merge "OWNERS: codewiz left Google, just use team owners file." into main ↵ Treehugger Robot
am: e97d96fcfe am: 52ab993e75 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3497659 Change-Id: Ib7620f1a361218e9d0722c066c16e6ca34038818 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-24OWNERS: codewiz left Google, just use team owners file. Maciej Żenczykowski
Test: N/A Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I10177b310ccc594a9a32ff2fb7b87fecd08bc571
2025-02-13[Lut] Function changes due to setLuts signature changes, and use ↵ Sally Qi
ScopedArrayRO instead because it's cheaper. Bug: 380894872 Test: builds Flag: EXEMPT refactor Change-Id: Ied3a8f9ae9045a32667bbd2b2b1dfd92e7072da6
2025-01-14Merge "Revert^2 "Update test mapping for all headroom tests"" into main Xiang Wang
2025-01-14Merge "Update CC list for imagedecoder_fuzzer bugs" into main am: e913198372 ↵ Noelle Scobie
am: bd62dab274 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3452888 Change-Id: I354607bae82d9b85ec1bca0bee958faa0cfcf5bf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-14Update CC list for imagedecoder_fuzzer bugs Noelle Scobie
Note: also affects imagedecoder_png_fuzzer and imagedecoder_heif_fuzzer Bug: N/A Change-Id: Iba65d44bd8294b4be137d7a51059538e4863e0ff Test: N/A Flag: EXEMPT N/A
2025-01-13Revert^2 "Update test mapping for all headroom tests" Xiang Wang
This reverts commit d4fd3235109ce4a72f3758013fe89685ed641ba8. Reason for revert: reland Change-Id: I4e185f6ef1afd874273d1aea1240b3ae3fb79638
2025-01-13Merge "Revert "Update test mapping for all headroom tests"" into main Dan Shi
2025-01-13Revert "Update test mapping for all headroom tests" Chun-Yi Lee
This reverts commit 4b9716c8de14e55de48ca31a71ce82b1e381388d. Reason for revert: b/389839447 Change-Id: I1d32be0266fe88c20a63b6acf5f3f0b6fbfae4b6
2025-01-13Merge "Update test mapping for all headroom tests" into main Xiang Wang
2025-01-13Merge "Promote thermal tests to presubmit" into main Treehugger Robot
2025-01-10Update test mapping for all headroom tests Xiang Wang
Bug: 346604998 Flag: TEST_ONLY Test: atest :postsubmit Change-Id: I3278a0114ba4783acdb0ace9138102518521aed3
2025-01-10Promote thermal tests to presubmit Xiang Wang
Bug: 360486877 Flag: TEST_ONLY Test: n/a Change-Id: I89ec3bd306f26244d1db70077c854077c91646ea
2025-01-10Merge "Change to use support info for interval millis" into main Treehugger Robot
2025-01-09Merge "Update owner for system health SDK and NDK unit tests" into main am: ↵ Treehugger Robot
1cd84ad775 am: 0479fcaa22 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3431218 Change-Id: I51e89d2d4f86cb342dce67f36c17e1cfa4f6e405 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-07Update owner for system health SDK and NDK unit tests Xiang Wang
Bug: 346604998 Change-Id: I6c31f9ba033fd0a25ac8851908e8836016afaff2
2025-01-07Change to use support info for interval millis Xiang Wang
Add unit tests and fix bugs on no result handling Bug: 346604998 Flag: android.os.cpu_gpu_headrooms Test: atest NativeSystemHealthUnitTest SystemHealthManagerUnitTest NativeSystemHealthTest HeadroomTest Change-Id: I7a820c7ccfcbe4c3db2ae0ec81a66c7a55c9add3
2025-01-06Merge "Fix crash when checking null surfaces" into main Treehugger Robot
2025-01-06Merge "Address API review feedback" into main Matt Buckley
2025-01-03Address API review feedback Xiang Wang
* Sync the headroom explanation between NDK and SDK * Make the calculation window min max values public * Change params to be immutable and add builder * Add comment on how to use the APIs and the binder call warning * Add new API getMaxCpuHeadroomTidsSize to query max TID count Bug: 384056153 Bug: 346604998 Flag: android.os.cpu_gpu_headrooms Test: atest HintManagerServiceTest Change-Id: I8aff28a0b281e2948462924875017f9273440022
2025-01-03Fix crash when checking null surfaces Matt Buckley
Test: atest PerformanceHintNativeTestCases Bug: none Flag: EXEMPT bugfix Change-Id: Ie5520a33107187484a15eeb0b536de2ea6c1872e
2024-12-26Remove redundant support checks Matt Buckley
NDKs are not flaggable and returning unsupport is no longer a part of the load hint API. Bug: 385808376 Test: atest android.os.cts.PerformanceHintManagerTest Flag: EXEMPT ndk Change-Id: I83e9d0341d8226ddd8bf3bf0fc3856f691b691bc
2024-12-23Merge "Update performance_hint to follow NDK API guidance" into main Matt Buckley
2024-12-20Merge "Add ADPF owner to system_health.cpp" into main am: ca007fa35e am: ↵ Xiang Wang
b9892c2215 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3428805 Change-Id: Ieb4190956de14b9b382d93eae108177a5805b1e2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-20Add ADPF owner to system_health.cpp Xiang Wang
Bug: 346604998 Change-Id: I7cd2d6fd6b02194ee1e3175aec5795431cb6bd28
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 Change-Id: I31f1c1db4ee4846a8aca63243f61ac1672aac309
2024-12-12Reland initial support check using SupportInfo Matt Buckley
We figured out what broke it the first time, gonna do some additional testing just to make super sure it works though Bug: 367803904 Test: atest PerformanceHintNativeTestCases Test: atest HintManagerServiceTest Test: manual Flag: EXEMPT NDK Change-Id: I9f8255a15b97806354a982bc2e001fd971c94784
2024-12-12Merge "API review for dynamic_instrumentation_manager" into main Matt Gilbride
2024-12-12API review for dynamic_instrumentation_manager Matt Gilbride
Adds various improvements to API documentation and pointer nullability for subject native interface. Bug: 382285661 Test: TH Flag: android.uprobestats.flags.executable_method_file_offsets Change-Id: Ic82b996ecca589cb81e564e17df4fb4570cd7dc2
2024-12-12Merge "Revert "Refactor initial support check to use SupportInfo"" into main Nicolò Mazzucato
2024-12-11Revert "Refactor initial support check to use SupportInfo" Jordan Demeulenaere
This reverts commit 3470f4f646ae90da4e275d254b2d9ea286436e47. Reason for revert: culprit for b/383187696 Change-Id: Idce3fda416d0f5e7dbcc08b420f547d74d59476d
2024-12-09Merge "Refactor initial support check to use SupportInfo" into main Matt Buckley
2024-12-08Refactor initial support check to use SupportInfo Matt Buckley
This change makes the intial support check when APerformanceHintManager starts pass the SupportInfo object instead of just relying on the preferred rate Bug: 367803904 Test: atest PerformanceHintNativeTestCases Test: atest HintManagerServiceTest Flag: EXEMPT refactor Change-Id: I0a803706d4ef8d9cb05d9cdb066af5a9721a951e
2024-12-09Merge "Fix spike method calling" into main Matt Buckley
2024-12-07Fix spike method calling Matt Buckley
Bug: 367803904 Change-Id: I82136255f9d8ce8d7bc80b259853822a0860c53a Test: atest PerformanceHintManagerTest Flag: EXEMPT ndk
2024-12-05Merge "Support target process in dynamic instrumentation" into main Yu-Ting Tseng
2024-12-05Merge "Add CPU/GPU_LOAD_SPIKE hints for one-off expensive workloads" into main Matt Buckley
2024-12-04Fix PerformanceHints budget calculation Matt Buckley
Bug: 382055833 Change-Id: Icfeec0f6c5f32608054f623e53437b9d79e5bd6a Test: atest PerformanceHintNativeTestCases Flag: EXEMPT ndk
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: Ib3819dc1cf099a6da527e7291d44a04a624701ee
2024-12-04Support target process in dynamic instrumentation Yu-Ting Tseng
Make DynamicInstrumentationManagerService talk to an app process to obtain method offsets when the target process is an app. This is done via calling a new AIDL method IApplicationThread.getExecutableMethodFileOffsets. The implementation (ActivityThread) runs in an app process and calls ART VMDebug in-process to get the offsets. The offset results are now provided asynchronously both from app to system_server, and from system_server to uprobestats. This way system_server would not block on an app process. Bug: 372925025 Flag: com.android.art.flags.executable_method_file_offsets Change-Id: Ie58a21d12530000b858aa292a406755a158b4c4a Test: atest ExecutableMethodFileOffsetsTest
2024-12-04Merge "Add NDK support for CPU/GPU headroom APIs" into main Xiang Wang
2024-12-03Merge "Add NDK support for thermal headroom callback API" into main Xiang Wang
2024-12-02Add NDK support for CPU/GPU headroom APIs Xiang Wang
Bug: 346604998 Flag: EXEMPT ndk Test: atest NativeSystemHealthTest Change-Id: I5fd4bee8711f60f948010d96019cc0e200713e06
2024-12-02Merge "[Lut NDK] Add static_assert to ensure that ↵ Sally Qi
ADISPLAYLUTS_SAMPLINGKEY_CIE_Y is the same as android::gui::LutProperties::SamplingKey::CIE_Y." into main
2024-11-28Merge "Add mattbuckley@ to OWNERS for libandroid.map.txt" into main am: ↵ Matt Buckley
ad8bdda8df am: db4d000941 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3380711 Change-Id: I04409ceab2d84a24aeaf80973f530a88975c16eb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>