composer3

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandResultPayloadTagError                   int32 = 0
	CommandResultPayloadTagChangedCompositionTypes int32 = 1
	CommandResultPayloadTagDisplayRequest          int32 = 2
	CommandResultPayloadTagPresentFence            int32 = 3
	CommandResultPayloadTagReleaseFences           int32 = 4
	CommandResultPayloadTagPresentOrValidateResult int32 = 5
	CommandResultPayloadTagClientTargetProperty    int32 = 6
)
View Source
const (
	DisplayRequestFlipClientTarget          int32 = (1 << 0)
	DisplayRequestWriteClientTargetToOutput int32 = (1 << 1)
)
View Source
const (
	TransactionIComposerCreateClient    = binder.FirstCallTransaction + 0
	TransactionIComposerGetCapabilities = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIComposerCreateClient    = "createClient"
	MethodIComposerGetCapabilities = "getCapabilities"
)
View Source
const (
	TransactionIComposerCallbackOnHotplug                  = binder.FirstCallTransaction + 0
	TransactionIComposerCallbackOnRefresh                  = binder.FirstCallTransaction + 1
	TransactionIComposerCallbackOnSeamlessPossible         = binder.FirstCallTransaction + 2
	TransactionIComposerCallbackOnVsync                    = binder.FirstCallTransaction + 3
	TransactionIComposerCallbackOnVsyncPeriodTimingChanged = binder.FirstCallTransaction + 4
	TransactionIComposerCallbackOnVsyncIdle                = binder.FirstCallTransaction + 5
	TransactionIComposerCallbackOnRefreshRateChangedDebug  = binder.FirstCallTransaction + 6
	TransactionIComposerCallbackOnHotplugEvent             = binder.FirstCallTransaction + 7
)
View Source
const (
	MethodIComposerCallbackOnHotplug                  = "onHotplug"
	MethodIComposerCallbackOnRefresh                  = "onRefresh"
	MethodIComposerCallbackOnSeamlessPossible         = "onSeamlessPossible"
	MethodIComposerCallbackOnVsync                    = "onVsync"
	MethodIComposerCallbackOnVsyncPeriodTimingChanged = "onVsyncPeriodTimingChanged"
	MethodIComposerCallbackOnVsyncIdle                = "onVsyncIdle"
	MethodIComposerCallbackOnRefreshRateChangedDebug  = "onRefreshRateChangedDebug"
	MethodIComposerCallbackOnHotplugEvent             = "onHotplugEvent"
)
View Source
const (
	TransactionIComposerClientCreateLayer                               = binder.FirstCallTransaction + 0
	TransactionIComposerClientCreateVirtualDisplay                      = binder.FirstCallTransaction + 1
	TransactionIComposerClientDestroyLayer                              = binder.FirstCallTransaction + 2
	TransactionIComposerClientDestroyVirtualDisplay                     = binder.FirstCallTransaction + 3
	TransactionIComposerClientExecuteCommands                           = binder.FirstCallTransaction + 4
	TransactionIComposerClientGetActiveConfig                           = binder.FirstCallTransaction + 5
	TransactionIComposerClientGetColorModes                             = binder.FirstCallTransaction + 6
	TransactionIComposerClientGetDataspaceSaturationMatrix              = binder.FirstCallTransaction + 7
	TransactionIComposerClientGetDisplayAttribute                       = binder.FirstCallTransaction + 8
	TransactionIComposerClientGetDisplayCapabilities                    = binder.FirstCallTransaction + 9
	TransactionIComposerClientGetDisplayConfigs                         = binder.FirstCallTransaction + 10
	TransactionIComposerClientGetDisplayConnectionType                  = binder.FirstCallTransaction + 11
	TransactionIComposerClientGetDisplayIdentificationData              = binder.FirstCallTransaction + 12
	TransactionIComposerClientGetDisplayName                            = binder.FirstCallTransaction + 13
	TransactionIComposerClientGetDisplayVsyncPeriod                     = binder.FirstCallTransaction + 14
	TransactionIComposerClientGetDisplayedContentSample                 = binder.FirstCallTransaction + 15
	TransactionIComposerClientGetDisplayedContentSamplingAttributes     = binder.FirstCallTransaction + 16
	TransactionIComposerClientGetDisplayPhysicalOrientation             = binder.FirstCallTransaction + 17
	TransactionIComposerClientGetHdrCapabilities                        = binder.FirstCallTransaction + 18
	TransactionIComposerClientGetMaxVirtualDisplayCount                 = binder.FirstCallTransaction + 19
	TransactionIComposerClientGetPerFrameMetadataKeys                   = binder.FirstCallTransaction + 20
	TransactionIComposerClientGetReadbackBufferAttributes               = binder.FirstCallTransaction + 21
	TransactionIComposerClientGetReadbackBufferFence                    = binder.FirstCallTransaction + 22
	TransactionIComposerClientGetRenderIntents                          = binder.FirstCallTransaction + 23
	TransactionIComposerClientGetSupportedContentTypes                  = binder.FirstCallTransaction + 24
	TransactionIComposerClientGetDisplayDecorationSupport               = binder.FirstCallTransaction + 25
	TransactionIComposerClientRegisterCallback                          = binder.FirstCallTransaction + 26
	TransactionIComposerClientSetActiveConfig                           = binder.FirstCallTransaction + 27
	TransactionIComposerClientSetActiveConfigWithConstraints            = binder.FirstCallTransaction + 28
	TransactionIComposerClientSetBootDisplayConfig                      = binder.FirstCallTransaction + 29
	TransactionIComposerClientClearBootDisplayConfig                    = binder.FirstCallTransaction + 30
	TransactionIComposerClientGetPreferredBootDisplayConfig             = binder.FirstCallTransaction + 31
	TransactionIComposerClientSetAutoLowLatencyMode                     = binder.FirstCallTransaction + 32
	TransactionIComposerClientSetClientTargetSlotCount                  = binder.FirstCallTransaction + 33
	TransactionIComposerClientSetColorMode                              = binder.FirstCallTransaction + 34
	TransactionIComposerClientSetContentType                            = binder.FirstCallTransaction + 35
	TransactionIComposerClientSetDisplayedContentSamplingEnabled        = binder.FirstCallTransaction + 36
	TransactionIComposerClientSetPowerMode                              = binder.FirstCallTransaction + 37
	TransactionIComposerClientSetReadbackBuffer                         = binder.FirstCallTransaction + 38
	TransactionIComposerClientSetVsyncEnabled                           = binder.FirstCallTransaction + 39
	TransactionIComposerClientSetIdleTimerEnabled                       = binder.FirstCallTransaction + 40
	TransactionIComposerClientGetOverlaySupport                         = binder.FirstCallTransaction + 41
	TransactionIComposerClientGetHdrConversionCapabilities              = binder.FirstCallTransaction + 42
	TransactionIComposerClientSetHdrConversionStrategy                  = binder.FirstCallTransaction + 43
	TransactionIComposerClientSetRefreshRateChangedCallbackDebugEnabled = binder.FirstCallTransaction + 44
	TransactionIComposerClientGetDisplayConfigurations                  = binder.FirstCallTransaction + 45
	TransactionIComposerClientNotifyExpectedPresent                     = binder.FirstCallTransaction + 46
)
View Source
const (
	MethodIComposerClientCreateLayer                               = "createLayer"
	MethodIComposerClientCreateVirtualDisplay                      = "createVirtualDisplay"
	MethodIComposerClientDestroyLayer                              = "destroyLayer"
	MethodIComposerClientDestroyVirtualDisplay                     = "destroyVirtualDisplay"
	MethodIComposerClientExecuteCommands                           = "executeCommands"
	MethodIComposerClientGetActiveConfig                           = "getActiveConfig"
	MethodIComposerClientGetColorModes                             = "getColorModes"
	MethodIComposerClientGetDataspaceSaturationMatrix              = "getDataspaceSaturationMatrix"
	MethodIComposerClientGetDisplayAttribute                       = "getDisplayAttribute"
	MethodIComposerClientGetDisplayCapabilities                    = "getDisplayCapabilities"
	MethodIComposerClientGetDisplayConfigs                         = "getDisplayConfigs"
	MethodIComposerClientGetDisplayConnectionType                  = "getDisplayConnectionType"
	MethodIComposerClientGetDisplayIdentificationData              = "getDisplayIdentificationData"
	MethodIComposerClientGetDisplayName                            = "getDisplayName"
	MethodIComposerClientGetDisplayVsyncPeriod                     = "getDisplayVsyncPeriod"
	MethodIComposerClientGetDisplayedContentSample                 = "getDisplayedContentSample"
	MethodIComposerClientGetDisplayedContentSamplingAttributes     = "getDisplayedContentSamplingAttributes"
	MethodIComposerClientGetDisplayPhysicalOrientation             = "getDisplayPhysicalOrientation"
	MethodIComposerClientGetHdrCapabilities                        = "getHdrCapabilities"
	MethodIComposerClientGetMaxVirtualDisplayCount                 = "getMaxVirtualDisplayCount"
	MethodIComposerClientGetPerFrameMetadataKeys                   = "getPerFrameMetadataKeys"
	MethodIComposerClientGetReadbackBufferAttributes               = "getReadbackBufferAttributes"
	MethodIComposerClientGetReadbackBufferFence                    = "getReadbackBufferFence"
	MethodIComposerClientGetRenderIntents                          = "getRenderIntents"
	MethodIComposerClientGetSupportedContentTypes                  = "getSupportedContentTypes"
	MethodIComposerClientGetDisplayDecorationSupport               = "getDisplayDecorationSupport"
	MethodIComposerClientRegisterCallback                          = "registerCallback"
	MethodIComposerClientSetActiveConfig                           = "setActiveConfig"
	MethodIComposerClientSetActiveConfigWithConstraints            = "setActiveConfigWithConstraints"
	MethodIComposerClientSetBootDisplayConfig                      = "setBootDisplayConfig"
	MethodIComposerClientClearBootDisplayConfig                    = "clearBootDisplayConfig"
	MethodIComposerClientGetPreferredBootDisplayConfig             = "getPreferredBootDisplayConfig"
	MethodIComposerClientSetAutoLowLatencyMode                     = "setAutoLowLatencyMode"
	MethodIComposerClientSetClientTargetSlotCount                  = "setClientTargetSlotCount"
	MethodIComposerClientSetColorMode                              = "setColorMode"
	MethodIComposerClientSetContentType                            = "setContentType"
	MethodIComposerClientSetDisplayedContentSamplingEnabled        = "setDisplayedContentSamplingEnabled"
	MethodIComposerClientSetPowerMode                              = "setPowerMode"
	MethodIComposerClientSetReadbackBuffer                         = "setReadbackBuffer"
	MethodIComposerClientSetVsyncEnabled                           = "setVsyncEnabled"
	MethodIComposerClientSetIdleTimerEnabled                       = "setIdleTimerEnabled"
	MethodIComposerClientGetOverlaySupport                         = "getOverlaySupport"
	MethodIComposerClientGetHdrConversionCapabilities              = "getHdrConversionCapabilities"
	MethodIComposerClientSetHdrConversionStrategy                  = "setHdrConversionStrategy"
	MethodIComposerClientSetRefreshRateChangedCallbackDebugEnabled = "setRefreshRateChangedCallbackDebugEnabled"
	MethodIComposerClientGetDisplayConfigurations                  = "getDisplayConfigurations"
	MethodIComposerClientNotifyExpectedPresent                     = "notifyExpectedPresent"
)
View Source
const (
	IComposerClientExBadConfig           int32 = 1
	IComposerClientExBadDisplay          int32 = 2
	IComposerClientExBadLayer            int32 = 3
	IComposerClientExBadParameter        int32 = 4
	IComposerClientExReserved            int32 = 5
	IComposerClientExNoResources         int32 = 6
	IComposerClientExNotValidated        int32 = 7
	IComposerClientExUnsupported         int32 = 8
	IComposerClientExSeamlessNotAllowed  int32 = 9
	IComposerClientExSeamlessNotPossible int32 = 10
	IComposerClientInvalidConfiguration  int32 = 2147483647
)
View Source
const DescriptorIComposer = "android.hardware.graphics.composer3.IComposer"
View Source
const DescriptorIComposerCallback = "android.hardware.graphics.composer3.IComposerCallback"
View Source
const DescriptorIComposerClient = "android.hardware.graphics.composer3.IComposerClient"
View Source
const (
	DisplayRequestLayerRequestClearClientTarget int32 = (1 << 0)
)
View Source
const (
	IComposerExNoResources int32 = 6
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	Slot   int32
	Handle *common.NativeHandle
	Fence  int32
}

