Help us shape the future of Go! Take the 2026 Go Developer Survey

display

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionICarDisplayProxyGetDisplayIdList          = binder.FirstCallTransaction + 0
	TransactionICarDisplayProxyGetDisplayInfo            = binder.FirstCallTransaction + 1
	TransactionICarDisplayProxyGetHGraphicBufferProducer = binder.FirstCallTransaction + 2
	TransactionICarDisplayProxyHideWindow                = binder.FirstCallTransaction + 3
	TransactionICarDisplayProxyShowWindow                = binder.FirstCallTransaction + 4
	TransactionICarDisplayProxyGetSurface                = binder.FirstCallTransaction + 5
)
View Source
const (
	MethodICarDisplayProxyGetDisplayIdList          = "getDisplayIdList"
	MethodICarDisplayProxyGetDisplayInfo            = "getDisplayInfo"
	MethodICarDisplayProxyGetHGraphicBufferProducer = "getHGraphicBufferProducer"
	MethodICarDisplayProxyHideWindow                = "hideWindow"
	MethodICarDisplayProxyShowWindow                = "showWindow"
	MethodICarDisplayProxyGetSurface                = "getSurface"
)
View Source
const DescriptorICarDisplayProxy = "android.frameworks.automotive.display.ICarDisplayProxy"

Variables

This section is empty.

Functions

This section is empty.

Types

type CarDisplayProxyProxy

type CarDisplayProxyProxy struct {
	Remote binder.IBinder
}

func NewCarDisplayProxyProxy

func NewCarDisplayProxyProxy(
	remote binder.IBinder,
) *CarDisplayProxyProxy

func (*CarDisplayProxyProxy) AsBinder

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

func (*CarDisplayProxyProxy) GetDisplayIdList

func (p *CarDisplayProxyProxy) GetDisplayIdList(
	ctx context.Context,
) ([]int64, error)

func (*CarDisplayProxyProxy) GetDisplayInfo

func (p *CarDisplayProxyProxy) GetDisplayInfo(
	ctx context.Context,
	id int64,
) (DisplayDesc, error)

func (*CarDisplayProxyProxy) GetHGraphicBufferProducer

func (p *CarDisplayProxyProxy) GetHGraphicBufferProducer(
	ctx context.Context,
	id int64,
) (common.NativeHandle, error)

func (*CarDisplayProxyProxy) GetSurface

func (p *CarDisplayProxyProxy) GetSurface(
	ctx context.Context,
	id int64,
) (view.Surface, error)

func (*CarDisplayProxyProxy) HideWindow

func (p *CarDisplayProxyProxy) HideWindow(
	ctx context.Context,
	id int64,
) error

func (*CarDisplayProxyProxy) ShowWindow

func (p *CarDisplayProxyProxy) ShowWindow(
	ctx context.Context,
	id int64,
) error

type CarDisplayProxyStub

type CarDisplayProxyStub struct {
	Impl      ICarDisplayProxy
	Transport binder.VersionAwareTransport
}

CarDisplayProxyStub dispatches incoming binder transactions to a typed ICarDisplayProxy implementation.

func (*CarDisplayProxyStub) Descriptor

func (s *CarDisplayProxyStub) Descriptor() string

func (*CarDisplayProxyStub) OnTransaction

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

type DisplayDesc

type DisplayDesc struct {
	Width       int32
	Height      int32
	Layer       int64
	Orientation Rotation
}

func (*DisplayDesc) MarshalParcel

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

func (*DisplayDesc) UnmarshalParcel

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

type ICarDisplayProxy

type ICarDisplayProxy interface {
	AsBinder() binder.IBinder
	GetDisplayIdList(ctx context.Context) ([]int64, error)
	GetDisplayInfo(ctx context.Context, id int64) (DisplayDesc, error)
	GetHGraphicBufferProducer(ctx context.Context, id int64) (common.NativeHandle, error)
	HideWindow(ctx context.Context, id int64) error
	ShowWindow(ctx context.Context, id int64) error
	GetSurface(ctx context.Context, id int64) (view.Surface, error)
}

func NewCarDisplayProxyStub

func NewCarDisplayProxyStub(
	impl ICarDisplayProxyServer,
) ICarDisplayProxy

NewCarDisplayProxyStub creates a server-side ICarDisplayProxy wrapping the given server implementation. The returned value satisfies ICarDisplayProxy 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 ICarDisplayProxyServer

type ICarDisplayProxyServer interface {
	GetDisplayIdList(ctx context.Context) ([]int64, error)
	GetDisplayInfo(ctx context.Context, id int64) (DisplayDesc, error)
	GetHGraphicBufferProducer(ctx context.Context, id int64) (common.NativeHandle, error)
	HideWindow(ctx context.Context, id int64) error
	ShowWindow(ctx context.Context, id int64) error
	GetSurface(ctx context.Context, id int64) (view.Surface, error)
}

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

type Rotation

type Rotation int32
const (
	RotationRotation0   Rotation = 0
	RotationRotation90  Rotation = 1
	RotationRotation180 Rotation = 2
	RotationRotation270 Rotation = 3
)

Jump to

Keyboard shortcuts

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