Skip to content

Fix Android view documentation errors (R066, pass 3) - #1948

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-views-autofill-animations
Nov 27, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-views-autofill-animations

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 2eec37da70fd1ed32c63b481675112a15e49c859

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Reviewed all 457 in-scope channels against pinned sources and checked XML, links, and byte preservation.
↓ The platform 37.2 r02 source archive was not available.
Diagnosis confidence 9/10 ↑ Android and binding sources show the documented contract mismatches.
↓ The affected r02 implementations could not be compared directly.
Evidence fit Unknown ↓ No specific user-reported symptom or reproduction was supplied.

Scope

Third-pass review of R066: Android.Views.Animations, Android.Views.Autofill, Android.Views.ContentCapture, Android.Views.ContentCaptures, and Android.Views.DisplayHash. Reviewed 228 Docs blocks and 457 of 457 in-scope changed channels across 74 files. Excluded 275 specified boilerplate channels and 16 formatting-only channels. This corrects 69 AI-changed channels in 18 files, plus eight conflicting pre-AI channels in the same Docs blocks.

Fixes and evidence

  • Correct the linear and accelerate-decelerate interpolation returns, Transformation.Compose direction, nullable matrix and stored type code. See android/view/animation/LinearInterpolator.java:37-39, AccelerateDecelerateInterpolator.java:42-43, and Transformation.java:125-143 in the pinned SDK source archive.
  • Correct grid animation row and row-count descriptions for incomplete rows and bottom stacking. GridView's Android 17 implementation divides the child count by the column count and can assign row -1. Earlier releases were checked back to Android 1.6. Use managed Dimension names, and extend the confirmed Animation background-color and wallpaper ranges through current releases (Android 10, Android 11, Android 17).
  • Correct JNI handle ownership wording using Object.SetHandle and JNIEnv. Correct callback event wording and distinguish AutofillId's session flag from its origin; content-capture virtual IDs can also set it (Android 16 AutofillId, ContentCaptureSession).
  • Clarify that the 75% probability applies to retained bits, and use managed links for the noise and parceling APIs. See AutofillNoiseInjector.java:131-197 and AutofillNoiseInjectedData.java:31-97 in the SDK archive.
  • Correct content-capture version-dependent notifications, nullable node properties, explicit-set flags, request state and the list of locus requests. Remove orphan property parameters and use exact managed member links. See ContentCaptureSession.java:73-126,489-491,662-665,793-838,929-970, MainContentCaptureSession.java:1346-1372, ContentCaptureNodeProperties.java:93-243, and ContentCaptureSingleBuffer.java:426-475 in the SDK archive; see also DataRemovalRequest and JavaList.FromJniHandle.
  • Correct data-sharing error grammar and clarify that the locus ID string is interpreted as a regular expression. Preserve existing reference and attribution paragraphs.

The SDK archive is source-37.2_r01.zip, SHA-256 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84. Pass-2 PR #1757 was rechecked, including its reviews and two uncertain findings.

Uncertain findings

None identified in the reviewed scope. The bindings target platform 37.2 r02; its source archive was not available. No change was made where an r01 claim was known to conflict with r02 metadata or the current reference.

Checks

  • Compared the attributed channels with pinned Javadoc by script; personally checked nonexact, ambiguous and unlinked channels using JNI signatures and pinned source.
  • Parsed all 74 scoped XML files; confirmed zero placeholders before and after, unchanged bytes outside approved channels, unchanged reference/attribution paragraphs, encoding, line endings and API metadata.
  • Verified all 32 newly added cref values against exact repository DocIds; git diff --check passed.
  • Independent gemini-4-argon review of this commit found no actionable issues. Two source line offsets in its report were inaccurate; the cited facts were checked against the pinned source.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 18:56
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 27, 2026 18:56

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.

🔵 Needs a closer look

The content-capture version contracts need human confirmation because the implementation evidence covers SDK 37.2 r01, while the bindings target r02 and its source is unavailable.

No open issues 🎉

What changed in this PR

This documentation-only PR continues R066’s third-pass corrections to the managed Android view API reference. It clarifies API behavior and improves managed member links without changing runtime code or API metadata.

Changes:

  • Correct animation return values, transformation behavior, grid row calculations, and version-specific property descriptions.
  • Clarify autofill session flags, callback events, retained-bit probabilities, and JNI reference handling.
  • Refine content-capture version behavior, node properties, removal requests, and parceling documentation.
