From a5fbef208f0988f162ec4a17d9061353b05e4de4 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Mon, 23 Nov 2026 00:36:02 -0600 Subject: [PATCH 1/2] Fix camera and display documentation (R062) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../ColorSpaceProfiles.xml | 8 ++++---- .../DynamicRangeProfiles.xml | 4 ++-- .../ExtensionSessionConfiguration.xml | 17 ++++++++--------- .../Face+Builder.xml | 2 +- .../UsecaseMode.xml | 2 +- .../Android.Hardware.Display/DisplayManager.xml | 4 ++-- .../DisplayTopology.xml | 4 ++-- .../VirtualDisplayConfig.xml | 2 +- .../FingerprintManager.xml | 10 ++-------- 9 files changed, 23 insertions(+), 30 deletions(-) diff --git a/docs/xml/Android.Hardware.Camera2.Params/ColorSpaceProfiles.xml b/docs/xml/Android.Hardware.Camera2.Params/ColorSpaceProfiles.xml index 32f051216..a76afba18 100644 --- a/docs/xml/Android.Hardware.Camera2.Params/ColorSpaceProfiles.xml +++ b/docs/xml/Android.Hardware.Camera2.Params/ColorSpaceProfiles.xml @@ -252,10 +252,10 @@ The named color space whose compatible dynamic range profiles are requested. The image format to query, or to query all image formats for the specified color space. - Return a list of dynamic range profiles that are compatible with a color space and ImageFormat. + Returns the dynamic range profiles that are compatible with a color space and ImageFormat. set of dynamic range profiles. This value cannot be null. - Return a list of dynamic range profiles that are compatible with a color space and ImageFormat. If ImageFormat.UNKNOWN is provided, this function will return a set of all unique dynamic range profiles supported by the device given a color space, regardless of image format. + Returns the dynamic range profiles that are compatible with a color space and ImageFormat. If ImageFormat.UNKNOWN is provided, this function will return a set of all unique dynamic range profiles supported by the device given a color space, regardless of image format. Android reference for android.hardware.camera2.params.ColorSpaceProfiles.getSupportedDynamicRangeProfiles. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -289,10 +289,10 @@ The named color space whose compatible image formats are requested. - Return a list of image formats that are compatible with a color space. + Returns the image formats that are compatible with a color space. set of image formats. This value cannot be null. - Return a list of image formats that are compatible with a color space. Color spaces which are compatible with ImageFormat.PRIVATE are able to be used with SurfaceView, SurfaceTexture, MediaCodec and MediaRecorder. + Returns the image formats that are compatible with a color space. Color spaces which are compatible with ImageFormat.PRIVATE are able to be used with SurfaceView, SurfaceTexture, MediaCodec and MediaRecorder. Android reference for android.hardware.camera2.params.ColorSpaceProfiles.getSupportedImageFormatsForColorSpace. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Hardware.Camera2.Params/DynamicRangeProfiles.xml b/docs/xml/Android.Hardware.Camera2.Params/DynamicRangeProfiles.xml index 48695c32c..48976d618 100644 --- a/docs/xml/Android.Hardware.Camera2.Params/DynamicRangeProfiles.xml +++ b/docs/xml/Android.Hardware.Camera2.Params/DynamicRangeProfiles.xml @@ -260,7 +260,7 @@ This is the camera mode for the default Dolby Vision capture mode for the specific device. - This is the camera mode for the default Dolby Vision capture mode for the specific device. This would be tuned by each specific device for consumer pleasing results that resonate with their particular audience. We expect that each specific device would have a different look for their default Dolby Vision capture. This format and also includes adaptive global tone mapping SMPTE 2094-50 per-frame metadata. + This is the camera mode for the default Dolby Vision capture mode for the specific device. This would be tuned by each specific device for consumer pleasing results that resonate with their particular audience. We expect that each specific device would have a different look for their default Dolby Vision capture. This format also includes adaptive global tone mapping SMPTE 2094-50 per-frame metadata. Android reference for android.hardware.camera2.params.DynamicRangeProfiles.DOLBY_VISION_10B_HDR_OEM_SMPTE_2094_50. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -379,7 +379,7 @@ This is the power optimized mode for 10-bit Dolby Vision HDR Reference Mode and also includes adaptive global tone mapping SMPTE 2094-50 per-frame metadata. - This is the power optimized mode for 10-bit Dolby Vision HDR Reference Mode and also includes adaptive global tone mapping SMPTE 2094-50 per-frame metadata.. + This is the power optimized mode for 10-bit Dolby Vision HDR Reference Mode and also includes adaptive global tone mapping SMPTE 2094-50 per-frame metadata. Android reference for android.hardware.camera2.params.DynamicRangeProfiles.DOLBY_VISION_10B_HDR_REF_PO_SMPTE_2094_50. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Hardware.Camera2.Params/ExtensionSessionConfiguration.xml b/docs/xml/Android.Hardware.Camera2.Params/ExtensionSessionConfiguration.xml index 1e58aa211..f7068db94 100644 --- a/docs/xml/Android.Hardware.Camera2.Params/ExtensionSessionConfiguration.xml +++ b/docs/xml/Android.Hardware.Camera2.Params/ExtensionSessionConfiguration.xml @@ -463,21 +463,20 @@ Android.Hardware.Camera2.CaptureRequest - A capture request that includes the initial values for any - available session wide capture keys. Tags - (see CaptureRequest.Builder#setTag) and output targets + Retrieve the session wide camera parameters (see CaptureRequest). -or- Sets the session wide camera parameters (see CaptureRequest). + A capture request that includes the initial values for any available + session wide capture keys, or if no request is configured. + + Retrieve the session wide camera parameters (see CaptureRequest). + When setting this property, tags (see CaptureRequest.Builder#setTag) and output targets (see CaptureRequest.Builder#addTarget) are ignored if set. Parameter values not part of CameraCharacteristics#getAvailableSessionKeys will also be ignored. It is recommended to build the session parameters using the same template type as the initial capture request, so that the - session and initial request parameters match as much as possible. - Retrieve the session wide camera parameters (see CaptureRequest). -or- Sets the session wide camera parameters (see CaptureRequest). - A capture request that includes the initial values for any available - session wide capture keys. - - Retrieve the session wide camera parameters (see CaptureRequest). + session and initial request parameters match as much as possible. Android reference for android.hardware.camera2.params.ExtensionSessionConfiguration.getSessionWideParams. + Android reference for android.hardware.camera2.params.ExtensionSessionConfiguration.setSessionWideParams. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml b/docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml index 2af263659..56cc3d825 100644 --- a/docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml +++ b/docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml @@ -103,7 +103,7 @@ The face whose bounds, score, ID, and landmark positions supply the builder's initial values. Creates a builder with the values from an existing face. - The builder initially refers to the same bounds and landmark objects as ; it does not clone them. In the linked implementation, the copy constructor does not mark the bounds and score as set, so call SetBounds and SetScore before . + The builder initially refers to the same bounds and landmark objects as ; it does not clone them. In some Android versions, the copy constructor does not mark the bounds and score as set, so call SetBounds and SetScore before . diff --git a/docs/xml/Android.Hardware.Camera2.Params/UsecaseMode.xml b/docs/xml/Android.Hardware.Camera2.Params/UsecaseMode.xml index 7cf5ecb45..c5a4ae58e 100644 --- a/docs/xml/Android.Hardware.Camera2.Params/UsecaseMode.xml +++ b/docs/xml/Android.Hardware.Camera2.Params/UsecaseMode.xml @@ -171,7 +171,7 @@ 3 - The recommended stream configuration map for use case snapshot must contain a subset of efficient still capture configurations that must include ImageFormat.JPEG output format and at least one configuration with size approximately equal to the sensor pixel array size CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE. Even if available for the camera device, high speed or input configurations will be absent. + The recommended stream configuration map for use case snapshot must contain a subset of efficient still capture configurations that must include ImageFormat.JPEG output format and at least one configuration with size approximately equal to the sensor active array size CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE. Even if available for the camera device, high speed or input configurations will be absent. Android reference for android.hardware.camera2.params.RecommendedStreamConfigurationMap.USECASE_SNAPSHOT. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Hardware.Display/DisplayManager.xml b/docs/xml/Android.Hardware.Display/DisplayManager.xml index 390f7687d..79332282b 100644 --- a/docs/xml/Android.Hardware.Display/DisplayManager.xml +++ b/docs/xml/Android.Hardware.Display/DisplayManager.xml @@ -232,7 +232,7 @@ The content of a virtual display is rendered to a Surface provided by the application. The virtual display should be released when no longer needed. Because a virtual display renders to a surface provided by the application, it will be released automatically when the process terminates and all remaining windows on it will be forcibly removed. The behavior of the virtual display depends on the flags that are provided to this method. By default, virtual displays are created to be private, non-presentation and unsecure. Permissions may be required to use certain flags. - As of Build.VERSION_CODES.KITKAT_WATCH, the surface may be attached or detached dynamically using VirtualDisplay.setSurface. Previously, the surface had to be non-null when createVirtualDisplay(VirtualDisplayConfig) was called and could not be changed for the lifetime of the display. + As of Build.VERSION_CODES.KITKAT_WATCH, the surface may be attached or detached dynamically using VirtualDisplay.setSurface. Previously, the surface had to be non-null when the virtual display was created and could not be changed for the lifetime of the display. Detaching the surface that backs a virtual display has a similar effect to turning off the screen. Android reference for android.hardware.display.DisplayManager.createVirtualDisplay. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -377,7 +377,7 @@ The content of a virtual display is rendered to a Surface provided by the application. The virtual display should be released when no longer needed. Because a virtual display renders to a surface provided by the application, it will be released automatically when the process terminates and all remaining windows on it will be forcibly removed. The behavior of the virtual display depends on the flags that are provided to this method. By default, virtual displays are created to be private, non-presentation and unsecure. Permissions may be required to use certain flags. - As of Build.VERSION_CODES.KITKAT_WATCH, the surface may be attached or detached dynamically using VirtualDisplay.setSurface. Previously, the surface had to be non-null when createVirtualDisplay(VirtualDisplayConfig) was called and could not be changed for the lifetime of the display. + As of Build.VERSION_CODES.KITKAT_WATCH, the surface may be attached or detached dynamically using VirtualDisplay.setSurface. Previously, the surface had to be non-null when the virtual display was created and could not be changed for the lifetime of the display. Detaching the surface that backs a virtual display has a similar effect to turning off the screen. Android reference for android.hardware.display.DisplayManager.createVirtualDisplay. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Hardware.Display/DisplayTopology.xml b/docs/xml/Android.Hardware.Display/DisplayTopology.xml index 3bc0c7072..e114e6894 100644 --- a/docs/xml/Android.Hardware.Display/DisplayTopology.xml +++ b/docs/xml/Android.Hardware.Display/DisplayTopology.xml @@ -75,10 +75,10 @@ Android.Util.SparseArray - Assign absolute bounds in dp to each display. + Gets the absolute bounds of each display in dp. Map from logical display ID to the display's absolute bounds in dp - Assign absolute bounds in dp to each display. The top-left corner of the root is at position (0, 0). + The top-left corner of the root is at position (0, 0). Android reference for android.hardware.display.DisplayTopology.getAbsoluteBounds. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Hardware.Display/VirtualDisplayConfig.xml b/docs/xml/Android.Hardware.Display/VirtualDisplayConfig.xml index 69be9bfa9..6d68d303c 100644 --- a/docs/xml/Android.Hardware.Display/VirtualDisplayConfig.xml +++ b/docs/xml/Android.Hardware.Display/VirtualDisplayConfig.xml @@ -239,7 +239,7 @@ Returns the dim brightness of the display. - Value is between 0.0f and 1.0f inclusive + The configured dim brightness, between 0.0 and 1.0 inclusive, or -1 if no dim brightness was set. Returns the dim brightness of the display. Value of 0.0 indicates the minimum supported brightness and value of 1.0 diff --git a/docs/xml/Android.Hardware.Fingerprints/FingerprintManager.xml b/docs/xml/Android.Hardware.Fingerprints/FingerprintManager.xml index 1d6270e45..f3dcba249 100644 --- a/docs/xml/Android.Hardware.Fingerprints/FingerprintManager.xml +++ b/docs/xml/Android.Hardware.Fingerprints/FingerprintManager.xml @@ -179,10 +179,7 @@ Determine if there is at least one fingerprint enrolled. - true if at least one fingerprint is enrolled, false otherwise - - Removed, see BiometricPrompt and - FingerprintManager#FINGERPRINT_ERROR_NO_FINGERPRINTS + true if at least one fingerprint is enrolled, false otherwise Determine if there is at least one fingerprint enrolled. This member is deprecated. See BiometricPrompt and @@ -229,10 +226,7 @@ Determine if fingerprint hardware is present and functional. - true if hardware is present and functional, false otherwise. - - Removed, see BiometricPrompt and - FingerprintManager#FINGERPRINT_ERROR_HW_UNAVAILABLE + true if hardware is present and functional, false otherwise. Determine if fingerprint hardware is present and functional. This member is deprecated. See BiometricPrompt and From 1de50d2d82950d00e88e3b57148ba3078262c20a Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Mon, 23 Nov 2026 01:58:05 -0600 Subject: [PATCH 2/2] Clarify required face builder fields Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml b/docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml index 56cc3d825..4cf161b1e 100644 --- a/docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml +++ b/docs/xml/Android.Hardware.Camera2.Params/Face+Builder.xml @@ -103,7 +103,7 @@ The face whose bounds, score, ID, and landmark positions supply the builder's initial values. Creates a builder with the values from an existing face. - The builder initially refers to the same bounds and landmark objects as ; it does not clone them. In some Android versions, the copy constructor does not mark the bounds and score as set, so call SetBounds and SetScore before . + The builder initially refers to the same bounds and landmark objects as ; it does not clone them. The copy constructor does not mark the bounds and score as set, so call SetBounds and SetScore before .