func (*Buffer) MarshalParcel

func (s *Buffer) MarshalParcel(
	p *parcel.Parcel,
) error

func (*Buffer) UnmarshalParcel

func (s *Buffer) UnmarshalParcel(
	p *parcel.Parcel,
) error

type Capability

type Capability int32
const (
	CapabilityINVALID                         Capability = 0
	CapabilitySidebandStream                  Capability = 1
	CapabilitySkipClientColorTransform        Capability = 2
	CapabilityPresentFenceIsNotReliable       Capability = 3
	CapabilitySkipValidate                    Capability = 4
	CapabilityBootDisplayConfig               Capability = 5
	CapabilityHdrOutputConversionConfig       Capability = 6
	CapabilityRefreshRateChangedCallbackDebug Capability = 7
	CapabilityLayerLifecycleBatchCommand      Capability = 8
)

type ChangedCompositionLayer

type ChangedCompositionLayer struct {
	Layer       int64
	Composition Composition
}

func (*ChangedCompositionLayer) MarshalParcel

func (s *ChangedCompositionLayer) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ChangedCompositionLayer) UnmarshalParcel

func (s *ChangedCompositionLayer) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ChangedCompositionTypes

type ChangedCompositionTypes struct {
	Display int64
	Layers  []ChangedCompositionLayer
}

func (*ChangedCompositionTypes) MarshalParcel

func (s *ChangedCompositionTypes) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ChangedCompositionTypes) UnmarshalParcel

func (s *ChangedCompositionTypes) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ClientTarget

type ClientTarget struct {
	Buffer      Buffer
	Dataspace   common.Dataspace
	Damage      []common.Rect
	HdrSdrRatio float32
}

func (*ClientTarget) MarshalParcel

func (s *ClientTarget) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ClientTarget) UnmarshalParcel

func (s *ClientTarget) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ClientTargetProperty

type ClientTargetProperty struct {
	PixelFormat common.PixelFormat
	Dataspace   common.Dataspace
}

func (*ClientTargetProperty) MarshalParcel

func (s *ClientTargetProperty) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ClientTargetProperty) UnmarshalParcel

func (s *ClientTargetProperty) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ClientTargetPropertyWithBrightness

type ClientTargetPropertyWithBrightness struct {
	Display              int64
	ClientTargetProperty ClientTargetProperty
	Brightness           float32
	DimmingStage         DimmingStage
}

func (*ClientTargetPropertyWithBrightness) MarshalParcel

func (s *ClientTargetPropertyWithBrightness) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ClientTargetPropertyWithBrightness) UnmarshalParcel

func (s *ClientTargetPropertyWithBrightness) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ClockMonotonicTimestamp

type ClockMonotonicTimestamp struct {
	TimestampNanos int64
}

func (*ClockMonotonicTimestamp) MarshalParcel

func (s *ClockMonotonicTimestamp) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ClockMonotonicTimestamp) UnmarshalParcel

func (s *ClockMonotonicTimestamp) UnmarshalParcel(
	p *parcel.Parcel,
) error

type Color

type Color struct {
	R float32
	G float32
	B float32
	A float32
}

func (*Color) MarshalParcel

func (s *Color) MarshalParcel(
	p *parcel.Parcel,
) error

func (*Color) UnmarshalParcel

func (s *Color) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ColorMode

