summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-01-30Merge "Snap for 11378957 from 255ba4368356fe4b4966824537a93b079609679f to ↵android-vts-14.0_r4android-cts-14.0_r4android14-tests-releaseAndroid Build Coastguard Worker
android14-tests-release" into android14-tests-release
2024-01-30Snap for 11378957 from 255ba4368356fe4b4966824537a93b079609679f to ↵Android Build Coastguard Worker
android14-tests-release Change-Id: I6cc5ac2253191025a0ae840b5297895f672b8da4
2024-01-29Merge "binder RPC tests timeouts to 10min" into android14-tests-devandroid14-tests-devSteven Moreland
2023-12-29Merge "Snap for 11260187 from 82a619320e0523ebb20301c6bf853564449d78a3 to ↵android-vts-14.0_r3android-cts-14.0_r3Android Build Coastguard Worker
android14-tests-release" into android14-tests-release
2023-12-29Snap for 11260187 from 82a619320e0523ebb20301c6bf853564449d78a3 to ↵Android Build Coastguard Worker
android14-tests-release Change-Id: Ib7ddd01b1b7731361f8a82af0f8e3fd19349c0ac
2023-12-28Merge "opengl: tests: Add explict android:exported flag to manifests on ↵Treehugger Robot
GLDual.apk" into android14-tests-dev
2023-12-20binder RPC tests timeouts to 10minSteven Moreland
The default timeout in VTS is 1min. Bug: 316502719 Test: TH Change-Id: Icddd6ce31c548c9a34947aec863a477060799523 (cherry picked from commit f6b18f2cb808d9ec53336ec5a6476569a71c87ed)
2023-12-08opengl: tests: Add explict android:exported flag to manifests on GLDual.apkJoseph Cheng
After Android S+, it's required to add android:exported flag on manifests if an intent filter is defined. We have added this flag on serveral apps by previous change[1]. This is a follow-up change for GLDual.apk. [1]: https://android.googlesource.com/platform/frameworks/native/+/8e8ae4222f9fb0499af755a4255cceb89a79bd78 Test: The GLDual.apk can be installed successfully on Android 14 devices. Bug: 315418422 Change-Id: Iead9ab7b5e6ebe954b6883289aef70cd6d192ad1
2023-06-21Update EGL_GL_COLORSPACE_BT2020_HLG_EXT to the correct valueandroid-vts-14.0_r2android-cts-14.0_r2android14-devChris Glover
ag/22764137 added support for HLG formats, but the spec change in the Khronos gitlab hadn't landed yet. The enum I used had already been used by an unpublished NVIDIA EXT, so I needed to choose a different one. This change uses the new one which is the final correct enum found here: https://github.com/KhronosGroup/EGL-Registry/commit/526f9a6471106090e44b8d6a123f78886d5d88fa Bug: 277210442 Test: Manually ran new test in CL https://gerrit.khronos.org/c/vk-gl-cts/+/11608 Change-Id: I5c163b7ef2c3e6fa6f90ac8de6f75a7b7e67cf8c
2023-06-19TouchInputMapper: don't check touchpad touches by screen boundsHarry Cutts
Uncaptured touchpads (with DeviceMode::POINTER) still on the old stack (i.e. the Sony DualShock 4 touchpad) were having touches ignored if they started at coordinates that would be outside of the bounds of the touchscreen. Since touchpads use relative motions and don't directly relate raw touch locations to screen locations, this was incorrect, and caused touches to be ignored with certain screen/touchpad dimension and orientation combinations. Bug: 280396539 Test: connect Sony DualShock 4 by USB, rotate screen to portrait, check touches starting in all areas of the pad are turned into pointer movements Test: atest inputflinger_tests Change-Id: I9a92ba79246ee8fc25418c2e248ae2c3839a0d58
2023-06-16Merge "Use unsigned calling_uid in case of bug report triggered from adb" ↵Nikhil Kumar
into udc-dev
2023-06-16Also mount /sys/fs/selinuxNikita Ioffe
This mount point is required for apexd, which uses libselinux to adjust label of the compressed APEXes that are decompressed as part of the postinstall hook. Bug: 284277137 Test: m dist Test: system/update_engine/scripts/update_device.py out/dist/ota.zip Change-Id: Ia1a65a4e69b27351941a290210004a93470ae87f Merged-In: Ia1a65a4e69b27351941a290210004a93470ae87f (cherry picked from commit 56fd71b0d4466983d8f5c11466a43df1c6c3a998)
2023-06-15Merge "Adjust screenshot behavior of HDR content" into udc-devJohn Reck
2023-06-15Use unsigned calling_uid in case of bug report triggered from adbNikhil Kumar
The utility method to extract user_id and app_id from calling_uid takes unsigned int_32. Changed the default value of calling_uid to 0 from -1 for the case when bug report is triggered by adb and calling_uid is not relevant. Bug: 260989962 Test: tested manually by initiating a bug report through adb and observing the BUGREPORT_STARTED broadcast in logcat. Ignore-AOSP-First: will do it later with other headless changes. Change-Id: I1c410853ef99c6292039382714394066a72318f7
2023-06-14Adjust screenshot behavior of HDR contentJohn Reck
Cap the max amount of HDR headroom beyond which the layer is clipped. This avoids over-dimming the SDR content range in the resulting SDR screenshot Test: screenshot of silkfx Bug: 286942637 Change-Id: I67df32d9c192da18df516972ed92e9bd64063186
2023-06-14Merge "Handle runtime sensor events even if there are no real ones." into ↵Vladimir Komsiyski
udc-dev
2023-06-12Handle runtime sensor events even if there are no real ones.Vladimir Komsiyski
SensorService::threadLoop() "continues" if there are no real sensor events, which skips the handling of runtime sensor events. Fix: 281452823 Test: m Change-Id: I0fe9fe9a7baa19ce9c8cb32d36e736ac83d2fe52
2023-06-09ultrahdr: update metadata requirementsNick Deakin
This updates metadata requirements for Version, GainMapMax, and HDRCapacityMax to be required, and all others optional. Also update the yuv-icc test image, since it seems this file was missed on a previous CL, and the checked in version was 4:4:4 instad of 4:2:0, which doesn't work with our decoder setup. Bug: 286457050 Test: Added new tests, all tests pass Change-Id: I1a6669f7bc6a8f254c4ce4ea4d359008e8e10f3e
2023-06-08Merge "Correctly implement minImageCount for swapchain" into udc-devTrevor Black
2023-06-08libultrahdr: correct srgb, p3 calculations and jpeg yuv handlingNick Deakin
* Correct luminance calculation for sRGB to utilize actual luminance coefficients for the gamut, rather than 601 luma coefficients. * Correct YUV<->RGB conversion for sRGB to utilize Rec.709 coefficients rather than Rec.601 coefficients as it was previously. * New P3 YUV<->RGB conversion, which uses Rec.601 coefficients. * Also ICC Profile fixes to make things work; more below. * Update things to correctly convert to and from Rec.601 YUV for jpeg encoding; more below. This setup for YUV<->RGB coefficients is chosen to match the expectations of DataSpace when it comes to interpretting YUV encoding of data. Generally, the interpretation is cued off of the color primaries, since the specifications around color primaries generally also specify a YUV interpretation. Display-P3 is a bit of an outlier; the best specification of Display-P3 is in SMPTE EG 432-1, but EG 432-1 doesn't cover YUV interpretation. So, since DataSpace interprets Display-P3 YUV data via the Rec.601 coefficients, we should do the same here. ICC Profile fixes; ICC profiles we wrote were broken before this for a variety of reasons: * The endianness macro wasn't actually swapping endiannesas to provide the correct encoding in our output. * We weren't writing out the identifier for the app segment, including the chunk count and ID. * We were assuming input JPEGs have ICC data, which may not be the case. * We also need to read in the ICC profile during decode to apply the map properly, and we didn't have any mechanism previously to read the ICC profile and determine the gamut of the encoded JPEGR file. * Upon adding ICC reading code to our JPEG decoding, also remove some dead code from previous EXIF reading. * Add a number of tests to verify all of this stuff stays fixed. YUV interpretation and Rec.601: * Previously, we were feeding YUV right into the JPEG encoder; this is problematic because JPEG encoders usually (and definitely in our specific case) expect Rec.601 YUV encoded input data, since this is by definition the format of JPEG YUV data according to ECMA TR/98. * Now properly convert from Rec.709 or Rec.2100 YUV encoding to Rec.601 (when necessary) prior to passing YUV data to the jpeg encoder. * Also make sure we properly interpret decoded YUV output as Rec.601 after decode. * This involved added some new methods to facilitate these conversions. * Added some new tests to verify these conversions. * Note that to do these YUV conversions for subsampled 420 data, we take each set of 4 Y and 1 UV, and calculate the result against each combination. The new Y values each get the corresponding result, and the new UV value is equal to the average of the set. * Note that none of this is a concern for gain map encoding/decoding via JPEG because gain maps are single channel. Bug: 283143961 Test: added new tests, all tests pass Change-Id: Ibc7b1779fc3a8244f85abb581c554963f57dc5a4
2023-06-08Correctly implement minImageCount for swapchainTrevor David Black
Bug: 284807752 Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.android.maintenance1.release_images.*' Change-Id: I36bd7a3dac8f8a3f6b913733fbd0ba140ee0b092
2023-06-06Merge "Add dEQP level 2023 prebuilts" into udc-devSerdar Kocdemir
2023-06-06ultrahdr: release memory if encode/decode failsRam Mohan
If calls to encode/decode failed, release the allocated memory before returning the control to caller Bug: 285546217 Test: ./ultrahdr_dec_fuzzer Test: ./ultrahdr_enc_fuzzer Change-Id: I276c31cc56656aa41845a16f5d28783bc3adc772
2023-06-06Merge "ultrahdr: Add fuzz application for decode api" into udc-devDichen Zhang
2023-06-02ultrahdr: Add fuzz application for decode apiRam Mohan
Bug: 282640328 Test: ./ultrahdr_dec_fuzzer Change-Id: I9bd2a314d05122fd3010889b661455a6cba364e6
2023-06-02ultrahdr: Fix nan occurence during xmp generationRam Mohan
The default value of hdr white nits is zero, making log content boost to nan in certain scenarios. This can cause decode to fail on select architectures Bug: 285545078 Test: ./ultrahdr_enc_fuzzer Change-Id: I72064d4f04c25d6f3c951f5c20b0b674e675d541
2023-06-01Merge "ultrahdr: Update fuzz application for encode API" into udc-devDichen Zhang
2023-06-01Merge "ultrahdr: update error checks in encode/decode path" into udc-devDichen Zhang
2023-06-01Merge "ultrahdr: compress image reads outside bounds for non aligned widths" ↵Dichen Zhang
into udc-dev
2023-06-01Merge "Log out-of-order window infos updates" into udc-devTreeHugger Robot
2023-05-31Merge "Reduce number of binders from SurfaceFlinger for ADPF" into udc-devMatt Buckley
2023-05-31ultrahdr: Update fuzz application for encode APIRam Mohan
Bug: 282640328 Test: ./ultrahdr_enc_fuzzer Change-Id: I0a547f63da570433dc54eb23fbd41021022aec4e
2023-05-31ultrahdr: compress image reads outside bounds for non aligned widthsRam Mohan
jpeg_write_raw_data() processes one MCU row per call, and thus one must pass buffer of at least max_v_samp_factor * DCTSIZE scanlines. The buffer must be large enough to hold the actual data plus padding to DCT-block boundaries. Bug: 284117683 Test: ./ultrahdr_enc_fuzzer Change-Id: I993773817bf3805463bb21bb977624d6c2d45a0b
2023-05-31Reduce number of binders from SurfaceFlinger for ADPFMatt Buckley
Currently, SF is using the wrong vsync value when calculating the target for ADPF, causing it to send a binder every frame instead of every vsync change. This patch fixes that to reduce the binder frequency from SF, and also adds a debug option to disable reportActual to reduce the amount of binders even more in certain cases. Bug: 284357218 Test: manual Change-Id: I8435b170016c5af8219d8ed8cc9ed65a0a2cb0e7
2023-05-30Add dEQP level 2023 prebuiltsSerdar Kocdemir
Bug: b/284056586 Test: manual Change-Id: Ieb2ef32789237dc9e426a26a67f319feeb028548
2023-05-26ultrahdr: update error checks in encode/decode pathRam Mohan
1. library assumes the gain map resolution is 1/kMapDimensionScaleFactor of primary image resolution. If it is not the case the output hdr image computations are not according to the scale factor. Signal error if map scale factor is not kMapDimensionScaleFactor. 2. library expects primary image to be 420 and gain map image to be 400. Validate the same. 3. disallow srgb transfer function way early as this is not handled. 4. avoid nullptr access in metadata. Bug: 284120011 Test: ./ultrahdr_enc_fuzzer Change-Id: Ie2cd12ac95306958cbb18679039681fc4eb3d9cc
2023-05-26Merge "ultrahdr: Add fuzz application for encode API" into udc-devDichen Zhang
2023-05-26Merge "ultrahdr: Avoid possible failure during gainmap compression" into udc-devDichen Zhang
2023-05-26Merge "Add a unit test for TouchpadInputMapper" into udc-devSiarhei Vishniakou
2023-05-26[automerger skipped] Set windowInfo.displayId to be the layerStack am: ↵chaviw
65c005a6e9 am: 00b040eaca -s ours am: aa17556c0a -s ours am: 05f66b4369 -s ours am: 3c03cdc30b -s ours am: 195c312a85 -s ours am skip reason: Merged-In Id1794798a543260c9868ccdc1be3cdb574b73dd5 with SHA-1 6eada62e3f is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23082397 Change-Id: Ic6382ed2b05cedd9038e9d895ebce5328750f1a7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-26[automerger skipped] Set windowInfo.displayId to be the layerStack am: ↵chaviw
65c005a6e9 am: 00b040eaca -s ours am: aa17556c0a -s ours am: 05f66b4369 -s ours am: 3c03cdc30b -s ours am skip reason: Merged-In Id1794798a543260c9868ccdc1be3cdb574b73dd5 with SHA-1 6eada62e3f is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23082397 Change-Id: Id936527edead441a33353e4af6c18e3c2ad69d28 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-26[automerger skipped] Set windowInfo.displayId to be the layerStack am: ↵chaviw
65c005a6e9 am: 00b040eaca -s ours am: aa17556c0a -s ours am: 05f66b4369 -s ours am: 4b699b18b2 -s ours am skip reason: Merged-In Id1794798a543260c9868ccdc1be3cdb574b73dd5 with SHA-1 6eada62e3f is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23082397 Change-Id: Id04920bde0ecfffcba0b828654a3d9561def9b82 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-26[automerger skipped] Set windowInfo.displayId to be the layerStack am: ↵chaviw
65c005a6e9 am: 00b040eaca -s ours am: aa17556c0a -s ours am: 05f66b4369 -s ours am skip reason: Merged-In Id1794798a543260c9868ccdc1be3cdb574b73dd5 with SHA-1 6eada62e3f is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23082397 Change-Id: Iab888d7b8e3c590bbc74a944ba2baa5aec66b721 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-26[automerger skipped] Set windowInfo.displayId to be the layerStack am: ↵chaviw
65c005a6e9 am: 00b040eaca -s ours am: aa17556c0a -s ours am: 05f66b4369 -s ours am skip reason: Merged-In Id1794798a543260c9868ccdc1be3cdb574b73dd5 with SHA-1 6eada62e3f is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23082397 Change-Id: Ib0ca6e2d99b07399be03dd2ac61c31aeabd91972 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-26[automerger skipped] Set windowInfo.displayId to be the layerStack am: ↵chaviw
65c005a6e9 am: 00b040eaca -s ours am: aa17556c0a -s ours am skip reason: Merged-In Id1794798a543260c9868ccdc1be3cdb574b73dd5 with SHA-1 6eada62e3f is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23082397 Change-Id: I22a8749421941d6ec09b65b5b290c150baa961fc Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-26[automerger skipped] Set windowInfo.displayId to be the layerStack am: ↵chaviw
65c005a6e9 am: 00b040eaca -s ours am skip reason: Merged-In Id1794798a543260c9868ccdc1be3cdb574b73dd5 with SHA-1 6eada62e3f is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23082397 Change-Id: I93c4235e0cf7fc2cf8b050659a89a6f86c4bb233 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-26Set windowInfo.displayId to be the layerStack am: 65c005a6e9chaviw
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23082397 Change-Id: I79f3e003e48d5cd7277b290fd13c6c63cb8c478e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-25ultrahdr: Add fuzz application for encode APIRam Mohan
Bug: 282640328 Test: ./ultrahdr_enc_fuzzer Change-Id: I85f7515b599604cf80ed0e8eecc1783bfcaa04eb
2023-05-25Log out-of-order window infos updatesPatrick Williams
We're not aware of any condition that would lead this to happen. This check is to help provide information in case we see future input windows syncronization issues. Bug: 279792237 Test: presubmits Change-Id: I9bdcf34c71c1a741f863feb0881cd09122c7bfb2
2023-05-25Merge changes from topic "revert-23316821-WWTNIVUOBO" into udc-devArpit Singh
* changes: Revert "InputMapper refactor: Configure empty InputDevice" Revert "InputMapper refactor: Revert "fix touch issue on portrai..."