summaryrefslogtreecommitdiff
path: root/native/android
Commit message (Collapse)AuthorAgeFilesLines
* surface_control NDK: Track frameworks/native changesRob Carr2022-09-271-2/+2
| | | | | | | | | | A BBQ changes requires adding an additional member to SurfaceControlStats which requires updating this destructuring assignment. Bug: 247246160 Test: Existing tests pass Change-Id: Ic485fe3ae97c4243ab9993717c674c66b28c7fee
* Send the hint immediately when actual > targetWei Wang2022-04-191-6/+6
| | | | | | | | | | Send the hint immediately when actual duration is longer than target duration. Test: boot Bug: 198379880 Signed-off-by: Wei Wang <wvw@google.com> Change-Id: I6c80940b27d65a1e34e40f61eef3f81990957711
* Merge "Update data type and comments on tagSocket/untagSocket APIs" am: ↵Ken Chen2022-03-312-6/+6
|\ | | | | | | | | | | | | | | | | ef89731cd3 am: aa82affbc0 am: 292d5f01ec Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2049804 Change-Id: Id759de693eb64fe729c99b141d267790767a806c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Update data type and comments on tagSocket/untagSocket APIsKen Chen2022-03-312-6/+6
| | | | | | | | | | | | | | | | | | | | - Fix comment in version script to say LL-NDK, not NDK - Use uint32_t for tag Bug: 223423155 Test: CtsNetTestCases:android.net.TrafficStatsTest Test: CtsNativeNetPlatformTestCases Change-Id: Ifb819ed0adeb8f173b98c3f131a4bf2e0715dd4e
* | Add new onUidProcAdjChanged callback to be consumed by the cameraAustin Borger2022-03-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | service. The camera service needs to know when individual process oom adj scores are changed in order to address bug #124224342. When two separate processes are displayed in split screen and focus is switched between them, both proc states will remain the same while their oom scores change. This is a problem if both have access to the camera - we want only one owner of the camera stream at any given time and for the app in focus to be the one to own it. This patch adds a new IUidObserver registration level for individual process oom score changes. In addition a new callback has been added to IUidObserver to track these changes. Change-Id: I68d964f474d20f819f54b614a4e314ce00aac8fb Bug: 124224342 Test: -- ActivityManagerServiceTest -- ActivityManagerProcessStateTest -- ActivityManagerFgsBgStartTest -- UidObserverControllerTest -- NetworkPolicyManagerServiceTest -- ShortcutManagerTest2 -- HintManagerServiceTest -- VibrationSettingsTest -- CameraEvictionTest#testCamera2AccessCallbackInSplitMode (x100)
* | Merge "Remove broken code for mounting encrypted OBB files" am: a4f24f08b0 ↵Eric Biggers2022-03-041-6/+7
|\| | | | | | | | | | | | | | | am: 56c37e5778 am: 089a351d31 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003052 Change-Id: I87cbb67af5e1dc62ddbb8ff7d58a256ee4569b44
| * Merge "Remove broken code for mounting encrypted OBB files" am: a4f24f08b0Eric Biggers2022-03-041-6/+7
| |\ | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2003052 Change-Id: Id027c555af21e46922a1c0ce29195d95bb7bb876
| | * Remove broken code for mounting encrypted OBB filesEric Biggers2022-03-041-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mounting encrypted OBB files has never worked reliably across devices, partly due to its reliance on Twofish encryption support in the kernel. This is because Twofish support (CONFIG_CRYPTO_TWOFISH) has never been required or even recommended for Android. It has never been enabled in GKI, but even before GKI it wasn't required or recommended. Moreover, this is now the only Android feature that still uses dm-crypt (CONFIG_DM_CRYPT), and some devices don't have that enabled either. Therefore, it appears that this feature is unused. That's perhaps not surprising, considering that the documentation for OBBs (https://developer.android.com/google/play/expansion-files) says that they are deprecated, and also it explains OBBs as being app files that are opaque to the platform; the ability of the platform to mount OBBs that happen to be in a particular format is never mentioned. That means that OBB mounting is probably rarely used even with unencrypted OBBs. Finally, the usefulness of OBBs having their own encryption layer (in addition to what the platform already provides via FBE) is not clear either, especially with such an unusual choice of cipher. To avoid the confusion that is being caused by having the broken code for mounting encrypted OBBs still sitting around, let's remove it. Test: atest StorageManagerTest # on Cuttlefish Test: atest StorageManagerIntegrationTest # on Cuttlefish Bug: 216475849 Change-Id: I6e6a6462ab8343299dc5e0145b87dc28b16b0bc1
| * | Merge sc-v2-dev-plus-aosp-without-vendor@8084891Xin Li2022-02-112-4/+4
| |\ \ | | |/ | |/| | | | | | | | | | Bug: 214455710 Merged-In: I8cfa435bb6233818adb9cc99dadeeb06a03443d5 Change-Id: Ib93992d88fd1704179009a3872798b9e7b83a6d1
* | | Merge "Use start time in SurfaceControl setFrameTimeline." into tm-devTreeHugger Robot2022-03-021-7/+4
|\ \ \
| * | | Use start time in SurfaceControl setFrameTimeline.Rachel Lee2022-02-261-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users of the API will see in the "Actual Timeline" the actual start time rather than expected start time. Bug: 210043506 Test: perfetto log of with & w/o CL, using Chromium apk, bug 198192946 Change-Id: I013bf6e28de32c82c9d645cc4cacf0cc01e0dd9f
* | | | adpf: Use one client token per process for all hint sessionsBo Liu2022-03-011-2/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So it doesn't leak when gc is delayed in service process. Update HintManagerService to allow multiple sessions tied to the same token. Bug: 218129784 Test: chrome no longer gets killed Change-Id: I67a66041cc67d01e4cfcd3ded303a1bed6050f60
* | | Merge "Rename to VsyncCallback & presentation time."Rachel Lee2022-02-172-9/+8
|\ \ \
| * | | Rename to VsyncCallback & presentation time.Rachel Lee2022-02-152-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 217370454 Test: atest ChoreographerNativeTest Change-Id: Icf460a82c1f59e930bdfc456e4a75ae341ce4394
* | | | Add implementation for new NDK functions added to input.hVaibhav2022-02-142-0/+17
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new methods for getActionButton and getClassification in input.h. In this CL we are adding implementations for the corresponding functions Test: atest android.view.cts.MotionEventTest Bug: 213266814 Change-Id: Ia7c7b83fe19bac7d5e5c7c107e86328e160ba2b5
* | | Merge "surface_control: handle acquire fence on BLAST callbacks"Ady Abraham2022-02-101-11/+19
|\ \ \
| * | | surface_control: handle acquire fence on BLAST callbacksAdy Abraham2022-01-211-11/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When latching unsignaled buffers, the acquire fence is not signaled by the time BLAST callback is invoked. In that case pass a fence instead. For latch signaled, we still pass the acquire time itself to avoid sending file descriptors over binder. Bug: 198190384 Test: TBD Change-Id: I949fd396ec36ee759327a952239509d10259be1b
* | | | Merge "Adjust base/native/android OWNERs" am: d8f74421fb am: 82e8873cba am: ↵Treehugger Robot2022-02-101-1/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e7eb1dce20 am: 8fb92de72b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977192 Change-Id: I6ddf92eed85ae95a902fc1d1781e67d157b5d2d8
| * \ \ \ Merge "Adjust base/native/android OWNERs" am: d8f74421fb am: 82e8873cba am: ↵Treehugger Robot2022-02-101-1/+10
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e7eb1dce20 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977192 Change-Id: I19f032cabc787356be291a500e639d223ddf41a2
| | * \ \ \ Merge "Adjust base/native/android OWNERs" am: d8f74421fb am: 82e8873cbaTreehugger Robot2022-02-101-1/+10
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1977192 Change-Id: Ifc576cf8e977102786755a7abeb0c8686ae5c9c5
| | | * | | Adjust base/native/android OWNERsJohn Reck2022-02-091-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: N/A Change-Id: Ieb263e6b57b5e4495d45e6c22ac1f97cb1ca7913
* | | | | | Add ASensorManager_getDynamicSensorList.Erik Staats2022-02-082-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 217890463 Test: Used uhid-sample to add a dynamic sensor and verified it can be used with sensor_test. Change-Id: Ia930c6993c97527381d30e33f817f37632cb8396
* | | | | | Merge "Really expose the new NDK socket tagging functions added in T." am: ↵Treehugger Robot2022-02-021-0/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cba72fc987 am: fd5bb81c8a am: f30f967e5a am: 4bc8cb7628 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1967301 Change-Id: Ia93a3556b209aa214233952b838c2e0ca3aeaddb
| * | | | | Merge "Really expose the new NDK socket tagging functions added in T." am: ↵Treehugger Robot2022-02-021-0/+3
| |\| | | | | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | cba72fc987 am: fd5bb81c8a am: f30f967e5a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1967301 Change-Id: Ibf59d43165b336b52030103a3e9e3b95872197c8
| | * | | Merge "Really expose the new NDK socket tagging functions added in T." am: ↵Treehugger Robot2022-02-021-0/+3
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cba72fc987 am: fd5bb81c8a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1967301 Change-Id: Ifd16b2ccf8a2fd85d963aa08243385e094aa7c9b
| | | * | Really expose the new NDK socket tagging functions added in T.Lorenzo Colitti2022-02-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These functions were already exposed as part of libandroid_net, but that is not really part of the NDK. Expose them in libandroid as well, so apps can actually use them. This is consistent with all the other native networking APIs, which are exposed in both libandroid_net and libandroid. Test: atest CtsNativeNetPlatformTestCases Test: strings out/target/product/bramble/system/lib64/libandroid.so | grep android_tag Change-Id: I2273cdd48b30a88b82eb3af838031d9fe8897442
* | | | | Merge "Performance hint ndk APIs"Bo Liu2022-01-283-9/+12
|\ \ \ \ \
| * | | | | Performance hint ndk APIsBo Liu2021-11-103-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: atest PerformanceHintNativeTestCases Change-Id: I8f410cf5ee8cee90465d1ce48a42c9ff8bbe80c4
* | | | | | Merge changes from topic "scdocs"Rachel Lee2022-01-242-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Use AVsyncId typedef in hwui. Use AVsyncId typedef.
| * | | | | | Use AVsyncId typedef.Rachel Lee2022-01-142-2/+2
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: atest ASurfaceControlTest Bug: 214063411 Change-Id: I5dd6a0e467f3acc46bf4ce65dde0df265b590697
* | | | | | Merge changes from topic "achoreonanos"Rachel Lee2022-01-132-6/+7
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Update hwui with renamed AChoreographer method. Update libandroid renamed AChoreographer methods.
| * | | | | | Update libandroid renamed AChoreographer methods.Rachel Lee2022-01-132-6/+7
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: atest ChoreographerNativeTest Bug: 214303753 Change-Id: I32d9703c669b2408dddd199c678fca0564668142
* | | | | | Merge "Add tagSocket/untagSocket NDK APIs" am: d992ee2925 am: 358573e8a3 am: ↵Treehugger Robot2022-01-132-0/+16
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | | | | | | | | | | | | | | | cfdc49a491 am: 2a30ec9975 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1938795 Change-Id: If5f98e651be5b59753c15dd19fdedf2d67d034e5
| * | | | Merge "Add tagSocket/untagSocket NDK APIs" am: d992ee2925 am: 358573e8a3 am: ↵Treehugger Robot2022-01-132-0/+16
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | cfdc49a491 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1938795 Change-Id: I1c005cbc1d888310e17c6105c0dd2457d4cc1c86
| | * | | Merge "Add tagSocket/untagSocket NDK APIs" am: d992ee2925 am: 358573e8a3Treehugger Robot2022-01-132-0/+16
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1938795 Change-Id: Id17914c8247e754e74c9434a6e6843b703ca2daf
| | | * | Add tagSocket/untagSocket NDK APIsKen Chen2022-01-122-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide native APIs to tag the various sockets used for network transfer, which helps apps tracking down data usage inside their app. We've had equivalent Java APIs since API level 14. https://developer.android.com/reference/android/net/TrafficStats.html#tagSocket(java.net.Socket) https://developer.android.com/reference/android/net/TrafficStats.html#untagSocket(java.net.Socket) Given that these Java APIs are implemented in native side, providing NDK APIs directly will be easier for native users to use it. Bug: 29761778 Bug: 202086915 Test: Tests in change Ic6554d9b98cef9b41b7eae06315d284c574c0a45 Change-Id: I802ce62f82199ce087bf8feb03afb26de1ce526e
| | | * | Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918Xin Li2021-11-181-1/+1
| | |/ / | | | | | | | | | | | | | | | | | | | | Bug: 205056467 Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0 Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
| * / / DO NOT MERGE: Track SurfaceComposerClient changesRobert Carr2022-01-021-3/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | surfaceControlStats now includes the acquire count. Bug: 197269223 Bug: 212846697 Test: Existing tests pass Change-Id: I29f2e9ba1c100a831be5eddce2c2a442d136d98e
* | | Merge "Pass JNIEnv explicitly into AInputQueue_fromJava"TreeHugger Robot2021-12-161-2/+2
|\ \ \
| * | | Pass JNIEnv explicitly into AInputQueue_fromJavaPrabir Pradhan2021-12-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of assuming a JNIEnv*, the method should have the env passed into it, which is the standard practice for native APIs. Bug: 210727635 Test: atest InputQueueTest Change-Id: Iae5fc5bd39c758c530185694751d6d79715ce31b
* | | | Merge changes from topic "surfacectrl"Rachel Lee2021-12-152-0/+9
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | * changes: Pass start time from HWUI canvas context. Implement timeline in libandroid ASurfaceControl.
| * | | Implement timeline in libandroid ASurfaceControl.Rachel Lee2021-12-092-0/+9
| | |/ | |/| | | | | | | | | | | | | | | | | | | As part of choreographer project. Bug: 198192003 Test: atest ASurfaceControlTest Change-Id: I36fdeae1d2bc07fdbd487fc0a40324fe48baca09
* / | Reduce SurfaceControl feature gap to NDK APIJohn Reck2021-12-091-1/+1
|/ / | | | | | | | | | | | | Bug: 200697201 Test: atest android.view.cts.SurfaceControlTest Change-Id: I1d0cff355714acb5668952b3d7f6fc0c15952523
* | Give access to the native InputQueue to all native applications.Jim Blackler2021-11-012-0/+5
| | | | | | | | | | | | Bug: 116830907 Test: atest android.view.cts.InputQueueTest#testNativeInputQueue Change-Id: Ia7741ac4922afeeca334266caef3331b521f87e4
* | Merge "Update setBuffer to use the new setBuffer API"Chavi Weingarten2021-10-011-3/+3
|\ \
| * | Update setBuffer to use the new setBuffer APIchaviw2021-09-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Transaction.setAcquireFence is removed and instead the fence can be sent directly in the setBuffer call. Test: Chrome works Fixes: 200065015 Change-Id: I248f07d7ce5a3faa0d7482fe4e0e7b33f3cfea55
* | | Choreographer: new libandroid for CTS.Rachel Lee2021-09-272-0/+36
|/ / | | | | | | | | | | Bug: 198191651 Test: make, atest ChoreographerNativeTest Change-Id: I5fd1bbefc77b45ec953e06b0ed5da8521dc08732
* | Get rid of unused ASurfaceControl in frame metrics listener callbackPablo Gamito2021-09-071-4/+3
| | | | | | | | | | Test: Existing tests Change-Id: Ia071814dabfc762d00d3324bfaa343ff94ab8338
* | Pass surface control id to callback to accurately identify surface metrics ↵Pablo Gamito2021-09-061-11/+8
| | | | | | | | | | | | | | | | | | | | belongs to Avoid getting the wrong frame info when duplicate frame numbers are found in the ring buffer. Will ensure there isn't a mismatch in the metrics data reported. Test: Existing tests Bug: 197515602 Change-Id: Iff9ba01f575f94e5a9872ee48c0dd1e5067880c3
* | Stop reporting frame stats from frames completed before observer was attachedPablo Gamito2021-08-311-1/+1
|/ | | | | | Test: Run app from bug report Fixes: 195699687 Change-Id: If80825dfb41467917b7b9b1e8c9ead1a0dcbffae