type ColorMode int32
const (
	ColorModeNATIVE                     ColorMode = 0
	ColorModeStandardBt601625           ColorMode = 1
	ColorModeStandardBt601625Unadjusted ColorMode = 2
	ColorModeStandardBt601525           ColorMode = 3
	ColorModeStandardBt601525Unadjusted ColorMode = 4
	ColorModeStandardBt709              ColorMode = 5
	ColorModeDciP3                      ColorMode = 6
	ColorModeSRGB                       ColorMode = 7
	ColorModeAdobeRgb                   ColorMode = 8
	ColorModeDisplayP3                  ColorMode = 9
	ColorModeBT2020                     ColorMode = 10
	ColorModeBt2100Pq                   ColorMode = 11
	ColorModeBt2100Hlg                  ColorMode = 12
	ColorModeDisplayBt2020              ColorMode = 13
)

type CommandError

type CommandError struct {
	CommandIndex int32
	ErrorCode    int32
}

func (*CommandError) MarshalParcel

func (s *CommandError) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CommandError) UnmarshalParcel

func (s *CommandError) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CommandResultPayload

type CommandResultPayload struct {
	Tag                     int32
	Error                   CommandError
	ChangedCompositionTypes ChangedCompositionTypes
	DisplayRequest          DisplayRequest
	PresentFence            PresentFence
	ReleaseFences           ReleaseFences
	PresentOrValidateResult PresentOrValidate
	ClientTargetProperty    ClientTargetPropertyWithBrightness
}

func (*CommandResultPayload) GetChangedCompositionTypes

func (u *CommandResultPayload) GetChangedCompositionTypes() (ChangedCompositionTypes, bool)

func (*CommandResultPayload) GetClientTargetProperty

func (u *CommandResultPayload) GetClientTargetProperty() (ClientTargetPropertyWithBrightness, bool)

func (*CommandResultPayload) GetDisplayRequest

func (u *CommandResultPayload) GetDisplayRequest() (DisplayRequest, bool)

func (*CommandResultPayload) GetError

func (u *CommandResultPayload) GetError() (CommandError, bool)

func (*CommandResultPayload) GetPresentFence

func (u *CommandResultPayload) GetPresentFence() (PresentFence, bool)

func (*CommandResultPayload) GetPresentOrValidateResult

func (u *CommandResultPayload) GetPresentOrValidateResult() (PresentOrValidate, bool)

func (*CommandResultPayload) GetReleaseFences

func (u *CommandResultPayload) GetReleaseFences() (ReleaseFences, bool)

func (*CommandResultPayload) MarshalParcel

func (u *CommandResultPayload) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CommandResultPayload) SetChangedCompositionTypes

func (u *CommandResultPayload) SetChangedCompositionTypes(
	v ChangedCompositionTypes,
)

func (*CommandResultPayload) SetClientTargetProperty

func (u *CommandResultPayload) SetClientTargetProperty(
	v ClientTargetPropertyWithBrightness,
)

func (*CommandResultPayload) SetDisplayRequest

func (u *CommandResultPayload) SetDisplayRequest(
	v DisplayRequest,
)

func (*CommandResultPayload) SetError

func (u *CommandResultPayload) SetError(
	v CommandError,
)

func (*CommandResultPayload) SetPresentFence

func (u *CommandResultPayload) SetPresentFence(
	v PresentFence,
)

func (*CommandResultPayload) SetPresentOrValidateResult

func (u *CommandResultPayload) SetPresentOrValidateResult(
	v PresentOrValidate,
)

func (*CommandResultPayload) SetReleaseFences

func (u *CommandResultPayload) SetReleaseFences(
	v ReleaseFences,
)

func (*CommandResultPayload) UnmarshalParcel

func (u *CommandResultPayload) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ComposerCallbackProxy

type ComposerCallbackProxy struct {
	Remote binder.IBinder
}

func NewComposerCallbackProxy

func NewComposerCallbackProxy(
	remote binder.IBinder,
) *ComposerCallbackProxy

func (*ComposerCallbackProxy) AsBinder

func (p *ComposerCallbackProxy) AsBinder() binder.IBinder

func (*ComposerCallbackProxy) OnHotplug

func (p *ComposerCallbackProxy) OnHotplug(
	ctx context.Context,
	display int64,
	connected bool,
) error

func (*ComposerCallbackProxy) OnHotplugEvent

func (p *ComposerCallbackProxy) OnHotplugEvent(
	ctx context.Context,
	display int64,
	event common.DisplayHotplugEvent,
) error

func (*ComposerCallbackProxy) OnRefresh

func (p *ComposerCallbackProxy) OnRefresh(
	ctx context.Context,
	display int64,
) error

func (*ComposerCallbackProxy) OnRefreshRateChangedDebug

func (p *ComposerCallbackProxy) OnRefreshRateChangedDebug(
	ctx context.Context,
	data RefreshRateChangedDebugData,
) error

func (*ComposerCallbackProxy) OnSeamlessPossible

func (p *ComposerCallbackProxy) OnSeamlessPossible(
	ctx context.Context,
	display int64,
) error

func (*ComposerCallbackProxy) OnVsync

func (p *ComposerCallbackProxy) OnVsync(
	ctx context.Context,
	display int64,
	timestamp int64,
	vsyncPeriodNanos int32,
) error

func (*ComposerCallbackProxy) OnVsyncIdle

func (p *ComposerCallbackProxy) OnVsyncIdle(
	ctx context.Context,
	display int64,
) error

func (*ComposerCallbackProxy) OnVsyncPeriodTimingChanged

func (p *ComposerCallbackProxy) OnVsyncPeriodTimingChanged(
	ctx context.Context,
	display int64,
	updatedTimeline VsyncPeriodChangeTimeline,
) error

type ComposerCallbackStub

type ComposerCallbackStub struct {
	Impl      IComposerCallback
	Transport binder.VersionAwareTransport
}

ComposerCallbackStub dispatches incoming binder transactions to a typed IComposerCallback implementation.

func (*ComposerCallbackStub) Descriptor

func (s *ComposerCallbackStub) Descriptor() string

func (*ComposerCallbackStub) OnTransaction

