summaryrefslogtreecommitdiff
path: root/libs/nativewindow/include
Commit message (Collapse)AuthorAgeFilesLines
* Enable header libraries for host buildsJerome Gaillard2024-02-261-0/+4
| | | | | | | | | The host build of libhwui requires access to the headers of nativedisplay and nativewindow. Bug: 322360037 Test: N/A Change-Id: I1deefdaa42c8756914451c8642fff83199d25e70
* allocate2 -> allocateWithOptionsJohn Reck2024-02-201-1/+1
| | | | | Test: n/a Change-Id: I59c9c62458fbaf274db031cc56e89b2e3129ac1a
* Track API council feedbackJohn Reck2024-02-131-1/+1
| | | | | | Fixes: 319284591 Test: make && atest libnativewindow_test Change-Id: I7d6521ff43bf7a79dc6c6e45610108b82e469dc8
* 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 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
* | 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 "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
* | Add AHB_allocate2 + get/setDataSpaceJohn Reck2023-12-143-48/+168
| | | | | | | | | | | | | | | | | | 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
* | 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 "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
| | |\
| | | * Fix the dataspace description in dataspace ndk documentation.Sally Qi2023-10-061-26/+29
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 300602767 Change-Id: Ie67bf2ef39faa8b679fde7831bd8f45d264a3350 Test: builds
* | | | Merge "Correct Transfer and standard tables in dataspace NDK doc." into main ↵Sally Qi2023-10-091-51/+65
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3ad1b0d5da am: dc91837b4d am: 6a017ea70b am: 4530017f67 am: c2999c3c10 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2775428 Change-Id: Ib0ed6ab71c0585e2532ea3c5d9acb81c6e12f9c9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge "Correct Transfer and standard tables in dataspace NDK doc." into main ↵Sally Qi2023-10-091-51/+65
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3ad1b0d5da am: dc91837b4d am: 6a017ea70b am: 4530017f67 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2775428 Change-Id: I0d26b16dd37649d2d227897934381014a5278c42 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Merge "Correct Transfer and standard tables in dataspace NDK doc." into mainSally Qi2023-10-091-51/+65
| | |\ \
| | | * | Correct Transfer and standard tables in dataspace NDK doc.Sally Qi2023-10-051-51/+65
| | | |/ | | | | | | | | | | | | | | | | | | | | Bug: 300602767 Change-Id: Iccc941a3d44781703cf1dc82513e6354b1839ae7 Test: builds
* | | | Merge "Fix NDK documentation minor bugs." into main am: 19dd476618 am: ↵Treehugger Robot2023-10-051-2/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 313d1596d8 am: 3c64be4264 am: 4495a70b8f am: f408312f40 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2773889 Change-Id: If04f18ed7ef71dc44622a134a497665b71da01e2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | Merge "Fix NDK documentation minor bugs." into main am: 19dd476618 am: ↵Treehugger Robot2023-10-051-2/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 313d1596d8 am: 3c64be4264 am: 4495a70b8f Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2773889 Change-Id: I6194baef3c4748c2bdece4f0f7586aa55ecc1c9c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Merge "Fix NDK documentation minor bugs." into main am: 19dd476618Treehugger Robot2023-10-051-2/+4
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2773889 Change-Id: I2117a4a93b3c93e3a4189fea84709f47da0c9540 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * Fix NDK documentation minor bugs.Sally Qi2023-10-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 300602767 Change-Id: I114a4cf83978f152959a6ec244d322603ff5257b Test: builds
| * | | Merge "Fix ADATASPACE_BT601_625 and ADATASPACE_BT601_525 doc." into main am: ↵Sally Qi2023-09-181-7/+7
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4499839c26 am: c1aa8a6431 am: dffca2c4f3 am: 7956a5cf44 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2754865 Change-Id: I2407c9015937783717360ad9ee460bdd13a9e627 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | Merge "Fix ADATASPACE_BT601_625 and ADATASPACE_BT601_525 doc." into main am: ↵Sally Qi2023-09-181-7/+7
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4499839c26 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2754865 Change-Id: I55d40bafabb1a20fc6f5e92f9c8b5188fe299edc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * Merge "Fix ADATASPACE_BT601_625 and ADATASPACE_BT601_525 doc." into mainSally Qi2023-09-181-7/+7
| | | |\
| | | | * Fix ADATASPACE_BT601_625 and ADATASPACE_BT601_525 doc.Sally Qi2023-09-181-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 266124653 Bug: 300602767 Test: builds Change-Id: I3a77febcc4fa36f7b00abd77326cfb33eaf7dfbc Merged-In: I3a77febcc4fa36f7b00abd77326cfb33eaf7dfbc
* | | | | Plumb new frameRateSelectionStrategy valueRachel Lee2023-09-181-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new value will allow a parent layer to override the frame rate specifications of all its descendants. This CL only plumbs the value from Transaction to Layer. Bug: 297418260 Test: atest CtsSurfaceControlTestsStaging Test: atest libsurfaceflinger_unittest Change-Id: Ibbda6ff6c143e931240178d89306822b4cce9669
* | | | | Merge "Protect AHardwareBuffer API calls with __builtin_available" into main ↵Wonsik Kim2023-09-081-5/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2bce819db7 am: d8606ef3ff am: 1f1b0b8c94 am: 09de6e167a am: fe18554125 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2730939 Change-Id: Id4b35c05847388a84fecc985e9354348f11540d0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | | Merge "Protect AHardwareBuffer API calls with __builtin_available" into main ↵Wonsik Kim2023-09-081-5/+17
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2bce819db7 am: d8606ef3ff am: 1f1b0b8c94 am: 09de6e167a Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2730939 Change-Id: Idd5294e80aed0897117a26780f44ba078dd61d75 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | * | | Merge "Protect AHardwareBuffer API calls with __builtin_available" into main ↵Wonsik Kim2023-09-081-5/+17
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 2bce819db7 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2730939 Change-Id: I827423ff44b97d145eed8ec87abcfeffd164f295 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | Protect AHardwareBuffer API calls with __builtin_availableWonsik Kim2023-09-071-5/+17
| | | |/ | | | | | | | | | | | | | | | | | | | | Bug: 251850069 Test: build Change-Id: Ic7efeabc42fcc094b36e8c9104e5d43a618ed4fe
| | | * Merge "GraphicsBuffer: comparison operators" am: de62e6eb04Treehugger Robot2023-06-091-0/+7
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2619815 Change-Id: I82e5f43ba16488df4e469681eefe21b70fdca7d6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | | * GraphicsBuffer: comparison operatorsSteven Moreland2023-06-091-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All AIDL structures are comparable. It makes it possible to use them as keys in a map. We can define an order for any type on the computer, since we can always take the address. Though - this may not always be the most useful meaning. We didn't discover this earlier, because this was only ever used in an argument. Regardless, it seems like a useful thing to have. Also - we shouldn't add complexity to AIDL to make this optional. It has deep consequences, since any element, even 4-5 structures deep could cause a struct to not be comparable. If someone adds a non-comparable type to a structure in a later version, AIDL packages depending on it might find it impossible to upgrade without making their structures non-comparable, which could break client code. Bug: N/A Test: N/A (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2d4660083c7eb0ea56040745830abcb148d8de54) Merged-In: I627adbd110d037246ce307f4984739008fe91c33 Change-Id: I627adbd110d037246ce307f4984739008fe91c33
| | * | | Merge "Add toString() to HardwareBuffer" am: 63a49903a8 am: 604a7bc653 am: ↵Wonsik Kim2023-06-091-0/+13
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0c5649f4ce Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2618318 Change-Id: Id5162cf322ec68b1e1fc721f760005f9acb6cdcd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | * | Merge "Add toString() to HardwareBuffer" am: 63a49903a8Wonsik Kim2023-06-091-0/+13
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2618318 Change-Id: Iff6c185b517fda0de3826ab09b4a9e5ff140d32b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| | | | * Add toString() to HardwareBufferSungtak Lee2023-06-081-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: N/A Test: m (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2ed5cf9a07889c97d9fc28471934f1115c72736f) Merged-In: I7452fd53876eacb0a062d5a5c601594de2190ee1 Change-Id: I7452fd53876eacb0a062d5a5c601594de2190ee1
| * | | | SF: improve RenderThread jank classificaionAdy Abraham2023-06-091-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark UI frames that didn't make it to their expected presentation due to RenderThread animations as dropped. Screenshot from Perfetto: https://screenshot.googleplex.com/3pQuNaDYAhHLYu7 Bug: 210605870 Test: manual Change-Id: Ibc91bcaac2f9296ec0bddd5deebb4289c5b5bf7e Merged-In: Ibc91bcaac2f9296ec0bddd5deebb4289c5b5bf7e
| * | | | Add toString() to HardwareBufferSungtak Lee2023-06-061-0/+13
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Bug: 283474351 Test: m Change-Id: I7452fd53876eacb0a062d5a5c601594de2190ee1 Merged-In: I7452fd53876eacb0a062d5a5c601594de2190ee1
* | | | Add setFrameRateCategory surface APIRachel Lee2023-08-221-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 284911776 Test: atest CtsSurfaceControlTestsStaging Test: atest libsurfaceflinger_unittest Change-Id: Ia804a63198ff096d1e5ffedf6046a0350963b8ed
* | | | Fix ADATASPACE_BT601_625 and ADATASPACE_BT601_525 doc.Sally Qi2023-07-191-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 266124653 Test: builds Change-Id: I3a77febcc4fa36f7b00abd77326cfb33eaf7dfbc
* | | | SF: improve RenderThread jank classificaionAdy Abraham2023-06-081-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mark UI frames that didn't make it to their expected presentation due to RenderThread animations as dropped. Screenshot from Perfetto: https://screenshot.googleplex.com/3pQuNaDYAhHLYu7 Bug: 210605870 Test: manual Change-Id: Ibc91bcaac2f9296ec0bddd5deebb4289c5b5bf7e
* | | | Merge "SF: use TextureView hint when selecting the refresh rate" into ↵Treehugger Robot2023-05-101-6/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | udc-dev am: 8b0d097a74 am: 710b825f9f Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23118717 Change-Id: Ibdd00cc47118d6fe0766a611d501200e31620264 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| * | | SF: use TextureView hint when selecting the refresh rateAdy Abraham2023-05-091-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SF would only try to heuristically calculate the frame rate of a layer when TextureView is updating. This fixes a bug where SF tries to heuristically calculate the frame rate for UI animations but fails due to long frames. Bug: 280249265 Test: Playing a video on Facebook and observe refresh rate Test: go/cb-pcmark Change-Id: Ic98484b8313f1e8e6ad01297b63bb64da6d4a6dd
* | | | Add toString() to HardwareBufferSungtak Lee2023-04-241-0/+13
|/ / / | | | | | | | | | | | | | | | Bug: N/A Test: m Change-Id: I7452fd53876eacb0a062d5a5c601594de2190ee1