Skip to content

Fix camera, display, and fingerprint documentation (R062, pass 3) - #1944

Merged
jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-camera2-display-fingerprint
Nov 27, 2026
Merged

jonathanpeppers merged 1 commit into
mainfrom
jonathanpeppers-review-camera2-display-fingerprint

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 60e60528f171b17fe5c5df9f52f55ae47dd2f317

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Reviewed the substantive changes against pinned sources and obtained a second Gemini review.
↑ XML, link, scope and byte-preservation checks passed.
↓ The available SDK source archive is r01, not r02.

Scope

Third-pass review of 68 files in Android.Hardware.Camera2.Params, Android.Hardware.Display, and Android.Hardware.Fingerprints. This changes 48 documentation channels in 19 files.

Rechecked pass-2 #1750: the snapshot active-array correction matches Android CTS. Its uncertain face-landmark nullability is resolved by the setter and build() implementation: the setters accept null, and build() validates the combination.

Corrections and evidence

The current Android source references below are from SDK source 37.2 r01, SHA-256 9d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84. The bindings use r02; r01 was not used to override contradictory r02 binding facts.

  • Correct face ID and nullable landmark descriptions, and link the managed score bounds. Face.java:160-179,282-294,395-416,433-496.
  • Clarify when session-wide parameters are ignored, correct the callback type and main executor, and document the packed color value used as a tone-map channel index. ExtensionSessionConfiguration.java:176-211, SessionConfiguration.java:417-432, TonemapCurve.java:70-78,231-242, and managed Color marshaling.
  • Correct output format, deferred output update, and parcelled usage descriptions. OutputConfiguration.java:626-630,853-936,1714-1730,1816-1830 and CameraDeviceImpl.java:1267-1358,1508-1553.
  • Correct product manufacture and model-year ranges, distinguish constructor behavior from builder validation, and avoid restricting the stored video input to named constants. Link the managed parcel methods. DeviceProductInfo.java:126-136,215-256,305-315,424-430,587-590 and Parcelable.java:102-110,166-183.
  • Correct virtual-display name and surface version boundaries, resize validation, and the surface value retained after release. Compare Android 4.4, Android 10, and Android 11, with the pinned API-20 platform API and VirtualDisplay.java:43-60,76-81,103-107.
  • Correct dim-brightness defaults and refresh-rate rounding, including requests above the physical rate. VirtualDisplayConfig.java:468-469,628-645,722-745,774-779 and Android 16 SurfaceFlinger.
  • Correct managed links for display brightness, permissions, categories, callbacks, surfaces and executors. Clarify auto-mirror authorization without excluding other supported paths. DisplayManager.java:164-176,348-381,771-778,1392-1498,1745-1784, VirtualDisplayConfig.java:435-445,543-552,600-614,752-758, and Android 15 display service.
  • State that zero is the recommended fingerprint authentication flag, not a required value. Correct five JNI constructor ownership descriptions. FingerprintManager.java:572-575,614-622; managed Object and JNIEnv.

Review coverage

  • Reviewed 266 of 266 substantive AI-changed blocks. The inventory also contains 104 deferred JNI-boilerplate-only blocks and four deferred IntDef-only blocks.
  • The personal ledger covers all 578 non-boilerplate channels: 548 substantive and 30 deferred IntDef channels. Another 274 JNI-boilerplate channels are deferred. The source comparison matched 89 attributed channels verbatim; nonverbatim, unlinked, missing, or unparseable channels received personal review.
  • The independent gemini-4-argon review of this commit found no actionable issues; model use was verified in local usage events.

Uncertain findings

None.

Checks

  • Parsed all 68 scoped XML files; zero placeholders before and after.
  • Checked scope and byte preservation outside the changed documentation channels, API metadata, reference URLs, BOMs and line endings.
  • Resolved all 19 new managed cref targets and ran git diff --check.

Co-authored-by: Copilot App <223556219+Copilot@users.nply.github.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 09:34
@jonathanpeppers
jonathanpeppers enabled auto-merge (squash) November 27, 2026 09:34

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.

🟢 Approval recommended

No active review issues block the documentation-only updates to Android API guidance.

No open issues 🎉

What changed in this PR

