Repository navigation
Fix Android.Hardware.Input documentation errors (R140, pass 2) - #1826
Merged
jonathanpeppers merged 1 commit intoNov 25, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 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
HostUsiVersionignores the parceling flags on Android 14–17. - Preserves the
NoneandReturnValueenum 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
Member
Author
|
@dalexsoto review |
dalexsoto
approved these changes
Nov 25, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
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
deleted the
jonathanpeppers-review-hardware-input-docs-r140
branch
November 25, 2026 04:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
bb87d3375132bfb23c063a4a34c2f8442b227c42↑ An independent Gemini review found no blocking issue.
↓ The API 37.2 source archive is r01; the binding uses r02.
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.WriteToParcelaccepts 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 SDKsource-37.2_r01.ziphas the same implementation (SHA-2569d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84).Uncertain finding
InputManager.AddPeripheralCustomizationsays it remaps a key, whileButtonCustomizationTriggeralso 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
git diff --checkpassed.gemini-4-argonreview found no blocking issue; local usage events confirm the selected model.