Skip to content

Fix documentation errors in Android.Hardware.Biometrics (R133, pass 3) - #2010

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-hardware-biometrics-docs-r133
Nov 28, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-hardware-biometrics-docs-r133

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: d5e5aeba11d6e9909e8693840d5ca354e318fe4e

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ Both crefs resolve to existing, non-obsolete FallbackOption members.
↑ Same fix as the #1997 precedent for other Biometrics InterfaceConsts files.
↑ XML parses; git diff --check is clean; gemini-4-argon rubber duck found no issues.
↓ OpenPublishing.Build result not yet inspected.
Diagnosis confidence 9.5/10 ↑ The raw text comes from {@link #describeContents()} and {@link #writeToParcel} in Parcelable.java:166 and :103.
Evidence fit 9/10 ↑ The raw #member link text is a known pass-3 error pattern.
↓ No user report; found by review.

Pass-3 review of AI-changed documentation for item R133 (12 files in docs/xml/Android.Hardware.Biometrics): FallbackOption (+InterfaceConsts), PromptContentItemBulletedText (+InterfaceConsts), PromptContentItemPlainText (+InterfaceConsts), PromptContentViewWithMoreOptionsButton (+Builder, +InterfaceConsts), PromptVerticalListContentView (+Builder, +InterfaceConsts).

Scope

Channels changed in git diff 86f7744a1 origin/main for these files: 193 channels. All 193 are reviewed one by one, each with a verdict and a numeric pinned source line (193 of 193). This includes the 73 generated binding channels (ThresholdClass, ThresholdType, JniPeerMembers, IJavaPeerable.UnregisterFromRuntime), which are checked against the dotnet/android@9bc18c75 generator and runtime sources. They are correct and are not changed. FallbackOption.xml and FallbackOption+InterfaceConsts.xml are new since 86f7744, so all of their channels are in scope.

Fix

FallbackOption+InterfaceConsts.xml: ContentsFileDescriptor and ParcelableWriteReturnValue summary and remarks had raw <c>#describeContents()</c> and <c>#writeToParcel</c> text. This is leftover {@link #describeContents()} / {@link #writeToParcel} from android.os.Parcelable (Parcelable.java:166, :103). They are now crefs to FallbackOption.DescribeContents and FallbackOption.WriteToParcel(Parcel, ParcelableWriteFlags) (FallbackOption.java:64, :69). This is the same change #1997 made in other Biometrics InterfaceConsts files.

The same raw text in the other four InterfaceConsts files and Builder#setDescription / Builder#addListItem text in PromptVerticalListContentView.xml and PromptContentViewWithMoreOptionsButton.xml is pre-AI (not changed since 86f7744), so it is not changed here.

Verified claims (not changed)

  • Version-dependent limits: android-15.0.0_r1 throws IllegalArgumentException for descriptions over 225 characters and for plain or bulleted items over 640 characters; 15.0.0_r2, r36, 16.0.0_r1 and 17.0.0_r1 only log a warning. The item-count check (size() > 20) throws in all versions, after the item is added (PromptVerticalListContentView.java:176-177, 191-192, 201).
  • MoreOptionsButtonListener can be null after unparceling: the parcel constructor reads only the description (PromptContentViewWithMoreOptionsButton.java:80), although the getter is annotated @NonNull.
  • Requires Manifest.permission.SET_BIOMETRIC_DIALOG_ADVANCED matches @RequiresPermission (PromptContentViewWithMoreOptionsButton.java:102, 153, 172).
  • FallbackOption icon type lists match the @IconType IntDef (BiometricManager.java:189-197).

Uncertain findings

None.

Note: FallbackOption iconType lists use Java names BiometricManager.ICON_TYPE_* because the managed parameter and property are int. This matches BiometricPrompt+Builder.xml (kept in #1997). It is not false, so it is not changed.

Checks

  • Changed XML parses; git diff --check is clean; no new To be added placeholders.
  • Crefs resolve to existing members and are not obsolete.
  • Rubber-duck review with gemini-4-argon: no meaningful issues.
  • No changes to index.xml, _filter.xml or FrameworksIndex.

…R133)

Replace raw #describeContents() and #writeToParcel text with crefs to
FallbackOption.DescribeContents and FallbackOption.WriteToParcel.

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

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 this documentation-only link cleanup.

No open issues 🎉

What changed in this PR

Corrects leftover Java-style link text in the Android Biometrics API documentation, following the approach used in #1997. These are documentation-only changes; runtime behavior is unchanged.

Changes:

  • Replaces raw #describeContents() text with links to FallbackOption.DescribeContents.
  • Replaces raw #writeToParcel text with links to the managed WriteToParcel overload in both summaries and remarks.
File Description
docs/​xml/​Android.Hardware.Biometrics/​FallbackOption+InterfaceConsts.xml Converts four raw method references into managed API documentation links.

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 at d5e5aeb. The four raw #describeContents()/#writeToParcel leftovers are now crefs that resolve exactly to FallbackOption.DescribeContents and FallbackOption.WriteToParcel(Parcel, ParcelableWriteFlags) DocIds, consistent with #1997. XML is well-formed and the base-side change (#2007) does not overlap. LGTM. Static review only.

@jonathanpeppers
jonathanpeppers merged commit bd62963 into main Nov 28, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-hardware-biometrics-docs-r133 branch November 28, 2026 20:39
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