func (s *ComposerCallbackStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type ComposerClientProxy

type ComposerClientProxy struct {
	Remote binder.IBinder
}

func NewComposerClientProxy

func NewComposerClientProxy(
	remote binder.IBinder,
) *ComposerClientProxy

func (*ComposerClientProxy) AsBinder

func (p *ComposerClientProxy) AsBinder() binder.IBinder

func (*ComposerClientProxy) ClearBootDisplayConfig

func (p *ComposerClientProxy) ClearBootDisplayConfig(
	ctx context.Context,
	display int64,
) error

func (*ComposerClientProxy) CreateLayer

func (p *ComposerClientProxy) CreateLayer(
	ctx context.Context,
	display int64,
	bufferSlotCount int32,
) (int64, error)

func (*ComposerClientProxy) CreateVirtualDisplay

func (p *ComposerClientProxy) CreateVirtualDisplay(
	ctx context.Context,
	width int32,
	height int32,
	formatHint common.PixelFormat,
	outputBufferSlotCount int32,
) (VirtualDisplay, error)

func (*ComposerClientProxy) DestroyLayer

func (p *ComposerClientProxy) DestroyLayer(
	ctx context.Context,
	display int64,
	layer int64,
) error

func (*ComposerClientProxy) DestroyVirtualDisplay

func (p *ComposerClientProxy) DestroyVirtualDisplay(
	ctx context.Context,
	display int64,
) error

func (*ComposerClientProxy) ExecuteCommands

func (p *ComposerClientProxy) ExecuteCommands(
	ctx context.Context,
	commands []DisplayCommand,
) ([]CommandResultPayload, error)

func (*ComposerClientProxy) GetActiveConfig

func (p *ComposerClientProxy) GetActiveConfig(
	ctx context.Context,
	display int64,
) (int32, error)

func (*ComposerClientProxy) GetColorModes

func (p *ComposerClientProxy) GetColorModes(
	ctx context.Context,
	display int64,
) ([]ColorMode, error)

func (*ComposerClientProxy) GetDataspaceSaturationMatrix

func (p *ComposerClientProxy) GetDataspaceSaturationMatrix(
	ctx context.Context,
	dataspace common.Dataspace,
) ([]float32, error)

func (*ComposerClientProxy) GetDisplayAttribute

func (p *ComposerClientProxy) GetDisplayAttribute(
	ctx context.Context,
	display int64,
	config int32,
	attribute DisplayAttribute,
) (int32, error)

func (*ComposerClientProxy) GetDisplayCapabilities

func (p *ComposerClientProxy) GetDisplayCapabilities(
	ctx context.Context,
	display int64,
) ([]DisplayCapability, error)

func (*ComposerClientProxy) GetDisplayConfigs

func (p *ComposerClientProxy) GetDisplayConfigs(
	ctx context.Context,
	display int64,
) ([]int32, error)

func (*ComposerClientProxy) GetDisplayConfigurations

func (p *ComposerClientProxy) GetDisplayConfigurations(
	ctx context.Context,
	display int64,
	maxFrameIntervalNs int32,
) ([]DisplayConfiguration, error)

func (*ComposerClientProxy) GetDisplayConnectionType

func (p *ComposerClientProxy) GetDisplayConnectionType(
	ctx context.Context,
	display int64,
) (DisplayConnectionType, error)

func (*ComposerClientProxy) GetDisplayDecorationSupport

func (p *ComposerClientProxy) GetDisplayDecorationSupport(
	ctx context.Context,
	display int64,
) (common.DisplayDecorationSupport, error)

func (*ComposerClientProxy) GetDisplayIdentificationData

func (p *ComposerClientProxy) GetDisplayIdentificationData(
	ctx context.Context,
	display int64,
) (DisplayIdentification, error)

func (*ComposerClientProxy) GetDisplayName

func (p *ComposerClientProxy) GetDisplayName(
	ctx context.Context,
	display int64,
) (string, error)

func (*ComposerClientProxy) GetDisplayPhysicalOrientation

func (p *ComposerClientProxy) GetDisplayPhysicalOrientation(
	ctx context.Context,
	display int64,
) (common.Transform, error)

func (*ComposerClientProxy) GetDisplayVsyncPeriod

func (p *ComposerClientProxy) GetDisplayVsyncPeriod(
	ctx context.Context,
	display int64,
) (int32, error)

func (*ComposerClientProxy) GetDisplayedContentSample

func (p *ComposerClientProxy) GetDisplayedContentSample(
	ctx context.Context,
	display int64,
	maxFrames int64,
	timestamp int64,
) (DisplayContentSample, error)

func (*ComposerClientProxy) GetDisplayedContentSamplingAttributes

func (p *ComposerClientProxy) GetDisplayedContentSamplingAttributes(
	ctx context.Context,
	display int64,
) (DisplayContentSamplingAttributes, error)

func (*ComposerClientProxy) GetHdrCapabilities

func (p *ComposerClientProxy) GetHdrCapabilities(
	ctx context.Context,
	display int64,
) (HdrCapabilities, error)

func (*ComposerClientProxy) GetHdrConversionCapabilities

func (p *ComposerClientProxy) GetHdrConversionCapabilities(
	ctx context.Context,
) ([]common.HdrConversionCapability, error)

func (*ComposerClientProxy) GetMaxVirtualDisplayCount

func (p *ComposerClientProxy) GetMaxVirtualDisplayCount(
	ctx context.Context,
) (int32, error)

func (*ComposerClientProxy) GetOverlaySupport

func (p *ComposerClientProxy) GetOverlaySupport(
	ctx context.Context,
) (OverlayProperties, error)

func (*ComposerClientProxy) GetPerFrameMetadataKeys

func (p *ComposerClientProxy) GetPerFrameMetadataKeys(
	ctx context.Context,
	display int64,
) ([]PerFrameMetadataKey, error)

func (*ComposerClientProxy) GetPreferredBootDisplayConfig

func (p *ComposerClientProxy) GetPreferredBootDisplayConfig(
	ctx context.Context,
	display int64,
) (int32, error)

func (*ComposerClientProxy) GetReadbackBufferAttributes

func (p *ComposerClientProxy) GetReadbackBufferAttributes(
	ctx context.Context,
	display int64,
) (ReadbackBufferAttributes, error)

func (*ComposerClientProxy) GetReadbackBufferFence

func (p *ComposerClientProxy) GetReadbackBufferFence(
	ctx context.Context,
	display int64,
) (int32, error)

func (*ComposerClientProxy) GetRenderIntents

func (p *ComposerClientProxy) GetRenderIntents(
	ctx context.Context,
	display int64,
	mode ColorMode,
) ([]RenderIntent, error)

func (*ComposerClientProxy) GetSupportedContentTypes

func (p *ComposerClientProxy) GetSupportedContentTypes(
	ctx context.Context,
	display int64,
) ([]ContentType, error)

func (*ComposerClientProxy) NotifyExpectedPresent

func (p *ComposerClientProxy) NotifyExpectedPresent(
	ctx context.Context,
	display int64,
	expectedPresentTime ClockMonotonicTimestamp,
	frameIntervalNs int32,
) error

func (*ComposerClientProxy) RegisterCallback

func (p *ComposerClientProxy) RegisterCallback(
	ctx context.Context,
	callback IComposerCallback,
) error

func (*ComposerClientProxy) SetActiveConfig

func (p *ComposerClientProxy) SetActiveConfig(
	ctx context.Context,
	display int64,
	config int32,
) error

func (*ComposerClientProxy) SetActiveConfigWithConstraints

func (p *ComposerClientProxy) SetActiveConfigWithConstraints(
	ctx context.Context,
	display int64,
	config int32,
	vsyncPeriodChangeConstraints VsyncPeriodChangeConstraints,
) (VsyncPeriodChangeTimeline, error)

func (*ComposerClientProxy) SetAutoLowLatencyMode

func (p *ComposerClientProxy) SetAutoLowLatencyMode(
	ctx context.Context,
	display int64,
	on bool,
) error

func (*ComposerClientProxy) SetBootDisplayConfig

func (p *ComposerClientProxy) SetBootDisplayConfig(
	ctx context.Context,
	display int64,
	config int32,
) error

func (*ComposerClientProxy) SetClientTargetSlotCount

func (p *ComposerClientProxy) SetClientTargetSlotCount(
	ctx context.Context,
	display int64,
	clientTargetSlotCount int32,
) error

func (*ComposerClientProxy) SetColorMode

func (p *ComposerClientProxy) SetColorMode(
	ctx context.Context,
	display int64,
	mode ColorMode,
	intent RenderIntent,
) error

func (*ComposerClientProxy) SetContentType

func (p *ComposerClientProxy) SetContentType(
	ctx context.Context,
	display int64,
	type_ ContentType,
) error

func (*ComposerClientProxy) SetDisplayedContentSamplingEnabled

func (p *ComposerClientProxy) SetDisplayedContentSamplingEnabled(
	ctx context.Context,
	display int64,
	enable bool,
	componentMask FormatColorComponent,
	maxFrames int64,
) error

func (*ComposerClientProxy) SetHdrConversionStrategy

func (p *ComposerClientProxy) SetHdrConversionStrategy(
	ctx context.Context,
	conversionStrategy common.HdrConversionStrategy,
) (common.Hdr, error)

func (*ComposerClientProxy) SetIdleTimerEnabled

func (p *ComposerClientProxy) SetIdleTimerEnabled(
	ctx context.Context,
	display int64,
	timeoutMs int32,
) error

func (*ComposerClientProxy) SetPowerMode

func (p *ComposerClientProxy) SetPowerMode(
	ctx context.Context,
	display int64,
	mode PowerMode,
) error

func (*ComposerClientProxy) SetReadbackBuffer

func (p *ComposerClientProxy) SetReadbackBuffer(
	ctx context.Context,
	display int64,
	buffer hardwareCommon.NativeHandle,
	releaseFence *int32,
) error

func (*ComposerClientProxy) SetRefreshRateChangedCallbackDebugEnabled

func (p *ComposerClientProxy) SetRefreshRateChangedCallbackDebugEnabled(
	ctx context.Context,
	display int64,
	enabled bool,
) error

func (*ComposerClientProxy) SetVsyncEnabled

func (p *ComposerClientProxy) SetVsyncEnabled(
	ctx context.Context,
	display int64,
	enabled bool,
) error

type ComposerClientStub

type ComposerClientStub struct {
	Impl      IComposerClient
	Transport binder.VersionAwareTransport
}

ComposerClientStub dispatches incoming binder transactions to a typed IComposerClient implementation.

func (*ComposerClientStub) Descriptor

func (s *ComposerClientStub) Descriptor() string

func (*ComposerClientStub) OnTransaction

func (s *ComposerClientStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type ComposerProxy

type ComposerProxy struct {
	Remote binder.IBinder
}

func NewComposerProxy

func NewComposerProxy(
	remote binder.IBinder,
) *ComposerProxy

func (*ComposerProxy) AsBinder

func (p *ComposerProxy) AsBinder() binder.IBinder

func (*ComposerProxy) CreateClient

func (p *ComposerProxy) CreateClient(
	ctx context.Context,
) (IComposerClient, error)

func (*ComposerProxy) GetCapabilities

func (p *ComposerProxy) GetCapabilities(
	ctx context.Context,
) ([]Capability, error)

type ComposerStub

type ComposerStub struct {
	Impl      IComposer
	Transport binder.VersionAwareTransport
}

ComposerStub dispatches incoming binder transactions to a typed IComposer implementation.

func (*ComposerStub) Descriptor

func (s *ComposerStub) Descriptor() string

func (*ComposerStub) OnTransaction

func (s *ComposerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type Composition

type Composition int32
const (
	CompositionINVALID              Composition = 0
	CompositionCLIENT               Composition = 1
	CompositionDEVICE               Composition = 2
	CompositionSolidColor           Composition = 3
	CompositionCURSOR               Composition = 4
	CompositionSIDEBAND             Composition = 5
	CompositionDisplayDecoration    Composition = 6
	CompositionRefreshRateIndicator Composition = 7
)

type ContentType

type ContentType int32
const (
	ContentTypeNONE     ContentType = 0
	ContentTypeGRAPHICS ContentType = 1
	ContentTypePHOTO    ContentType = 2
	ContentTypeCINEMA   ContentType = 3
	ContentTypeGAME     ContentType = 4
)

type DimmingStage

type DimmingStage int32
const (
	DimmingStageNONE      DimmingStage = 0
	DimmingStageLINEAR    DimmingStage = 1
	DimmingStageGammaOetf DimmingStage = 2
)

type DisplayAttribute

type DisplayAttribute int32
const (
	DisplayAttributeINVALID     DisplayAttribute = 0
	DisplayAttributeWIDTH       DisplayAttribute = 1
	DisplayAttributeHEIGHT      DisplayAttribute = 2
	DisplayAttributeVsyncPeriod DisplayAttribute = 3
	DisplayAttributeDpiX        DisplayAttribute = 4
	DisplayAttributeDpiY        DisplayAttribute = 5
	DisplayAttributeConfigGroup DisplayAttribute = 7
)

type DisplayBrightness

type DisplayBrightness struct {
	Brightness     float32
	BrightnessNits float32
}

func (*DisplayBrightness) MarshalParcel

func (s *DisplayBrightness) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayBrightness) UnmarshalParcel

func (s *DisplayBrightness) UnmarshalParcel(
	p *parcel.Parcel,
) error

type DisplayCapability

type DisplayCapability int32
const (
	DisplayCapabilityINVALID                  DisplayCapability = 0
	DisplayCapabilitySkipClientColorTransform DisplayCapability = 1
	DisplayCapabilityDOZE                     DisplayCapability = 2
	DisplayCapabilityBRIGHTNESS               DisplayCapability = 3
	DisplayCapabilityProtectedContents        DisplayCapability = 4
	DisplayCapabilityAutoLowLatencyMode       DisplayCapability = 5
	DisplayCapabilitySUSPEND                  DisplayCapability = 6
	DisplayCapabilityDisplayIdleTimer         DisplayCapability = 7
	DisplayCapabilityMultiThreadedPresent     DisplayCapability = 8
)

type DisplayCommand

type DisplayCommand struct {
	Display                    int64
	Layers                     []LayerCommand
	ColorTransformMatrix       []float32
	Brightness                 *DisplayBrightness
	ClientTarget               *ClientTarget
	VirtualDisplayOutputBuffer *Buffer
	ExpectedPresentTime        *ClockMonotonicTimestamp
	ValidateDisplay            bool
	AcceptDisplayChanges       bool
	PresentDisplay             bool
	PresentOrValidateDisplay   bool
	FrameIntervalNs            int32
}

func (*DisplayCommand) MarshalParcel

func (s *DisplayCommand) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayCommand) UnmarshalParcel

func (s *DisplayCommand) UnmarshalParcel(
	p *parcel.Parcel,
) error

type DisplayConfiguration

type DisplayConfiguration struct {
	ConfigId    int32
	Width       int32
	Height      int32
	Dpi         *DisplayConfigurationDpi
	ConfigGroup int32
	VsyncPeriod int32
	VrrConfig   *VrrConfig
}

func (*DisplayConfiguration) MarshalParcel

func (s *DisplayConfiguration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayConfiguration) UnmarshalParcel

func (s *DisplayConfiguration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type DisplayConfigurationDpi

type DisplayConfigurationDpi struct {
	X float32
	Y float32
}

func (*DisplayConfigurationDpi) MarshalParcel

func (s *DisplayConfigurationDpi) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayConfigurationDpi) UnmarshalParcel

func (s *DisplayConfigurationDpi) UnmarshalParcel(
	p *parcel.Parcel,
) error

type DisplayConnectionType

type DisplayConnectionType int32
const (
	DisplayConnectionTypeINTERNAL DisplayConnectionType = 0
	DisplayConnectionTypeEXTERNAL DisplayConnectionType = 1
)

type DisplayContentSample

type DisplayContentSample struct {
	FrameCount       int64
	SampleComponent0 []int64
	SampleComponent1 []int64
	SampleComponent2 []int64
	SampleComponent3 []int64
}

func (*DisplayContentSample) MarshalParcel

func (s *DisplayContentSample) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayContentSample) UnmarshalParcel

