Skip to content

Fix documentation errors in Android.Graphics (R138, pass 3) - #2017

Merged
jonathanpeppers merged 2 commits into
mainfrom
jonathanpeppers-review-android-graphics-r138-pass3
Nov 28, 2026
Merged

jonathanpeppers merged 2 commits into
mainfrom
jonathanpeppers-review-android-graphics-r138-pass3

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 07f89aa9507dace1716eead4a21bb0aa11a0b699

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ Each fix matches a pinned source line (RuntimeShader.java:303-309, Paint.java:3487, Canvas.java:2165, SurfaceTexture.java:196-197, 267, 285, 398-401, 460-465, BaseRecordingCanvas.java:351-355, 364).
↑ Ledger: 891 rows, 9 error-fixed, 763 correct, 119 excluded-deferred; 772 distinct facts.
↑ Changed XML parses and git diff --check is 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_r01 android/graphics/ and dotnet/android@9bc18c75.

Fixes

  1. RuntimeShader.SetWorkingColorSpace, param colorSpace: removed the raw link text ColorSpace#getModel() RGB and kept "RGB". Source: RuntimeShader.java:303-309 ({@link ColorSpace#getModel() RGB}; the code checks getModel() != ColorSpace.Model.RGB).

  2. RecordingCanvas.DrawTextRun remarks: Paint.getRunAdvance(char, int, int, int, int, boolean, int) changed to Paint.getRunAdvance(char[], int, int, int, int, boolean, int). No char overload exists. Source: Paint.java:3487.

  3. RecordingCanvas.DrawTextRun remarks: drawText(char, int, int, float, float, Paint) changed to drawText(char[], int, int, float, float, Paint). Source: Canvas.java:2165.

  4. SurfaceTexture.FrameAvailable summary: now "a new image frame becomes available to the surface texture". Source: SurfaceTexture.java:196-197.

  5. SurfaceTexture.IsReleased: now "Whether the surface texture was released." Source: SurfaceTexture.java:460-465.

  6. SurfaceTexture.SetDefaultBufferSize, params width and height: now "The default width/height of the image buffers." Source: SurfaceTexture.java:267, 285.

  7. SurfaceTexture.Timestamp: now names the most recent UpdateTexImage call, in nanoseconds. Source: SurfaceTexture.java:398-401.

  8. RecordingCanvas.DrawPosText(String, float[], Paint), param pos: removed "selected" (copied from the char[] overload); one x/y pair for each UTF-16 code unit in text. Source: BaseRecordingCanvas.java:351-355, 364.

Verified non-verbatim claims (no change)

  • The transfer param wording matches Object.cs:110-119 and JNIEnv.cs:360-393 at dotnet/android@9bc18c75.
  • DrawMesh blendMode: Skia SkCanvas.h (android-14.0.0_r1) lines 1999-2011 support "ignored if no color output".
  • DrawVertices indices: android_graphics_Canvas.cpp:419 casts the indices to const uint16_t*, which supports "unsigned 16-bit indices".
  • DrawBitmap src null 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.
  • One channel has the spacing artifact "ColorLong s". It is not false.
  • Out of scope: Paint.xml (lines ~2705 and ~2767) has the same char overload artifact.

Checks

  • Both changed XML files parse.
  • git diff --check is clean.
  • The diff adds no new "To be added" text.
  • I did not edit index.xml, _filter.xml or FrameworksIndex.

- 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>
Copilot AI balanced review requested due to automatic review settings November 28, 2026 21:27
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 28, 2026 21:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 nonexistent char overloads.
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>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the Android.Graphics documentation refinements.

No open issues 🎉

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
jonathanpeppers merged commit 0287557 into main Nov 28, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-android-graphics-r138-pass3 branch November 28, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants