config

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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
)
View Source
const (
	MethodIRadioConfigGetHalDeviceCapabilities      = "getHalDeviceCapabilities"
	MethodIRadioConfigGetNumOfLiveModems            = "getNumOfLiveModems"
	MethodIRadioConfigGetPhoneCapability            = "getPhoneCapability"
	MethodIRadioConfigGetSimSlotsStatus             = "getSimSlotsStatus"
	MethodIRadioConfigSetNumOfLiveModems            = "setNumOfLiveModems"
	MethodIRadioConfigSetPreferredDataModem         = "setPreferredDataModem"
	MethodIRadioConfigSetResponseFunctions          = "setResponseFunctions"
	MethodIRadioConfigSetSimSlotsMapping            = "setSimSlotsMapping"
	MethodIRadioConfigGetSimultaneousCallingSupport = "getSimultaneousCallingSupport"
)
View Source
const (
	TransactionIRadioConfigIndicationSimSlotsStatusChanged               = binder.FirstCallTransaction + 0
	TransactionIRadioConfigIndicationOnSimultaneousCallingSupportChanged = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIRadioConfigIndicationSimSlotsStatusChanged               = "simSlotsStatusChanged"
	MethodIRadioConfigIndicationOnSimultaneousCallingSupportChanged = "onSimultaneousCallingSupportChanged"
)
View Source
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
)
View Source
const (
	MethodIRadioConfigResponseGetHalDeviceCapabilitiesResponse      = "getHalDeviceCapabilitiesResponse"
	MethodIRadioConfigResponseGetNumOfLiveModemsResponse            = "getNumOfLiveModemsResponse"
	MethodIRadioConfigResponseGetPhoneCapabilityResponse            = "getPhoneCapabilityResponse"
	MethodIRadioConfigResponseGetSimSlotsStatusResponse             = "getSimSlotsStatusResponse"
	MethodIRadioConfigResponseSetNumOfLiveModemsResponse            = "setNumOfLiveModemsResponse"
	MethodIRadioConfigResponseSetPreferredDataModemResponse         = "setPreferredDataModemResponse"
	MethodIRadioConfigResponseSetSimSlotsMappingResponse            = "setSimSlotsMappingResponse"
	MethodIRadioConfigResponseGetSimultaneousCallingSupportResponse = "getSimultaneousCallingSupportResponse"
)
View Source
const DescriptorIRadioConfig = "android.hardware.radio.config.IRadioConfig"
View Source
const DescriptorIRadioConfigIndication = "android.hardware.radio.config.IRadioConfigIndication"
View Source
const DescriptorIRadioConfigResponse = "android.hardware.radio.config.IRadioConfigResponse"
View Source
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

type RadioConfigIndicationProxy struct {
	Remote binder.IBinder
}

func NewRadioConfigIndicationProxy

func NewRadioConfigIndicationProxy(
	remote binder.IBinder,
) *RadioConfigIndicationProxy

func (*RadioConfigIndicationProxy) AsBinder

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

type RadioConfigProxy struct {
	Remote binder.IBinder
}

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 (p *RadioConfigProxy) SetNumOfLiveModems(
	ctx context.Context,
	serial int32,
	numOfLiveModems byte,
) error

func (*RadioConfigProxy) SetPreferredDataModem

func (p *RadioConfigProxy) SetPreferredDataModem(
	ctx context.Context,
	serial int32,
	modemId byte,
) error

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

type RadioConfigResponseProxy struct {
	Remote binder.IBinder
}

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

type SimPortInfo struct {
	IccId         string
	LogicalSlotId int32
	PortActive    bool
}

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

type SlotPortMapping struct {
	PhysicalSlotId int32
	PortId         int32
}

func (*SlotPortMapping) MarshalParcel

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

func (*SlotPortMapping) UnmarshalParcel

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

Jump to

Keyboard shortcuts

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