Repository navigation
Fix documentation errors in Android.App.PrivateCompute (R137, pass 2) - #1823
Merged
jonathanpeppers merged 1 commit intoNov 25, 2026
Merged
Conversation
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-only update to the EgressData exception contracts.
No open issues 🎉
What changed in this PR
This documentation-only update fills in missing exception contracts for PccSandboxManager.EgressData in the Android Private Compute bindings.
Changes:
- Documents security, invalid-request, and system-state exceptions.
- Documents null-argument failures for
request,executor, andcallback.
| File | Description |
|---|---|
| docs/xml/Android.App.PrivateCompute/PccSandboxManager.xml | Adds four exception entries to EgressData documentation. |
Review effort: Balanced
Member
Author
|
@dalexsoto review |
dalexsoto
approved these changes
Nov 25, 2026
dalexsoto
left a comment
Member
There was a problem hiding this comment.
Approving. The four EgressData exception entries match the official Android 37.2 reference; all exception references and parameter names resolve against the managed signature. The change only adds documentation. Documenting the official contract while explicitly retaining the disclosed oneway-delivery uncertainty is reasonable.
jonathanpeppers
deleted the
jonathanpeppers-review-privatecompute-docs-r137
branch
November 25, 2026 04:11
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:
6c29bb8811b6534c1543fabd60920ceb2a33a607@throwsand the current Android reference.↑
NullPointerExceptionis proven byObjects.requireNonNullbefore the binder call.↓ The server side of
egressDatais not public, so the delivery path of the other three exceptions is not verified.Scope
Pass 2 documentation review for R137 (
Android.App.PrivateCompute). Only the 7 assigned files:PccEgressException(+InterfaceConsts, +SensitiveCategoryInfo, +SensitiveCategoryInfo+InterfaceConsts),PccEgressExceptionStatusError,PccSandboxManager,PccService. All 7 files were created after 86f7744, so every Docs block is AI-authored. I reviewed 64 Docs blocks (7 type, 57 member); 14 are binding boilerplate that is out of scope.Fix
PccSandboxManager.EgressDatanow documentsSecurityException,IllegalArgumentException,IllegalStateExceptionandNullPointerException.Evidence: Android SDK source archive, SHA-256
9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84,src/android/app/privatecompute/PccSandboxManager.java:311-317(@throwslist) and:324-326(Objects.requireNonNullforrequest,executor,callbackbefore the binder call). The current Android reference lists the same four exceptions. The exception text follows the official text.Uncertain findings (not changed)
EgressDataSecurityException,IllegalArgumentException,IllegalStateException: the android-17.0.0_r1IPccSandboxManager.aidlhas noegressData, and no newer public source exists. If the binder method isoneway, these exceptions may not reach the caller (compare theRuntimeExceptionwrap found in Fix documentation errors in Android.App.PrivateCompute (R105, pass 2) #1794). I kept the official contract.PccEgressException(PccEgressExceptionStatusError)andPccEgressException(PccEgressExceptionStatusError, string): the summary and parameter text are verbatim from the Android reference, but the blocks have no Android reference link or attribution paragraph. The two sibling constructors have them. No pass-2 precedent adds attribution, so I did not change this.<c>StatusCode</c>(hidden@IntDef; the managed type isPccEgressExceptionStatusError),<c>SensitiveCategory</c>(hidden@LongDef) inApplicableCategories, and<c>#FLAG_CATEGORY_HEALTH</c>inIsCategoryDetected(managedFlagCategoryHealth). This is official reference text and it is not false.Checks
git diff --checkpassed; the diff is 4 inserted lines with CRLF endings kept.creftargets exist indocs/xml/Java.Lang.gemini-4-argonfound no issues. I verified the model in the localassistant_usage_eventslog (rows 297385, 297390, 297403).