Skip to content
Snippets Groups Projects
  1. Sep 15, 2023
  2. Aug 30, 2023
    • Android Build Coastguard Worker's avatar
      Merge cherrypicks of ['googleplex-android-review.googlesource.com/24592967'] into udc-release. · bfcf7507
      Android Build Coastguard Worker authored
      Change-Id: Ic42599276b00c054165117b022054313e01d8d28
      bfcf7507
    • Patrick Williams's avatar
      Improve updateInputFlinger performance · 56cd9b79
      Patrick Williams authored
      This change improves the performance of the WindowInfosListenerInvoker work done on SurfaceFlinger's background executor thread. The primary optimization made is not sending a WindowInfosReportedListener with every call to WindowInfosListener.onWindowInfosChanged. Instead, we send a new interface, WindowInfosPublisher, and a unique listener id to listeners when they're added.  Listeners call WindowInfosPublisher.ackWindowInfosReceived with their id after processing each update.
      
      From traces taken during development, the new code is a major improvement, taking about 15% of the time spent previously on SurfaceFlinger's background thread for sending window infos. Performance with this change seems roughly in line with the performance in T.
      
      Bug: 290377931
      Test: atest WindowInfosListenerTest
      Test: atest WindowInfosListenerInvokerTest
      Test: manually killing system server and checking valid state on restart
      (cherry picked from commit acd2258a)
      (cherry picked from commit e8a7ab25)
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:82f3463d449eb13e28c5dbffeee16e10721c71d2)
      Merged-In: Ib39ba935727df0bc1ab4030bcfe8301de7e64805
      Change-Id: Ib39ba935727df0bc1ab4030bcfe8301de7e64805
      56cd9b79
  3. Aug 22, 2023
  4. Aug 05, 2023
  5. Jul 28, 2023
  6. Jun 24, 2023
  7. Jun 22, 2023
  8. Jun 21, 2023
  9. Jun 19, 2023
    • Harry Cutts's avatar
      TouchInputMapper: don't check touchpad touches by screen bounds · 1db43995
      Harry Cutts authored
      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
      1db43995
  10. Jun 17, 2023
  11. Jun 16, 2023
  12. Jun 15, 2023
    • Android Build Coastguard Worker's avatar
      Snap for 10331563 from c83558cf to udc-release · acaf4e60
      Android Build Coastguard Worker authored
      Change-Id: Id6244fcf1baebf6521d712456709d6cdbf03e554
      acaf4e60
    • Nikita Ioffe's avatar
      Also mount /sys/fs/selinux · 9971bae9
      Nikita Ioffe authored
      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 56fd71b0)
      9971bae9
    • John Reck's avatar
    • Nikhil Kumar's avatar
      Use unsigned calling_uid in case of bug report triggered from adb · b70622a4
      Nikhil Kumar authored
      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
      b70622a4
    • John Reck's avatar
      Adjust screenshot behavior of HDR content · 5b02fc47
      John Reck authored
      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
      5b02fc47
  13. Jun 14, 2023
  14. Jun 12, 2023
  15. Jun 10, 2023
  16. Jun 09, 2023
    • Nick Deakin's avatar
      ultrahdr: update metadata requirements · 094946bd
      Nick Deakin authored
      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
      094946bd
  17. Jun 08, 2023
    • Trevor Black's avatar
    • Nick Deakin's avatar
      libultrahdr: correct srgb, p3 calculations and jpeg yuv handling · 0db53ee3
      Nick Deakin authored
      * 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
      0db53ee3
    • Trevor David Black's avatar
      Correctly implement minImageCount for swapchain · 1d3509ed
      Trevor David Black authored
      Bug: 284807752
      Test: atest CtsDeqpTestCases -- --module-arg 'CtsDeqpTestCases:include-filter:dEQP-VK.wsi.android.maintenance1.release_images.*'
      Change-Id: I36bd7a3dac8f8a3f6b913733fbd0ba140ee0b092
      1d3509ed
  18. Jun 06, 2023
  19. Jun 03, 2023
  20. Jun 02, 2023
Loading