Skip to content

Fix documentation errors in Android.App (R143, pass 3) - #2022

Open
jonathanpeppers wants to merge 2 commits into
mainfrom
jonathanpeppers-review-android-app-docs-r143-pass3
Open

jonathanpeppers wants to merge 2 commits into
mainfrom
jonathanpeppers-review-android-app-docs-r143-pass3

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 3fbe66dda038ad2a48b287b92274cfd1e4975b22

Dimension Assessment Rationale
Change confidence 9/10 ↑ Each of the 83 fixed channels has a pinned source line in the ledger.
↑ The changed XML parses, CRLF and BOM state are kept, and git diff --check is clean.
↑ A gemini-4-argon rubber-duck review found no errors.
↓ The mdoc/docs build was not run locally.

Scope

Pass-3 review item R143 covers 72 Android.App files (71 exist). I reviewed only text that changed after 86f7744. The ledger has 1684 AI-changed channels, with one personal row for each channel. Each row gives the current claim and a pinned source line. Pinned sources: Android source-37.2_r01, api-versions android-37.2, and dotnet/android@9bc18c75.

Ledger: C:\Users\jopepper\.copilot\session-state\28f9672a-bb76-40bb-9a50-766b2d344c94\files\ledger.jsonl (verdicts: 965 correct, 614 correct-verbatim, 23 correct-deferred, 82 fixed rows; 83 fixes, because two constructors each have two fixes in one row).

Fixes (33 files, 83 channels)

  1. transfer parameter, 12 constructors.
  2. AOSP attribution removed from 64 channels where AI added it to original managed text. The text before AI was "To be added." and no Android Javadoc supplies the new text.
    • 43 channels are type, enum, constructor and managed-member descriptions.
    • 21 channels are JniPeerMembers, ThresholdClass and ThresholdType remarks in Person, Person.Builder, PictureInPictureUiState, RecoverableSecurityException, ServiceStartNotAllowedException, StartForegroundCalledOnStoppedServiceException and StatusBarManager. These members are binding-runtime members marked [EditorBrowsable(Never)] (Object.cs:61-88, Throwable.cs:49-76).
    • The attribution stays where it was before AI, and on text copied from Javadoc.
  3. Raw Javadoc references changed to crefs (4).
    • StatusBarManager.ShowPowerMenuResultDisabled, ShowPowerMenuResultShowing and ShowPowerMenuResultUnknown: <c>#showPowerMenu</c> now links to ShowPowerMenu(IExecutor, IOutcomeReceiver) (StatusBarManager.java:1455-1458).
    • NotificationChannel.OriginalImportance remarks: <c>#getImportance()</c> now links to Importance (NotificationChannel.java:1100-1111).
  4. ImportanceCantSaveState summary. "legacy application mode" was added by AI and no pinned source supports it. The Javadoc describes "an application that can not save its state" (ActivityManager.java:4364-4370).
  5. PictureInPictureParams.OverlayActions value. The text said the getter returns "a new list". The getter returns the list that the Builder copied. It makes a new empty list only when no actions are set (PictureInPictureParams.java:214-216, 695-700).
  6. NotificationChannel.SetVibrationPattern vibrationPattern. The text "long" is now "long[]", which matches the System.Int64[] parameter (NotificationChannel.java:702).

Uncertain findings

None.

Out-of-scope notes (not changed)

  • The PictureInPictureParams.Actions value (line 93) also says "new list". AI did not change that channel.
  • NotificationManager.Cancel(int) and Cancel(String, int): AI reduced the id param text to "int". The old text had more information, and Java has no @param. The new text is not false, so I did not change it.
  • AI removed some prose from SetForeground. That removal did not make the text false.
  • NotificationManager.ShouldHideSilentStatusBarIcons: the raw <c>#IMPORTANCE_LOW</c> was in the text before AI changed it.

Checks

  • All 33 changed files parse as XML. CRLF line endings and BOM state are kept. git diff --check is clean.
  • All 200 reference hrefs that AI added point to an existing class and member in the pinned source. The one guide URL returns HTTP 200.
  • A gemini-4-argon rubber-duck review found no blocking issues.

jonathanpeppers and others added 2 commits November 28, 2026 16:35
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace raw member references with crefs, correct the CantSaveState summary, OverlayActions value and SetVibrationPattern parameter type, and remove AOSP attribution from managed-only binding remarks.

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

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 require further changes to the Android.App documentation cleanup.

No open issues 🎉

What changed in this PR

This documentation-only PR corrects Android.App API descriptions and attribution across 33 XML files. It continues the pass-3 cleanup, aligning JNI constructor wording with related fixes in #1941 and #1972 without changing runtime behavior.

