Skip to content
Snippets Groups Projects
  1. May 28, 2024
    • George Mount's avatar
      [VRR] Support setRequestedFrameRate() with AVDs · 05264e77
      George Mount authored
      Fixes: 342666766
      
      Adds support for Animated Vector Drawables that operate on the
      Render Thread to VRR. The votes from their respective Views
      are considered on each vote.
      
      Test: new tests, manual testing
      Change-Id: I1e761d62e5bc4a706cc7fb2904f26aaa68e87584
      05264e77
  2. May 20, 2024
  3. May 16, 2024
  4. May 15, 2024
  5. May 14, 2024
    • Makoto Onuki's avatar
      Support Color and ColorSpace on Ravenwood · 91ab1135
      Makoto Onuki authored
      - Moved Color's JNI methods out of Shader.cpp, so Ravenwood
          can enable it without enabling other shader native methods.
      
      - Also, leaned up the Matrix native methods while I'm here.
      
      Bug: 337110712
      Test: atest CtsGraphicsTestCases
      Test: atest CtsGraphicsTestCasesRavenwood
      Test: Boot the device
      Change-Id: I0e99fb56ef581b4f59944994d07fd5253208dc31
      91ab1135
  6. May 13, 2024
  7. May 09, 2024
    • John Reck's avatar
      Be prepared for 8k video frames in bitmaps · 97396260
      John Reck authored
      Two tweaks:
      
      1) Allow software bitmaps up to 150MB, which can fit 8k (~130MB)
      bitmaps
      
      2) Always allow hardware bitmaps - we've already paid the cost
      and already know it'll work
      
      Fixes: 337114346
      Test: make
      Change-Id: Ia295dffb842b3f365cdf25f9a62ad1cd2920d542
      97396260
  8. May 03, 2024
    • Jerome Gaillard's avatar
      Move native registries to their own inner classes · 00334626
      Jerome Gaillard authored
      Having native methods called in the static initalization of the class
      that defines them is problematic for the native registration on host
      JVM. This moves the registries into their own inner classes to avoid
      this issue.
      
      Bug: 337329128
      Test: N/A
      Change-Id: Id767661d4da38f53c112bb1376798141b38d2c6c
      00334626
    • Oriol Prieto Gasco's avatar
      RESTRICT AUTOMERGE · 7b816129
      Oriol Prieto Gasco authored
      Set the container field of aconfig flags
      
      Test: printflags --format='{package}:{container}:' | grep "::"
      Bug: 312769710
      Flag: NONE
      Change-Id: I84fda0d5e9813940609436d825738ff786908ff0
      7b816129
  9. May 02, 2024
    • Makoto Onuki's avatar
      [Ravenwood] Start using HWUI native methods · e4a54a8e
      Makoto Onuki authored
      Enable Matrix, Path and Interpolator for starters
      
      Bug: 337110712
      Bug: 337329128
      Test: ./ravenwood/scripts/run-ravenwood-tests.sh
      Test: atest CtsGraphicsTestCasesRavenwood
      Test: atest CtsGraphicsTestCases
      Change-Id: Iefa17f91837c5382067bf17fc148b158133a4de5
      e4a54a8e
  10. Apr 25, 2024
    • Julia Tuttle's avatar
      Icon: don't create Drawables with null Bitmaps · bdc8c266
      Julia Tuttle authored
      When an app passes an invalid icon into a BigPictureStyle notification,
      we want to know clearly and promptly, but to log when these icon loads
      fail, we need to return null instead of wrapping a null Bitmap in a
      BitmapDrawable.
      
      Bug: 335878768
      Flag: ACONFIG com.android.graphics.flags.icon_load_drawable_return_null_when_uri_decode_fails START
      Test: manual
      Change-Id: I460ce2c8cc1353eba3e038092d4913b75675f4fb
      bdc8c266
  11. Apr 24, 2024
    • Julia Tuttle's avatar
      Add icon_load_drawable_return_null_when_uri_decode_fails flag · 7b6cb6ca
      Julia Tuttle authored
      Bug: 335878768
      Flag: ACONFIG com.android.graphics.flags.icon_load_drawable_return_null_when_uri_decode_fails START
      Test: NA
      Change-Id: Ie2a89e042405c7d6e78e164acdd1db5d38b0e528
      7b6cb6ca
    • Julia Tuttle's avatar
      Icon: log when BitmapFactory.decodeStream fails · a23b4d37
      Julia Tuttle authored
      When an app passes an invalid icon into a BigPictureStyle notification,
      we want to know clearly and promptly, so log when we see those icon
      loads fail.
      
      Bug: 335878768
      Flag: NONE
      Test: manual
      Change-Id: Ia9e72a64c0070fde71cac1519953210a0125c9bc
      a23b4d37
    • Julia Tuttle's avatar
      BitmapDrawable: warn when passed null Bitmap · 53a5ae9b
      Julia Tuttle authored
      When an app passes an invalid icon into a BigPictureStyle notification,
      we want to know clearly and promptly, so log when we see those icon
      loads fail.
      
      Bug: 335878768
      Test: manual
      Flag: NONE
      Change-Id: Ic4a009f7d51ed9c40e10bb033ad0e6307a9ed3a9
      53a5ae9b
  12. Apr 04, 2024
  13. Apr 02, 2024
    • Eric Miao's avatar
      Add compressed bitmaps to be included in `am dumpheap` · d48d873a
      Eric Miao authored
      Bug: 328443220
      
      `android.graphics.Bitmap` class used to have a field of byte array
      `mBuffer` for its content. This allowed the bitmap content to be
      included as part of `am dumpheap`. However, this field was removed
      when Bitmap was migrated to use native memory.
      
      This CL allows contents of bitmaps to be compressed and included as
      part of `am dumpheap`, with added command line switch '-b <format>'.
      For example, the command below will include the contents of the
      bitmaps compressed in PNG format as part of the heap dump.
      
        `am dumpheap -b png com.google.android.apps.photos`
      
      This is done with a few key changes below:
      
        1. Every bitmap instance created will be tracked by a static
           `WeakHashMap`. This is so that 1) the bitmap instances are
           used as weak keys and can be garbage collected normally,
           and 2) when a bitmap instance is garbage collected, its
           entry in `WeakHashMap` will also be removed, so the size
           of the map itself is limited
      
        2. A static field `Bitmap.dumpData` is introduced, and will
           record every bitmap's `nativePtr` and its compressed
           content when bitmap dump is enabled during a heap dump
      
        3. `Bitmap.dumpData` will be cleared after the heap is dumped,
           the recorded information as well as buffers with compressed
           contents will be garbage collected thereafter.
      
      Change-Id: I37b6ea6b947565d1ac5a6bbc5b462c3ceedebec1
      d48d873a
  14. Mar 27, 2024
  15. Mar 26, 2024
  16. Mar 21, 2024
    • Oriol Prieto Gasco's avatar
      Export flags used in FlaggedApi annotations · 8f557865
      Oriol Prieto Gasco authored
      Before calling a flagged API, client code must check the value of the flag
      which gates it. Those flags must be exported in order to be accessible from
      containers other than the container where the flag and the API are hosted.
      
      Bug: 320984775
      Bug: 322839671
      
      Test: m all_aconfig_declarations
      Test: printflags --format='{fully_qualified_name}:{is_exported}' | grep true
      
      Ignore-AOSP-First: LSC
      Change-Id: I8c2d111fd4ffb23f3f52c9d00bf6bbd2456d7f05
      8f557865
  17. Mar 08, 2024
    • John Reck's avatar
      Add canvas#drawRegion · 5087ae3b
      John Reck authored
      Fixes: 318612129
      Test: CtsUiRendering...testDrawRegion
      Change-Id: Ifd2fa83f2275a31f4fa8ccf0bebcb7cbd8134de2
      5087ae3b
  18. Mar 06, 2024
  19. Mar 05, 2024
  20. Mar 04, 2024
  21. Feb 23, 2024
  22. Feb 22, 2024
    • Tyler Freeman's avatar
      fix(high contrast text): fix highlight/selection is obscured by high contrast... · eca25fbc
      Tyler Freeman authored
      fix(high contrast text): fix highlight/selection is obscured by high contrast text background rectangle
      
      Since high contrast text draws a solid rectangle background behind the
      text, it covers up the highlights and selections. In this case we draw
      over the top of the text with a blend mode that ensures the text stays
      high-contrast.
      
      Fix: 323964406
      Bug: 186567103
      Flag: ACONFIG com.android.graphics.hwui.flags.high_contrast_text_small_text_rect TEAMFOOD
      Test: atest core/tests/coretests/src/android/text/LayoutTest.java
      Test: manual
      1. adb shell setenforce 0 && adb shell setprop persist.device_config.aconfig_flags.accessibility.com.android.graphics.hwui.flags.high_contrast_text_small_text_rect true && adb shell stop && adb shell start
      2. Settings -> Accessibility -> Display Size and Text
      3. Turn on High Contrast Text
      4. Select some text. The selection should be visible
      
      Change-Id: I3ea2835f2a8bdfaf646f140f3290837535080a5c
      eca25fbc
  23. Feb 16, 2024
  24. Feb 14, 2024
    • Jorge Betancourt's avatar
      add clipShader API to android.graphics.Canvas · 3700b100
      Jorge Betancourt authored
      Test: atest CtsUiRenderingTestCases:android.uirendering.cts.testclasses.ShaderClippingTests
      Bug: 280116960
      
      Change-Id: Ic78c4b2ca01e6af9e5af757aa64e15e248cadcf8
      3700b100
    • Ronish Kalia's avatar
      [DON'T BLOCK] Test ownership migration rules · f891397b
      Ronish Kalia authored
      This CL is created as a best effort to migrate test targets
      to the new android ownership model. If you find incorrect or unnecessary
      attribution in this CL, please create a separate CL to fix that.
      
      For more details please refer to the link below,
      <add g3 doc link>
      
      Bug: 304529413
      Test: N/A
      Change-Id: I6b6cf0abdd1fdb8fefa4184b3698f6951c192ac0
      f891397b
  25. Feb 09, 2024
    • Christopher Ferris's avatar
      Use a file descriptor in decodeFile. · 39d091bc
      Christopher Ferris authored
      When trying to decode a file, using a stream can lead to a
      pathological case where the entire file is read into memory.
      If a large file is encountered, the entire file will be read
      into memory and result in different types of crashes.
      
      So instead of using a stream, use a file descriptor to prevent
      this case.
      
      Bug: 309868782
      
      Test: Put a large file on the system. Start the files app and
      Test: observe no crashes.
      Change-Id: I59cbab80af68eb3da4b46df81a5c26bf041778d8
      39d091bc
    • Ryan Tao's avatar
      Fix "the the" typo in one file, this is for completing the AEP Cider G exercise · 521488ac
      Ryan Tao authored
      Change-Id: I121d8cee49829f120440e9628aa319a5c664aee3
      521488ac
  26. Feb 06, 2024
  27. Feb 03, 2024
  28. Feb 02, 2024
    • Valentin Iftime's avatar
      Update the autogroup summary icon on notification changes · 6eac98a5
      Valentin Iftime authored
       When child notifications of an auto-group are posted/removed, the summary icon should be updated as well.
       In the case of posted notifications, summary updates are always triggered by GroupHelper. In the case of removed notifications,
       if no summary updates are triggered (flags not updated or ungrouping not necessary), then NMS will trigger an icon update.
      
       Both the icon drawable and the icon background color are updated according to this rule:
       - if all child icons are identical => use the common icon
       - if child icons are different: use the monochromatic app icon, if exists. Otherwise fall back to a generic icon representing a stack.
      
      Flag: com.android.server.notification.autogroup_summary_icon_update
      Test: atest NotificationManagerServiceTest
      Test: atest GroupHelperTest
      Test: atest IconTest
      Bug: 227693160
      Change-Id: Ia31d1f71bf43b8c2f5757200d79f0790bf843851
      6eac98a5
Loading