Repository navigation
Fix Android view documentation errors (R066, pass 3) - #1948
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 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
|
@dalexsoto review |
|
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. |
|
Evidence for the reviewer's source request: The newer APIs are in the official SDK 37.2 r01 source archive, SHA-256
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 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 |
dalexsoto
left a comment
There was a problem hiding this comment.
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
2eec37da70fd1ed32c63b481675112a15e49c859↓ The platform 37.2 r02 source archive was not available.
↓ The affected r02 implementations could not be compared directly.
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
Transformation.Composedirection, nullable matrix and stored type code. Seeandroid/view/animation/LinearInterpolator.java:37-39,AccelerateDecelerateInterpolator.java:42-43, andTransformation.java:125-143in the pinned SDK source archive.Dimensionnames, and extend the confirmedAnimationbackground-color and wallpaper ranges through current releases (Android 10, Android 11, Android 17).AutofillId's session flag from its origin; content-capture virtual IDs can also set it (Android 16 AutofillId, ContentCaptureSession).AutofillNoiseInjector.java:131-197andAutofillNoiseInjectedData.java:31-97in the SDK archive.ContentCaptureSession.java:73-126,489-491,662-665,793-838,929-970,MainContentCaptureSession.java:1346-1372,ContentCaptureNodeProperties.java:93-243, andContentCaptureSingleBuffer.java:426-475in the SDK archive; see also DataRemovalRequest and JavaList.FromJniHandle.The SDK archive is
source-37.2_r01.zip, SHA-2569d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84. 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
crefvalues against exact repository DocIds;git diff --checkpassed.gemini-4-argonreview 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.