Repository navigation
Fix documentation errors in Android.Graphics (R138, pass 3) - #2017
Merged
jonathanpeppers merged 2 commits intoNov 28, 2026
Merged
Conversation
- RuntimeShader.SetWorkingColorSpace: remove raw link text ColorSpace#getModel(). - RecordingCanvas.DrawTextRun: name existing overloads Paint.getRunAdvance(char[], ...) and drawText(char[], ...) instead of nonexistent char overloads. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for these documentation-only link and overload-reference corrections.
No open issues 🎉
What changed in this PR
This third-pass follow-up to #1645 and #1827 corrects three documentation errors in Android.Graphics. The changes affect documentation only; API signatures and runtime behavior are unchanged.
Changes:
- Remove a malformed Java link from the working color-space parameter while preserving the RGB requirement and null behavior.
- Correct two Java method references to use
char[]rather than nonexistentcharoverloads.
| File | Description |
|---|---|
| docs/xml/Android.Graphics/RuntimeShader.xml | Clean up the SetWorkingColorSpace parameter description. |
| docs/xml/Android.Graphics/RecordingCanvas.xml | Correct measurement and drawing overload references in DrawTextRun remarks. |
Review effort: Balanced
- SurfaceTexture: FrameAvailable, IsReleased, SetDefaultBufferSize and Timestamp text now match the pinned Javadoc. - RecordingCanvas.DrawPosText(String,...): pos covers every UTF-16 code unit in text, not a selected range. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Member
Author
|
@dalexsoto review |
dalexsoto
approved these changes
Nov 28, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
Reviewed all three changed XML files and their documentation/reference context. The nine edits match the retained Android source semantics, and the new cref/paramref targets resolve. No blocking issues found. Static review only; no builds or tests executed.
jonathanpeppers
deleted the
jonathanpeppers-review-android-graphics-r138-pass3
branch
November 28, 2026 22:26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
07f89aa9507dace1716eead4a21bb0aa11a0b699↑ Ledger: 891 rows, 9 error-fixed, 763 correct, 119 excluded-deferred; 772 distinct facts.
↑ Changed XML parses and
git diff --checkis clean.↑ A gemini-4-argon rubber-duck review of 07f89aa found no issues and checked 28 RecordingCanvas overload rows.
↓ CI and human review are pending.
Scope
This is the pass-3 review of the AI-authored documentation in 38 Android.Graphics files (item R138). It covers the text changed since 86f7744 (pass 1 #1645, pass 2 #1827). There are 891 AI-changed channels. Each channel has one ledger row with a verdict and a pinned source line. Pinned sources:
source-37.2_r01android/graphics/and dotnet/android@9bc18c75.Fixes
RuntimeShader.SetWorkingColorSpace, paramcolorSpace: removed the raw link textColorSpace#getModel() RGBand kept "RGB". Source: RuntimeShader.java:303-309 ({@link ColorSpace#getModel() RGB}; the code checksgetModel() != ColorSpace.Model.RGB).RecordingCanvas.DrawTextRunremarks:Paint.getRunAdvance(char, int, int, int, int, boolean, int)changed toPaint.getRunAdvance(char[], int, int, int, int, boolean, int). Nocharoverload exists. Source: Paint.java:3487.RecordingCanvas.DrawTextRunremarks:drawText(char, int, int, float, float, Paint)changed todrawText(char[], int, int, float, float, Paint). Source: Canvas.java:2165.SurfaceTexture.FrameAvailablesummary: now "a new image frame becomes available to the surface texture". Source: SurfaceTexture.java:196-197.SurfaceTexture.IsReleased: now "Whether the surface texture was released." Source: SurfaceTexture.java:460-465.SurfaceTexture.SetDefaultBufferSize, paramswidthandheight: now "The default width/height of the image buffers." Source: SurfaceTexture.java:267, 285.SurfaceTexture.Timestamp: now names the most recentUpdateTexImagecall, in nanoseconds. Source: SurfaceTexture.java:398-401.RecordingCanvas.DrawPosText(String, float[], Paint), parampos: removed "selected" (copied from thechar[]overload); one x/y pair for each UTF-16 code unit intext. Source: BaseRecordingCanvas.java:351-355, 364.Verified non-verbatim claims (no change)
transferparam wording matches Object.cs:110-119 and JNIEnv.cs:360-393 at dotnet/android@9bc18c75.DrawMeshblendMode: Skia SkCanvas.h (android-14.0.0_r1) lines 1999-2011 support "ignored if no color output".DrawVerticesindices: android_graphics_Canvas.cpp:419 casts the indices toconst uint16_t*, which supports "unsigned 16-bit indices".DrawBitmapsrcnull uses the whole bitmap: BaseRecordingCanvas.java:99-102.Uncertain findings (not changed)
Region.GetBoundaryPath: I could not verify the version strings android-3.0_r1 and 1.5r2.Typeface.CustomFallbackBuilder.SetStyle: the qualifiers "non-variable" and "same slant" are not stated in the Javadoc. I did not judge them false.charoverload artifact.Checks
git diff --checkis clean.