Skip to content

Fix Android resource documentation errors (R004, pass 3) - #1891

Open
jonathanpeppers wants to merge 2 commits into
mainfrom
jonathanpeppers-review-android-r004-pass3
Open

jonathanpeppers wants to merge 2 commits into
mainfrom
jonathanpeppers-review-android-r004-pass3

Conversation

@jonathanpeppers

@jonathanpeppers jonathanpeppers commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: d22c57df50712799de309f13ba273f3ad5a6f850

Dimension Assessment Rationale
Change confidence 8/10 ↑ Checked each qualified style against its preceding and first sampled release, later snapshots, and both API 37.2 platform revisions.
↑ Parsed all scoped XML files and checked bytes outside the corrected summaries.
↓ Some early SDK revisions and intermediate releases were unavailable or not sampled; device overlays were not exhaustively tested.
Diagnosis confidence 9/10 ↑ Older platform resources and, where needed, widget implementation code contradict the unqualified descriptions.
Evidence fit Unknown ↓ No user-reported runtime symptom or reproduction was provided.

Changes

The third-pass inventory contains 1,948 AI-changed documentation blocks across 22 Android resource files since 86f7744a1. This PR corrects 210 summaries in two files: 204 version-qualified style descriptions, two other style descriptions, and four drawable descriptions.

  • Qualify style descriptions where settings or behavior changed across releases. Device-default styles used Holo settings on Android 4.4.4, while later settings appear in Android 5.0, Android 9, and Android 10. Earlier widget and text-appearance differences are in the Android 3.x SDK archives below and in tagged Android 4.0.1, 4.0.3, and 4.2 resources. The scroll-view touch-focus setting is absent in Android 7.1.1 and present in Android 7.1.2 r1. The ranges end at the inspected API 37.2 resources.
  • Describe WidgetAutoCompleteTextView drop-down resources as platform resources rather than themed resources. Describe WidgetDatePicker by its spinner controls rather than claiming that the older styles set a spinner-mode attribute.
  • Qualify four drawable descriptions: the 24dp power vector starts by Android 7.1; the white 18dp mute and speakerphone vectors start by Android 6.0; and the adaptive default application icon starts by Android 8.0. Older resources are bitmaps.

The Android 3.0 r02 SDK has SHA-256 1cacae7b6e1b5a5d73c06f5d29d2ea92d16674df8fd5507681290e77d1647a1c; 3.1 r03 has 7570c86a86488a146aa2141a65a24d81800959c1907ff4f1d2c13bbafab230c5; 3.2 r01 has ff6b26ad34d7060a72ba504b0314cef8ba3138005561705adec5ad470a073d9b. The API 37.2 r01 platform archive has SHA-256 916410633df92a98da56aa7c87a1955f865f4d3b888373660794ef8173f72972; the r02 platform archive has 17af98ec1427a1fed9ea278184aba71e53b87eca103655602f9fc64ef11ea4d3. The r01 source archive has 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84.

Uncertain findings

  • IcInputGet: the bitmap could show a clipboard, but the object is not definitive.
  • StatNotifyMissedCall: the bitmap could be described as a chevron or a bent arrow; the distinction is subjective.

Checks and limits

  • Rechecked pass-2 #1696: its fixes are correct; the two drawable interpretations above remain uncertain.
  • Inspected all 1,948 inventoried blocks using script-prepared comparisons, source extracts, and drawable contact sheets. The 1,088 resource-name matches were also checked automatically against API 37.2. This was not 1,948 independent raw-source lookups. The earlier inspection did not establish early-version correctness for every block; an additional early-release style comparison was performed before this update.
  • For each of the 204 qualified styles, checked the preceding and first claimed sampled snapshots and later sampled releases; the relevant fields match in API 37.2 platform r01 and r02. Checked inheritance and runtime defaults where needed, including Android 4.2 progress-bar mirroring. This does not cover every patch release or device overlay. The Android 3.0 r01 and 3.1 r01 SDK archives and initial Android 4.0/4.1 tags or SDK archives were unavailable; the earliest checked snapshots are 3.0 r02, 3.1 r03, 4.0.1 r1, and 4.1.1 r1 respectively.
  • Parsed all 22 scoped XML files; placeholder count stayed at zero. Confirmed no changes outside 210 summary spans, accounting for checkout newline conversion.
  • git diff --check passed.
  • A fresh Gemini 4 Argon review of the final diff found no blocking issues.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 25, 2026 12:50
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 25, 2026 12:51

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.

🔵 Needs a closer look

The release boundaries across 167 resource summaries require human verification because the pinned historical Android sources and API 37.2 archives were unavailable for independent inspection.

No open issues 🎉

What changed in this PR

This documentation-only PR corrects 167 Android resource summaries by qualifying implementation details with the Android releases where they apply, avoiding claims that newer resource settings also describe older platforms.

Changes:

  • Add release ranges to 163 style summaries covering device-default, media-button, and widget settings.
  • Qualify four drawable summaries to distinguish newer vector and adaptive icons from older bitmap resources.
  • Limit the descriptions to base platform resources through API level 37.2.
File Description
docs/​xml/​Android/​Resource+Style.xml Adds release-specific qualifications to style settings and inheritance descriptions.
docs/​xml/​Android/​Resource+Drawable.xml Clarifies release ranges for power, mute, speakerphone, and default application icon formats.

Review effort: Balanced

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

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.

🔵 Needs a closer look

The 204 historical style ranges require human verification against archived SDK/AOSP snapshots that were unavailable for independent comparison.

No open issues 🎉

Review effort: Balanced

@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