Skip to content

Fix Android.Hardware.Input documentation errors (R140, pass 2) - #1826

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-hardware-input-docs-r140
Nov 25, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-hardware-input-docs-r140

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: bb87d3375132bfb23c063a4a34c2f8442b227c42

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ The change preserves both documented flag values and matches the inspected implementations.
↑ An independent Gemini review found no blocking issue.
↓ The API 37.2 source archive is r01; the binding uses r02.
Diagnosis confidence 9/10 ↑ Android 14–17 source writes only the two version fields and does not read the flags.
Evidence fit 9/10 ↑ The previous parameter description said the flags control how this object is written.

Scope

Review item R140: 16 assigned files in Android.Hardware.Input, with 188 changed documentation blocks inventoried against the pre-AI baseline. Excluded boilerplate was not reviewed for correctness. One documentation error was corrected.

Correction and evidence

HostUsiVersion.WriteToParcel accepts parceling flags but the Android 14–17 implementations do not use them. Retain the flag choices without claiming they control this object's serialization. See the Android 14, 15, 16, and 17 implementations. The official SDK source-37.2_r01.zip has the same implementation (SHA-256 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84).

Uncertain finding

InputManager.AddPeripheralCustomization says it remaps a key, while ButtonCustomizationTrigger also exists. The SDK Javadoc uses the same key wording; the server implementation for that API was not available in the pinned source snapshot, so the text was not changed.

Checks

  • Parsed all 16 scoped XML files and found no placeholders.
  • Compared 118 field descriptions with their registered source declarations; all matched.
  • Confirmed the only changed bytes are the intended documentation span; API metadata is unchanged.
  • git diff --check passed.
  • Independent gemini-4-argon review found no blocking issue; local usage events confirm the selected model.

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

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

No active review issues are recorded for the documentation-only correction to the parceling flags description.

No open issues 🎉

What changed in this PR

This documentation-only PR corrects the HostUsiVersion.WriteToParcel parameter description in the Android input API reference.

Changes:

  • Clarifies that HostUsiVersion ignores the parceling flags on Android 14–17.
  • Preserves the None and ReturnValue enum references without changing API metadata.
File Description
docs/​xml/​Android.Hardware.Input/​HostUsiVersion.xml Corrects the flags description to reflect this type’s serialization behavior.

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.

Approving. HostUsiVersion.WriteToParcel ignores flags in the inspected AOSP Android 14, 15, 16 and 17 r1 implementations: it writes only the major and minor version integers. The Java class is final and the managed type sealed; the existing None and ReturnValue references still resolve. This one-line documentation correction changes no API metadata.

@jonathanpeppers
jonathanpeppers merged commit ff2cc3f into main Nov 25, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-hardware-input-docs-r140 branch November 25, 2026 04:12
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