- Feb 23, 2024
-
-
Nishant Panwar authored
This reverts commit d84522ce. Reason for revert: unblocking 24Q2 release, b/326312780 API-Coverage-Bug: b/326587267 Change-Id: I6f3f51a22082b702e8cc304fef90c8a6e6504152
-
- Feb 22, 2024
-
-
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
-
- Feb 16, 2024
-
-
mayankkk authored
- The change is required to avoid trigering all the CTS test cases when a file is change from framework/base. Test: m BUG: BUG:325580144 Change-Id: Ib763cd2c570f82aae73f98507a9a5e0ba5b9b0c9
-
- Feb 14, 2024
-
-
Jorge Betancourt authored
Test: atest CtsUiRenderingTestCases:android.uirendering.cts.testclasses.ShaderClippingTests Bug: 280116960 Change-Id: Ic78c4b2ca01e6af9e5af757aa64e15e248cadcf8
-
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
-
- Feb 09, 2024
-
-
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
-
Ryan Tao authored
Change-Id: I121d8cee49829f120440e9628aa319a5c664aee3
-
- Feb 06, 2024
-
-
Seigo Nonaka authored
Bug: 322228767 Test: TreeHugger Change-Id: Iea07f64362537123a702928aeb0becff8cef9f71
-
- Feb 03, 2024
-
-
Dillon Simpson authored
PdfEditor will be mainlined post-V due to API review bandwidth constraints. Test: manual testing against printspooler usage of this API, CTS Bug: 319339682 Change-Id: I65fa29c0268f9fa9294807e8ba3fb68f7a7519dd
-
- Feb 02, 2024
-
-
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
-
- Feb 01, 2024
-
-
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
-
- Jan 31, 2024
-
-
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
-
- Jan 30, 2024
-
-
Jorge Betancourt authored
Test: atest CtsUiRenderingTestCases:android.uirendering.cts.testclasses.CanvasTests#testDrawWithConcatenatedMatrix44 && atest CtsGraphicsTestCases:android.graphics.cts.Matrix44Test Bug: 280116960 Change-Id: Ifd336585f578592985d45bbe6ad0728fbcdafa4b
-
- Jan 29, 2024
-
-
Seigo Nonaka authored
Bug: 322053012 Test: N/A Change-Id: Ie73046cd246b87a09f4b1fd100542a9099301fd3
-
- Jan 23, 2024
-
-
John Reck authored
Match the subclass definition this is overridding Fixes: 321785629 Test: make Change-Id: I844f44d59b15596a64000cc1732ba470b0955ae2
-
- Jan 19, 2024
-
-
Seigo Nonaka authored
Bug: 283193133 Test: atest CtsTextTestCases:android.text.cts.LayoutInterJustificationTest Test: atest CtsTextTestCases CtsGraphicsTestCases Change-Id: I8b1afb1ab1f7b6a48c6c22ec69edf8697311990e
-
- Jan 18, 2024
-
-
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
-
- Jan 16, 2024
-
-
Seigo Nonaka authored
Bug: 307796227 Test: N/A Change-Id: If6d5b3abb429a9ea641676129131155e4d08ec61
-
- Jan 13, 2024
-
-
Michael Hoisie authored
A fix for Robolectric has been made at the same time and this workaround can be removed. Bug: 319192202 Test: SystemUIGoogleRobo2RNGTests Change-Id: I57d0689d6bdc8af12d671fbb6f9cbe8ea90da085
-
- Jan 10, 2024
-
-
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
-
- Jan 09, 2024
-
-
Surajit Chandra authored
Revert submission 25573460-cluster_api Reason for revert: b/319192202 Reverted changes: /q/submissionid:25573460-cluster_api Change-Id: I727b194ca7b29e6af21a7c64fd5004624b8713c5
-
- Dec 13, 2023
-
-
Seigo Nonaka authored
Bug: 310904222 Bug: 316208691 Test: N/A Change-Id: I1e1051fa21ce96062c4015c9035a6ff483d09952
-
- Dec 12, 2023
-
-
Seigo Nonaka authored
This is a preparation of the inter character justification Bug: 283193133 Test: CtsTextTestCases Test: minikin_tests Change-Id: Ia3a69a83cc1a3cde56d8a66a7cab1c85c7109050
-
- Dec 07, 2023
-
-
Hassan Ali authored
Remove refererence from public API to flagged API in Paint.java Test: m ds-docs-java Bug: 304996215 Change-Id: I90836e16065d67c3b983ca1358f1ee4c6e60a9c1
-
- Nov 29, 2023
-
-
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
-
- Nov 23, 2023
-
-
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
-
- Nov 21, 2023
-
-
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
-
- Nov 20, 2023
-
-
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
-
- Nov 14, 2023
-
-
Dichen Zhang authored
Bug: 299202809 Test: YuvImageTest.java Change-Id: Ifb1500114c9c212eb145c8538a74b46066fd5db7
-
- Nov 10, 2023
-
-
Dichen Zhang authored
Bug: b/299202809 Test: YuvImageTest.java Change-Id: If1aa9598f75062e7d0684d5d0f4b60f1e4a19f4d
-
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
-
- Nov 07, 2023
-
-
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
-
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:
Dongya Jiang <jiangdongya@coolpad.com> Change-Id: If1ac1b8aee53667f175e8fa80ecfc7bdfa28173d Merged-In: If1ac1b8aee53667f175e8fa80ecfc7bdfa28173d
-
- Oct 30, 2023
-
-
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
-
- Oct 27, 2023
-
-
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
-
- Oct 25, 2023
-
-
Seigo Nonaka authored
Bug: 280005585 Test: atest StaticLayoutLineBreakAutoTest Change-Id: Id977f91d8cc646d9023ce3c29872706146daa011
-
Seigo Nonaka authored
As a first step of deprecating UI fonts, make setElegantTextFlag as true by default if the target SDK is set to Android 15 or later.. Bug: 279646685 Test: atest PaintDefaultsTest Change-Id: If8e40c075122cafd2f89ae703bf6a5f07ebc7bd0
-
- Oct 24, 2023
-
-
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
-
- Oct 23, 2023
-
-
Seigo Nonaka authored
The new API setMinimumFontMetrics API is useful for reserving a minimum amount of line spacing. Bug: 303326708 Test: CtsGraphicsTestCases CtsTextTestCases Change-Id: Ic25162b3a19d2b002b690560fde9512ea72bb492
-
- Oct 20, 2023
-
-
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
-