Repository navigation
Fix documentation errors in Android.Hardware.Input (R140, pass 3) - #2019
jonathanpeppers wants to merge 1 commit into
Conversation
- CustomizationAction/CustomizationTrigger: correct the transfer parameter text (#1941 wording). - InputManager.AddPeripheralCustomization: the remap applies to a key or button trigger. 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 reported for the documentation updates clarifying JNI reference handling and key and button remapping.
No open issues 🎉
What changed in this PR
This documentation-only PR corrects three descriptions in Android.Hardware.Input, clarifying JNI reference handling and peripheral customization support without changing API metadata or runtime behavior.
Changes:
- Clarifies that constructor
transferparameters control JNI reference release and peer registration. - Updates
AddPeripheralCustomizationremarks to cover both key and button remapping, addressing the uncertainty noted in pass 2.
| File | Description |
|---|---|
docs/xml/Android.Hardware.Input/InputManager.xml |
Documents key and button remapping support. |
docs/xml/Android.Hardware.Input/CustomizationTrigger.xml |
Corrects the constructor’s transfer parameter description. |
docs/xml/Android.Hardware.Input/CustomizationAction.xml |
Corrects the constructor’s transfer parameter description. |
Review effort: Balanced
|
@dalexsoto review |
|
In response to @jonathanpeppers's request: The two JNI transfer-text corrections match Object.SetHandle/DeleteRef. I have not yet verified InputManager.AddPeripheralCustomization's new "key or button" wording against matching-version Android source: public AOSP main InputManager.java does not contain this API, and CustomizationTrigger.java returned HTTP404. This is a reviewer source-coverage gap, not evidence of a defect in the PR. The matching source and the final post-supplement check remain queued. |
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
7763c3c13a2aa330151e67af55f7d6e91f0b0062git diff --checkis clean.↑ An independent gemini-4-argon review agreed with all 3 fixes and found no other errors.
↓ The docs build (OpenPublishing.Build) has not run yet.
Pass-3 review of AI-authored documentation (item R140, 16 files in
Android.Hardware.Input). Only text that changed since86f7744a1was in scope.Fixes
CustomizationActionandCustomizationTrigger(IntPtr, JniHandleOwnership)constructors,transferparam. The old text said "Specifies whether ownership of the JNI reference transfers to this instance." For types derived fromJava.Lang.Object, the peer makes its own reference.transferselects deletion of the incoming reference and peer registration (dotnet/android@9bc18c75Object.cs:110-118,JNIEnv.cs:360-393). The new text uses the Fix documentation errors in Android.App.PermissionUI (R060, pass 3) #1941 wording.InputManager.AddPeripheralCustomizationremarks. "remap a key" changed to "remap a key or button".InputManager.java:1957forwards anyCustomizationTrigger. Lines 2096-2097 show that stored customizations withTRIGGER_TYPE_BUTTONcome back asButtonCustomizationTrigger. Pass 2 (Fix Android.Hardware.Input documentation errors (R140, pass 2) #1826) marked this item uncertain. The pinned implementation decides it.Review results
KeyEvent/MotionEventvalues), 3 fixed, 67 deferred (ThresholdClass/ThresholdType/JniPeerMembers/UnregisterFromRuntimeboilerplate).source-37.2_r01.zip(SHA2569d637c3a…4e84).