nl80211

package
v0.0.6 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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIApInterfaceRegisterCallback = binder.FirstCallTransaction + 0
	TransactionIApInterfaceGetInterfaceName = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIApInterfaceRegisterCallback = "registerCallback"
	MethodIApInterfaceGetInterfaceName = "getInterfaceName"
)
View Source
const (
	IApInterfaceEncryptionTypeNone int32 = 0
	IApInterfaceEncryptionTypeWpa  int32 = 1
	IApInterfaceEncryptionTypeWpa2 int32 = 2
)
View Source
const (
	TransactionIApInterfaceEventCallbackOnConnectedClientsChanged = binder.FirstCallTransaction + 0
	TransactionIApInterfaceEventCallbackOnSoftApChannelSwitched   = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIApInterfaceEventCallbackOnConnectedClientsChanged = "onConnectedClientsChanged"
	MethodIApInterfaceEventCallbackOnSoftApChannelSwitched   = "onSoftApChannelSwitched"
)
View Source
const (
	IApInterfaceEventCallbackBandwidthInvalid int32 = 0
	IApInterfaceEventCallbackBandwidth20Noht  int32 = 1
	IApInterfaceEventCallbackBandwidth20      int32 = 2
	IApInterfaceEventCallbackBandwidth40      int32 = 3
	IApInterfaceEventCallbackBandwidth80      int32 = 4
	IApInterfaceEventCallbackBandwidth80p80   int32 = 5
	IApInterfaceEventCallbackBandwidth160     int32 = 6
	IApInterfaceEventCallbackBandwidth320     int32 = 7
)
View Source
const (
	TransactionIClientInterfaceGetPacketCounters  = binder.FirstCallTransaction + 0
	TransactionIClientInterfaceSignalPoll         = binder.FirstCallTransaction + 1
	TransactionIClientInterfaceGetMacAddress      = binder.FirstCallTransaction + 2
	TransactionIClientInterfaceGetInterfaceName   = binder.FirstCallTransaction + 3
	TransactionIClientInterfaceGetWifiScannerImpl = binder.FirstCallTransaction + 4
	TransactionIClientInterfaceSendMgmtFrame      = binder.FirstCallTransaction + 5
)
View Source
const (
	MethodIClientInterfaceGetPacketCounters  = "getPacketCounters"
	MethodIClientInterfaceSignalPoll         = "signalPoll"
	MethodIClientInterfaceGetMacAddress      = "getMacAddress"
	MethodIClientInterfaceGetInterfaceName   = "getInterfaceName"
	MethodIClientInterfaceGetWifiScannerImpl = "getWifiScannerImpl"
	MethodIClientInterfaceSendMgmtFrame      = "SendMgmtFrame"
)
View Source
const (
	TransactionIInterfaceEventCallbackOnClientInterfaceReady = binder.FirstCallTransaction + 0
	TransactionIInterfaceEventCallbackOnApInterfaceReady     = binder.FirstCallTransaction + 1
	TransactionIInterfaceEventCallbackOnClientTorndownEvent  = binder.FirstCallTransaction + 2
	TransactionIInterfaceEventCallbackOnApTorndownEvent      = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodIInterfaceEventCallbackOnClientInterfaceReady = "OnClientInterfaceReady"
	MethodIInterfaceEventCallbackOnApInterfaceReady     = "OnApInterfaceReady"
	MethodIInterfaceEventCallbackOnClientTorndownEvent  = "OnClientTorndownEvent"
	MethodIInterfaceEventCallbackOnApTorndownEvent      = "OnApTorndownEvent"
)
View Source
const (
	TransactionIPnoScanEventOnPnoNetworkFound = binder.FirstCallTransaction + 0
	TransactionIPnoScanEventOnPnoScanFailed   = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIPnoScanEventOnPnoNetworkFound = "OnPnoNetworkFound"
	MethodIPnoScanEventOnPnoScanFailed   = "OnPnoScanFailed"
)
View Source
const (
	TransactionIScanEventOnScanResultReady   = binder.FirstCallTransaction + 0
	TransactionIScanEventOnScanFailed        = binder.FirstCallTransaction + 1
	TransactionIScanEventOnScanRequestFailed = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIScanEventOnScanResultReady   = "OnScanResultReady"
	MethodIScanEventOnScanFailed        = "OnScanFailed"
	MethodIScanEventOnScanRequestFailed = "OnScanRequestFailed"
)
View Source
const (
	TransactionISendMgmtFrameEventOnAck     = binder.FirstCallTransaction + 0
	TransactionISendMgmtFrameEventOnFailure = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodISendMgmtFrameEventOnAck     = "OnAck"
	MethodISendMgmtFrameEventOnFailure = "OnFailure"
)
View Source
const (
	ISendMgmtFrameEventSendMgmtFrameErrorUnknown        int32 = 1
	ISendMgmtFrameEventSendMgmtFrameErrorMcsUnsupported int32 = 2
	ISendMgmtFrameEventSendMgmtFrameErrorNoAck          int32 = 3
	ISendMgmtFrameEventSendMgmtFrameErrorTimeout        int32 = 4
	ISendMgmtFrameEventSendMgmtFrameErrorAlreadyStarted int32 = 5
)
View Source
const (
	TransactionIWificondCreateApInterface               = binder.FirstCallTransaction + 0
	TransactionIWificondCreateClientInterface           = binder.FirstCallTransaction + 1
	TransactionIWificondTearDownApInterface             = binder.FirstCallTransaction + 2
	TransactionIWificondTearDownClientInterface         = binder.FirstCallTransaction + 3
	TransactionIWificondTearDownInterfaces              = binder.FirstCallTransaction + 4
	TransactionIWificondGetClientInterfaces             = binder.FirstCallTransaction + 5
	TransactionIWificondGetApInterfaces                 = binder.FirstCallTransaction + 6
	TransactionIWificondGetAvailable2gChannels          = binder.FirstCallTransaction + 7
	TransactionIWificondGetAvailable5gNonDFSChannels    = binder.FirstCallTransaction + 8
	TransactionIWificondGetAvailableDFSChannels         = binder.FirstCallTransaction + 9
	TransactionIWificondGetAvailable6gChannels          = binder.FirstCallTransaction + 10
	TransactionIWificondGetAvailable60gChannels         = binder.FirstCallTransaction + 11
	TransactionIWificondRegisterCallback                = binder.FirstCallTransaction + 12
	TransactionIWificondUnregisterCallback              = binder.FirstCallTransaction + 13
	TransactionIWificondRegisterWificondEventCallback   = binder.FirstCallTransaction + 14
	TransactionIWificondUnregisterWificondEventCallback = binder.FirstCallTransaction + 15
	TransactionIWificondGetDeviceWiphyCapabilities      = binder.FirstCallTransaction + 16
	TransactionIWificondNotifyCountryCodeChanged        = binder.FirstCallTransaction + 17
)
View Source
const (
	MethodIWificondCreateApInterface               = "createApInterface"
	MethodIWificondCreateClientInterface           = "createClientInterface"
	MethodIWificondTearDownApInterface             = "tearDownApInterface"
	MethodIWificondTearDownClientInterface         = "tearDownClientInterface"
	MethodIWificondTearDownInterfaces              = "tearDownInterfaces"
	MethodIWificondGetClientInterfaces             = "GetClientInterfaces"
	MethodIWificondGetApInterfaces                 = "GetApInterfaces"
	MethodIWificondGetAvailable2gChannels          = "getAvailable2gChannels"
	MethodIWificondGetAvailable5gNonDFSChannels    = "getAvailable5gNonDFSChannels"
	MethodIWificondGetAvailableDFSChannels         = "getAvailableDFSChannels"
	MethodIWificondGetAvailable6gChannels          = "getAvailable6gChannels"
	MethodIWificondGetAvailable60gChannels         = "getAvailable60gChannels"
	MethodIWificondRegisterCallback                = "RegisterCallback"
	MethodIWificondUnregisterCallback              = "UnregisterCallback"
	MethodIWificondRegisterWificondEventCallback   = "registerWificondEventCallback"
	MethodIWificondUnregisterWificondEventCallback = "unregisterWificondEventCallback"
	MethodIWificondGetDeviceWiphyCapabilities      = "getDeviceWiphyCapabilities"
	MethodIWificondNotifyCountryCodeChanged        = "notifyCountryCodeChanged"
)
View Source
const (
	TransactionIWifiScannerImplGetScanResults           = binder.FirstCallTransaction + 0
	TransactionIWifiScannerImplGetPnoScanResults        = binder.FirstCallTransaction + 1
	TransactionIWifiScannerImplGetMaxSsidsPerScan       = binder.FirstCallTransaction + 2
	TransactionIWifiScannerImplScan                     = binder.FirstCallTransaction + 3
	TransactionIWifiScannerImplScanRequest              = binder.FirstCallTransaction + 4
	TransactionIWifiScannerImplSubscribeScanEvents      = binder.FirstCallTransaction + 5
	TransactionIWifiScannerImplUnsubscribeScanEvents    = binder.FirstCallTransaction + 6
	TransactionIWifiScannerImplSubscribePnoScanEvents   = binder.FirstCallTransaction + 7
	TransactionIWifiScannerImplUnsubscribePnoScanEvents = binder.FirstCallTransaction + 8
	TransactionIWifiScannerImplStartPnoScan             = binder.FirstCallTransaction + 9
	TransactionIWifiScannerImplStopPnoScan              = binder.FirstCallTransaction + 10
	TransactionIWifiScannerImplAbortScan                = binder.FirstCallTransaction + 11
)
View Source
const (
	MethodIWifiScannerImplGetScanResults           = "getScanResults"
	MethodIWifiScannerImplGetPnoScanResults        = "getPnoScanResults"
	MethodIWifiScannerImplGetMaxSsidsPerScan       = "getMaxSsidsPerScan"
	MethodIWifiScannerImplScan                     = "scan"
	MethodIWifiScannerImplScanRequest              = "scanRequest"
	MethodIWifiScannerImplSubscribeScanEvents      = "subscribeScanEvents"
	MethodIWifiScannerImplUnsubscribeScanEvents    = "unsubscribeScanEvents"
	MethodIWifiScannerImplSubscribePnoScanEvents   = "subscribePnoScanEvents"
	MethodIWifiScannerImplUnsubscribePnoScanEvents = "unsubscribePnoScanEvents"
	MethodIWifiScannerImplStartPnoScan             = "startPnoScan"
	MethodIWifiScannerImplStopPnoScan              = "stopPnoScan"
	MethodIWifiScannerImplAbortScan                = "abortScan"
)
View Source
const (
	IWifiScannerImplScanTypeLowSpan             int32 = 0
	IWifiScannerImplScanTypeLowPower            int32 = 1
	IWifiScannerImplScanTypeHighAccuracy        int32 = 2
	IWifiScannerImplScanStatusSuccess           int32 = 0
	IWifiScannerImplScanStatusFailedGeneric     int32 = 1
	IWifiScannerImplScanStatusFailedBusy        int32 = 2
	IWifiScannerImplScanStatusFailedAbort       int32 = 3
	IWifiScannerImplScanStatusFailedNodev       int32 = 4
	IWifiScannerImplScanStatusFailedInvalidArgs int32 = 5
	IWifiScannerImplScanTypeDefault             int32 = -1
)
View Source
const DescriptorIApInterface = "android.net.wifi.nl80211.IApInterface"
View Source
const DescriptorIApInterfaceEventCallback = "android.net.wifi.nl80211.IApInterfaceEventCallback"
View Source
const DescriptorIClientInterface = "android.net.wifi.nl80211.IClientInterface"
View Source
const DescriptorIInterfaceEventCallback = "android.net.wifi.nl80211.IInterfaceEventCallback"
View Source
const DescriptorIPnoScanEvent = "android.net.wifi.nl80211.IPnoScanEvent"
View Source
const DescriptorIScanEvent = "android.net.wifi.nl80211.IScanEvent"
View Source
const DescriptorISendMgmtFrameEvent = "android.net.wifi.nl80211.ISendMgmtFrameEvent"
View Source
const DescriptorIWifiScannerImpl = "android.net.wifi.nl80211.IWifiScannerImpl"
View Source
const DescriptorIWificond = "android.net.wifi.nl80211.IWificond"
View Source
const DescriptorIWificondEventCallback = "android.net.wifi.nl80211.IWificondEventCallback"
View Source
const (
	MethodIWificondEventCallbackOnRegDomainChanged = "OnRegDomainChanged"
)
View Source
const (
	TransactionIWificondEventCallbackOnRegDomainChanged = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApInterfaceEventCallbackProxy

type ApInterfaceEventCallbackProxy struct {
	Remote binder.IBinder
}

func NewApInterfaceEventCallbackProxy

func NewApInterfaceEventCallbackProxy(
	remote binder.IBinder,
) *ApInterfaceEventCallbackProxy

func (*ApInterfaceEventCallbackProxy) AsBinder

func (*ApInterfaceEventCallbackProxy) OnConnectedClientsChanged

func (p *ApInterfaceEventCallbackProxy) OnConnectedClientsChanged(
	ctx context.Context,
	client NativeWifiClient,
	isConnected bool,
) error

func (*ApInterfaceEventCallbackProxy) OnSoftApChannelSwitched

func (p *ApInterfaceEventCallbackProxy) OnSoftApChannelSwitched(
	ctx context.Context,
	frequency int32,
	bandwidth int32,
) error

type ApInterfaceEventCallbackStub

type ApInterfaceEventCallbackStub struct {
	Impl      IApInterfaceEventCallback
	Transport binder.VersionAwareTransport
}

ApInterfaceEventCallbackStub dispatches incoming binder transactions to a typed IApInterfaceEventCallback implementation.

func (*ApInterfaceEventCallbackStub) Descriptor

func (s *ApInterfaceEventCallbackStub) Descriptor() string

func (*ApInterfaceEventCallbackStub) OnTransaction

type ApInterfaceProxy

type ApInterfaceProxy struct {
	Remote binder.IBinder
}

func NewApInterfaceProxy

func NewApInterfaceProxy(
	remote binder.IBinder,
) *ApInterfaceProxy

func (*ApInterfaceProxy) AsBinder

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

func (*ApInterfaceProxy) GetInterfaceName

func (p *ApInterfaceProxy) GetInterfaceName(
	ctx context.Context,
) (string, error)

func (*ApInterfaceProxy) RegisterCallback

func (p *ApInterfaceProxy) RegisterCallback(
	ctx context.Context,
	callback IApInterfaceEventCallback,
) (bool, error)

type ApInterfaceStub

type ApInterfaceStub struct {
	Impl      IApInterface
	Transport binder.VersionAwareTransport
}

ApInterfaceStub dispatches incoming binder transactions to a typed IApInterface implementation.

func (*ApInterfaceStub) Descriptor

func (s *ApInterfaceStub) Descriptor() string

func (*ApInterfaceStub) OnTransaction

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

type ClientInterfaceProxy

type ClientInterfaceProxy struct {
	Remote binder.IBinder
}

func NewClientInterfaceProxy

func NewClientInterfaceProxy(
	remote binder.IBinder,
) *ClientInterfaceProxy

func (*ClientInterfaceProxy) AsBinder

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

func (*ClientInterfaceProxy) GetInterfaceName

func (p *ClientInterfaceProxy) GetInterfaceName(
	ctx context.Context,
) (string, error)

func (*ClientInterfaceProxy) GetMacAddress

func (p *ClientInterfaceProxy) GetMacAddress(
	ctx context.Context,
) ([]byte, error)

func (*ClientInterfaceProxy) GetPacketCounters

func (p *ClientInterfaceProxy) GetPacketCounters(
	ctx context.Context,
) ([]int32, error)

func (*ClientInterfaceProxy) GetWifiScannerImpl

func (p *ClientInterfaceProxy) GetWifiScannerImpl(
	ctx context.Context,
) (IWifiScannerImpl, error)

func (*ClientInterfaceProxy) SendMgmtFrame

func (p *ClientInterfaceProxy) SendMgmtFrame(
	ctx context.Context,
	frame []byte,
	callback ISendMgmtFrameEvent,
	mcs int32,
) error

func (*ClientInterfaceProxy) SignalPoll

func (p *ClientInterfaceProxy) SignalPoll(
	ctx context.Context,
) ([]int32, error)

type ClientInterfaceStub

type ClientInterfaceStub struct {
	Impl      IClientInterface
	Transport binder.VersionAwareTransport
}

ClientInterfaceStub dispatches incoming binder transactions to a typed IClientInterface implementation.

func (*ClientInterfaceStub) Descriptor

func (s *ClientInterfaceStub) Descriptor() string

func (*ClientInterfaceStub) OnTransaction

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

type DeviceWiphyCapabilities

type DeviceWiphyCapabilities struct {
}

func (*DeviceWiphyCapabilities) MarshalParcel

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

func (*DeviceWiphyCapabilities) UnmarshalParcel

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

type IApInterface

type IApInterface interface {
	AsBinder() binder.IBinder
	RegisterCallback(ctx context.Context, callback IApInterfaceEventCallback) (bool, error)
	GetInterfaceName(ctx context.Context) (string, error)
}

func NewApInterfaceStub

func NewApInterfaceStub(
	impl IApInterfaceServer,
) IApInterface

NewApInterfaceStub creates a server-side IApInterface wrapping the given server implementation. The returned value satisfies IApInterface 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 IApInterfaceEventCallback

type IApInterfaceEventCallback interface {
	AsBinder() binder.IBinder
	OnConnectedClientsChanged(ctx context.Context, client NativeWifiClient, isConnected bool) error
	OnSoftApChannelSwitched(ctx context.Context, frequency int32, bandwidth int32) error
}

func NewApInterfaceEventCallbackStub

func NewApInterfaceEventCallbackStub(
	impl IApInterfaceEventCallbackServer,
) IApInterfaceEventCallback

NewApInterfaceEventCallbackStub creates a server-side IApInterfaceEventCallback wrapping the given server implementation. The returned value satisfies IApInterfaceEventCallback 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 IApInterfaceEventCallbackServer

type IApInterfaceEventCallbackServer interface {
	OnConnectedClientsChanged(ctx context.Context, client NativeWifiClient, isConnected bool) error
	OnSoftApChannelSwitched(ctx context.Context, frequency int32, bandwidth int32) error
}

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

type IApInterfaceServer

type IApInterfaceServer interface {
	RegisterCallback(ctx context.Context, callback IApInterfaceEventCallback) (bool, error)
	GetInterfaceName(ctx context.Context) (string, error)
}

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

type IClientInterface

type IClientInterface interface {
	AsBinder() binder.IBinder
	GetPacketCounters(ctx context.Context) ([]int32, error)
	SignalPoll(ctx context.Context) ([]int32, error)
	GetMacAddress(ctx context.Context) ([]byte, error)
	GetInterfaceName(ctx context.Context) (string, error)
	GetWifiScannerImpl(ctx context.Context) (IWifiScannerImpl, error)
	SendMgmtFrame(ctx context.Context, frame []byte, callback ISendMgmtFrameEvent, mcs int32) error
}

func NewClientInterfaceStub

func NewClientInterfaceStub(
	impl IClientInterfaceServer,
) IClientInterface

NewClientInterfaceStub creates a server-side IClientInterface wrapping the given server implementation. The returned value satisfies IClientInterface 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 IClientInterfaceServer

type IClientInterfaceServer interface {
	GetPacketCounters(ctx context.Context) ([]int32, error)
	SignalPoll(ctx context.Context) ([]int32, error)
	GetMacAddress(ctx context.Context) ([]byte, error)
	GetInterfaceName(ctx context.Context) (string, error)
	GetWifiScannerImpl(ctx context.Context) (IWifiScannerImpl, error)
	SendMgmtFrame(ctx context.Context, frame []byte, callback ISendMgmtFrameEvent, mcs int32) error
}

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

type IInterfaceEventCallback

type IInterfaceEventCallback interface {
	AsBinder() binder.IBinder
	OnClientInterfaceReady(ctx context.Context, network_interface IClientInterface) error
	OnApInterfaceReady(ctx context.Context, network_interface IApInterface) error
	OnClientTorndownEvent(ctx context.Context, network_interface IClientInterface) error
	OnApTorndownEvent(ctx context.Context, network_interface IApInterface) error
}

func NewInterfaceEventCallbackStub

func NewInterfaceEventCallbackStub(
	impl IInterfaceEventCallbackServer,
) IInterfaceEventCallback

NewInterfaceEventCallbackStub creates a server-side IInterfaceEventCallback wrapping the given server implementation. The returned value satisfies IInterfaceEventCallback 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 IInterfaceEventCallbackServer

type IInterfaceEventCallbackServer interface {
	OnClientInterfaceReady(ctx context.Context, network_interface IClientInterface) error
	OnApInterfaceReady(ctx context.Context, network_interface IApInterface) error
	OnClientTorndownEvent(ctx context.Context, network_interface IClientInterface) error
	OnApTorndownEvent(ctx context.Context, network_interface IApInterface) error
}

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

type IPnoScanEvent

type IPnoScanEvent interface {
	AsBinder() binder.IBinder
	OnPnoNetworkFound(ctx context.Context) error
	OnPnoScanFailed(ctx context.Context) error
}

func NewPnoScanEventStub

func NewPnoScanEventStub(
	impl IPnoScanEventServer,
) IPnoScanEvent

NewPnoScanEventStub creates a server-side IPnoScanEvent wrapping the given server implementation. The returned value satisfies IPnoScanEvent 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 IPnoScanEventServer

type IPnoScanEventServer interface {
	OnPnoNetworkFound(ctx context.Context) error
	OnPnoScanFailed(ctx context.Context) error
}

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

type IScanEvent

type IScanEvent interface {
	AsBinder() binder.IBinder
	OnScanResultReady(ctx context.Context) error
	OnScanFailed(ctx context.Context) error
	OnScanRequestFailed(ctx context.Context, errorCode int32) error
}

func NewScanEventStub

func NewScanEventStub(
	impl IScanEventServer,
) IScanEvent

NewScanEventStub creates a server-side IScanEvent wrapping the given server implementation. The returned value satisfies IScanEvent 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 IScanEventServer

type IScanEventServer interface {
	OnScanResultReady(ctx context.Context) error
	OnScanFailed(ctx context.Context) error
	OnScanRequestFailed(ctx context.Context, errorCode int32) error
}

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

type ISendMgmtFrameEvent

type ISendMgmtFrameEvent interface {
	AsBinder() binder.IBinder
	OnAck(ctx context.Context, elapsedTimeMs int32) error
	OnFailure(ctx context.Context, reason int32) error
}

func NewSendMgmtFrameEventStub

func NewSendMgmtFrameEventStub(
	impl ISendMgmtFrameEventServer,
) ISendMgmtFrameEvent

NewSendMgmtFrameEventStub creates a server-side ISendMgmtFrameEvent wrapping the given server implementation. The returned value satisfies ISendMgmtFrameEvent 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 ISendMgmtFrameEventServer

type ISendMgmtFrameEventServer interface {
	OnAck(ctx context.Context, elapsedTimeMs int32) error
	OnFailure(ctx context.Context, reason int32) error
}

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

type IWifiScannerImpl

type IWifiScannerImpl interface {
	AsBinder() binder.IBinder
	GetScanResults(ctx context.Context) ([]NativeScanResult, error)
	GetPnoScanResults(ctx context.Context) ([]NativeScanResult, error)
	GetMaxSsidsPerScan(ctx context.Context) (int32, error)
	Scan(ctx context.Context, scanSettings SingleScanSettings) (bool, error)
	ScanRequest(ctx context.Context, scanSettings SingleScanSettings) (int32, error)
	SubscribeScanEvents(ctx context.Context, handler IScanEvent) error
	UnsubscribeScanEvents(ctx context.Context) error
	SubscribePnoScanEvents(ctx context.Context, handler IPnoScanEvent) error
	UnsubscribePnoScanEvents(ctx context.Context) error
	StartPnoScan(ctx context.Context, pnoSettings PnoSettings) (bool, error)
	StopPnoScan(ctx context.Context) (bool, error)
	AbortScan(ctx context.Context) error
}

func NewWifiScannerImplStub

func NewWifiScannerImplStub(
	impl IWifiScannerImplServer,
) IWifiScannerImpl

NewWifiScannerImplStub creates a server-side IWifiScannerImpl wrapping the given server implementation. The returned value satisfies IWifiScannerImpl 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 IWifiScannerImplServer

type IWifiScannerImplServer interface {
	GetScanResults(ctx context.Context) ([]NativeScanResult, error)
	GetPnoScanResults(ctx context.Context) ([]NativeScanResult, error)
	GetMaxSsidsPerScan(ctx context.Context) (int32, error)
	Scan(ctx context.Context, scanSettings SingleScanSettings) (bool, error)
	ScanRequest(ctx context.Context, scanSettings SingleScanSettings) (int32, error)
	SubscribeScanEvents(ctx context.Context, handler IScanEvent) error
	UnsubscribeScanEvents(ctx context.Context) error
	SubscribePnoScanEvents(ctx context.Context, handler IPnoScanEvent) error
	UnsubscribePnoScanEvents(ctx context.Context) error
	StartPnoScan(ctx context.Context, pnoSettings PnoSettings) (bool, error)
	StopPnoScan(ctx context.Context) (bool, error)
	AbortScan(ctx context.Context) error
}

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

type IWificond

type IWificond interface {
	AsBinder() binder.IBinder
	CreateApInterface(ctx context.Context, iface_name string) (IApInterface, error)
	CreateClientInterface(ctx context.Context, iface_name string) (IClientInterface, error)
	TearDownApInterface(ctx context.Context, iface_name string) (bool, error)
	TearDownClientInterface(ctx context.Context, iface_name string) (bool, error)
	TearDownInterfaces(ctx context.Context) error
	GetClientInterfaces(ctx context.Context) ([]binder.IBinder, error)
	GetApInterfaces(ctx context.Context) ([]binder.IBinder, error)
	GetAvailable2gChannels(ctx context.Context) ([]int32, error)
	GetAvailable5gNonDFSChannels(ctx context.Context) ([]int32, error)
	GetAvailableDFSChannels(ctx context.Context) ([]int32, error)
	GetAvailable6gChannels(ctx context.Context) ([]int32, error)
	GetAvailable60gChannels(ctx context.Context) ([]int32, error)
	RegisterCallback(ctx context.Context, callback IInterfaceEventCallback) error
	UnregisterCallback(ctx context.Context, callback IInterfaceEventCallback) error
	RegisterWificondEventCallback(ctx context.Context, callback IWificondEventCallback) error
	UnregisterWificondEventCallback(ctx context.Context, callback IWificondEventCallback) error
	GetDeviceWiphyCapabilities(ctx context.Context, iface_name string) (DeviceWiphyCapabilities, error)
	NotifyCountryCodeChanged(ctx context.Context) error
}

func NewWificondStub

func NewWificondStub(
	impl IWificondServer,
) IWificond

NewWificondStub creates a server-side IWificond wrapping the given server implementation. The returned value satisfies IWificond 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 IWificondEventCallback

type IWificondEventCallback interface {
	AsBinder() binder.IBinder
	OnRegDomainChanged(ctx context.Context, countryCode string) error
}

func NewWificondEventCallbackStub

func NewWificondEventCallbackStub(
	impl IWificondEventCallbackServer,
) IWificondEventCallback

NewWificondEventCallbackStub creates a server-side IWificondEventCallback wrapping the given server implementation. The returned value satisfies IWificondEventCallback 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 IWificondEventCallbackServer

type IWificondEventCallbackServer interface {
	OnRegDomainChanged(ctx context.Context, countryCode string) error
}

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

type IWificondServer

type IWificondServer interface {
	CreateApInterface(ctx context.Context, iface_name string) (IApInterface, error)
	CreateClientInterface(ctx context.Context, iface_name string) (IClientInterface, error)
	TearDownApInterface(ctx context.Context, iface_name string) (bool, error)
	TearDownClientInterface(ctx context.Context, iface_name string) (bool, error)
	TearDownInterfaces(ctx context.Context) error
	GetClientInterfaces(ctx context.Context) ([]binder.IBinder, error)
	GetApInterfaces(ctx context.Context) ([]binder.IBinder, error)
	GetAvailable2gChannels(ctx context.Context) ([]int32, error)
	GetAvailable5gNonDFSChannels(ctx context.Context) ([]int32, error)
	GetAvailableDFSChannels(ctx context.Context) ([]int32, error)
	GetAvailable6gChannels(ctx context.Context) ([]int32, error)
	GetAvailable60gChannels(ctx context.Context) ([]int32, error)
	RegisterCallback(ctx context.Context, callback IInterfaceEventCallback) error
	UnregisterCallback(ctx context.Context, callback IInterfaceEventCallback) error
	RegisterWificondEventCallback(ctx context.Context, callback IWificondEventCallback) error
	UnregisterWificondEventCallback(ctx context.Context, callback IWificondEventCallback) error
	GetDeviceWiphyCapabilities(ctx context.Context, iface_name string) (DeviceWiphyCapabilities, error)
	NotifyCountryCodeChanged(ctx context.Context) error
}

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

type InterfaceEventCallbackProxy

type InterfaceEventCallbackProxy struct {
	Remote binder.IBinder
}

func NewInterfaceEventCallbackProxy

func NewInterfaceEventCallbackProxy(
	remote binder.IBinder,
) *InterfaceEventCallbackProxy

func (*InterfaceEventCallbackProxy) AsBinder

func (*InterfaceEventCallbackProxy) OnApInterfaceReady

func (p *InterfaceEventCallbackProxy) OnApInterfaceReady(
	ctx context.Context,
	network_interface IApInterface,
) error

func (*InterfaceEventCallbackProxy) OnApTorndownEvent

func (p *InterfaceEventCallbackProxy) OnApTorndownEvent(
	ctx context.Context,
	network_interface IApInterface,
) error

func (*InterfaceEventCallbackProxy) OnClientInterfaceReady

func (p *InterfaceEventCallbackProxy) OnClientInterfaceReady(
	ctx context.Context,
	network_interface IClientInterface,
) error

func (*InterfaceEventCallbackProxy) OnClientTorndownEvent

func (p *InterfaceEventCallbackProxy) OnClientTorndownEvent(
	ctx context.Context,
	network_interface IClientInterface,
) error

type InterfaceEventCallbackStub

type InterfaceEventCallbackStub struct {
	Impl      IInterfaceEventCallback
	Transport binder.VersionAwareTransport
}

InterfaceEventCallbackStub dispatches incoming binder transactions to a typed IInterfaceEventCallback implementation.

func (*InterfaceEventCallbackStub) Descriptor

func (s *InterfaceEventCallbackStub) Descriptor() string

func (*InterfaceEventCallbackStub) OnTransaction

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

type NativeScanResult

type NativeScanResult struct {
}

func (*NativeScanResult) MarshalParcel

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

func (*NativeScanResult) UnmarshalParcel

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

type NativeWifiClient

type NativeWifiClient struct {
}

func (*NativeWifiClient) MarshalParcel

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

func (*NativeWifiClient) UnmarshalParcel

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

type PnoNetwork

type PnoNetwork struct {
}

func (*PnoNetwork) MarshalParcel

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

func (*PnoNetwork) UnmarshalParcel

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

type PnoScanEventProxy

type PnoScanEventProxy struct {
	Remote binder.IBinder
}

func NewPnoScanEventProxy

func NewPnoScanEventProxy(
	remote binder.IBinder,
) *PnoScanEventProxy

func (*PnoScanEventProxy) AsBinder

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

func (*PnoScanEventProxy) OnPnoNetworkFound

func (p *PnoScanEventProxy) OnPnoNetworkFound(
	ctx context.Context,
) error

func (*PnoScanEventProxy) OnPnoScanFailed

func (p *PnoScanEventProxy) OnPnoScanFailed(
	ctx context.Context,
) error

type PnoScanEventStub

type PnoScanEventStub struct {
	Impl      IPnoScanEvent
	Transport binder.VersionAwareTransport
}

PnoScanEventStub dispatches incoming binder transactions to a typed IPnoScanEvent implementation.

func (*PnoScanEventStub) Descriptor

func (s *PnoScanEventStub) Descriptor() string

func (*PnoScanEventStub) OnTransaction

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

type PnoSettings

type PnoSettings struct {
}

func (*PnoSettings) MarshalParcel

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

func (*PnoSettings) UnmarshalParcel

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

type ScanEventProxy

type ScanEventProxy struct {
	Remote binder.IBinder
}

func NewScanEventProxy

func NewScanEventProxy(
	remote binder.IBinder,
) *ScanEventProxy

func (*ScanEventProxy) AsBinder

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

func (*ScanEventProxy) OnScanFailed

func (p *ScanEventProxy) OnScanFailed(
	ctx context.Context,
) error

func (*ScanEventProxy) OnScanRequestFailed

func (p *ScanEventProxy) OnScanRequestFailed(
	ctx context.Context,
	errorCode int32,
) error

func (*ScanEventProxy) OnScanResultReady

func (p *ScanEventProxy) OnScanResultReady(
	ctx context.Context,
) error

type ScanEventStub

type ScanEventStub struct {
	Impl      IScanEvent
	Transport binder.VersionAwareTransport
}

ScanEventStub dispatches incoming binder transactions to a typed IScanEvent implementation.

func (*ScanEventStub) Descriptor

func (s *ScanEventStub) Descriptor() string

func (*ScanEventStub) OnTransaction

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

type SendMgmtFrameEventProxy

type SendMgmtFrameEventProxy struct {
	Remote binder.IBinder
}

func NewSendMgmtFrameEventProxy

func NewSendMgmtFrameEventProxy(
	remote binder.IBinder,
) *SendMgmtFrameEventProxy

func (*SendMgmtFrameEventProxy) AsBinder

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

func (*SendMgmtFrameEventProxy) OnAck

func (p *SendMgmtFrameEventProxy) OnAck(
	ctx context.Context,
	elapsedTimeMs int32,
) error

func (*SendMgmtFrameEventProxy) OnFailure

func (p *SendMgmtFrameEventProxy) OnFailure(
	ctx context.Context,
	reason int32,
) error

type SendMgmtFrameEventStub

type SendMgmtFrameEventStub struct {
	Impl      ISendMgmtFrameEvent
	Transport binder.VersionAwareTransport
}

SendMgmtFrameEventStub dispatches incoming binder transactions to a typed ISendMgmtFrameEvent implementation.

func (*SendMgmtFrameEventStub) Descriptor

func (s *SendMgmtFrameEventStub) Descriptor() string

func (*SendMgmtFrameEventStub) OnTransaction

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

type SingleScanSettings

type SingleScanSettings struct {
}

func (*SingleScanSettings) MarshalParcel

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

func (*SingleScanSettings) UnmarshalParcel

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

type WifiScannerImplProxy

type WifiScannerImplProxy struct {
	Remote binder.IBinder
}

func NewWifiScannerImplProxy

func NewWifiScannerImplProxy(
	remote binder.IBinder,
) *WifiScannerImplProxy

func (*WifiScannerImplProxy) AbortScan

func (p *WifiScannerImplProxy) AbortScan(
	ctx context.Context,
) error

func (*WifiScannerImplProxy) AsBinder

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

func (*WifiScannerImplProxy) GetMaxSsidsPerScan

func (p *WifiScannerImplProxy) GetMaxSsidsPerScan(
	ctx context.Context,
) (int32, error)

func (*WifiScannerImplProxy) GetPnoScanResults

func (p *WifiScannerImplProxy) GetPnoScanResults(
	ctx context.Context,
) ([]NativeScanResult, error)

func (*WifiScannerImplProxy) GetScanResults

func (p *WifiScannerImplProxy) GetScanResults(
	ctx context.Context,
) ([]NativeScanResult, error)

func (*WifiScannerImplProxy) Scan

func (p *WifiScannerImplProxy) Scan(
	ctx context.Context,
	scanSettings SingleScanSettings,
) (bool, error)

func (*WifiScannerImplProxy) ScanRequest

func (p *WifiScannerImplProxy) ScanRequest(
	ctx context.Context,
	scanSettings SingleScanSettings,
) (int32, error)

func (*WifiScannerImplProxy) StartPnoScan

func (p *WifiScannerImplProxy) StartPnoScan(
	ctx context.Context,
	pnoSettings PnoSettings,
) (bool, error)

func (*WifiScannerImplProxy) StopPnoScan

func (p *WifiScannerImplProxy) StopPnoScan(
	ctx context.Context,
) (bool, error)

func (*WifiScannerImplProxy) SubscribePnoScanEvents

func (p *WifiScannerImplProxy) SubscribePnoScanEvents(
	ctx context.Context,
	handler IPnoScanEvent,
) error

func (*WifiScannerImplProxy) SubscribeScanEvents

func (p *WifiScannerImplProxy) SubscribeScanEvents(
	ctx context.Context,
	handler IScanEvent,
) error

func (*WifiScannerImplProxy) UnsubscribePnoScanEvents

func (p *WifiScannerImplProxy) UnsubscribePnoScanEvents(
	ctx context.Context,
) error

func (*WifiScannerImplProxy) UnsubscribeScanEvents

func (p *WifiScannerImplProxy) UnsubscribeScanEvents(
	ctx context.Context,
) error

type WifiScannerImplStub

type WifiScannerImplStub struct {
	Impl      IWifiScannerImpl
	Transport binder.VersionAwareTransport
}

WifiScannerImplStub dispatches incoming binder transactions to a typed IWifiScannerImpl implementation.

func (*WifiScannerImplStub) Descriptor

func (s *WifiScannerImplStub) Descriptor() string

func (*WifiScannerImplStub) OnTransaction

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

type WificondEventCallbackProxy

type WificondEventCallbackProxy struct {
	Remote binder.IBinder
}

func NewWificondEventCallbackProxy

func NewWificondEventCallbackProxy(
	remote binder.IBinder,
) *WificondEventCallbackProxy

func (*WificondEventCallbackProxy) AsBinder

func (*WificondEventCallbackProxy) OnRegDomainChanged

func (p *WificondEventCallbackProxy) OnRegDomainChanged(
	ctx context.Context,
	countryCode string,
) error

type WificondEventCallbackStub

type WificondEventCallbackStub struct {
	Impl      IWificondEventCallback
	Transport binder.VersionAwareTransport
}

WificondEventCallbackStub dispatches incoming binder transactions to a typed IWificondEventCallback implementation.

func (*WificondEventCallbackStub) Descriptor

func (s *WificondEventCallbackStub) Descriptor() string

func (*WificondEventCallbackStub) OnTransaction

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

type WificondProxy

type WificondProxy struct {
	Remote binder.IBinder
}

func NewWificondProxy

func NewWificondProxy(
	remote binder.IBinder,
) *WificondProxy

func (*WificondProxy) AsBinder

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

func (*WificondProxy) CreateApInterface

func (p *WificondProxy) CreateApInterface(
	ctx context.Context,
	iface_name string,
) (IApInterface, error)

func (*WificondProxy) CreateClientInterface

func (p *WificondProxy) CreateClientInterface(
	ctx context.Context,
	iface_name string,
) (IClientInterface, error)

func (*WificondProxy) GetApInterfaces

func (p *WificondProxy) GetApInterfaces(
	ctx context.Context,
) ([]binder.IBinder, error)

func (*WificondProxy) GetAvailable2gChannels

func (p *WificondProxy) GetAvailable2gChannels(
	ctx context.Context,
) ([]int32, error)

func (*WificondProxy) GetAvailable5gNonDFSChannels

func (p *WificondProxy) GetAvailable5gNonDFSChannels(
	ctx context.Context,
) ([]int32, error)

func (*WificondProxy) GetAvailable6gChannels

func (p *WificondProxy) GetAvailable6gChannels(
	ctx context.Context,
) ([]int32, error)

func (*WificondProxy) GetAvailable60gChannels

func (p *WificondProxy) GetAvailable60gChannels(
	ctx context.Context,
) ([]int32, error)

func (*WificondProxy) GetAvailableDFSChannels

func (p *WificondProxy) GetAvailableDFSChannels(
	ctx context.Context,
) ([]int32, error)

func (*WificondProxy) GetClientInterfaces

func (p *WificondProxy) GetClientInterfaces(
	ctx context.Context,
) ([]binder.IBinder, error)

func (*WificondProxy) GetDeviceWiphyCapabilities

func (p *WificondProxy) GetDeviceWiphyCapabilities(
	ctx context.Context,
	iface_name string,
) (DeviceWiphyCapabilities, error)

func (*WificondProxy) NotifyCountryCodeChanged

func (p *WificondProxy) NotifyCountryCodeChanged(
	ctx context.Context,
) error

func (*WificondProxy) RegisterCallback

func (p *WificondProxy) RegisterCallback(
	ctx context.Context,
	callback IInterfaceEventCallback,
) error

func (*WificondProxy) RegisterWificondEventCallback

func (p *WificondProxy) RegisterWificondEventCallback(
	ctx context.Context,
	callback IWificondEventCallback,
) error

func (*WificondProxy) TearDownApInterface

func (p *WificondProxy) TearDownApInterface(
	ctx context.Context,
	iface_name string,
) (bool, error)

func (*WificondProxy) TearDownClientInterface

func (p *WificondProxy) TearDownClientInterface(
	ctx context.Context,
	iface_name string,
) (bool, error)

func (*WificondProxy) TearDownInterfaces

func (p *WificondProxy) TearDownInterfaces(
	ctx context.Context,
) error

func (*WificondProxy) UnregisterCallback

func (p *WificondProxy) UnregisterCallback(
	ctx context.Context,
	callback IInterfaceEventCallback,
) error

func (*WificondProxy) UnregisterWificondEventCallback

func (p *WificondProxy) UnregisterWificondEventCallback(
	ctx context.Context,
	callback IWificondEventCallback,
) error

type WificondStub

type WificondStub struct {
	Impl      IWificond
	Transport binder.VersionAwareTransport
}

WificondStub dispatches incoming binder transactions to a typed IWificond implementation.

func (*WificondStub) Descriptor

func (s *WificondStub) Descriptor() string

func (*WificondStub) OnTransaction

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

Jump to

Keyboard shortcuts

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