func (s *DisplayContentSample) UnmarshalParcel(
	p *parcel.Parcel,
) error

type DisplayContentSamplingAttributes

type DisplayContentSamplingAttributes struct {
	Format        common.PixelFormat
	Dataspace     common.Dataspace
	ComponentMask FormatColorComponent
}

func (*DisplayContentSamplingAttributes) MarshalParcel

func (s *DisplayContentSamplingAttributes) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayContentSamplingAttributes) UnmarshalParcel

func (s *DisplayContentSamplingAttributes) UnmarshalParcel(
	p *parcel.Parcel,
) error

type DisplayIdentification

type DisplayIdentification struct {
	Port byte
	Data []byte
}

func (*DisplayIdentification) MarshalParcel

func (s *DisplayIdentification) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayIdentification) UnmarshalParcel

func (s *DisplayIdentification) UnmarshalParcel(
	p *parcel.Parcel,
) error

type DisplayRequest

type DisplayRequest struct {
	Display       int64
	Mask          int32
	LayerRequests []DisplayRequestLayerRequest
}

func (*DisplayRequest) MarshalParcel

func (s *DisplayRequest) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayRequest) UnmarshalParcel

func (s *DisplayRequest) UnmarshalParcel(
	p *parcel.Parcel,
) error

type DisplayRequestLayerRequest

type DisplayRequestLayerRequest struct {
	Layer int64
	Mask  int32
}

func (*DisplayRequestLayerRequest) MarshalParcel

func (s *DisplayRequestLayerRequest) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DisplayRequestLayerRequest) UnmarshalParcel

func (s *DisplayRequestLayerRequest) UnmarshalParcel(
	p *parcel.Parcel,
) error

type FormatColorComponent

type FormatColorComponent byte
const (
	FormatColorComponentFormatComponent0 FormatColorComponent = (1 << 0)
	FormatColorComponentFormatComponent1 FormatColorComponent = (1 << 1)
	FormatColorComponentFormatComponent2 FormatColorComponent = (1 << 2)
	FormatColorComponentFormatComponent3 FormatColorComponent = (1 << 3)
)

type HdrCapabilities

type HdrCapabilities struct {
	Types               []common.Hdr
	MaxLuminance        float32
	MaxAverageLuminance float32
	MinLuminance        float32
}

func (*HdrCapabilities) MarshalParcel

