Skip to content
Snippets Groups Projects
  1. Feb 23, 2024
  2. 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
  3. Feb 16, 2024
  4. 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
  5. 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
  6. Feb 06, 2024
  7. Feb 03, 2024
  8. 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
  9. Feb 01, 2024
    • Shane's avatar
      Call setFrameRate in TextureView to set frame rate properly. · bdb6c422
      Shane authored
      Call setFrameRate in TextureView to set frame rate if one is provided.
      
      Considering that TextureView could be invalidated with a lower
      frequency comparing to the other Views. If no frame rate was set in the past 100 ms, the value of mPreferredFrameRate will be to 0 in ViewRootImpl. Otherwise, the value remains the same.
      
      Bug: 281695725
      Test: atest TextureViewTest & manual using a test app
      Change-Id: Icbba5e3df8da5aa20808dd236eb93285eceddeb7
      bdb6c422
  10. Jan 31, 2024
    • Seigo Nonaka's avatar
      Redesign the fallback XML syntax to be able to have static and variable font. · 4035d7e5
      Seigo Nonaka authored
      Defining all instances of weight instance causes memory bloat. To reduce
      the memory usage, use dynamic font instance.
      
      Bug: 280011317
      Test: atest UpdatableFontDirTest UpdatableSystemFontTest
      Test: atest GtsFontHostTestCases FontManagerTest CtsTextTestCases
      Test: atest CtsGraphicsTestCases PersistentSystemFontConfigTest
      Change-Id: Idd7b8cf8984e44b5864124277a01586e14894be0
      4035d7e5
  11. Jan 30, 2024
    • Jorge Betancourt's avatar
      add API for 4x4 Matrix to platform graphics · c9806fad
      Jorge Betancourt authored
      Test: atest CtsUiRenderingTestCases:android.uirendering.cts.testclasses.CanvasTests#testDrawWithConcatenatedMatrix44 && atest CtsGraphicsTestCases:android.graphics.cts.Matrix44Test
      Bug: 280116960
      Change-Id: Ifd336585f578592985d45bbe6ad0728fbcdafa4b
      c9806fad
  12. Jan 29, 2024
  13. Jan 23, 2024
  14. Jan 19, 2024
  15. Jan 18, 2024
    • Seigo Nonaka's avatar
      Remove unnecessary letter spaceing from the left and right of line · d27b2f20
      Seigo Nonaka authored
      This CL is a groundwork for the inter character justification.
      The letter spacing should not be added to the left most character
      and right most character.
      
      Bug: 283193133
      Test: atest FrameworksCoreTests:android.text.TextLineLetterSpacingTest
      Test: atest CtsTextTestCases
      Change-Id: I28ac4f9f3b7520d7518d34f06ea9c05907cad9a6
      d27b2f20
  16. Jan 16, 2024
  17. Jan 13, 2024
  18. Jan 10, 2024
    • Seigo Nonaka's avatar
      [2nd] Add cluster count API · dd61718d
      Seigo Nonaka authored
      This is a preparation of the inter character justification
      
      This is a 2nd attempt. The previous attempt was reverted due to
      SystemUIGoogleRoboRNGTests failure which assumes the JNI signature has
      not been changed. The proper fix is update the Robolectric artifacts
      used by SystemUIGoogleRoboRNGTest but it cannot be done in the Android
      repo, so add a workaround of calling JNI of old signature on Robolectric
      environment.
      
      Bug: 283193133
      Test: CtsTextTestCases
      Test: minikin_tests
      Test: SystemUIGoogleRoboRNGTests
      Change-Id: I0eb14f432065d4fc87de4e6e8766ef561f879697
      dd61718d
  19. Jan 09, 2024
    • Surajit Chandra's avatar
      Revert "Add cluster count API" · 0ce095f3
      Surajit Chandra authored
      Revert submission 25573460-cluster_api
      
      Reason for revert: b/319192202
      
      Reverted changes: /q/submissionid:25573460-cluster_api
      
      Change-Id: I727b194ca7b29e6af21a7c64fd5004624b8713c5
      0ce095f3
  20. Dec 13, 2023
  21. Dec 12, 2023
    • Seigo Nonaka's avatar
      Add cluster count API · a9d3b494
      Seigo Nonaka authored
      This is a preparation of the inter character justification
      
      Bug: 283193133
      Test: CtsTextTestCases
      Test: minikin_tests
      
      Change-Id: Ia3a69a83cc1a3cde56d8a66a7cab1c85c7109050
      a9d3b494
  22. Dec 07, 2023
  23. Nov 29, 2023
    • Anton Hansson's avatar
      Delete @removed-at-birth ImageDecoder APIs · 18311bd1
      Anton Hansson authored
      These APIs never shipped in a final SDK, but were marked @removed
      instead of actually removed (to maintain compatibility with DPs).
      
      It's been a while, so just delete them now.
      
      Removed in CLs ag/3709874, ag/3818631, ag/3780966, ag/3811428,
      ag/3845199 ag/3742654.
      
      Bug: 155877914
      Test: m
      Change-Id: I874f3a9706e40bb8b8b41906eb8831c06349dcd5
      18311bd1
  24. Nov 23, 2023
    • Paul Duffin's avatar
      Add missing @NonNull to BaseRecordingCanvas · 311a2a44
      Paul Duffin authored
      Some improvements in Metalava's revealed an issue with missing
      `@NonNull` annotations on 2 parameters of the `BaseRecordingCanvas`'s
      `drawDoubleRoundRect()` method. They are present on the overridden
      method but not on the overriding method. This change adds the
      missing annotations.
      
      Bug: 307926200
      Test: m out/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable-stubs.srcjar
      (cherry picked from https://android-review.googlesource.com/q/commit:97488d728d4092d62681c68bbbea94e1f4412c55)
      Merged-In: I090c3f749e6ac2321d59189f5ec1a4f27179dd82
      Change-Id: I090c3f749e6ac2321d59189f5ec1a4f27179dd82
      311a2a44
  25. Nov 21, 2023
    • Jeff Sharkey's avatar
      Support simple graphics structs in Ravenwood, with CTS. · 984c23da
      Jeff Sharkey authored
      Insets, Point, PointF, Rect, and RectF are all foundational structs
      that don't rely on any complex logic, so they're prime candidates to
      support for use by Ravenwood host-side tests.
      
      Based on analysis of existing test code, they're also high-usage
      classes that would help enable many "small" tests.
      
      Bug: 292141694
      Test: atest CtsGraphicsTestCasesRavenwood CtsGraphicsTestCases
      Change-Id: I715d7e03187d651c506bd540e4d1735d56c27ec8
      984c23da
  26. Nov 20, 2023
    • Paul Duffin's avatar
      Add missing @NonNull to BaseRecordingCanvas · 97488d72
      Paul Duffin authored
      Some improvements in Metalava's revealed an issue with missing
      `@NonNull` annotations on 2 parameters of the `BaseRecordingCanvas`'s
      `drawDoubleRoundRect()` method. They are present on the overridden
      method but not on the overriding method. This change adds the
      missing annotations.
      
      Bug: 307926200
      Test: m out/soong/.intermediates/frameworks/base/api/api-stubs-docs-non-updatable/android_common/metalava/api-stubs-docs-non-updatable-stubs.srcjar
      Change-Id: I090c3f749e6ac2321d59189f5ec1a4f27179dd82
      97488d72
  27. Nov 14, 2023
  28. Nov 10, 2023
    • Dichen Zhang's avatar
      Add EXIF support to JPEG/R Java encoding API · bfd2380f
      Dichen Zhang authored
      Bug: b/299202809
      Test: YuvImageTest.java
      Change-Id: If1aa9598f75062e7d0684d5d0f4b60f1e4a19f4d
      bfd2380f
    • Anton Hansson's avatar
      Make all typedefs SOURCE retention · faf2ba91
      Anton Hansson authored
      The default retention is CLASS, but the correct retention is SOURCE.
      There is a metalava check for typedef annotations correctly, but that
      check is currently disabled. This is part of the work required to
      re-enable that check.
      
      Bug: 309971481
      Test: m checkapi
      Change-Id: I386efea9321bd2adb2722710056b1d57dd5401f5
      faf2ba91
  29. Nov 07, 2023
    • Tyler Freeman's avatar
      refactor(force invert): use enum/intdef for force dark type in setForceDark() functions · 417accdc
      Tyler Freeman authored
      This allows the RenderNode to differentiate between normal force dark
      and force force-dark (force invert color). In the next CL we will treat
      force invert slightly differently, not allowing devs to opt-out of force
      dark in individual Views/RenderNodes.
      
      This also sets us up to specify a "force light" mode for force invert,
      if we ever need it.
      
      Bug: 282821643
      Test: atest ViewRootImplTest
      Change-Id: I8cc0fe099cccabdd09ea072aca1e70527e91e1a8
      417accdc
    • Dongya Jiang's avatar
      Add setBackdropRenderEffect for View and RenderNode. · fdcf72cb
      Dongya Jiang authored
      
      support visual effects for backdrop contents of a View or RenderNode.
      
      Test: added unit test & hwui_unit passes
      Test: added BackdropBlurActivity in HwAccelerationTest, build & run it
      
      Signed-off-by: default avatarDongya Jiang <jiangdongya@coolpad.com>
      Change-Id: If1ac1b8aee53667f175e8fa80ecfc7bdfa28173d
      Merged-In: If1ac1b8aee53667f175e8fa80ecfc7bdfa28173d
      fdcf72cb
  30. Oct 30, 2023
    • Seigo Nonaka's avatar
      Make LineBreakConfig and its span parcelable · e84e04b4
      Seigo Nonaka authored
      To be able to use it in remote views, make LineBreakConfigSpan
      ParcelableSpan.
      Also, to be able to LineBreakConfigSpan parcelable, it need to be
      final class. Due to this change, NoBreakSpan and NoHyphantionSpan is
      no longer possible. So, changed them to a create methods.
      
      Bug: 307666854
      Test: atest CtsTextTestCases
      Change-Id: Ifbf5a264d61c47a79ccb48a673f853f355e17c61
      e84e04b4
  31. Oct 27, 2023
    • John Reck's avatar
      Implement automatic SV clipping · 1b152e71
      John Reck authored
      Clip SV to its ancestor clipping bounds. This enables
      Z-above SurfaceView + scrolling containers to work more naturally
      
      Replaces the hidden API of setEnableSurfaceClipping
      
      Fixes: 298621623
      Test: Sample app
      Change-Id: Iaa862598e37065677f5ba163a5ac7a6fab2739ea
      1b152e71
  32. Oct 25, 2023
  33. Oct 24, 2023
    • Sally Qi's avatar
      Rename OverlayProperties API. · 5c5cd969
      Sally Qi authored
      - Display#getOverlaySupport is non-null, no need to check the object in
        HardwareRenderer side.
      
      Bug: 307552682
      Bug: 267234573
      Test: builds
      Change-Id: I58589fd95de5f9853d758f1e3cc899a634d39eb5
      5c5cd969
  34. Oct 23, 2023
  35. Oct 20, 2023
    • Seigo Nonaka's avatar
      Reorganize aconfig flags · 4194e8c2
      Seigo Nonaka authored
      This CL includes
      - Put all config entries into the single aconfig file.
      - Remove custom_locale_fallback and deprecate_fonts_xml because
        Gantry doesn't support converting READ_WRITE flag to READ_ONLY flag.
        To be a READ_ONLY flag, need to create new flag and start from
        scratch.
      
      Bug: N/A
      Test: N/A
      Change-Id: Iad6229b2a620674223037ccaf41ef5fcab8f7dea
      4194e8c2
Loading