Stay organized with collections
Save and categorize content based on your preferences.
OverlayProperties
class OverlayProperties : Parcelable
Provides supported overlay properties of the device.
Hardware overlay is a technique to composite different buffers directly to the screen using display hardware rather than the GPU. The system compositor is able to assign any content managed by a android.view.SurfaceControl
onto a hardware overlay if possible. Applications may be interested in the display hardware capabilities exposed by this class as a hint to determine if their android.view.SurfaceControl
tree is power-efficient and performant.
Summary
Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents() : indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel : the object being written is a return value, that is the result of a function such as "Parcelable someFunction() ", "void someFunction(out Parcelable) ", or "void someFunction(inout Parcelable) ". Some implementations may want to release resources at this point.
|
|
Public methods |
Int |
|
Boolean |
Indicates that hardware composition of a buffer encoded with the provided DataSpace and android.
|
Boolean |
Indicates that hardware composition of two or more overlays with different colorspaces is supported on the device.
|
Unit |
Flatten this object in to a Parcel.
|
Public methods
describeContents
fun describeContents(): Int
isCombinationSupported
fun isCombinationSupported(
dataspace: Int,
format: Int
): Boolean
Indicates that hardware composition of a buffer encoded with the provided DataSpace
and android.hardware.HardwareBuffer.Format is supported on the device.
Parameters |
dataspace |
Int: Value is either 0 or a combination of android.hardware.DataSpace#DATASPACE_UNKNOWN , android.hardware.DataSpace#DATASPACE_SCRGB_LINEAR , android.hardware.DataSpace#DATASPACE_SRGB , android.hardware.DataSpace#DATASPACE_SCRGB , android.hardware.DataSpace#DATASPACE_DISPLAY_P3 , android.hardware.DataSpace#DATASPACE_BT2020_HLG , android.hardware.DataSpace#DATASPACE_BT2020_PQ , android.hardware.DataSpace#DATASPACE_ADOBE_RGB , android.hardware.DataSpace#DATASPACE_JFIF , android.hardware.DataSpace#DATASPACE_BT601_625 , android.hardware.DataSpace#DATASPACE_BT601_525 , android.hardware.DataSpace#DATASPACE_BT2020 , android.hardware.DataSpace#DATASPACE_BT709 , android.hardware.DataSpace#DATASPACE_DCI_P3 , and android.hardware.DataSpace#DATASPACE_SRGB_LINEAR |
format |
Int: Value is android.hardware.HardwareBuffer#RGBA_8888 , android.hardware.HardwareBuffer#RGBA_FP16 , android.hardware.HardwareBuffer#RGBA_1010102 , android.hardware.HardwareBuffer#RGBX_8888 , android.hardware.HardwareBuffer#RGB_888 , android.hardware.HardwareBuffer#RGB_565 , android.hardware.HardwareBuffer#BLOB , android.hardware.HardwareBuffer#YCBCR_420_888 , android.hardware.HardwareBuffer#D_16 , android.hardware.HardwareBuffer#D_24 , android.hardware.HardwareBuffer#DS_24UI8 , android.hardware.HardwareBuffer#D_FP32 , android.hardware.HardwareBuffer#DS_FP32UI8 , android.hardware.HardwareBuffer#S_UI8 , android.hardware.HardwareBuffer#YCBCR_P010 , android.hardware.HardwareBuffer#R_8 , android.hardware.HardwareBuffer#R_16 , android.hardware.HardwareBuffer#RG_1616 , or android.hardware.HardwareBuffer#RGBA_10101010 |
Return |
Boolean |
True if the device can support efficiently compositing the content described by the dataspace and format. False if GPU composition fallback is otherwise required. |
isMixedColorSpacesSupported
fun isMixedColorSpacesSupported(): Boolean
Indicates that hardware composition of two or more overlays with different colorspaces is supported on the device.
Return |
Boolean |
True if the device can support mixed colorspaces efficiently, false if GPU composition fallback is otherwise required. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-06-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-06-18 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-18 UTC."]]