File Description
docs/​xml/​Android.Views.ContentCaptures/​DataShareRequest.xml Clarifies parceling flags and adds managed links.
docs/​xml/​Android.Views.ContentCaptures/​DataRemovalRequest.xml Clarifies removal requests, locus entries, and parceling.
docs/​xml/​Android.Views.ContentCaptures/​ContentCaptureSessionVersion.xml Distinguishes version-specific notifications from structure creation.
docs/​xml/​Android.Views.ContentCaptures/​ContentCaptureSession.xml Clarifies version behavior, nullable properties, and JNI handling.
docs/​xml/​Android.Views.ContentCaptures/​ContentCaptureNodeProperties.xml Clarifies unset properties and removes orphan parameter documentation.
docs/​xml/​Android.Views.ContentCaptures/​ContentCaptureContext.xml Improves parceling wording and managed links.
docs/​xml/​Android.Views.ContentCaptures/​ContentCaptureConditionFlags.xml Identifies the locus ID string as the regular expression.
docs/​xml/​Android.Views.ContentCapture/​DataShareError.xml Corrects grammar in error descriptions.
docs/​xml/​Android.Views.Autofill/​AutofillNoiseInjectedData.xml Clarifies retained-bit probabilities and parceling references.
docs/​xml/​Android.Views.Autofill/​AutofillManager+AutofillCallback.xml Clarifies UI event parameters and JNI handling.
docs/​xml/​Android.Views.Autofill/​AutofillId.xml Corrects session-flag and virtual-ID descriptions.
docs/​xml/​Android.Views.Animations/​Transformation.xml Corrects composition direction, matrix nullability, and type-code wording.
docs/​xml/​Android.Views.Animations/​LinearInterpolator.xml States that interpolation returns the input unchanged.
docs/​xml/​Android.Views.Animations/​GridLayoutAnimationController+AnimationParameters.xml Documents incomplete-row and bottom-stacking behavior.
docs/​xml/​Android.Views.Animations/​BaseInterpolator.xml Clarifies JNI reference handling.
docs/​xml/​Android.Views.Animations/​Animation+Description.xml Uses managed dimension names and links.
docs/​xml/​Android.Views.Animations/​Animation.xml Extends documented no-op behavior to later Android versions.
docs/​xml/​Android.Views.Animations/​AccelerateDecelerateInterpolator.xml Documents the cosine-based interpolation range.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto

Copy link
Copy Markdown
Member

In response to @jonathanpeppers's request: I checked all 18 changed-file patches, the newly added documentation links, JNI reference-ownership wording, interpolation/Transformation behavior, and Animation behavior on Android 10, 11 and 17. Source verification is still outstanding for ContentCaptureNodeProperties getters/GetBounds, version-dependent ContentCaptureSession notifications/Flush and nullable node properties, the noise-injection retained-bit probability, GridView row calculations, and AutofillId.getVirtualId API availability; I also need the accepted decisions from #1757. Attempts to read the newer content-capture classes at android-17.0.0_r1 returned no usable content; those attempts did not capture an HTTP status, so I cannot claim a 404 or a source defect. These are reviewer coverage gaps, not defects identified in this PR. The review remains queued at 2eec37d.

@jonathanpeppers

Copy link
Copy Markdown
Member Author

Evidence for the reviewer's source request:

The newer APIs are in the official SDK 37.2 r01 source archive, SHA-256 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84. The archive contains these paths and lines:

  • src/android/view/contentcapture/ContentCaptureNodeProperties.java:112-137,148-177,184-243: setters mark fields as set, including null or unchanged values; getters check their flags. getBounds checks for null before the flag.
  • src/android/view/contentcapture/ContentCaptureSession.java:489-491,662-665,929-930,968-970 and MainContentCaptureSession.java:1346-1372: version-specific notifications and flush are gated, but the two structure factories still construct objects. ContentCaptureSingleBuffer.java:426-446 accepts null properties and applies no property updates in that case.
  • src/android/view/autofill/AutofillNoiseInjector.java:171-197: 50% resampling with an equal chance of either bit preserves a retained bit 75% of the time; the final mask clears dropped bits.

Android 17 GridView divides child count by column count. With five children, three columns, bottom stacking, and index zero, the computed row is -1. Android 16 AutofillId defines getAutofillVirtualId; the binding records API 36.

Pass-2 #1757 was approved. Its two deferred questions concerned the session flag and the ungated structure factories; this PR addresses them using the Android 16 and SDK r01 implementations above. The r02 source was not available, and no r02 contradiction was found. The prior review also noted two nonblocking parameterless-constructor links in AccelerateInterpolator and DecelerateInterpolator; those links predate AI authoring and remain outside this pass's scope.

@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 18 changed files and the affected documentation contracts; no blocking issues found. I verified the content-capture version gates and nullable-property behavior, retained-bit probability, grid-row calculations, JNI-reference wording, managed links, and the API-36 AutofillId metadata against the retained platform and binding sources. The two deferred questions from #1757 are resolved by those implementations; its unrelated constructor-link follow-up remains nonblocking.

This was a static review. The newer content-capture implementation checks use SDK 37.2 r01; the unavailable r02 source was not certified.

@jonathanpeppers
jonathanpeppers merged commit f4fa609 into main Nov 27, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-views-autofill-animations branch November 27, 2026 19:56
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