Documentation
¶
Index ¶
- Constants
- type ConnectProtocol
- type EndpointInfo
- type HardwareIdentifiers
- type IIvnAndroidDevice
- type IIvnAndroidDeviceServer
- type IvnAndroidDeviceProxy
- func (p *IvnAndroidDeviceProxy) AsBinder() binder.IBinder
- func (p *IvnAndroidDeviceProxy) GetDeviceIdForOccupantZone(ctx context.Context, zoneId int32) (int32, error)
- func (p *IvnAndroidDeviceProxy) GetEndpointInfoForDevice(ctx context.Context, androidDeviceId int32) (EndpointInfo, error)
- func (p *IvnAndroidDeviceProxy) GetMyDeviceId(ctx context.Context) (int32, error)
- func (p *IvnAndroidDeviceProxy) GetMyEndpointInfo(ctx context.Context) (EndpointInfo, error)
- func (p *IvnAndroidDeviceProxy) GetOccupantZonesForDevice(ctx context.Context, androidDeviceId int32) ([]OccupantZoneInfo, error)
- func (p *IvnAndroidDeviceProxy) GetOtherDeviceIds(ctx context.Context) ([]int32, error)
- type IvnAndroidDeviceStub
- type OccupantType
- type OccupantZoneInfo
Constants ¶
View Source
const ( TransactionIIvnAndroidDeviceGetMyDeviceId = binder.FirstCallTransaction + 0 TransactionIIvnAndroidDeviceGetOtherDeviceIds = binder.FirstCallTransaction + 1 TransactionIIvnAndroidDeviceGetDeviceIdForOccupantZone = binder.FirstCallTransaction + 2 TransactionIIvnAndroidDeviceGetOccupantZonesForDevice = binder.FirstCallTransaction + 3 TransactionIIvnAndroidDeviceGetMyEndpointInfo = binder.FirstCallTransaction + 4 TransactionIIvnAndroidDeviceGetEndpointInfoForDevice = binder.FirstCallTransaction + 5 )
View Source
const ( MethodIIvnAndroidDeviceGetMyDeviceId = "getMyDeviceId" MethodIIvnAndroidDeviceGetOtherDeviceIds = "getOtherDeviceIds" MethodIIvnAndroidDeviceGetDeviceIdForOccupantZone = "getDeviceIdForOccupantZone" MethodIIvnAndroidDeviceGetOccupantZonesForDevice = "getOccupantZonesForDevice" MethodIIvnAndroidDeviceGetMyEndpointInfo = "getMyEndpointInfo" MethodIIvnAndroidDeviceGetEndpointInfoForDevice = "getEndpointInfoForDevice" )
View Source
const DescriptorIIvnAndroidDevice = "android.hardware.automotive.ivn.IIvnAndroidDevice"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectProtocol ¶
type ConnectProtocol int32
const (
ConnectProtocolTcpIp ConnectProtocol = 0
)
type EndpointInfo ¶
type EndpointInfo struct {
ConnectProtocol ConnectProtocol
IpAddress string
PortNumber int32
HardwareId HardwareIdentifiers
}
func (*EndpointInfo) MarshalParcel ¶
func (s *EndpointInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*EndpointInfo) UnmarshalParcel ¶
func (s *EndpointInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type HardwareIdentifiers ¶
type HardwareIdentifiers struct {
BrandName string
DeviceName string
ProductName string
ManufacturerName string
ModelName string
SerialNumber string
}
func (*HardwareIdentifiers) MarshalParcel ¶
func (s *HardwareIdentifiers) MarshalParcel( p *parcel.Parcel, ) error
func (*HardwareIdentifiers) UnmarshalParcel ¶
func (s *HardwareIdentifiers) UnmarshalParcel( p *parcel.Parcel, ) error
type IIvnAndroidDevice ¶
type IIvnAndroidDevice interface {
AsBinder() binder.IBinder
GetMyDeviceId(ctx context.Context) (int32, error)
GetOtherDeviceIds(ctx context.Context) ([]int32, error)
GetDeviceIdForOccupantZone(ctx context.Context, zoneId int32) (int32, error)
GetOccupantZonesForDevice(ctx context.Context, androidDeviceId int32) ([]OccupantZoneInfo, error)
GetMyEndpointInfo(ctx context.Context) (EndpointInfo, error)
GetEndpointInfoForDevice(ctx context.Context, androidDeviceId int32) (EndpointInfo, error)
}
func NewIvnAndroidDeviceStub ¶
func NewIvnAndroidDeviceStub( impl IIvnAndroidDeviceServer, ) IIvnAndroidDevice
NewIvnAndroidDeviceStub creates a server-side IIvnAndroidDevice wrapping the given server implementation. The returned value satisfies IIvnAndroidDevice 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 IIvnAndroidDeviceServer ¶
type IIvnAndroidDeviceServer interface {
GetMyDeviceId(ctx context.Context) (int32, error)
GetOtherDeviceIds(ctx context.Context) ([]int32, error)
GetDeviceIdForOccupantZone(ctx context.Context, zoneId int32) (int32, error)
GetOccupantZonesForDevice(ctx context.Context, androidDeviceId int32) ([]OccupantZoneInfo, error)
GetMyEndpointInfo(ctx context.Context) (EndpointInfo, error)
GetEndpointInfoForDevice(ctx context.Context, androidDeviceId int32) (EndpointInfo, error)
}
IIvnAndroidDeviceServer is the server-side interface that user implementations provide to NewIvnAndroidDeviceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IvnAndroidDeviceProxy ¶
func NewIvnAndroidDeviceProxy ¶
func NewIvnAndroidDeviceProxy( remote binder.IBinder, ) *IvnAndroidDeviceProxy
func (*IvnAndroidDeviceProxy) AsBinder ¶
func (p *IvnAndroidDeviceProxy) AsBinder() binder.IBinder
func (*IvnAndroidDeviceProxy) GetDeviceIdForOccupantZone ¶
func (*IvnAndroidDeviceProxy) GetEndpointInfoForDevice ¶
func (p *IvnAndroidDeviceProxy) GetEndpointInfoForDevice( ctx context.Context, androidDeviceId int32, ) (EndpointInfo, error)
func (*IvnAndroidDeviceProxy) GetMyDeviceId ¶
func (p *IvnAndroidDeviceProxy) GetMyDeviceId( ctx context.Context, ) (int32, error)
func (*IvnAndroidDeviceProxy) GetMyEndpointInfo ¶
func (p *IvnAndroidDeviceProxy) GetMyEndpointInfo( ctx context.Context, ) (EndpointInfo, error)
func (*IvnAndroidDeviceProxy) GetOccupantZonesForDevice ¶
func (p *IvnAndroidDeviceProxy) GetOccupantZonesForDevice( ctx context.Context, androidDeviceId int32, ) ([]OccupantZoneInfo, error)
func (*IvnAndroidDeviceProxy) GetOtherDeviceIds ¶
func (p *IvnAndroidDeviceProxy) GetOtherDeviceIds( ctx context.Context, ) ([]int32, error)
type IvnAndroidDeviceStub ¶
type IvnAndroidDeviceStub struct {
Impl IIvnAndroidDevice
Transport binder.VersionAwareTransport
}
IvnAndroidDeviceStub dispatches incoming binder transactions to a typed IIvnAndroidDevice implementation.
func (*IvnAndroidDeviceStub) Descriptor ¶
func (s *IvnAndroidDeviceStub) Descriptor() string
func (*IvnAndroidDeviceStub) OnTransaction ¶
func (s *IvnAndroidDeviceStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type OccupantType ¶
type OccupantType int32
const ( OccupantTypeDRIVER OccupantType = 1 OccupantTypeFrontPassenger OccupantType = 2 OccupantTypeRearPassenger OccupantType = 3 )
type OccupantZoneInfo ¶
type OccupantZoneInfo struct {
ZoneId int32
OccupantType OccupantType
Seat int32
}
func (*OccupantZoneInfo) MarshalParcel ¶
func (s *OccupantZoneInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*OccupantZoneInfo) UnmarshalParcel ¶
func (s *OccupantZoneInfo) UnmarshalParcel( p *parcel.Parcel, ) error
Click to show internal directories.
Click to hide internal directories.