This documentation-only PR continues the corrections from #1750, refining Android camera, display, and fingerprint API guidance for .NET consumers. It updates 19 XML files without changing API definitions or runtime behavior.

Changes:

  • Clarifies camera face landmarks, session parameters, output configurations, and tone-map channel values.
  • Corrects display validation, defaults, lifecycle behavior, and Android version boundaries.
  • Improves managed API links, JNI reference-handling descriptions, and fingerprint flag guidance.
File Description
docs/​xml/​Android.Hardware.Fingerprints/​FingerprintManager+AuthenticationResult.xml Clarifies JNI reference handling.
docs/​xml/​Android.Hardware.Fingerprints/​FingerprintManager+AuthenticationCallback.xml Clarifies JNI reference handling.
docs/​xml/​Android.Hardware.Fingerprints/​FingerprintManager.xml Clarifies JNI reference handling.
docs/​xml/​Android.Hardware.Fingerprints/​FingerprintAuthenticationFlags.xml Describes zero as recommended, not required.
docs/​xml/​Android.Hardware.Display/​VirtualDisplayFlags.xml Clarifies auto-mirroring authorization wording.
docs/​xml/​Android.Hardware.Display/​VirtualDisplayConfig+Builder.xml Corrects brightness defaults, refresh-rate behavior, and managed links.
docs/​xml/​Android.Hardware.Display/​VirtualDisplay+Callback.xml Clarifies JNI reference handling.
docs/​xml/​Android.Hardware.Display/​VirtualDisplay.xml Documents resize validation versions and retained surface values.
docs/​xml/​Android.Hardware.Display/​DisplayManager.xml Clarifies version boundaries and replaces Java references with managed links.
docs/​xml/​Android.Hardware.Display/​DeviceProductInfo+EdidStructureMetadata+InterfaceConsts.xml Links managed parcel methods.
docs/​xml/​Android.Hardware.Display/​DeviceProductInfo+Builder.xml Clarifies manufacture-date and model-year ranges.
docs/​xml/​Android.Hardware.Display/​DeviceProductInfo.xml Distinguishes constructor validation and stored video-input values.
docs/​xml/​Android.Hardware.Camera2.Params/​TonemapCurve.xml Explains packed color values used as channel indices.
docs/​xml/​Android.Hardware.Camera2.Params/​SessionConfiguration.xml Corrects callback wording and links the main executor.
docs/​xml/​Android.Hardware.Camera2.Params/​OutputConfiguration.xml Clarifies output format, deferred updates, and usage flags.
docs/​xml/​Android.Hardware.Camera2.Params/​MultiResolutionStreamInfo.xml Clarifies JNI reference handling.
docs/​xml/​Android.Hardware.Camera2.Params/​Face+Builder.xml Documents nullable landmarks and acceptance of ID zero.
docs/​xml/​Android.Hardware.Camera2.Params/​Face.xml Links managed confidence-score bounds.
docs/​xml/​Android.Hardware.Camera2.Params/​ExtensionSessionConfiguration.xml Clarifies when session parameters are ignored and adds managed links.

Review effort: Balanced

@jonathanpeppers

Copy link
Copy Markdown
Member Author

@dalexsoto review

@dalexsoto

Copy link
Copy Markdown
Member

In response to @jonathanpeppers's request: I have read the edits in all 19 files, but still need to check Face+Builder.xml against the Face.java ID/landmark validation bodies, TonemapCurve.xml against the pinned managed Color.cs packing, and the output-configuration, product-year, virtual-display version/brightness/surface, and fingerprint-flag claims against their platform implementations. The JNI-reference ownership checks and 13 remaining new link targets also need verification. These are gaps in my review, not defects identified in this PR. I will resume those checks on the next scheduled pass; the completed text and discussion reads are retained.

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the 19 documentation files and relevant Java/.NET source paths, including ownership, callback construction, display resizing and refresh-rate behavior. No blocking issues found.

@jonathanpeppers
jonathanpeppers merged commit ae2a7c6 into main Nov 27, 2026
4 checks passed
@jonathanpeppers
jonathanpeppers deleted the jonathanpeppers-review-camera2-display-fingerprint branch November 27, 2026 13:56
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.

3 participants