summaryrefslogtreecommitdiff
path: root/libs/nativewindow
Commit message (Collapse)AuthorAgeFilesLines
* Enable header libraries for host buildsJerome Gaillard2024-02-262-0/+9
| | | | | | | | | The host build of libhwui requires access to the headers of nativedisplay and nativewindow. Bug: 322360037 Test: N/A Change-Id: I1deefdaa42c8756914451c8642fff83199d25e70
* Merge "allocate2 -> allocateWithOptions" into mainTreehugger Robot2024-02-221-1/+1
|\
| * allocate2 -> allocateWithOptionsJohn Reck2024-02-201-1/+1
| | | | | | | | | | Test: n/a Change-Id: I59c9c62458fbaf274db031cc56e89b2e3129ac1a
* | Add default_teamsJohn Reck2024-02-214-0/+8
|/ | | | | Test: n/a Change-Id: I6c2426303194df4b94f6181f4b5c71970bc5f7fd
* Track API council feedbackJohn Reck2024-02-134-5/+5
| | | | | | Fixes: 319284591 Test: make && atest libnativewindow_test Change-Id: I7d6521ff43bf7a79dc6c6e45610108b82e469dc8
* Merge "Surface should be Sync too." into main am: df516d78d9 am: 0979ab2fd0Andrew Walbran2024-01-261-0/+3
|\ | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2929910 Change-Id: Iecd2a31cdeec6758381c7138da6ea91fd2029e07 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Surface should be Sync too.Andrew Walbran2024-01-261-0/+3
| | | | | | | | | | | | Bug: 307535208 Test: m rust Change-Id: I0b9d19fec972f1bc6f72e625166e372e48aa08ed
* | Merge "Add Rust support for Surface unstructured parcelable." into main am: ↵Andrew Walbran2024-01-243-1/+144
|\| | | | | | | | | | | | | | | | | d52639e35b am: d16b5baba3 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2906958 Change-Id: I73f28550612712e9967f7a1c3c555f2f6fdd0c32 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Add Rust support for Surface unstructured parcelable.Andrew Walbran2024-01-243-1/+144
| | | | | | | | | | | | Bug: 307535208 Test: m rust Change-Id: I4bb57b773ab7c1884d0341a3bc7dd100c3636bde
* | Merge "Define a backing type for ADataSpace." into main am: 72d92efc71 am: ↵Dan Albert2024-01-191-0/+1
|\| | | | | | | | | | | | | | | | | 88127a1114 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2902242 Change-Id: I7af6166c94b5fc4c11712f459813a2b9aec239eb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Define a backing type for ADataSpace.Dan Albert2024-01-181-1/+2
| | | | | | | | | | | | | | | | | | This enum is used in the ABI for the SurfaceControl APIs, but that's not safe without a defined backing type. Bug: None Test: treehugger Change-Id: Ifa52f69abacc370e91fd9a358f24a011fdbf0322
* | Merge "Add HardwareBuffer::clone_from_raw." into main am: a8d0a4e011 am: ↵Andrew Walbran2024-01-171-7/+22
|\| | | | | | | | | | | | | | | | | 0efc3f4349 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2906959 Change-Id: I5fb62c143b20e8640649bc93516f366302fc0812 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Add HardwareBuffer::clone_from_raw.Andrew Walbran2024-01-171-7/+22
| | | | | | | | | | | | Bug: 316411977 Test: m rust Change-Id: Idf7363c1d2b04338c436814acc00b6046ef83eb2
* | Merge changes from topic "unstructured_parcelable_macros" into main am: ↵Treehugger Robot2024-01-171-71/+28
|\| | | | | | | | | | | | | | | | | ca340b1f0a am: ee12a1eec3 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2906637 Change-Id: Ifa4011434475c84975a000bda5d6601d9137bc7c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Add UnstructuredParcelable trait and macros.Andrew Walbran2024-01-161-71/+28
| | | | | | | | | | | | Bug: 303064346 Test: atest aidl_integration_test Change-Id: I067e05d5f03b678c963ac159574116ef3e33c9ed
* | Merge changes I98f1319d,Ic15fe28f into main am: e901af4aaa am: 18f247a58d ↵Devin Moore2024-01-041-2/+2
|\| | | | | | | | | | | | | | | | | am: f7d2e064a3 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2895642 Change-Id: I1a11930aa80aef361b0fc10c33dafb9c5c23a7fb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Change return value when NDK symbol isn't presentDevin Moore2024-01-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | In nativewindo, if the NDK symbols aren't present the read/write parcel calls will fail. STATUS_FAILED_TRANSACTION is a special return value and shouldn't be used for this case. Return STATUS_INVALID_OPERATION instead. This change will allow the caller to handle the error. Test: m Bug: none Change-Id: I98f1319d8a67bd159825da9b7b533e9f709ad288
| * libnativewindow: map remove extra '#'Steven Moreland2023-12-221-10/+10
| | | | | | | | | | | | | | Bug: 317293882 Test: build with validation Change-Id: I63855cdced5361c2cc35b21d966c45c677b12995 Merged-In: I63855cdced5361c2cc35b21d966c45c677b12995
* | Merge "Support HIGH_INTERACTIVE category in native" into mainRachel Lee2024-01-031-1/+10
|\ \
| * | Support HIGH_INTERACTIVE category in nativeRachel Lee2024-01-021-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is mainly to be used by toolkit to send the touch interaction to SF (in effort to handle touch signal in toolkit instead of SF). The HighInteractive category is similar to Heuristic layer type but will be considered in touch boost logic. Bug: 315071842 Test: atest libsurfaceflinger_unittest Test: atest CtsSurfaceControlTestsStaging Change-Id: I97a94fa970e165424757e4537468fbeda4226a72
* | | Merge "libnativewindow: map remove extra '#'" into mainTreehugger Robot2024-01-021-13/+13
|\ \ \ | |/ / |/| |
| * | libnativewindow: map remove extra '#'Steven Moreland2023-12-221-13/+13
| | | | | | | | | | | | | | | | | | Bug: 317293882 Test: build with validation Change-Id: I63855cdced5361c2cc35b21d966c45c677b12995
* | | Merge "Check builtin_available for ndk calls in AIDL native window" into ↵Devin Moore2023-12-191-2/+10
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | main am: 565af6b109 am: f696a98863 am: 911e500a8b Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2880408 Change-Id: I9bb34ac43d823e440ca9257c81c4f3a985245b07 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * Check builtin_available for ndk calls in AIDL native windowDevin Moore2023-12-181-2/+10
| | | | | | | | | | | | | | | | | | These NDK APIs may not be available for modules using this AIDL type on older devices. Test: m Bug: none Change-Id: I0048285e4bd4d708833704845bed2199800bf42c
| * Merge "Support AIDL serializing and deserializing Rust HardwareBuffer." into ↵Andrew Walbran2023-10-193-11/+139
| |\ | | | | | | | | | | | | | | | | | | | | | | | | main am: 309e92d184 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2736397 Change-Id: I57b80dcf32b205026c181f50aaf6f68d87f21a6b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
* | | Add AHB_allocate2 + get/setDataSpaceJohn Reck2023-12-149-86/+400
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix that some ADataSpace enum values were not prefixed with ADATASPACE_* Test: atest AHardwareBufferTest Bug: 315475131 Change-Id: Ie92f416a209501fa8fdc9b3593ea6d3bb68eaa48
* | | Add frame rate compatibility GTE logicRachel Lee2023-11-291-1/+6
| | | | | | | | | | | | | | | | | | | | | Bug: 306080972 Test: atest libsurfaceflinger_unittest Test: atest SetFrameRateTest Change-Id: I65551be0f96fd7d4137e49259436e1a9c74bfe90
* | | native: Rename frame rate selection strategiesRachel Lee2023-11-221-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SELF -> PROPAGATE (default) DO_NOT_PROPAGATE -> SELF No behavioral changes. Test: atest libsurfaceflinger_unittest Bug: 309687765 Change-Id: I055d827a45ecc7f566375425c42e745a41b751f9
* | | Logic for selection strategy "DoNotPropagate"Rachel Lee2023-11-211-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This logic is for the new FrameRateSelectionStrategy::DoNotPropagate. The default behavior ("Self") is to propagate parent vote to children that has no votes, but if a layer has "DoNotPropagate", it will not propagate its vote to children. Bug: 309687765 Test: atest libsurfaceflinger_unittest Test: atest CtsSurfaceControlTestsStaging Change-Id: I284b639f2b1902c5e9d3dcd08ceaf3f76b73451e
* | | native_window_aidl: include cpp headers only when neededAvichal Rakesh2023-10-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | native_window_aidl.h only enables the AIDL glue for CPP/NDK backends, so the headers required for AIDL glue should only be included for CPP/NDK backends. This CL includes headers required by AIDL glue only when the AIDL glue is actually being enabled. Bug: 283283111 Test: Verified that Surface can be used in an AIDL file. Change-Id: I1945d3cfc247bfa507ca4fef03044e1078e598f0
* | | Merge "NativeWindow: implement functions expected by AIDL" into mainTreehugger Robot2023-10-251-3/+20
|\ \ \
| * | | NativeWindow: implement functions expected by AIDLAvichal Rakesh2023-10-251-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ANativeWindow is now parcelable over stable interfaces by being wrapped in NativeWindow or Surface. The readFromParcel and writeToParcel functions are implemented for this class, but AIDL also expects some comparators and a toString function to be implemented for custom parcelables. This CL implements the comparison operators, and the toString function to allow NativeWindow/Surface to be used with AIDL interfaces and Parcelables. The operations simply compare/print the ANativeWindow pointer that is being managed by the object. Bug: 283283111 Test: Verified that Surface can be used in an AIDL file. Change-Id: I28ceded9ee1358884a6b1214269bb04a90749fc0
* | | | Merge "Support AIDL serializing and deserializing Rust HardwareBuffer." into ↵Andrew Walbran2023-10-203-11/+139
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | main am: 309e92d184 am: e8a6dfcb32 am: 01c83edf60 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2736397 Change-Id: I5256f337aa3c7d65b382dea556df488ca4ab1c60 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge "Support AIDL serializing and deserializing Rust HardwareBuffer." into ↵Andrew Walbran2023-10-193-11/+139
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | | | | | | | | | | main am: 309e92d184 am: e8a6dfcb32 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2736397 Change-Id: I7cef3e02c1ab36f33373536184e3c6252136881c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Support AIDL serializing and deserializing Rust HardwareBuffer.Andrew Walbran2023-10-113-11/+139
| | | | | | | | | | | | | | | | | | Bug: 295245772 Test: Built a simple binary depending on it. Change-Id: I64856b6063fd0e0ffe9f3bd1f066a73fbeffdb32
| * | Merge changes from topic "nativewindow-rust" into main am: 5d6006d85b am: ↵Jim Shargo2023-10-102-31/+94
| |\| | | | | | | | | | | | | | | | | | | | | | | | | 6c3e2f72a7 am: a0b0fd7b5b am: 31627ebf8f Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2776854 Change-Id: Ia035b64fd2c2f9ee4c523c301d2f73926c2f07e3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * nativewindow: Misc. improvements for AHardwareBuffer Rust wrapperJim Shargo2023-10-102-31/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes include: - Rename AHardwareBuffer to HardwareBuffer - Expose AHardwareBuffer as a raw pointer type - Making HardwareBuffer Send - HardwareBuffer now derives Debug, PartialEq and Eq - Use NonNull instead of a *mut pointer - Adding an into_raw function to match from_raw - Adding a Clone impl that acquires a ref Bug: 296449936, 296100790 Test: atest libnativewindow_rs-internal_test Merged-In: Iaf916fabe49190f47abd1a9ed34afdb76fd20e40 Change-Id: I5da6375582e98e8783b31ad8424f1e21c33467e5
| * | nativewindow: Add more benchmarks to evaluate FFI costs am: ba294d7d80 am: ↵Jim Shargo2023-10-102-13/+69
| |\| | | | | | | | | | | | | | | | | | | | | | | | | cbcbb11376 am: ab68d2c732 am: 42d34fca4f Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2776853 Change-Id: Ic61b7dc3a45152dbf319d6b455b242dced757fa9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * nativewindow: Add more benchmarks to evaluate FFI costsJim Shargo2023-10-102-13/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds two new benchmarks, one for getting an AHardwareBuffer's ID and another for getting its description. These should (and do) ultimately take the same amount of time. Test: just adding new tests Merged-In: I5e09a2736ab829ca465aaa4073b439a605d49b5a Change-Id: I7ee6dd4e989c85fe18221f51a998ae1c25221800
| * | nativewindow: Add C++/Rust benchmarks am: e4680d7599 am: e76841b5c2 am: ↵Jim Shargo2023-10-105-0/+151
| |\| | | | | | | | | | | | | | | | | | | | | | | | | 95f6fc6b3e am: f735f8c4c8 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2776852 Change-Id: I317914a39d631bf93a741f091dd800c0afa51818 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * nativewindow: Add C++/Rust benchmarksJim Shargo2023-10-105-0/+151
| | | | | | | | | | | | | | | | | | Test: atest nativewindow_buffer_benchmarks_rs nativewindow_buffer_benchmarks_cc Merged-In: Ia2898439da46e57cf65e3d64030d98f052a694c6 Change-Id: Ib5aaa97f7130f1964824a2f6c8ca85d72d61ce4f
| * | Add missing safety comments. am: 03350bc91d am: b3327511a3 am: 1ef3979c30 ↵Andrew Walbran2023-10-101-0/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | | | am: b6f2ded45d Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2776851 Change-Id: Ibf4cf45aafd282cf353b0c8970850fc496a4d452 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * Add missing safety comments.Andrew Walbran2023-10-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | These will soon be required by a lint. Bug: 290018030 Test: m rust Merged-In: Iaa33bab93c458d963d45ec68daf243057b9f1c15 Change-Id: Ia822853e44cc74d0c27622c8d30ca7c404058663
| * | libnativewindow: Add rust library and set up bindgen am: 7df9f75955 am: ↵Jim Shargo2023-10-104-0/+375
| |\| | | | | | | | | | | | | | | | | | | | | | | | | 2cfb2da5cd am: 97c0be1b69 am: aaa2cd0c75 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2776850 Change-Id: I869cad539f4ef81faeebae44a962b4fc86bc3e84 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * libnativewindow: Add rust library and set up bindgenJim Shargo2023-10-104-0/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For now we only expose AHardwareBuffer, but the exposed bindings will make it easy to also expose ANativeWindow, ADataspace, and others in the future. NOTE: This makes the new presubmit post-submit to appease the SLO checker Bug: 291954749 Test: Added new unit tests for both bindings and the rust library. Merged-In: I8ef24fc9111bb3fb72a4cdd941742d42d72fa776 Change-Id: I1dc87c9012fc1c1b805716cf7252fba2da11aec2
* | | Merge "nativewindow: Misc. improvements for AHardwareBuffer Rust wrapper" ↵Jim Shargo2023-10-102-31/+94
|\ \ \ | | | | | | | | | | | | into main
| * | | nativewindow: Misc. improvements for AHardwareBuffer Rust wrapperJim Shargo2023-10-102-31/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes include: - Rename AHardwareBuffer to HardwareBuffer - Expose AHardwareBuffer as a raw pointer type - Making HardwareBuffer Send - HardwareBuffer now derives Debug, PartialEq and Eq - Use NonNull instead of a *mut pointer - Adding an into_raw function to match from_raw - Adding a Clone impl that acquires a ref Bug: 296449936, 296100790 Test: atest libnativewindow_rs-internal_test Change-Id: Iaf916fabe49190f47abd1a9ed34afdb76fd20e40
* | | | Merge "Fix the dataspace description in dataspace ndk documentation." into ↵Sally Qi2023-10-091-26/+29
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | main am: c99b3a0cef am: 314f2692ec am: 20b18d0f83 am: 7a76712982 am: 866759321e Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2775867 Change-Id: If33fcc489826f5f186ac51986018cb413bb073c8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge "Fix the dataspace description in dataspace ndk documentation." into ↵Sally Qi2023-10-091-26/+29
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | main am: c99b3a0cef am: 314f2692ec am: 20b18d0f83 am: 7a76712982 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2775867 Change-Id: I62a03540a1c3851f5a7816adee3c9dc3c9629568 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Merge "Fix the dataspace description in dataspace ndk documentation." into mainSally Qi2023-10-091-26/+29
| | |\ \