Age | Commit message (Collapse) | Author |
|
Bug: 346604998
Change-Id: If8fec7a527f58d33b2369ae2df1a63219208a5c8
Test: n/a
|
|
|
|
* 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
|
|
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
|
|
Bug: 346604998
Bug: 384737787
Flag: EXEMPT ndk
Test: atest NativeSystemHealthTest
Change-Id: Idc1fdd1c4789a71b11dd879b09b5725b6b7ba380
|
|
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
|
|
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>
|
|
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>
|
|
|
|
Caught post-submit in https://r.android.com/3353154.
Bug: None
Test: None
Change-Id: I7578ecafea463aa4c7d06a7527c44aba9e558d79
|
|
|
|
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>
|
|
|
|
This will generate <code> tag properly instead of <pre>
Bug: 367803904
Test: n/a
Flag: EXEMPT ndk
Change-Id: I59d53925cf15b33364190557951a4c03d18f4071
Merged-In: If5456fdc009b1154101cdae95d8d2943b030fbad
|
|
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
|
|
|
|
Bug: 346604998
Flag: EXEMPT ndk
Test: build
Change-Id: I859685babd1552b45ad48e1fe64d21ed84b55faf
|
|
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>
|
|
|
|
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>
|
|
Bug: 346604998
Change-Id: I5cb1331bc4217835666670c4fa5eef3060e65ca5
Test: N/A
|
|
|
|
Bug: 346604998
Flag: EXEMPT ndk
Test: TBD in next change
Change-Id: I4a5b04cc40907effff8d68140b89517ffbf3c7f9
|
|
into main
|
|
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
|
|
Change-Id: Ic0cf7f798175c7005d1bd0a57d116ef9542cd7a6
Bug: 364907904
Test: builds
Flag: com.android.server.display.feature.flags.display_topology
|
|
|
|
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
|
|
Bug: 381293544
Change-Id: Ied40d74f9f96e647aa56500b7ed04c573be24b98
Test: build
Flag: EXEMPT NDK
|
|
|
|
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>
|
|
|
|
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
|
|
|
|
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
|
|
|
|
Bug: 358422255
Change-Id: I33ffd8c9a843740653f7b838b426ba412aa292a1
Test: builds
Flag: EXEMPT NDK
|
|
ADisplayLutsEntry_getSamplingKey.
- to fix https://screenshot.googleplex.com/4BTVD4TjjDfuwcs
Bug: n/a
Change-Id: I9fdc07acef94be75f251a0246cea5116ac01f892
Test: builds
Flag: EXEMPT NDK
|
|
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
|
|
|
|
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>
|
|
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>
|
|
|
|
Bug: None
Test: None
Change-Id: I73dda897fe2cc7539bc78a72da22995d54c59787
|
|
|
|
For consistency between Java/native.
Test: compiles
Flag: EXEMPT, safe
Bug: 376481063
Change-Id: I3368bdfd38623218f574ab60109df9b64700fa63
|
|
Bug: 362801903
Bug: 367803904
Test: atest HintManagerServiceTest
atest PerformanceHintNativeTest
Flag: EXEMPT_NDK
Change-Id: I04e0248572dd9342d1ac35b8fce80768502c56dc
|
|
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
|
|
|
|
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
|