func (s *HdrCapabilities) MarshalParcel(
	p *parcel.Parcel,
) error

func (*HdrCapabilities) UnmarshalParcel

func (s *HdrCapabilities) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IComposer

type IComposer interface {
	AsBinder() binder.IBinder
	CreateClient(ctx context.Context) (IComposerClient, error)
	GetCapabilities(ctx context.Context) ([]Capability, error)
}

func NewComposerStub

func NewComposerStub(
	impl IComposerServer,
) IComposer

NewComposerStub creates a server-side IComposer wrapping the given server implementation. The returned value satisfies IComposer and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IComposerCallback

type IComposerCallback interface {
	AsBinder() binder.IBinder
	OnHotplug(ctx context.Context, display int64, connected bool) error
	OnRefresh(ctx context.Context, display int64) error
	OnSeamlessPossible(ctx context.Context, display int64) error
	OnVsync(ctx context.Context, display int64, timestamp int64, vsyncPeriodNanos int32) error
	OnVsyncPeriodTimingChanged(ctx context.Context, display int64, updatedTimeline VsyncPeriodChangeTimeline) error
	OnVsyncIdle(ctx context.Context, display int64) error
	OnRefreshRateChangedDebug(ctx context.Context, data RefreshRateChangedDebugData) error
	OnHotplugEvent(ctx context.Context, display int64, event common.DisplayHotplugEvent) error
}

func NewComposerCallbackStub

func NewComposerCallbackStub(
	impl IComposerCallbackServer,
) IComposerCallback

NewComposerCallbackStub creates a server-side IComposerCallback wrapping the given server implementation. The returned value satisfies IComposerCallback and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IComposerCallbackServer

type IComposerCallbackServer interface {
	OnHotplug(ctx context.Context, display int64, connected bool) error
	OnRefresh(ctx context.Context, display int64) error
	OnSeamlessPossible(ctx context.Context, display int64) error
	OnVsync(ctx context.Context, display int64, timestamp int64, vsyncPeriodNanos int32) error
	OnVsyncPeriodTimingChanged(ctx context.Context, display int64, updatedTimeline VsyncPeriodChangeTimeline) error
	OnVsyncIdle(ctx context.Context, display int64) error
	OnRefreshRateChangedDebug(ctx context.Context, data RefreshRateChangedDebugData) error
	OnHotplugEvent(ctx context.Context, display int64, event common.DisplayHotplugEvent) error
}

IComposerCallbackServer is the server-side interface that user implementations provide to NewComposerCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IComposerClient

type IComposerClient interface {
	AsBinder() binder.IBinder
	CreateLayer(ctx context.Context, display int64, bufferSlotCount int32) (int64, error)
	CreateVirtualDisplay(ctx context.Context, width int32, height int32, formatHint common.PixelFormat, outputBufferSlotCount int32) (VirtualDisplay, error)
	DestroyLayer(ctx context.Context, display int64, layer int64) error
	DestroyVirtualDisplay(ctx context.Context, display int64) error
	ExecuteCommands(ctx context.Context, commands []DisplayCommand) ([]CommandResultPayload, error)
	GetActiveConfig(ctx context.Context, display int64) (int32, error)
	GetColorModes(ctx context.Context, display int64) ([]ColorMode, error)
	GetDataspaceSaturationMatrix(ctx context.Context, dataspace common.Dataspace) ([]float32, error)
	GetDisplayAttribute(ctx context.Context, display int64, config int32, attribute DisplayAttribute) (int32, error)
	GetDisplayCapabilities(ctx context.Context, display int64) ([]DisplayCapability, error)
	GetDisplayConfigs(ctx context.Context, display int64) ([]int32, error)
	GetDisplayConnectionType(ctx context.Context, display int64) (DisplayConnectionType, error)
	GetDisplayIdentificationData(ctx context.Context, display int64) (DisplayIdentification, error)
	GetDisplayName(ctx context.Context, display int64) (string, error)
	GetDisplayVsyncPeriod(ctx context.Context, display int64) (int32, error)
	GetDisplayedContentSample(ctx context.Context, display int64, maxFrames int64, timestamp int64) (DisplayContentSample, error)
	GetDisplayedContentSamplingAttributes(ctx context.Context, display int64) (DisplayContentSamplingAttributes, error)
	GetDisplayPhysicalOrientation(ctx context.Context, display int64) (common.Transform, error)
	GetHdrCapabilities(ctx context.Context, display int64) (HdrCapabilities, error)
	GetMaxVirtualDisplayCount(ctx context.Context) (int32, error)
	GetPerFrameMetadataKeys(ctx context.Context, display int64) ([]PerFrameMetadataKey, error)
	GetReadbackBufferAttributes(ctx context.Context, display int64) (ReadbackBufferAttributes, error)
	GetReadbackBufferFence(ctx context.Context, display int64) (int32, error)
	GetRenderIntents(ctx context.Context, display int64, mode ColorMode) ([]RenderIntent, error)
	GetSupportedContentTypes(ctx context.Context, display int64) ([]ContentType, error)
	GetDisplayDecorationSupport(ctx context.Context, display int64) (common.DisplayDecorationSupport, error)
	RegisterCallback(ctx context.Context, callback IComposerCallback) error
	SetActiveConfig(ctx context.Context, display int64, config int32) error
	SetActiveConfigWithConstraints(ctx context.Context, display int64, config int32, vsyncPeriodChangeConstraints VsyncPeriodChangeConstraints) (VsyncPeriodChangeTimeline, error)
	SetBootDisplayConfig(ctx context.Context, display int64, config int32) error
	ClearBootDisplayConfig(ctx context.Context, display int64) error
	GetPreferredBootDisplayConfig(ctx context.Context, display int64) (int32, error)
	SetAutoLowLatencyMode(ctx context.Context, display int64, on bool) error
	SetClientTargetSlotCount(ctx context.Context, display int64, clientTargetSlotCount int32) error
	SetColorMode(ctx context.Context, display int64, mode ColorMode, intent RenderIntent) error
	SetContentType(ctx context.Context, display int64, type_ ContentType) error
	SetDisplayedContentSamplingEnabled(ctx context.Context, display int64, enable bool, componentMask FormatColorComponent, maxFrames int64) error
	SetPowerMode(ctx context.Context, display int64, mode PowerMode) error
	SetReadbackBuffer(ctx context.Context, display int64, buffer hardwareCommon.NativeHandle, releaseFence *int32) error
	SetVsyncEnabled(ctx context.Context, display int64, enabled bool) error
	SetIdleTimerEnabled(ctx context.Context, display int64, timeoutMs int32) error
	GetOverlaySupport(ctx context.Context) (OverlayProperties, error)
	GetHdrConversionCapabilities(ctx context.Context) ([]common.HdrConversionCapability, error)
	SetHdrConversionStrategy(ctx context.Context, conversionStrategy common.HdrConversionStrategy) (common.Hdr, error)
	SetRefreshRateChangedCallbackDebugEnabled(ctx context.Context, display int64, enabled bool) error
	GetDisplayConfigurations(ctx context.Context, display int64, maxFrameIntervalNs int32) ([]DisplayConfiguration, error)
	NotifyExpectedPresent(ctx context.Context, display int64, expectedPresentTime ClockMonotonicTimestamp, frameIntervalNs int32) error
}

func NewComposerClientStub

func NewComposerClientStub(
	impl IComposerClientServer,
) IComposerClient

NewComposerClientStub creates a server-side IComposerClient wrapping the given server implementation. The returned value satisfies IComposerClient and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IComposerClientServer

