Documentation
¶
Index ¶
- Constants
- type IRadioConfig
- type IRadioConfigIndication
- type IRadioConfigIndicationServer
- type IRadioConfigResponse
- type IRadioConfigResponseServer
- type IRadioConfigServer
- type MultipleEnabledProfilesMode
- type PhoneCapability
- type RadioConfigIndicationProxy
- func (p *RadioConfigIndicationProxy) AsBinder() binder.IBinder
- func (p *RadioConfigIndicationProxy) OnSimultaneousCallingSupportChanged(ctx context.Context, enabledLogicalSlots []int32) error
- func (p *RadioConfigIndicationProxy) SimSlotsStatusChanged(ctx context.Context, type_ radio.RadioIndicationType, ...) error
- type RadioConfigIndicationStub
- type RadioConfigProxy
- func (p *RadioConfigProxy) AsBinder() binder.IBinder
- func (p *RadioConfigProxy) GetHalDeviceCapabilities(ctx context.Context, serial int32) error
- func (p *RadioConfigProxy) GetNumOfLiveModems(ctx context.Context, serial int32) error
- func (p *RadioConfigProxy) GetPhoneCapability(ctx context.Context, serial int32) error
- func (p *RadioConfigProxy) GetSimSlotsStatus(ctx context.Context, serial int32) error
- func (p *RadioConfigProxy) GetSimultaneousCallingSupport(ctx context.Context, serial int32) error
- func (p *RadioConfigProxy) SetNumOfLiveModems(ctx context.Context, serial int32, numOfLiveModems byte) error
- func (p *RadioConfigProxy) SetPreferredDataModem(ctx context.Context, serial int32, modemId byte) error
- func (p *RadioConfigProxy) SetResponseFunctions(ctx context.Context, radioConfigResponse IRadioConfigResponse, ...) error
- func (p *RadioConfigProxy) SetSimSlotsMapping(ctx context.Context, serial int32, slotMap []SlotPortMapping) error
- type RadioConfigResponseProxy
- func (p *RadioConfigResponseProxy) AsBinder() binder.IBinder
- func (p *RadioConfigResponseProxy) GetHalDeviceCapabilitiesResponse(ctx context.Context, info radio.RadioResponseInfo, ...) error
- func (p *RadioConfigResponseProxy) GetNumOfLiveModemsResponse(ctx context.Context, info radio.RadioResponseInfo, numOfLiveModems byte) error
- func (p *RadioConfigResponseProxy) GetPhoneCapabilityResponse(ctx context.Context, info radio.RadioResponseInfo, ...) error
- func (p *RadioConfigResponseProxy) GetSimSlotsStatusResponse(ctx context.Context, info radio.RadioResponseInfo, slotStatus []SimSlotStatus) error
- func (p *RadioConfigResponseProxy) GetSimultaneousCallingSupportResponse(ctx context.Context, info radio.RadioResponseInfo, enabledLogicalSlots []int32) error
- func (p *RadioConfigResponseProxy) SetNumOfLiveModemsResponse(ctx context.Context, info radio.RadioResponseInfo) error
- func (p *RadioConfigResponseProxy) SetPreferredDataModemResponse(ctx context.Context, info radio.RadioResponseInfo) error
- func (p *RadioConfigResponseProxy) SetSimSlotsMappingResponse(ctx context.Context, info radio.RadioResponseInfo) error
- type RadioConfigResponseStub
- type RadioConfigStub
- type SimPortInfo
- type SimSlotStatus
- type SlotPortMapping
Constants ¶
const ( TransactionIRadioConfigGetHalDeviceCapabilities = binder.FirstCallTransaction + 0 TransactionIRadioConfigGetNumOfLiveModems = binder.FirstCallTransaction + 1 TransactionIRadioConfigGetPhoneCapability = binder.FirstCallTransaction + 2 TransactionIRadioConfigGetSimSlotsStatus = binder.FirstCallTransaction + 3 TransactionIRadioConfigSetNumOfLiveModems = binder.FirstCallTransaction + 4 TransactionIRadioConfigSetPreferredDataModem = binder.FirstCallTransaction + 5 TransactionIRadioConfigSetResponseFunctions = binder.FirstCallTransaction + 6 TransactionIRadioConfigSetSimSlotsMapping = binder.FirstCallTransaction + 7 TransactionIRadioConfigGetSimultaneousCallingSupport = binder.FirstCallTransaction + 8 )
const ( MethodIRadioConfigGetHalDeviceCapabilities = "getHalDeviceCapabilities" MethodIRadioConfigGetNumOfLiveModems = "getNumOfLiveModems" MethodIRadioConfigGetPhoneCapability = "getPhoneCapability" MethodIRadioConfigGetSimSlotsStatus = "getSimSlotsStatus" MethodIRadioConfigSetNumOfLiveModems = "setNumOfLiveModems" MethodIRadioConfigSetPreferredDataModem = "setPreferredDataModem" MethodIRadioConfigSetResponseFunctions = "setResponseFunctions" MethodIRadioConfigSetSimSlotsMapping = "setSimSlotsMapping" MethodIRadioConfigGetSimultaneousCallingSupport = "getSimultaneousCallingSupport" )
const ( TransactionIRadioConfigIndicationSimSlotsStatusChanged = binder.FirstCallTransaction + 0 TransactionIRadioConfigIndicationOnSimultaneousCallingSupportChanged = binder.FirstCallTransaction + 1 )
const ( MethodIRadioConfigIndicationSimSlotsStatusChanged = "simSlotsStatusChanged" MethodIRadioConfigIndicationOnSimultaneousCallingSupportChanged = "onSimultaneousCallingSupportChanged" )
const ( TransactionIRadioConfigResponseGetHalDeviceCapabilitiesResponse = binder.FirstCallTransaction + 0 TransactionIRadioConfigResponseGetNumOfLiveModemsResponse = binder.FirstCallTransaction + 1 TransactionIRadioConfigResponseGetPhoneCapabilityResponse = binder.FirstCallTransaction + 2 TransactionIRadioConfigResponseGetSimSlotsStatusResponse = binder.FirstCallTransaction + 3 TransactionIRadioConfigResponseSetNumOfLiveModemsResponse = binder.FirstCallTransaction + 4 TransactionIRadioConfigResponseSetPreferredDataModemResponse = binder.FirstCallTransaction + 5 TransactionIRadioConfigResponseSetSimSlotsMappingResponse = binder.FirstCallTransaction + 6 TransactionIRadioConfigResponseGetSimultaneousCallingSupportResponse = binder.FirstCallTransaction + 7 )
const ( MethodIRadioConfigResponseGetHalDeviceCapabilitiesResponse = "getHalDeviceCapabilitiesResponse" MethodIRadioConfigResponseGetNumOfLiveModemsResponse = "getNumOfLiveModemsResponse" MethodIRadioConfigResponseGetPhoneCapabilityResponse = "getPhoneCapabilityResponse" MethodIRadioConfigResponseGetSimSlotsStatusResponse = "getSimSlotsStatusResponse" MethodIRadioConfigResponseSetNumOfLiveModemsResponse = "setNumOfLiveModemsResponse" MethodIRadioConfigResponseSetPreferredDataModemResponse = "setPreferredDataModemResponse" MethodIRadioConfigResponseSetSimSlotsMappingResponse = "setSimSlotsMappingResponse" MethodIRadioConfigResponseGetSimultaneousCallingSupportResponse = "getSimultaneousCallingSupportResponse" )
const DescriptorIRadioConfig = "android.hardware.radio.config.IRadioConfig"
const DescriptorIRadioConfigIndication = "android.hardware.radio.config.IRadioConfigIndication"
const DescriptorIRadioConfigResponse = "android.hardware.radio.config.IRadioConfigResponse"
const (
PhoneCapabilityUNKNOWN byte = 255
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRadioConfig ¶
type IRadioConfig interface {
AsBinder() binder.IBinder
GetHalDeviceCapabilities(ctx context.Context, serial int32) error
GetNumOfLiveModems(ctx context.Context, serial int32) error
GetPhoneCapability(ctx context.Context, serial int32) error
GetSimSlotsStatus(ctx context.Context, serial int32) error
SetNumOfLiveModems(ctx context.Context, serial int32, numOfLiveModems byte) error
SetPreferredDataModem(ctx context.Context, serial int32, modemId byte) error
SetResponseFunctions(ctx context.Context, radioConfigResponse IRadioConfigResponse, radioConfigIndication IRadioConfigIndication) error
SetSimSlotsMapping(ctx context.Context, serial int32, slotMap []SlotPortMapping) error
GetSimultaneousCallingSupport(ctx context.Context, serial int32) error
}
func NewRadioConfigStub ¶
func NewRadioConfigStub( impl IRadioConfigServer, ) IRadioConfig
NewRadioConfigStub creates a server-side IRadioConfig wrapping the given server implementation. The returned value satisfies IRadioConfig 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 IRadioConfigIndication ¶
type IRadioConfigIndication interface {
AsBinder() binder.IBinder
SimSlotsStatusChanged(ctx context.Context, type_ radio.RadioIndicationType, slotStatus []SimSlotStatus) error
OnSimultaneousCallingSupportChanged(ctx context.Context, enabledLogicalSlots []int32) error
}
func NewRadioConfigIndicationStub ¶
func NewRadioConfigIndicationStub( impl IRadioConfigIndicationServer, ) IRadioConfigIndication
NewRadioConfigIndicationStub creates a server-side IRadioConfigIndication wrapping the given server implementation. The returned value satisfies IRadioConfigIndication 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 IRadioConfigIndicationServer ¶
type IRadioConfigIndicationServer interface {
SimSlotsStatusChanged(ctx context.Context, type_ radio.RadioIndicationType, slotStatus []SimSlotStatus) error
OnSimultaneousCallingSupportChanged(ctx context.Context, enabledLogicalSlots []int32) error
}
IRadioConfigIndicationServer is the server-side interface that user implementations provide to NewRadioConfigIndicationStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IRadioConfigResponse ¶
type IRadioConfigResponse interface {
AsBinder() binder.IBinder
GetHalDeviceCapabilitiesResponse(ctx context.Context, info radio.RadioResponseInfo, modemReducedFeatureSet1 bool) error
GetNumOfLiveModemsResponse(ctx context.Context, info radio.RadioResponseInfo, numOfLiveModems byte) error
GetPhoneCapabilityResponse(ctx context.Context, info radio.RadioResponseInfo, phoneCapability PhoneCapability) error
GetSimSlotsStatusResponse(ctx context.Context, info radio.RadioResponseInfo, slotStatus []SimSlotStatus) error
SetNumOfLiveModemsResponse(ctx context.Context, info radio.RadioResponseInfo) error
SetPreferredDataModemResponse(ctx context.Context, info radio.RadioResponseInfo) error
SetSimSlotsMappingResponse(ctx context.Context, info radio.RadioResponseInfo) error
GetSimultaneousCallingSupportResponse(ctx context.Context, info radio.RadioResponseInfo, enabledLogicalSlots []int32) error
}
func NewRadioConfigResponseStub ¶
func NewRadioConfigResponseStub( impl IRadioConfigResponseServer, ) IRadioConfigResponse
NewRadioConfigResponseStub creates a server-side IRadioConfigResponse wrapping the given server implementation. The returned value satisfies IRadioConfigResponse 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 IRadioConfigResponseServer ¶
type IRadioConfigResponseServer interface {
GetHalDeviceCapabilitiesResponse(ctx context.Context, info radio.RadioResponseInfo, modemReducedFeatureSet1 bool) error
GetNumOfLiveModemsResponse(ctx context.Context, info radio.RadioResponseInfo, numOfLiveModems byte) error
GetPhoneCapabilityResponse(ctx context.Context, info radio.RadioResponseInfo, phoneCapability PhoneCapability) error
GetSimSlotsStatusResponse(ctx context.Context, info radio.RadioResponseInfo, slotStatus []SimSlotStatus) error
SetNumOfLiveModemsResponse(ctx context.Context, info radio.RadioResponseInfo) error
SetPreferredDataModemResponse(ctx context.Context, info radio.RadioResponseInfo) error
SetSimSlotsMappingResponse(ctx context.Context, info radio.RadioResponseInfo) error
GetSimultaneousCallingSupportResponse(ctx context.Context, info radio.RadioResponseInfo, enabledLogicalSlots []int32) error
}
IRadioConfigResponseServer is the server-side interface that user implementations provide to NewRadioConfigResponseStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IRadioConfigServer ¶
type IRadioConfigServer interface {
GetHalDeviceCapabilities(ctx context.Context, serial int32) error
GetNumOfLiveModems(ctx context.Context, serial int32) error
GetPhoneCapability(ctx context.Context, serial int32) error
GetSimSlotsStatus(ctx context.Context, serial int32) error
SetNumOfLiveModems(ctx context.Context, serial int32, numOfLiveModems byte) error
SetPreferredDataModem(ctx context.Context, serial int32, modemId byte) error
SetResponseFunctions(ctx context.Context, radioConfigResponse IRadioConfigResponse, radioConfigIndication IRadioConfigIndication) error
SetSimSlotsMapping(ctx context.Context, serial int32, slotMap []SlotPortMapping) error
GetSimultaneousCallingSupport(ctx context.Context, serial int32) error
}
IRadioConfigServer is the server-side interface that user implementations provide to NewRadioConfigStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type MultipleEnabledProfilesMode ¶
type MultipleEnabledProfilesMode int32
const ( MultipleEnabledProfilesModeNONE MultipleEnabledProfilesMode = 0 MultipleEnabledProfilesModeMepA1 MultipleEnabledProfilesMode = 1 MultipleEnabledProfilesModeMepA2 MultipleEnabledProfilesMode = 2 MultipleEnabledProfilesModeMepB MultipleEnabledProfilesMode = 3 )
type PhoneCapability ¶
type PhoneCapability struct {
MaxActiveData byte
MaxActiveInternetData byte
IsInternetLingeringSupported bool
LogicalModemIds []byte
MaxActiveVoice byte
}
func (*PhoneCapability) MarshalParcel ¶
func (s *PhoneCapability) MarshalParcel( p *parcel.Parcel, ) error
func (*PhoneCapability) UnmarshalParcel ¶
func (s *PhoneCapability) UnmarshalParcel( p *parcel.Parcel, ) error
type RadioConfigIndicationProxy ¶
func NewRadioConfigIndicationProxy ¶
func NewRadioConfigIndicationProxy( remote binder.IBinder, ) *RadioConfigIndicationProxy
func (*RadioConfigIndicationProxy) AsBinder ¶
func (p *RadioConfigIndicationProxy) AsBinder() binder.IBinder
func (*RadioConfigIndicationProxy) OnSimultaneousCallingSupportChanged ¶
func (p *RadioConfigIndicationProxy) OnSimultaneousCallingSupportChanged( ctx context.Context, enabledLogicalSlots []int32, ) error
func (*RadioConfigIndicationProxy) SimSlotsStatusChanged ¶
func (p *RadioConfigIndicationProxy) SimSlotsStatusChanged( ctx context.Context, type_ radio.RadioIndicationType, slotStatus []SimSlotStatus, ) error
type RadioConfigIndicationStub ¶
type RadioConfigIndicationStub struct {
Impl IRadioConfigIndication
Transport binder.VersionAwareTransport
}
RadioConfigIndicationStub dispatches incoming binder transactions to a typed IRadioConfigIndication implementation.
func (*RadioConfigIndicationStub) Descriptor ¶
func (s *RadioConfigIndicationStub) Descriptor() string
func (*RadioConfigIndicationStub) OnTransaction ¶
func (s *RadioConfigIndicationStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type RadioConfigProxy ¶
func NewRadioConfigProxy ¶
func NewRadioConfigProxy( remote binder.IBinder, ) *RadioConfigProxy
func (*RadioConfigProxy) AsBinder ¶
func (p *RadioConfigProxy) AsBinder() binder.IBinder
func (*RadioConfigProxy) GetHalDeviceCapabilities ¶
func (p *RadioConfigProxy) GetHalDeviceCapabilities( ctx context.Context, serial int32, ) error
func (*RadioConfigProxy) GetNumOfLiveModems ¶
func (p *RadioConfigProxy) GetNumOfLiveModems( ctx context.Context, serial int32, ) error
func (*RadioConfigProxy) GetPhoneCapability ¶
func (p *RadioConfigProxy) GetPhoneCapability( ctx context.Context, serial int32, ) error
func (*RadioConfigProxy) GetSimSlotsStatus ¶
func (p *RadioConfigProxy) GetSimSlotsStatus( ctx context.Context, serial int32, ) error
func (*RadioConfigProxy) GetSimultaneousCallingSupport ¶
func (p *RadioConfigProxy) GetSimultaneousCallingSupport( ctx context.Context, serial int32, ) error
func (*RadioConfigProxy) SetNumOfLiveModems ¶
func (*RadioConfigProxy) SetPreferredDataModem ¶
func (*RadioConfigProxy) SetResponseFunctions ¶
func (p *RadioConfigProxy) SetResponseFunctions( ctx context.Context, radioConfigResponse IRadioConfigResponse, radioConfigIndication IRadioConfigIndication, ) error
func (*RadioConfigProxy) SetSimSlotsMapping ¶
func (p *RadioConfigProxy) SetSimSlotsMapping( ctx context.Context, serial int32, slotMap []SlotPortMapping, ) error
type RadioConfigResponseProxy ¶
func NewRadioConfigResponseProxy ¶
func NewRadioConfigResponseProxy( remote binder.IBinder, ) *RadioConfigResponseProxy
func (*RadioConfigResponseProxy) AsBinder ¶
func (p *RadioConfigResponseProxy) AsBinder() binder.IBinder
func (*RadioConfigResponseProxy) GetHalDeviceCapabilitiesResponse ¶
func (p *RadioConfigResponseProxy) GetHalDeviceCapabilitiesResponse( ctx context.Context, info radio.RadioResponseInfo, modemReducedFeatureSet1 bool, ) error
func (*RadioConfigResponseProxy) GetNumOfLiveModemsResponse ¶
func (p *RadioConfigResponseProxy) GetNumOfLiveModemsResponse( ctx context.Context, info radio.RadioResponseInfo, numOfLiveModems byte, ) error
func (*RadioConfigResponseProxy) GetPhoneCapabilityResponse ¶
func (p *RadioConfigResponseProxy) GetPhoneCapabilityResponse( ctx context.Context, info radio.RadioResponseInfo, phoneCapability PhoneCapability, ) error
func (*RadioConfigResponseProxy) GetSimSlotsStatusResponse ¶
func (p *RadioConfigResponseProxy) GetSimSlotsStatusResponse( ctx context.Context, info radio.RadioResponseInfo, slotStatus []SimSlotStatus, ) error
func (*RadioConfigResponseProxy) GetSimultaneousCallingSupportResponse ¶
func (p *RadioConfigResponseProxy) GetSimultaneousCallingSupportResponse( ctx context.Context, info radio.RadioResponseInfo, enabledLogicalSlots []int32, ) error
func (*RadioConfigResponseProxy) SetNumOfLiveModemsResponse ¶
func (p *RadioConfigResponseProxy) SetNumOfLiveModemsResponse( ctx context.Context, info radio.RadioResponseInfo, ) error
func (*RadioConfigResponseProxy) SetPreferredDataModemResponse ¶
func (p *RadioConfigResponseProxy) SetPreferredDataModemResponse( ctx context.Context, info radio.RadioResponseInfo, ) error
func (*RadioConfigResponseProxy) SetSimSlotsMappingResponse ¶
func (p *RadioConfigResponseProxy) SetSimSlotsMappingResponse( ctx context.Context, info radio.RadioResponseInfo, ) error
type RadioConfigResponseStub ¶
type RadioConfigResponseStub struct {
Impl IRadioConfigResponse
Transport binder.VersionAwareTransport
}
RadioConfigResponseStub dispatches incoming binder transactions to a typed IRadioConfigResponse implementation.
func (*RadioConfigResponseStub) Descriptor ¶
func (s *RadioConfigResponseStub) Descriptor() string
func (*RadioConfigResponseStub) OnTransaction ¶
func (s *RadioConfigResponseStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type RadioConfigStub ¶
type RadioConfigStub struct {
Impl IRadioConfig
Transport binder.VersionAwareTransport
}
RadioConfigStub dispatches incoming binder transactions to a typed IRadioConfig implementation.
func (*RadioConfigStub) Descriptor ¶
func (s *RadioConfigStub) Descriptor() string
func (*RadioConfigStub) OnTransaction ¶
func (s *RadioConfigStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type SimPortInfo ¶
func (*SimPortInfo) MarshalParcel ¶
func (s *SimPortInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*SimPortInfo) UnmarshalParcel ¶
func (s *SimPortInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type SimSlotStatus ¶
type SimSlotStatus struct {
CardState int32
Atr string
Eid string
PortInfo []SimPortInfo
SupportedMepMode MultipleEnabledProfilesMode
}
func (*SimSlotStatus) MarshalParcel ¶
func (s *SimSlotStatus) MarshalParcel( p *parcel.Parcel, ) error
func (*SimSlotStatus) UnmarshalParcel ¶
func (s *SimSlotStatus) UnmarshalParcel( p *parcel.Parcel, ) error
type SlotPortMapping ¶
func (*SlotPortMapping) MarshalParcel ¶
func (s *SlotPortMapping) MarshalParcel( p *parcel.Parcel, ) error
func (*SlotPortMapping) UnmarshalParcel ¶
func (s *SlotPortMapping) UnmarshalParcel( p *parcel.Parcel, ) error