Repository navigation
Fix documentation errors in Android.App.PrivateCompute (R105, pass 3) - #1983
Merged
jonathanpeppers merged 2 commits intoNov 28, 2026
Merged
Conversation
Correct the transfer parameter text, replace raw Javadoc member links with crefs, and remove an orphan generic parameter tag. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…rvice.OnBind DataMigrationToPccService.java:66-67 (source-37.2_r01) reads intent.getAction() without a null check, so the managed Intent? parameter does not return null. 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 identified for the documentation-only PrivateCompute API reference corrections.
No open issues 🎉
What changed in this PR
This documentation-only follow-up corrects Android.App.PrivateCompute API reference text to better match the managed bindings and Android behavior. No API signatures or runtime code change.
Changes:
- Clarify JNI reference handling in five constructor parameter descriptions.
- Replace raw Javadoc targets with managed
IParcelablelinks in four constant containers. - Remove an invalid type-parameter tag and document
OnBindbehavior for a null intent.
| File | Description |
|---|---|
| docs/xml/Android.App.PrivateCompute/PccClient.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App.PrivateCompute/MigrationRequestResult+InterfaceConsts.xml | Fixes parcelable method links. |
| docs/xml/Android.App.PrivateCompute/EgressResponse+InterfaceConsts.xml | Fixes parcelable method links. |
| docs/xml/Android.App.PrivateCompute/EgressResponse.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App.PrivateCompute/EgressRequest+InterfaceConsts.xml | Fixes parcelable method links. |
| docs/xml/Android.App.PrivateCompute/EgressRequest.xml | Removes an invalid parameter tag and clarifies JNI reference handling. |
| docs/xml/Android.App.PrivateCompute/EgressReceiverService.xml | Clarifies JNI reference handling. |
| docs/xml/Android.App.PrivateCompute/DataMigrationToPccService.xml | Clarifies JNI reference handling and null-intent behavior. |
| docs/xml/Android.App.PrivateCompute/AssistantQueryRequest+Query+InterfaceConsts.xml | Fixes parcelable method links. |
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.
The constructor ownership wording matches the JNI reference-transfer behavior, the IParcelable links resolve to the managed members, and the OnBind null-intent behavior matches the pinned Android 37.2 sources. No blocking issues found in the complete static review.
jonathanpeppers
deleted the
jonathanpeppers-review-app-privatecompute-docs-r105
branch
November 28, 2026 14: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:
0f6d89efa46bd8714ea24093146dc0ffd9009ccd↑ All changed XML files parse and
git diff --checkis clean.↑ A gemini-4-argon rubber-duck review found no problems in the XML changes.
↓ The OpenPublishing.Build check has not completed yet.
Scope
Pass-3 review of the 20 files in item R105 (
Android.App.PrivateCompute, 19 type files andns-Android.App.PrivateCompute.xml). The AI-authored text came from #1608 (pass 1) and #1794 (pass 2). I reviewed all 372 in-scope channels against the pinned Androidsource-37.2_r01Java sources and dotnet/android@9bc18c75. ThePccEgressException*andPccServicefiles are not in this item.Fixes
transferparam on(IntPtr, JniHandleOwnership)constructors (DataMigrationToPccService, EgressReceiverService, EgressRequest, EgressResponse, PccClient). The old text said ownership of the JNI reference transfers to the instance. That is wrong forJava.Lang.Object-derived types.SetHandlemakes its own peer reference, then callsJNIEnv.DeleteRef(value, transfer)(dotnet/android@9bc18c75Object.cs:110-118,JNIEnv.cs:360-393). Sotransfercontrols the release of the incoming reference and peer registration. The new text uses the same wording as Fix documentation errors in Android.App.PermissionUI (R060, pass 3) #1941.<c>#describeContents()</c>and<c>#writeToParcel</c>were raw{@link}targets (Parcelable.java:103, 166). They are now crefs toIParcelable.DescribeContentsandIParcelable.WriteToParcel, as in Fix Android Security documentation errors (R032, pass 3) #1916 and Fix Wi-Fi Aware and Hotspot2 documentation (R079, pass 3) #1961.EgressRequesttype is not generic, but the docs had a<param name="<R><R>">tag. I removed it (precedent: Fix Java.Util documentation errors (R059, pass 3) #1940 and Fix Android.Animation documentation errors (R155, pass 2) #1845).DataMigrationToPccService.OnBind(Intent?)returns text. The method isoverride sealedand the managed parameter is nullable. ButDataMigrationToPccService.java:67callsintent.getAction()with no null check. The returns text now says that a null intent causes aNullPointerException. (CompareEgressReceiverService.java:135, which returns null for a null intent.)Uncertain findings (no change)
DataMigrationToPccService.java:33-35). This is an omission, not an error.AssistantQueryRequest.Query.Builderconstructor docs do not include theUnderstandRequest/sessionIdparagraph (AssistantQueryRequest.java:145-146). This is an omission, not an error.Bundlevalue givesIllegalArgumentException, and an interrupted wait inPccClientgivesRuntimeException(PccClient.java:125). The current docs do not state these cases, but they do not state anything wrong.Checks
git diff --checkis clean.