Skip to content

Import verified Android.Service.Chooser documentation - #812

Open
jonathanpeppers wants to merge 3 commits into
mainfrom
jonathanpeppers-import-chooser-documentation
Open

jonathanpeppers wants to merge 3 commits into
mainfrom
jonathanpeppers-import-chooser-documentation

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Tracks #175

Imports 46 substantive documentation channels from exact official Android reference matches across 10 Chooser XML files, plus one metadata-only placeholder removal. Whole direct-Docs placeholders, including the namespace overview, decrease from 193 to 146. Existing authored documentation, JNI/API metadata, availability, nullability, attribution, references, and byte conventions are preserved.

Adds an exact source-and-binding guard for ChooserSession.removeStateListener(StateListener), whose current official description incorrectly names UpdateListener. That ambiguous mapping remains unchanged; no replacement prose is inferred. Regression coverage exercises production first fills, atomic budgets, corrected/removed source eligibility, prior importer-owned Docs, raw authored/mixed layouts, and provenance/binding negatives. ChooserTargetService.OnBind was separately verified against the pinned implementation; its legitimate nullable-binder contract is retained.

The full ordinary unfiltered importer self-test passes on commit 244754e25c5273699292053b8fa330e12fc16d4d. A new empty-cache online/offline pair matches losslessly except transport counters; all 58 declared detail sections and the additional contract sections match the initial audited sources. The real bounded offline repeat applies zero changes/files/errors, with the entire tracked physical inventory unchanged. The cumulative binary inverse recovers the entire current-main tree 6ad22ca3954fcb37376b1a11270cd3f7227a9d7e exactly. The full documentation publisher was not run locally.

Guard the exact stale removeStateListener source description and preserve authored contracts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 1, 2026 23:41
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) October 1, 2026 23:42

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.

Copilot review overview

🟢 Approval recommended

The imports follow established conventions, preserve unresolved channels, and include comprehensive regression coverage for the new safety guard.

Review effort: Balanced
Findings: None

What changed in this PR

Imports verified Android reference documentation for Android.Service.Chooser while safely excluding a known incorrect listener description.

Changes:

  • Replaces 47 documentation placeholders across 10 API XML files.
  • Adds an exact binding/source guard for stale RemoveStateListener prose.
  • Adds fixture-based importer regression coverage and guidance.
File Description
tools/​importer.md Documents the Chooser safety guard.
tools/​importer.cs Implements and tests the guarded mapping.
tools/​importer-fixtures/​chooser-listener.xml Adds the managed binding fixture.
tools/​importer-fixtures/​chooser-listener.html Adds the stale-source fixture.
ChooserTargetService.xml Documents OnBind.
ChooserTarget.xml Documents construction and parceling.
ChooserSessionToken.xml Documents parceling members.
ChooserSessionState.xml Documents session-state values.
ChooserSession+IStateListener.xml Documents the state parameter.
ChooserSession.xml Adds listener guidance and metadata.
ChooserResultValue.xml Documents chooser-result values.
ChooserResult.xml Documents parceling members.
ChooserAction+Builder.xml Documents builder construction.
ChooserAction.xml Documents parceling members.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

jonathanpeppers and others added 2 commits October 2, 2026 04:03
Preserve complete Chooser, Browse, Controls, TV and independent source/test/fixture contracts. Validate the exact resolved tree with the authorized complete private ordinary snapshot.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Retain all independent source, guide, fixture and regression bodies; qualify the exact resolved tree with its complete authorized private ordinary suite.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

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.

2 participants