Documentation
¶
Index ¶
- Constants
- type CarDisplayProxyProxy
- func (p *CarDisplayProxyProxy) AsBinder() binder.IBinder
- func (p *CarDisplayProxyProxy) GetDisplayIdList(ctx context.Context) ([]int64, error)
- func (p *CarDisplayProxyProxy) GetDisplayInfo(ctx context.Context, id int64) (DisplayDesc, error)
- func (p *CarDisplayProxyProxy) GetHGraphicBufferProducer(ctx context.Context, id int64) (common.NativeHandle, error)
- func (p *CarDisplayProxyProxy) GetSurface(ctx context.Context, id int64) (view.Surface, error)
- func (p *CarDisplayProxyProxy) HideWindow(ctx context.Context, id int64) error
- func (p *CarDisplayProxyProxy) ShowWindow(ctx context.Context, id int64) error
- type CarDisplayProxyStub
- type DisplayDesc
- type ICarDisplayProxy
- type ICarDisplayProxyServer
- type Rotation
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 ¶
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 (*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 ¶
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).
Click to show internal directories.
Click to hide internal directories.