type IComposerClientServer interface {
	CreateLayer(ctx context.Context, display int64, bufferSlotCount int32) (int64, error)
	CreateVirtualDisplay(ctx context.Context, width int32, height int32, formatHint common.PixelFormat, outputBufferSlotCount int32) (VirtualDisplay, error)
	DestroyLayer(ctx context.Context, display int64, layer int64) error
	DestroyVirtualDisplay(ctx context.Context, display int64) error
	ExecuteCommands(ctx context.Context, commands []DisplayCommand) ([]CommandResultPayload, error)
	GetActiveConfig(ctx context.Context, display int64) (int32, error)
	GetColorModes(ctx context.Context, display int64) ([]ColorMode, error)
	GetDataspaceSaturationMatrix(ctx context.Context, dataspace common.Dataspace) ([]float32, error)
	GetDisplayAttribute(ctx context.Context, display int64, config int32, attribute DisplayAttribute) (int32, error)
	GetDisplayCapabilities(ctx context.Context, display int64) ([]DisplayCapability, error)
	GetDisplayConfigs(ctx context.Context, display int64) ([]int32, error)
	GetDisplayConnectionType(ctx context.Context, display int64) (DisplayConnectionType, error)
	GetDisplayIdentificationData(ctx context.Context, display int64) (DisplayIdentification, error)
	GetDisplayName(ctx context.Context, display int64) (string, error)
	GetDisplayVsyncPeriod(ctx context.Context, display int64) (int32, error)
	GetDisplayedContentSample(ctx context.Context, display int64, maxFrames int64, timestamp int64) (DisplayContentSample, error)
	GetDisplayedContentSamplingAttributes(ctx context.Context, display int64) (DisplayContentSamplingAttributes, error)
	GetDisplayPhysicalOrientation(ctx context.Context, display int64) (common.Transform, error)
	GetHdrCapabilities(ctx context.Context, display int64) (HdrCapabilities, error)
	GetMaxVirtualDisplayCount(ctx context.Context) (int32, error)
	GetPerFrameMetadataKeys(ctx context.Context, display int64) ([]PerFrameMetadataKey, error)
	GetReadbackBufferAttributes(ctx context.Context, display int64) (ReadbackBufferAttributes, error)
	GetReadbackBufferFence(ctx context.Context, display int64) (int32, error)
	GetRenderIntents(ctx context.Context, display int64, mode ColorMode) ([]RenderIntent, error)
	GetSupportedContentTypes(ctx context.Context, display int64) ([]ContentType, error)
	GetDisplayDecorationSupport(ctx context.Context, display int64) (common.DisplayDecorationSupport, error)
	RegisterCallback(ctx context.Context, callback IComposerCallback) error
	SetActiveConfig(ctx context.Context, display int64, config int32) error
	SetActiveConfigWithConstraints(ctx context.Context, display int64, config int32, vsyncPeriodChangeConstraints VsyncPeriodChangeConstraints) (VsyncPeriodChangeTimeline, error)
	SetBootDisplayConfig(ctx context.Context, display int64, config int32) error
	ClearBootDisplayConfig(ctx context.Context, display int64) error
	GetPreferredBootDisplayConfig(ctx context.Context, display int64) (int32, error)
	SetAutoLowLatencyMode(ctx context.Context, display int64, on bool) error
	SetClientTargetSlotCount(ctx context.Context, display int64, clientTargetSlotCount int32) error
	SetColorMode(ctx context.Context, display int64, mode ColorMode, intent RenderIntent) error
	SetContentType(ctx context.Context, display int64, type_ ContentType) error
	SetDisplayedContentSamplingEnabled(ctx context.Context, display int64, enable bool, componentMask FormatColorComponent, maxFrames int64) error
	SetPowerMode(ctx context.Context, display int64, mode PowerMode) error
	SetReadbackBuffer(ctx context.Context, display int64, buffer hardwareCommon.NativeHandle, releaseFence *int32) error
	SetVsyncEnabled(ctx context.Context, display int64, enabled bool) error
	SetIdleTimerEnabled(ctx context.Context, display int64, timeoutMs int32) error
	GetOverlaySupport(ctx context.Context) (OverlayProperties, error)
	GetHdrConversionCapabilities(ctx context.Context) ([]common.HdrConversionCapability, error)
	SetHdrConversionStrategy(ctx context.Context, conversionStrategy common.HdrConversionStrategy) (common.Hdr, error)
	SetRefreshRateChangedCallbackDebugEnabled(ctx context.Context, display int64, enabled bool) error
	GetDisplayConfigurations(ctx context.Context, display int64, maxFrameIntervalNs int32) ([]DisplayConfiguration, error)
	NotifyExpectedPresent(ctx context.Context, display int64, expectedPresentTime ClockMonotonicTimestamp, frameIntervalNs int32) error
}

IComposerClientServer is the server-side interface that user implementations provide to NewComposerClientStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IComposerServer

type IComposerServer interface {
	CreateClient(ctx context.Context) (IComposerClient, error)
	GetCapabilities(ctx context.Context) ([]Capability, error)
}

IComposerServer is the server-side interface that user implementations provide to NewComposerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type LayerBrightness

type LayerBrightness struct {
	Brightness float32
}

func (*LayerBrightness) MarshalParcel

func (s *LayerBrightness) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LayerBrightness) UnmarshalParcel

func (s *LayerBrightness) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LayerCommand

type LayerCommand struct {
	Layer                          int64
	CursorPosition                 *common.Point
	Buffer                         *Buffer
	Damage                         []common.Rect
	BlendMode                      *ParcelableBlendMode
	Color                          *Color
	Composition                    *ParcelableComposition
	Dataspace                      *ParcelableDataspace
	DisplayFrame                   *common.Rect
	PlaneAlpha                     *PlaneAlpha
	SidebandStream                 *hardwareCommon.NativeHandle
	SourceCrop                     *common.FRect
	Transform                      *ParcelableTransform
	VisibleRegion                  []common.Rect
	Z                              *ZOrder
	ColorTransform                 []float32
	Brightness                     *LayerBrightness
	PerFrameMetadata               []PerFrameMetadata
	PerFrameMetadataBlob           []PerFrameMetadataBlob
	BlockingRegion                 []common.Rect
	BufferSlotsToClear             []int32
	LayerLifecycleBatchCommandType LayerLifecycleBatchCommandType
	NewBufferSlotCount             int32
}

func (*LayerCommand) MarshalParcel

func (s *LayerCommand) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LayerCommand) UnmarshalParcel

func (s *LayerCommand) UnmarshalParcel(
	p *parcel.Parcel,
) error

type LayerLifecycleBatchCommandType

type LayerLifecycleBatchCommandType int32
const (
	LayerLifecycleBatchCommandTypeMODIFY  LayerLifecycleBatchCommandType = 0
	LayerLifecycleBatchCommandTypeCREATE  LayerLifecycleBatchCommandType = 1
	LayerLifecycleBatchCommandTypeDESTROY LayerLifecycleBatchCommandType = 2
)

type OverlayProperties

type OverlayProperties struct {
	Combinations            []OverlayPropertiesSupportedBufferCombinations
	SupportMixedColorSpaces bool
}

func (*OverlayProperties) MarshalParcel

func (s *OverlayProperties) MarshalParcel(
	p *parcel.Parcel,
) error

func (*OverlayProperties) UnmarshalParcel

func (s *OverlayProperties) UnmarshalParcel(
	p *parcel.Parcel,
) error

type OverlayPropertiesSupportedBufferCombinations

type OverlayPropertiesSupportedBufferCombinations struct {
	PixelFormats []common.PixelFormat
	Standards    []common.Dataspace
	Transfers    []common.Dataspace
	Ranges       []common.Dataspace
}

func (*OverlayPropertiesSupportedBufferCombinations) MarshalParcel

func (*OverlayPropertiesSupportedBufferCombinations) UnmarshalParcel

type ParcelableBlendMode

type ParcelableBlendMode struct {
	BlendMode common.BlendMode
}

func (*ParcelableBlendMode) MarshalParcel

func (s *ParcelableBlendMode) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ParcelableBlendMode) UnmarshalParcel

func (s *ParcelableBlendMode) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ParcelableComposition

type ParcelableComposition struct {
	Composition Composition
}

func (*ParcelableComposition) MarshalParcel

func (s *ParcelableComposition) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ParcelableComposition) UnmarshalParcel

func (s *ParcelableComposition) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ParcelableDataspace

type ParcelableDataspace struct {
	Dataspace common.Dataspace
}

func (*ParcelableDataspace) MarshalParcel

func (s *ParcelableDataspace) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ParcelableDataspace) UnmarshalParcel

func (s *ParcelableDataspace) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ParcelableTransform

type ParcelableTransform struct {
	Transform common.Transform
}

func (*ParcelableTransform) MarshalParcel

