Repository navigation
Fix documentation errors in Android.App.AppFunctions (R141, pass 3) - #2020
Merged
jonathanpeppers merged 1 commit intoNov 28, 2026
Merged
jonathanpeppers merged 1 commit into
jonathanpeppers merged 1 commit into
Conversation
Replace raw Javadoc link text with crefs and correct the AppFunctionUriGrant.ModeFlags value range. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block approval of this documentation-only change.
No open issues 🎉
What changed in this PR
This documentation-only PR continues the AppFunctions cleanup, improving navigation to managed APIs and correcting the documented URI permission flags. It makes no runtime code changes.
Changes:
- Replaces raw Java member references with managed API
creflinks. - Corrects
AppFunctionUriGrant.ModeFlagsdocumentation to require read permission, write permission, or both.
| File | Description |
|---|---|
| docs/xml/Android.App.AppFunctions/RegisterAppFunctionRequest.xml | Links to the batch registration method. |
| docs/xml/Android.App.AppFunctions/IAppFunctionRegistration.xml | Links registration and unregistration summaries to the registration method. |
| docs/xml/Android.App.AppFunctions/IAppFunctionObserver.xml | Links to the observation method. |
| docs/xml/Android.App.AppFunctions/IAppFunctionObservation.xml | Links observation lifecycle summaries to the observation method. |
| docs/xml/Android.App.AppFunctions/IAppFunction.xml | Links to registration and execution methods. |
| docs/xml/Android.App.AppFunctions/ExecuteAppFunctionResponse.xml | Links to execution, result document, and extras APIs. |
| docs/xml/Android.App.AppFunctions/ExecuteAppFunctionRequest+Builder.xml | Links constructor parameters to the metadata name property. |
| docs/xml/Android.App.AppFunctions/ExecuteAppFunctionRequest.xml | Links to the execution method. |
| docs/xml/Android.App.AppFunctions/AppFunctionUriGrant+InterfaceConsts.xml | Links parcelable constants to interface methods. |
| docs/xml/Android.App.AppFunctions/AppFunctionUriGrant.xml | Links to execution and corrects the valid permission flag range. |
| docs/xml/Android.App.AppFunctions/AppFunctionState+InterfaceConsts.xml | Links parcelable constants to interface methods. |
| docs/xml/Android.App.AppFunctions/AppFunctionState.xml | Links to the runtime state query method. |
Review effort: Balanced
Member
Author
|
@dalexsoto review |
dalexsoto
approved these changes
Nov 28, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
Reviewed all 12 changed documentation files, cref targets and overloads, and the URI-grant mode contract against the Android implementation. No blocking issues found in the static review.
jonathanpeppers
deleted the
jonathanpeppers-review-app-appfunctions-docs-r141-pass-3
branch
November 28, 2026 22:38
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:
225193aba2bdc57a3ba2e0f01dc5be0522600945git diff --checkis clean.↑ All new cref DocIds exist and none is obsolete.
↑ gemini-4-argon review found no issues.
↓ The docs build (OpenPublishing.Build) has not run yet.
#memberlink text is visible in the diff.↑ The AppFunctionUriGrant constructor rejects a mode of 0 (AppFunctionUriGrant.java:108-115).
Scope
Pass-3 review item R141: 14 files in
docs/xml/Android.App.AppFunctions(AppFunctionState, AppFunctionUriGrant, ExecuteAppFunctionRequest and its Builder, ExecuteAppFunctionResponse, RegisterAppFunctionRequest, IAppFunction, IAppFunctionObservation, IAppFunctionObserver, IAppFunctionRegistration, and the InterfaceConsts files). I reviewed 236 AI-changed channels (86f7744..main). 174 channels have a personal ledger row with a numeric pinned source line. The other 62 channels are deferred ThresholdClass/ThresholdType/JniPeerMembers/UnregisterFromRuntime boilerplate. Pinned source: source-37.2_r01 (SHA256 9d637c3a…4e84). For the Attribution claim, I also used frameworks/baseandroid-17.0.0_r1.Fixes
1. Raw Java link text replaced with crefs (25 lines)
AI-changed text kept Javadoc
{@link Class#member}targets as<c>Class#member</c>. Each is now a<see cref>to the matching .NET member:#describeContents()/#writeToParcel→IParcelable.DescribeContents/IParcelable.WriteToParcel(State and UriGrant InterfaceConsts, 4 lines; Parcelable.java:103, :166)AppFunctionManager#getAppFunctionStates→AppFunctionManager.GetAppFunctionStates(AppFunctionState.java:30-31)AppFunctionManager#executeAppFunction→AppFunctionManager.ExecuteAppFunction4-arg overload (UriGrant, Request, Response, IAppFunction.OnExecuteFunction; same choice as Fix documentation errors in Android.App.AppFunctions (R108, pass 3) #1986)ExecuteAppFunctionResponse#getResultDocument/#getExtras→ResultDocument/Extrasproperties (constructor params and PropertyReturnValue; ExecuteAppFunctionResponse.java:61-63, 91-120)AppFunctionMetadata#getName→AppFunctionMetadata.Name(Builder ctors; ExecuteAppFunctionRequest.java:238-252)AppFunctionManager#registerAppFunction/#registerAppFunctions/#observeAppFunctions→ the matching AppFunctionManager methods (AppFunction.java:24, AppFunctionRegistration.java:20, :31, AppFunctionObservation.java:19, :26, AppFunctionObserver.java:24, RegisterAppFunctionRequest.java:24)2. AppFunctionUriGrant.ModeFlags value range
The old
<value>said "Value is either 0 or a combination of …". The value can never be 0. The constructor throwsIllegalArgumentExceptionunlessIntent.isAccessUriMode(modeFlags)(AppFunctionUriGrant.java:108-115).isAccessUriModerequires the READ or WRITE bit (Intent.java:7223-7225).CREATORalso uses this constructor (AppFunctionUriGrant.java:71). The new text says that the value always includesGrantReadUriPermission,GrantWriteUriPermission, or both, and can also includeGrantPrefixUriPermissionandGrantPersistableUriPermission. This matches the constructor@param modeFlagstext (AppFunctionUriGrant.java:103-106).Uncertain findings (not changed)
Service.stopForeground(boolean). The source (AppFunctionRegistration.java:23-24) linksService#stopForegroundwith no overload. The boolean overload is deprecated. The text is imported rendering, so I did not change it.#memberspans in channels that the AI did not change (Request/Response InterfaceConsts, Request.xml lines 49 and 52, and Response.xml lines 49, 52, 387, 390, 392 and 434). They are out of scope, so I did not change them.Checks
git diff --checkis clean. The changes add no "To be added" text.transferparams, no obsolete crefs and no implementation-source citations.assistant_usage_eventstable shows modelgemini-4-argon, agent 81cafc32-2eef-4768-aa41-00bb1618d813, rows 353674-353692 (2026-11-28T21:49-21:50Z).