Repository navigation
Fix documentation errors in Android.App (R143, pass 3) - #2022
jonathanpeppers wants to merge 2 commits into
Conversation
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>
There was a problem hiding this comment.
🟢 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
|
@dalexsoto review |
|
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. |
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
3fbe66dda038ad2a48b287b92274cfd1e4975b22↑ The changed XML parses, CRLF and BOM state are kept, and
git diff --checkis 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-versionsandroid-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)
transferparameter, 12 constructors.transferselects whether the incoming reference is deleted and whether the peer is registered (Object.cs:110-118, JNIEnv.cs:360-393). The wording is the same as Fix documentation errors in Android.App.PermissionUI (R060, pass 3) #1941.PendingIntent.CanceledExceptionandServiceStartNotAllowedExceptionare Throwable-derived. They use the release-only wording (Throwable.cs:99-110), the same as Fix documentation errors in Android.Health.Connect (R093, pass 3) #1972.JniPeerMembers,ThresholdClassandThresholdTyperemarks 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).StatusBarManager.ShowPowerMenuResultDisabled,ShowPowerMenuResultShowingandShowPowerMenuResultUnknown:<c>#showPowerMenu</c>now links toShowPowerMenu(IExecutor, IOutcomeReceiver)(StatusBarManager.java:1455-1458).NotificationChannel.OriginalImportanceremarks:<c>#getImportance()</c>now links toImportance(NotificationChannel.java:1100-1111).ImportanceCantSaveStatesummary. "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).PictureInPictureParams.OverlayActionsvalue. 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).NotificationChannel.SetVibrationPatternvibrationPattern. The text "long" is now "long[]", which matches theSystem.Int64[]parameter (NotificationChannel.java:702).Uncertain findings
None.
Out-of-scope notes (not changed)
PictureInPictureParams.Actionsvalue (line 93) also says "new list". AI did not change that channel.NotificationManager.Cancel(int)andCancel(String, int): AI reduced theidparam 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.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
git diff --checkis clean.