func (s *ParcelableTransform) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ParcelableTransform) UnmarshalParcel

func (s *ParcelableTransform) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PerFrameMetadata

type PerFrameMetadata struct {
	Key   PerFrameMetadataKey
	Value float32
}

func (*PerFrameMetadata) MarshalParcel

func (s *PerFrameMetadata) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PerFrameMetadata) UnmarshalParcel

func (s *PerFrameMetadata) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PerFrameMetadataBlob

type PerFrameMetadataBlob struct {
	Key  PerFrameMetadataKey
	Blob []byte
}

func (*PerFrameMetadataBlob) MarshalParcel

func (s *PerFrameMetadataBlob) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PerFrameMetadataBlob) UnmarshalParcel

func (s *PerFrameMetadataBlob) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PerFrameMetadataKey

type PerFrameMetadataKey int32
const (
	PerFrameMetadataKeyDisplayRedPrimaryX        PerFrameMetadataKey = 0
	PerFrameMetadataKeyDisplayRedPrimaryY        PerFrameMetadataKey = 1
	PerFrameMetadataKeyDisplayGreenPrimaryX      PerFrameMetadataKey = 2
	PerFrameMetadataKeyDisplayGreenPrimaryY      PerFrameMetadataKey = 3
	PerFrameMetadataKeyDisplayBluePrimaryX       PerFrameMetadataKey = 4
	PerFrameMetadataKeyDisplayBluePrimaryY       PerFrameMetadataKey = 5
	PerFrameMetadataKeyWhitePointX               PerFrameMetadataKey = 6
	PerFrameMetadataKeyWhitePointY               PerFrameMetadataKey = 7
	PerFrameMetadataKeyMaxLuminance              PerFrameMetadataKey = 8
	PerFrameMetadataKeyMinLuminance              PerFrameMetadataKey = 9
	PerFrameMetadataKeyMaxContentLightLevel      PerFrameMetadataKey = 10
	PerFrameMetadataKeyMaxFrameAverageLightLevel PerFrameMetadataKey = 11
	PerFrameMetadataKeyHdr10PlusSei              PerFrameMetadataKey = 12
)

type PlaneAlpha

type PlaneAlpha struct {
	Alpha float32
}

func (*PlaneAlpha) MarshalParcel

func (s *PlaneAlpha) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PlaneAlpha) UnmarshalParcel

func (s *PlaneAlpha) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PowerMode

type PowerMode int32
const (
	PowerModeOFF         PowerMode = 0
	PowerModeDOZE        PowerMode = 1
	PowerModeDozeSuspend PowerMode = 3
	PowerModeON          PowerMode = 2
	PowerModeOnSuspend   PowerMode = 4
)

type PresentFence

type PresentFence struct {
	Display int64
	Fence   int32
}

func (*PresentFence) MarshalParcel

func (s *PresentFence) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PresentFence) UnmarshalParcel

func (s *PresentFence) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PresentOrValidate

type PresentOrValidate struct {
	Display int64
	Result  PresentOrValidateResult
}

func (*PresentOrValidate) MarshalParcel

func (s *PresentOrValidate) MarshalParcel(
	p *parcel.Parcel,
) error

func (*PresentOrValidate) UnmarshalParcel

func (s *PresentOrValidate) UnmarshalParcel(
	p *parcel.Parcel,
) error

type PresentOrValidateResult

type PresentOrValidateResult int32
const (
	PresentOrValidateResultValidated PresentOrValidateResult = 0
	PresentOrValidateResultPresented PresentOrValidateResult = 1
)

type ReadbackBufferAttributes

type ReadbackBufferAttributes struct {
	Format    common.PixelFormat
	Dataspace common.Dataspace
}

func (*ReadbackBufferAttributes) MarshalParcel

func (s *ReadbackBufferAttributes) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ReadbackBufferAttributes) UnmarshalParcel

func (s *ReadbackBufferAttributes) UnmarshalParcel(
	p *parcel.Parcel,
) error

type RefreshRateChangedDebugData

type RefreshRateChangedDebugData struct {
	Display            int64
	VsyncPeriodNanos   int32
	RefreshPeriodNanos int32
}

func (*RefreshRateChangedDebugData) MarshalParcel

func (s *RefreshRateChangedDebugData) MarshalParcel(
	p *parcel.Parcel,
) error

func (*RefreshRateChangedDebugData) UnmarshalParcel

func (s *RefreshRateChangedDebugData) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ReleaseFences

type ReleaseFences struct {
	Display int64
	Layers  []ReleaseFencesLayer
}

func (*ReleaseFences) MarshalParcel

func (s *ReleaseFences) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ReleaseFences) UnmarshalParcel

func (s *ReleaseFences) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ReleaseFencesLayer

type ReleaseFencesLayer struct {
	Layer int64
	Fence int32
}

func (*ReleaseFencesLayer) MarshalParcel

func (s *ReleaseFencesLayer) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ReleaseFencesLayer) UnmarshalParcel

func (s *ReleaseFencesLayer) UnmarshalParcel(
	p *parcel.Parcel,
) error

type RenderIntent

type RenderIntent int32
const (
	RenderIntentCOLORIMETRIC        RenderIntent = 0
	RenderIntentENHANCE             RenderIntent = 1
	RenderIntentToneMapColorimetric RenderIntent = 2
	RenderIntentToneMapEnhance      RenderIntent = 3
)

type VirtualDisplay

type VirtualDisplay struct {
	Display int64
	Format  common.PixelFormat
}

func (*VirtualDisplay) MarshalParcel

func (s *VirtualDisplay) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualDisplay) UnmarshalParcel

func (s *VirtualDisplay) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VrrConfig

type VrrConfig struct {
	MinFrameIntervalNs          int32
	FrameIntervalPowerHints     []VrrConfigFrameIntervalPowerHint
	NotifyExpectedPresentConfig *VrrConfigNotifyExpectedPresentConfig
}

func (*VrrConfig) MarshalParcel

func (s *VrrConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VrrConfig) UnmarshalParcel

func (s *VrrConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VrrConfigFrameIntervalPowerHint

type VrrConfigFrameIntervalPowerHint struct {
	FrameIntervalNs        int32
	AverageRefreshPeriodNs int32
}

func (*VrrConfigFrameIntervalPowerHint) MarshalParcel

func (s *VrrConfigFrameIntervalPowerHint) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VrrConfigFrameIntervalPowerHint) UnmarshalParcel

func (s *VrrConfigFrameIntervalPowerHint) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VrrConfigNotifyExpectedPresentConfig

type VrrConfigNotifyExpectedPresentConfig struct {
	HeadsUpNs int32
	TimeoutNs int32
}

func (*VrrConfigNotifyExpectedPresentConfig) MarshalParcel

func (s *VrrConfigNotifyExpectedPresentConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VrrConfigNotifyExpectedPresentConfig) UnmarshalParcel

func (s *VrrConfigNotifyExpectedPresentConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VsyncPeriodChangeConstraints

type VsyncPeriodChangeConstraints struct {
	DesiredTimeNanos int64
	SeamlessRequired bool
}

func (*VsyncPeriodChangeConstraints) MarshalParcel

func (s *VsyncPeriodChangeConstraints) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VsyncPeriodChangeConstraints) UnmarshalParcel

func (s *VsyncPeriodChangeConstraints) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VsyncPeriodChangeTimeline

type VsyncPeriodChangeTimeline struct {
	NewVsyncAppliedTimeNanos int64
	RefreshRequired          bool
	RefreshTimeNanos         int64
}

func (*VsyncPeriodChangeTimeline) MarshalParcel

func (s *VsyncPeriodChangeTimeline) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VsyncPeriodChangeTimeline) UnmarshalParcel

func (s *VsyncPeriodChangeTimeline) UnmarshalParcel(
	p *parcel.Parcel,
) error

type ZOrder

type ZOrder struct {
	Z int32
}

func (*ZOrder) MarshalParcel

func (s *ZOrder) MarshalParcel(
	p *parcel.Parcel,
) error

func (*ZOrder) UnmarshalParcel

func (s *ZOrder) UnmarshalParcel(
	p *parcel.Parcel,
) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL