- May 15, 2024
-
-
Brad Nelson authored
Change-Id: I956280d49da8d35a4c42b7d96360258aefe3576e
-
Brad Nelson authored
Change-Id: If2e8a57483a49bcdf71bcd08f3fb38d51f59cdcd
-
Brad Nelson authored
Change-Id: I3a1291c51a94a3caeefe57d7cb47d1d84d3e866c
-
- May 03, 2024
-
-
Oriol Prieto Gasco authored
Set the container field of aconfig flags Test: printflags --format='{package}:{container}:' | grep "::" Bug: 312769710 Flag: NONE Change-Id: I84fda0d5e9813940609436d825738ff786908ff0
-
- Apr 02, 2024
-
-
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
-
- Mar 04, 2024
-
-
Charles Munger authored
Compiler explorer shows a 4x reduction in code size for the method on the hot path. BUG=327646201 Change-Id: Idcd1e3cc62ce5c9360e0ab334b01ecb2c3d73be1
-
- 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
-
- 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
-
- Oct 18, 2023
-
-
Carlos Martinez Romero authored
Previously I created a new namespace based on the filegroup name that was already defined in the Android.bp. The namespace core_graphics is already managed and this flag should just join our managed flags already. This will be better than managing a new namespace just for this flag. Bug: 304478551 Test: make Change-Id: Id116fa94da627a9687992d23cd31820cccf15c6a
-
Seigo Nonaka authored
Fix: 304697323 Test: N/A Change-Id: I4c7c0cd7f822a348a65282eac13db3c3947d38a2
-
- Oct 13, 2023
-
-
Anton Hansson authored
Various issues here, but the most recurring one is referencing SystemApi from public javadoc. Remove or rewrite such references. Also common is trying to @link IntDefs. Usually this is not necessary, as the presence of IntDef in the @param/@return auto-generates relevant documentation. Bug: 303184203 Test: m docs Change-Id: Ie59e61881c45c73fbbe08250493bd35eca268ef6
-
John Stiles authored
We were shadowing the `turbulence` function with a variable of the same name. This isn't illegal, but it is not a good idea to do this. Renamed the variable to `turb`. Change-Id: Ic2046d2ffe507f03e53a947a884114dd660b143e
-
- Oct 12, 2023
-
-
Carlos Martinez Romero authored
This was changed recently b/216813597 and at that point it should have been behind a flag. Bug: 304478551 Test: it builds fine? Change-Id: I21912cc463632ec867b50c7100b6a50222d9f771
-
- Oct 11, 2023
-
-
Carlos Martinez Romero authored
Test: m Bug: 304478551 Change-Id: I895f2d4844e70ee1d48d854a789abff1996801ed
-
- Oct 09, 2023
-
-
Seigo Nonaka authored
Bug: 303327287 Test: atest TypefaceSystemFallbackTest Test: atest CtsTextTestCases CtsGraphcisTestCases Change-Id: I50754faf91d6d7222366f26a640f4dd4c1b156b0
-
- Oct 06, 2023
-
-
Seigo Nonaka authored
Bug: 303326708 Test: atest Paint_FontMetricsForLocaleTest Change-Id: I4395c778a8de459ffdddba0c0d4dc2ba050e50ac
-
- Oct 05, 2023
-
-
Seigo Nonaka authored
Bug: 283193586 Test: minikin_tests Test: atest StaticLayoutLineBreakingNoBreakSpanTest Change-Id: I9acd108537b73673316d0c126fff99a48a11f4ed
-
- Oct 04, 2023
-
-
John Reck authored
Test: atest GainmapTests Change-Id: Iff9bd869d5d01d8329767e7d5fe33d5ce1eea0b4
-
Seigo Nonaka authored
Bug: 281769620 Test: Manually done Test: atest FontListParserTest TypefaceSystemFallbackTest Test: atest CtsGraphicsTestCases CtsTextTestCases Change-Id: Ice5a51024c7fbba2af7c5886c751e2508c3670d7
-
- Oct 03, 2023
-
-
John Reck authored
Fixes: 264608640 Test: n/a doc only change Flag: DOCS_ONLY Change-Id: Ib8c18671d7f4fada5358a41229f61a2154bcf992
-
- Sep 28, 2023
-
-
Fabián Kozynski authored
The new API checks (for URI based Icons) that the Uri can be accessed by the passed callingUid, regardless of the app that is calling loadDrawable. This allows SystemUI to load drawables on behalf of other apps safely. Fixes: 301110522 Test: atest IconTest Change-Id: Iae392277aaf9560536a0b1cf231fa98b577a32d7
-
- Sep 27, 2023
-
-
John Reck authored
Fixes: 296482289 Test: atest android.uirendering.cts.testclasses.GainmapTests -- --template:map preparers=template/preparers/feature-flags --flag-value core_graphics/com.android.graphics.hwui.flags.gainmap_animations=true Change-Id: I1984a625ff3740e8fffd4d1ffc6f16132dfc6788
-
- Sep 26, 2023
-
-
Ady Abraham authored
Bug: 281695725 Test: manual using a test app Change-Id: Icd7a998a4e3fef2d3076b6fe4b8ec9272d14315b
-