Repository navigation
Fix camera, display, and fingerprint documentation (R062, pass 2) - #1750
jonathanpeppers merged 2 commits into
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 recorded for this documentation-only change.
No open issues 🎉
What changed in this PR
This documentation-only PR refines the .NET Android API reference for camera parameters, displays, and fingerprints. It clarifies existing behavior without changing bindings or runtime code.
Changes:
- Correct camera collection wording, HDR typos, and the snapshot active-array description.
- Move session-wide setter guidance into property remarks and clarify null defaults and version-dependent behavior.
- Correct display descriptions and remove misleading fingerprint removal notices while retaining deprecation guidance.
| File | Description |
|---|---|
| docs/xml/Android.Hardware.Fingerprints/FingerprintManager.xml | Remove removal notices from two property values. |
| docs/xml/Android.Hardware.Display/VirtualDisplayConfig.xml | Document the unset dim-brightness value of -1. |
| docs/xml/Android.Hardware.Display/DisplayTopology.xml | Describe absolute bounds as retrieved, not assigned. |
| docs/xml/Android.Hardware.Display/DisplayManager.xml | Correct historical virtual-display creation wording. |
| docs/xml/Android.Hardware.Camera2.Params/UsecaseMode.xml | Clarify the snapshot sensor active-array reference. |
| docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml | Qualify copy-constructor behavior by Android version. |
| docs/xml/Android.Hardware.Camera2.Params/ExtensionSessionConfiguration.xml | Relocate setter guidance and document the null default. |
| docs/xml/Android.Hardware.Camera2.Params/DynamicRangeProfiles.xml | Fix two HDR documentation typos. |
| docs/xml/Android.Hardware.Camera2.Params/ColorSpaceProfiles.xml | Remove inaccurate list terminology from collection descriptions. |
Review effort: Balanced
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
I checked all 9 files against AOSP for each member's API levels. Eight are accurate:
- The XML at a5fbef2 is well-formed and every change is inside
<Docs>. - The only added cref (
M:Android.Hardware.Camera2.Params.Face.Builder.Build) resolves. - main has not touched these files since the merge base.
One blocker:
- docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml:106 (
Face.Builder(Face), ApiSince 34)- Problem: "In some Android versions, the copy constructor does not mark the bounds and score as set" suggests the behavior depends on the version. It doesn't. A reader may skip
SetBounds/SetScoreand hitIllegalStateExceptioninBuild. - Evidence: In every public source that has this API, the copy constructor copies the fields but never sets
mBuilderFieldsSet. Only the setters set those flags, andbuild()throwsIllegalStateExceptionwhen they are missing. The sources checked were android-14.0.0_r1, android-15.0.0_r1, android-16.0.0_r1, android16-qpr2-release, 94b4c163 and android-17.0.0_r1.- Constructor: https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-17.0.0_r1/core/java/android/hardware/camera2/params/Face.java#334
- Setters: #358 and #385
build()checks: #490–491 and #511–513- The android-16.0.0_r1 Face.java cited in the description shows the same behavior.
- Suggested fix: drop the qualifier, so the remark reads: "The copy constructor does not mark the bounds and score as set, so call
SetBoundsandSetScorebeforeBuild." Keep the existing<see cref>toBuild.
- Problem: "In some Android versions, the copy constructor does not mark the bounds and score as set" suggests the behavior depends on the version. It doesn't. A reader may skip
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed all nine changed files and 13 changed member blocks at 1de50d2, including the delta from my earlier changes-requested review.
The Face.Builder copy-constructor blocker is fixed: the remark now states unconditionally that the constructor does not mark bounds and score as set. This matches the constructor and build checks across API 34–37 (Face.java constructor, build checks).
The remaining camera, display and fingerprint corrections match their AOSP implementations and API-level context. In particular, the snapshot wording agrees with the CTS active-array check, DimBrightness preserves the unset -1 sentinel, and the FingerprintManager edits retain the deprecation guidance.
All nine files are well-formed XML; nothing outside <Docs> changed, and no cref was added or removed. Main's newer commits do not overlap these files. The local-correctness, integration and final independent-blocker passes found no blockers.
Changes
Second-pass review of 68 files in
Android.Hardware.Camera2.Params,Android.Hardware.Display, andAndroid.Hardware.Fingerprints.Uncertain finding
Face.Builder.SetLeftEyePosition,SetRightEyePosition, andSetMouthPositionhave non-null parameter descriptions consistent with their annotations, but their remarks describe cases that require or permit null. The implementation accepts null in its setters and checks landmark combinations inbuild(). The published annotation and implementation conflict, so this text is unchanged.Checks
Docsblocks and zero placeholders. Checked the 13 changed blocks and preserved non-documentation bytes, metadata, BOMs, and line endings.creftargets, linked JNI signatures, andgit diff --check.gemini-4-argonreview found no actionable issues. Source review used the pinned Android 37.2 r01 archive (SHA-2569d637c3af6654a2f1b696b3d19c54bb77e38df2b0106116934703f314b3d4e84), with r02 binding differences treated cautiously.