summaryrefslogtreecommitdiff
path: root/graphics/java
AgeCommit message (Collapse)Author
2025-03-16Merge "Swap sans-serif-medium for testing purpose" into main Seigo Nonaka
2025-03-11Merge "Retain the gainmap during Bitmap.asShared()" into main Robin Lee
2025-03-11Retain the gainmap during Bitmap.asShared() Robin Lee
This was getting lost in some IPCs because the gainmap of an Ashmem Bitmap was passed through as a local native pointer instead of also being an Ashmem object. Test: GainmapTests Test: GainmapTest Test: BitmapTest Bug: 390675155 Flag: EXEMPT bugfix Change-Id: I1940c5eb58d1cc5a83836f77e2618bd86ca35741
2025-03-07Swap sans-serif-medium for testing purpose Seigo Nonaka
Bug: 331949220 Test: atest android.theme.cts.ThemeHostTest Test: Done by Samsung Flag: EXEMPT bugfix Change-Id: Id969a2712fa93f60a142041038a8b247532fdfb0
2025-02-26Merge "Address API council feedback: align with existing API" into main Seigo Nonaka
2025-02-25Merge "m3: change gradient_drawable_shape_rounded_cap namespace to wear" ↵ Treehugger Robot
into main
2025-02-25m3: change gradient_drawable_shape_rounded_cap namespace to wear Chen Bai
name change: gradient_drawable_shape_rounded_cap -> gradient_drawable_shape_arc_for_rounded_cap namespace change: core_graphics -> wear_frameworks Test: build Flag: com.android.graphics.flags.gradient_drawable_shape_arc_for_rounded_cap Bug: 380000245 Change-Id: I9520a1d9170c2ebcfffcb9396a3fb80b55665fc0
2025-02-24Merge "[owners] Remove svetoslavganov@google.com from ↵ Owner Cleanup Bot
graphics/java/android/graphics/pdf/OWNERS" into main am: f3a0cd4898 am: 85c4f8bbca Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3505576 Change-Id: I31ae13a3c84047da2f45e05be81c52c0da2cfbe0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-24[owners] Remove svetoslavganov@google.com from ↵ Owner Cleanup Bot
graphics/java/android/graphics/pdf/OWNERS This suggested change is automatically generated based on group memberships and affiliations. Please approve this change and vote the highest CR. This will keep the OWNERs file tidy. We ask that you do not ignore this change and approve it unless you know a reason the OWNER should remain. It can always be reverted if needed. If this change is in error, vote the lowest CR value (i.e. reject the CL) and the bot will abandon it. See the owner's recent review activity for context: https://android-review.googlesource.com/q/svetoslavganov@google.com To report an issue, file a bug in the Infra>Codereview component. Change-Id: I3d405e82e0e614d96478667c4b1eb455d73fe146
2025-02-22Address API council feedback: align with existing API Seigo Nonaka
To align the similar behavior with setFontVariationSettings, throws IllegalArgumentException in case of invalid syntax. Bug: 389111359 Test: atest PaintTest Flag: com.android.text.flags.typeface_redesign_readonly Change-Id: Idd2e53964bccc6412c81307d969b6d9cc944be77
2025-02-20Merge "[Ravenwood] Enable graphics support" into main John Wu
2025-02-19Merge changes I588213b0,I358acb98 into main Treehugger Robot
* changes: m3: refine watch default determinate progress bar m3: enable GradientDrawable to draw round cap arc
2025-02-18Add infrastructure for registering a native frame metrics observer Siarhei Vishniakou
This will allow NativeInputEventReceiver to subscribe to the frame metrics notifications directly from the native code, without having to involve java. Java would still be needed to register the observer, though. Bug: 376713684 Test: compile only, this infra is used in another CL Flag: EXEMPT refactor Change-Id: I7be8f0b2e94595f9a64ce69a22fe5910e0cd7711
2025-02-18[Ravenwood] Enable graphics support John Wu
Bug: 337110712 Flag: EXEMPT host side change only Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Test: atest FrameworksCoreTestsRavenwood Test: atest CtsGraphicsTestCasesRavenwood Test: atest CtsResourcesTestCasesRavenwood Test: atest CtsTextTestCasesRavenwood Change-Id: I90a79a92987870d494ed927eb6ba02747e247929
2025-02-14Revert^2 "Add RuntimeShader#setWorkingColorSpace" John Reck
c897edb13f53f30f76cd3070fe04143f78419e74 Bug: 299670828 Test: android.uirendering.cts.testclasses.RuntimeShaderTests#testWorkingColorSpace Flag: com.android.graphics.hwui.flags.shader_color_space Change-Id: Ie5adab0ce6c86db3c91a6d2a1d7ca660b2a31e74
2025-02-14Merge "Init workload target in java FrameInfo" into main Treehugger Robot
2025-02-13Merge "Revert "Add RuntimeShader#setWorkingColorSpace"" into main Priyanka Advani (xWF)
2025-02-13Revert "Add RuntimeShader#setWorkingColorSpace" Priyanka Advani (xWF)
Revert submission 31528465-runtimeshader_workingcolorspace Reason for revert: Droidmonitor created revert due to b/396463303 . Will be verifying through ABTD before submission. Reverted changes: /q/submissionid:31528465-runtimeshader_workingcolorspace Change-Id: I4a8d06704ab559ed735343bd9ee8d365815cb810
2025-02-13m3: enable GradientDrawable to draw round cap arc Chen Bai
- Add a private Shape type(ARC) to the GradientDrawable. - Add a new attr strokeCap to GradientDrawable. The ARC shape also draws ring shape drawable but allows rounded stroke line cap through a new private attr, strokeCap. Test: GradientDrawableTest Flag: com.android.graphics.flags.gradient_drawable_shape_rounded_cap Bug: 380000245 Change-Id: I358acb9855b4feccf39c40668e48a9626f32fb1c
2025-02-13Merge "Add RuntimeShader#setWorkingColorSpace" into main John Reck
2025-02-13Init workload target in java FrameInfo Melody Hsu
FrameInfo's workload target was never initialized on the Java side, and it resulted in occasions where the workload target value was 0. FrameInfo in DrawFrameTask populates itself from the FrameInfo.java, and this info is propagated into CanvasContext. This change ensures that the workload target also has a value going into JankTracker. Fixes: b/395917245 Test: presubmit, wear metric tests Flag: EXEMPT, bug fix Change-Id: I6540ee66d1ad8b0a22da516120cb2b9135c70398
2025-02-12preload Buffer Allocator instance on the ViewRootImpl init “Shadman
- Improves time to first draw by ~5-10ms on low core devices. Earlier initialization results in less time during choreographer's first frame draw waiting for buffer allocator to be initialized. Test: Build and wear hermetic app launch test Bug: 389908734 Flag: com.android.graphics.hwui.flags.early_preinit_buffer_allocator Change-Id: I41883e735557f186f4ed5004b092f018b7b67574
2025-02-11Merge "Calculate workload target using original frame deadline" into main Melody Hsu
2025-02-11Calculate workload target using original frame deadline Melody Hsu
The target work duration in HWUI ADPF is sometimes incorrect, and is more often incorrect during buffer stuffing recovery due to the exposure of new jank. The issue causes CPU clock frequencies to decrease too much, and cause potential jank in subequent frames. The original frame deadline should be used instead in calculating the workload target deadline when triple buffered because even when the deadline is pushed later during buffer stuffing, the throughput requirements remain the same. Also fixes a misordering in FrameInfoNames that was inconsistent with FrameInfo and FrameMetrics. Bug: b/389939827 Test: atest JankTracker Test: presubmit, perfetto traces w/ and w/o buffer stuffing recovery Flag: com.android.graphics.hwui.flags.calc_workload_orig_deadline Change-Id: I2e3da6ee927d20fcbc9299ab5eda5732660d7246
2025-02-07Merge "Transfer Bitmap.mId whenever we send an ashmem bitmap over the wire" ↵ Treehugger Robot
into main
2025-02-07Transfer Bitmap.mId whenever we send an ashmem bitmap over the wire Mark Fasheh
Only do this when we do a zero copy transfer of an ashmem region. Otherwise a value of zero is sent and mId is generated as usual on the receiving end. We can look at this in heap dumps and compare identical bitmaps to see whether they are shared with another process, or are a process-local copy. Bug: 386212855 Test: boot phone and take heap dumps Flag: NONE no public API change Change-Id: Ic791f256884d18f07a03d2f5c7d4e694855e6527
2025-01-30Add RuntimeShader#setWorkingColorSpace John Reck
Bug: 299670828 Test: android.uirendering.cts.testclasses.RuntimeShaderTests#testWorkingColorSpace Flag: com.android.graphics.hwui.flags.shader_color_space Change-Id: I0aed0e414dc25a1f30ca6e8d8c182bd53ff8c186
2025-01-22Add more description for null/empty override case Seigo Nonaka
Bug: 389111359 Test: N/A (doc only change) Flag: NONE API documentation only change Change-Id: I43ff2a4af60f61643505a4d901fd2db227b9f01f
2025-01-17Start buffer stuffing recovery based on time blocked in dequeueBuffer Melody Hsu
Start buffer stuffing recovery only when severely buffer stuffed. Determined based on how long BBQ waits on buffer release. Waits shorter than this may simply be false positives for buffer stuffing recovery due to timing and should be ignored. Bug: b/294922229 Test: Manually check perfetto traces, presubmit, SysUi performance tests Flag: android.view.flags.buffer_stuffing_recovery Change-Id: Ic8c01edaebd599724fc7a9a67630069c05b567c1
2025-01-15Merge "Remove obsolete BLASTBufferQueue constructor" into main Vishnu Nair
2025-01-15Merge "Update graphics owners" into main am: cc033a57d3 am: 48a04b7a00 Alec Mouri
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3452567 Change-Id: I22f08ff0e8b642af963c51a641da947ec4704848 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-01-15Update graphics owners Alec Mouri
* scroggo and njawad have left :( * add a couple of extra graphics ppl Change-Id: I3010765861aec0df48f23a675f98f10359f251e2 Flag: EXEMPT owners
2025-01-14Remove obsolete BLASTBufferQueue constructor Vishnu Nair
This constructor may apply a transaction using the default apply token. Calling update after construction allows the caller to specify the token. Remove the constructor since its redundant and maybe error prone in cases where the caller needs to specify a token. Bug: 386289111 Test: presubmit Flag: EXEMPT refactor Change-Id: I67521ac5b375f769d26a10b60b0769c3c2d511b0
2025-01-09Add setFontVariationOverride instead of changing setFontVariationSettings ↵ Seigo Nonaka
behavior Bug: 361260253 Test: CtsWidgetTestCases Test: CtsTextTestCases Test: CtsGraphicsTestCases Test: minikin_tests Flag: com.android.text.flags.typeface_redesign_readonly Change-Id: I6a45314f28fea4237ec2d10bc24b5814325fd5b4
2025-01-09Revive the behavior of setFontVariationSettings as of API35 Seigo Nonaka
We decided not to change the behavior of setFontVariationSettings to keep working Jetpack Compose. Bug: 361260253 Test: CtsWidgetTestCases Test: CtsTextTestCases Test: CtsGraphicsTestCases Test: minikin_tests Flag: com.android.text.flags.typeface_redesign_readonly Change-Id: Ia95dbd3fc5c39ff4290b8e87ea85c9dc07008a9e
2024-12-23Merge "fix BlendModeColorFilter equality by checking color" into main Jorge Betancourt
2024-12-20Revert^2 "Add warning message if developer depends on undocumented behavior" Chaitanya Cheemala (xWF)
This reverts commit 810b9cb854ed004c187813daa6a6a4f31ec94086. Reason for revert: Re-reverting the cl as per cl owner's description to fix forward the bug b/385270677 Change-Id: I340043acdfa613e345f3147f813e86f6ddde67b8
2024-12-20Revert "Add warning message if developer depends on undocumented behavior" Chaitanya Cheemala (xWF)
This reverts commit 596db6aafc9bb0ea270d6e38d854f9867c9d4ae7. Reason for revert: Likely culprit for b/385270677 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Change-Id: I77a797a4204fff70d471171506360175d6d38b54
2024-12-20Add warning message if developer depends on undocumented behavior Seigo Nonaka
Bug: 371894731 Test: Manually done Flag: com.android.text.flags.typeface_redesign_readonly Change-Id: I375e8dd6bf5e04be4819c2e9146473cb02df409a
2024-12-18fix BlendModeColorFilter equality by checking color Jorge Betancourt
Bug:384514345 Test: atest BlendModeColorFilterTest#testBlendModeColorFilterEquality Flag: EXEMPT bugfix Change-Id: I0a802a93acb121c487df6afd4851ccc377d57914
2024-12-10Buffer stuffing recovery when blocked on dequeueBuffer Melody Hsu
Detect when the client is blocked waiting on buffer release and only recover from buffer stuffing then. This is a more conservative measure for recovery that will prevent the client from being maximally buffer stuffed. This still provides some "padding" to prevent from additional app janks that can be exposed if we recover from buffer stuffing too aggressively. Recover by delaying 1 frame and adding animation offsets. Bug: b/294922229 Test: presubmit, manually check perfetto traces Flag: android.view.flags.buffer_stuffing_recovery Change-Id: I68282826d13f2c38e484e94a0addd17355774960
2024-12-05Make setFontVariationSettings work with weight adjustment Seigo Nonaka
If setFontVariationSettings is called, the font weight adjustment no longer adjusted except for the synthetic bolding. From target SDK 36, because the font variation settings is stored in the Paint class, it is possible to adjust the weight at runtime without using synthetic bolding. Bug: 380202452 Test: atest CtsGraphicsTestCases Test: atest CtsTextTestCases Test: atest minikin_tests Test: manually done Flag: com.android.text.flags.typeface_redesign_readonly Change-Id: Ie591086b48d538bc4e554854d9d4a7d04a6b398a
2024-12-02Merge "Remove @Deprecated from Path.computeBounds(RectF, boolean)" into main ↵ Treehugger Robot
am: 43d9d366fb am: f54003ae01 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3376212 Change-Id: I212ec2e7e3a58302e81a1a6c6df33064d8e6eae9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-02Merge "Remove @Deprecated from Path.computeBounds(RectF, boolean)" into main ↵ Treehugger Robot
am: 43d9d366fb Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3376212 Change-Id: I5f6efec7e2bd775d6530752081a9323df95a19dd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-25Remove @Deprecated from Path.computeBounds(RectF, boolean) John Reck
This is too aggressive a signal, and the replacement method lacks sufficient availability for this to be actionable yet Bug: 216813597 Change-Id: I6eac9a18de9e7c71896cde1777d91edff8405333 Test: n/a Flag: com.android.graphics.flags.exact_compute_bounds
2024-11-15fix incorrect casting for child color filters Jorge Betancourt
Flag: com.android.graphics.hwui.flags.runtime_color_filters_blenders Test: atest CtsUiRenderingTestCases:RuntimeShaderTests CtsUiRenderingTestCases:RuntimeColorFilterTests CtsUiRenderingTestCases:RuntimeXfermodeTests Bug: b/358126864 b/379193391 Change-Id: Ic0a92c18075e1fd9f07080c2b9a7a795e541cdee
2024-11-15Merge "add child setters to RuntimeEffects" into main Jorge Betancourt
2024-11-15add child setters to RuntimeEffects Jorge Betancourt
Flag: com.android.graphics.hwui.flags.runtime_color_filters_blenders Test: atest CtsUiRenderingTestCases:RuntimeShaderTests Bug: b/358126864 API-Coverage-Bug: 379193391 Change-Id: I0e89e3880af12813935acd6ced817abff3f61084
2024-11-14guard new Xfermode API usage in Paint Jorge Betancourt
Flag: com.android.graphics.hwui.flags.runtime_color_filters_blenders Test: atest CtsUiRenderingTestCases:RuntimeXfermodeTests Bug: b/358126864 Change-Id: I74088b551eb4b313d81310e2cfaceaeeee1b8cda
2024-11-13add RuntimeXfermode API to the graphics platform Jorge Betancourt
Flag: com.android.graphics.hwui.flags.runtime_color_filters_blenders Test: atest CtsUiRenderingTestCases:RuntimeXfermodeTests Bug: b/358126864 Change-Id: Idd15f937707feec51387b513b75cfadfaf0336a3