Changes:

  • Clarifies JNI reference handling in 12 constructors, distinguishing object and exception behavior.
  • Removes AOSP attribution from managed-authored documentation.
  • Replaces raw Javadoc references with managed API links and corrects process-importance, overlay-action, and vibration-parameter descriptions.
File Description
docs/​xml/​Android.App/​StatusBarManager.xml Clarifies JNI handling, adds API links, and removes managed-text attribution.
docs/​xml/​Android.App/​StartForegroundCalledOnStoppedServiceException+InterfaceConsts.xml Removes attribution from the managed constants-container description.
docs/​xml/​Android.App/​StartForegroundCalledOnStoppedServiceException.xml Removes attribution from binding-runtime documentation.
docs/​xml/​Android.App/​SharedElementCallback.xml Clarifies JNI constructor reference handling.
docs/​xml/​Android.App/​ServiceStartNotAllowedException.xml Clarifies JNI reference release and removes managed-text attribution.
docs/​xml/​Android.App/​ServiceAttribute.xml Removes attribution from managed attribute documentation.
docs/​xml/​Android.App/​Service.xml Clarifies JNI constructor reference handling.
docs/​xml/​Android.App/​SemanticAction.xml Removes attribution from the managed enum description.
docs/​xml/​Android.App/​SearchManager.xml Clarifies JNI constructor reference handling.
docs/​xml/​Android.App/​RunningAppProcessInfoImportanceType.xml Corrects the cannot-save-state description and removes attribution.
docs/​xml/​Android.App/​RequiredContentUriPermission.xml Removes attribution from enum documentation.
docs/​xml/​Android.App/​RemoteInputSource.xml Removes attribution from the managed enum description.
docs/​xml/​Android.App/​RecoverableSecurityException+InterfaceConsts.xml Removes attribution from the managed constants-container description.
docs/​xml/​Android.App/​RecoverableSecurityException.xml Removes attribution from binding-runtime documentation.
docs/​xml/​Android.App/​PropertyAttribute.xml Removes attribution from managed manifest-property documentation.
docs/​xml/​Android.App/​ProgressDialog.xml Clarifies JNI constructor reference handling.
docs/​xml/​Android.App/​Presentation.xml Clarifies JNI constructor reference handling.
docs/​xml/​Android.App/​PolicyPrioritySendersType.xml Removes attribution from managed sender-category documentation.
docs/​xml/​Android.App/​PictureInPictureUiState+InterfaceConsts.xml Removes attribution from the managed constants-container description.
docs/​xml/​Android.App/​PictureInPictureUiState.xml Removes attribution from binding-runtime documentation.
docs/​xml/​Android.App/​PictureInPictureParams+Builder.xml Clarifies JNI constructor reference handling.
docs/​xml/​Android.App/​PictureInPictureParams.xml Corrects overlay-action return wording and removes managed-text attribution.
docs/​xml/​Android.App/​Person+InterfaceConsts.xml Removes attribution from the managed constants-container description.
docs/​xml/​Android.App/​Person+Builder.xml Clarifies JNI handling and removes managed-text attribution.
docs/​xml/​Android.App/​Person.xml Removes attribution from binding-runtime and managed-name documentation.
docs/​xml/​Android.App/​PendingIntent+CanceledException.xml Clarifies JNI reference release for the exception constructor.
docs/​xml/​Android.App/​OverrideTransition.xml Removes attribution from the managed enum description.
docs/​xml/​Android.App/​NotificationManager+Policy.xml Clarifies JNI constructor reference handling.
docs/​xml/​Android.App/​NotificationManager.xml Clarifies JNI constructor reference handling.
docs/​xml/​Android.App/​NotificationForegroundService.xml Removes attribution from the managed enum description.
docs/​xml/​Android.App/​NotificationChannel.xml Links to Importance and corrects the vibration parameter’s array notation.
docs/​xml/​Android.App/​NotificationCallType.xml Removes attribution from the managed enum description.
docs/​xml/​Android.App/​NotificationBubblePreference.xml Removes attribution from the managed enum description.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto

Copy link
Copy Markdown
Member

In response to @jonathanpeppers's request: Reviewer coverage gap, not a defect in this PR: all 33 changed files and all 64 attribution removals are reviewed, and both new cref targets resolve. I still need the exact PictureInPictureParams.java source-37.2_r01 contract at lines 214-216 and 695-700 to verify the OverlayActions value text. That SDK source revision has not yet been mapped to a fixed public source copy; no GitHub API request failed. This specific source check remains queued before a final approval.

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