nfc

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionINfcAdapterGetNfcTagInterface                   = binder.FirstCallTransaction + 0
	TransactionINfcAdapterGetNfcCardEmulationInterface         = binder.FirstCallTransaction + 1
	TransactionINfcAdapterGetNfcFCardEmulationInterface        = binder.FirstCallTransaction + 2
	TransactionINfcAdapterGetNfcAdapterExtrasInterface         = binder.FirstCallTransaction + 3
	TransactionINfcAdapterGetNfcDtaInterface                   = binder.FirstCallTransaction + 4
	TransactionINfcAdapterGetState                             = binder.FirstCallTransaction + 5
	TransactionINfcAdapterDisable                              = binder.FirstCallTransaction + 6
	TransactionINfcAdapterEnable                               = binder.FirstCallTransaction + 7
	TransactionINfcAdapterPausePolling                         = binder.FirstCallTransaction + 8
	TransactionINfcAdapterResumePolling                        = binder.FirstCallTransaction + 9
	TransactionINfcAdapterSetForegroundDispatch                = binder.FirstCallTransaction + 10
	TransactionINfcAdapterSetAppCallback                       = binder.FirstCallTransaction + 11
	TransactionINfcAdapterIgnore                               = binder.FirstCallTransaction + 12
	TransactionINfcAdapterDispatch                             = binder.FirstCallTransaction + 13
	TransactionINfcAdapterSetReaderMode                        = binder.FirstCallTransaction + 14
	TransactionINfcAdapterAddNfcUnlockHandler                  = binder.FirstCallTransaction + 15
	TransactionINfcAdapterRemoveNfcUnlockHandler               = binder.FirstCallTransaction + 16
	TransactionINfcAdapterVerifyNfcPermission                  = binder.FirstCallTransaction + 17
	TransactionINfcAdapterIsNfcSecureEnabled                   = binder.FirstCallTransaction + 18
	TransactionINfcAdapterDeviceSupportsNfcSecure              = binder.FirstCallTransaction + 19
	TransactionINfcAdapterSetNfcSecure                         = binder.FirstCallTransaction + 20
	TransactionINfcAdapterGetNfcAntennaInfo                    = binder.FirstCallTransaction + 21
	TransactionINfcAdapterSetControllerAlwaysOn                = binder.FirstCallTransaction + 22
	TransactionINfcAdapterIsControllerAlwaysOn                 = binder.FirstCallTransaction + 23
	TransactionINfcAdapterIsControllerAlwaysOnSupported        = binder.FirstCallTransaction + 24
	TransactionINfcAdapterRegisterControllerAlwaysOnListener   = binder.FirstCallTransaction + 25
	TransactionINfcAdapterUnregisterControllerAlwaysOnListener = binder.FirstCallTransaction + 26
	TransactionINfcAdapterIsTagIntentAppPreferenceSupported    = binder.FirstCallTransaction + 27
	TransactionINfcAdapterGetTagIntentAppPreferenceForUser     = binder.FirstCallTransaction + 28
	TransactionINfcAdapterSetTagIntentAppPreferenceForUser     = binder.FirstCallTransaction + 29
	TransactionINfcAdapterIsReaderOptionEnabled                = binder.FirstCallTransaction + 30
	TransactionINfcAdapterIsReaderOptionSupported              = binder.FirstCallTransaction + 31
	TransactionINfcAdapterEnableReaderOption                   = binder.FirstCallTransaction + 32
	TransactionINfcAdapterIsObserveModeSupported               = binder.FirstCallTransaction + 33
	TransactionINfcAdapterIsObserveModeEnabled                 = binder.FirstCallTransaction + 34
	TransactionINfcAdapterSetObserveMode                       = binder.FirstCallTransaction + 35
	TransactionINfcAdapterSetWlcEnabled                        = binder.FirstCallTransaction + 36
	TransactionINfcAdapterIsWlcEnabled                         = binder.FirstCallTransaction + 37
	TransactionINfcAdapterRegisterWlcStateListener             = binder.FirstCallTransaction + 38
	TransactionINfcAdapterUnregisterWlcStateListener           = binder.FirstCallTransaction + 39
	TransactionINfcAdapterGetWlcListenerDeviceInfo             = binder.FirstCallTransaction + 40
	TransactionINfcAdapterUpdateDiscoveryTechnology            = binder.FirstCallTransaction + 41
	TransactionINfcAdapterNotifyPollingLoop                    = binder.FirstCallTransaction + 42
	TransactionINfcAdapterNotifyHceDeactivated                 = binder.FirstCallTransaction + 43
	TransactionINfcAdapterSendVendorNciMessage                 = binder.FirstCallTransaction + 44
	TransactionINfcAdapterRegisterVendorExtensionCallback      = binder.FirstCallTransaction + 45
	TransactionINfcAdapterUnregisterVendorExtensionCallback    = binder.FirstCallTransaction + 46
)
View Source
const (
	MethodINfcAdapterGetNfcTagInterface                   = "getNfcTagInterface"
	MethodINfcAdapterGetNfcCardEmulationInterface         = "getNfcCardEmulationInterface"
	MethodINfcAdapterGetNfcFCardEmulationInterface        = "getNfcFCardEmulationInterface"
	MethodINfcAdapterGetNfcAdapterExtrasInterface         = "getNfcAdapterExtrasInterface"
	MethodINfcAdapterGetNfcDtaInterface                   = "getNfcDtaInterface"
	MethodINfcAdapterGetState                             = "getState"
	MethodINfcAdapterDisable                              = "disable"
	MethodINfcAdapterEnable                               = "enable"
	MethodINfcAdapterPausePolling                         = "pausePolling"
	MethodINfcAdapterResumePolling                        = "resumePolling"
	MethodINfcAdapterSetForegroundDispatch                = "setForegroundDispatch"
	MethodINfcAdapterSetAppCallback                       = "setAppCallback"
	MethodINfcAdapterIgnore                               = "ignore"
	MethodINfcAdapterDispatch                             = "dispatch"
	MethodINfcAdapterSetReaderMode                        = "setReaderMode"
	MethodINfcAdapterAddNfcUnlockHandler                  = "addNfcUnlockHandler"
	MethodINfcAdapterRemoveNfcUnlockHandler               = "removeNfcUnlockHandler"
	MethodINfcAdapterVerifyNfcPermission                  = "verifyNfcPermission"
	MethodINfcAdapterIsNfcSecureEnabled                   = "isNfcSecureEnabled"
	MethodINfcAdapterDeviceSupportsNfcSecure              = "deviceSupportsNfcSecure"
	MethodINfcAdapterSetNfcSecure                         = "setNfcSecure"
	MethodINfcAdapterGetNfcAntennaInfo                    = "getNfcAntennaInfo"
	MethodINfcAdapterSetControllerAlwaysOn                = "setControllerAlwaysOn"
	MethodINfcAdapterIsControllerAlwaysOn                 = "isControllerAlwaysOn"
	MethodINfcAdapterIsControllerAlwaysOnSupported        = "isControllerAlwaysOnSupported"
	MethodINfcAdapterRegisterControllerAlwaysOnListener   = "registerControllerAlwaysOnListener"
	MethodINfcAdapterUnregisterControllerAlwaysOnListener = "unregisterControllerAlwaysOnListener"
	MethodINfcAdapterIsTagIntentAppPreferenceSupported    = "isTagIntentAppPreferenceSupported"
	MethodINfcAdapterGetTagIntentAppPreferenceForUser     = "getTagIntentAppPreferenceForUser"
	MethodINfcAdapterSetTagIntentAppPreferenceForUser     = "setTagIntentAppPreferenceForUser"
	MethodINfcAdapterIsReaderOptionEnabled                = "isReaderOptionEnabled"
	MethodINfcAdapterIsReaderOptionSupported              = "isReaderOptionSupported"
	MethodINfcAdapterEnableReaderOption                   = "enableReaderOption"
	MethodINfcAdapterIsObserveModeSupported               = "isObserveModeSupported"
	MethodINfcAdapterIsObserveModeEnabled                 = "isObserveModeEnabled"
	MethodINfcAdapterSetObserveMode                       = "setObserveMode"
	MethodINfcAdapterSetWlcEnabled                        = "setWlcEnabled"
	MethodINfcAdapterIsWlcEnabled                         = "isWlcEnabled"
	MethodINfcAdapterRegisterWlcStateListener             = "registerWlcStateListener"
	MethodINfcAdapterUnregisterWlcStateListener           = "unregisterWlcStateListener"
	MethodINfcAdapterGetWlcListenerDeviceInfo             = "getWlcListenerDeviceInfo"
	MethodINfcAdapterUpdateDiscoveryTechnology            = "updateDiscoveryTechnology"
	MethodINfcAdapterNotifyPollingLoop                    = "notifyPollingLoop"
	MethodINfcAdapterNotifyHceDeactivated                 = "notifyHceDeactivated"
	MethodINfcAdapterSendVendorNciMessage                 = "sendVendorNciMessage"
	MethodINfcAdapterRegisterVendorExtensionCallback      = "registerVendorExtensionCallback"
	MethodINfcAdapterUnregisterVendorExtensionCallback    = "unregisterVendorExtensionCallback"
)
View Source
const (
	TransactionINfcAdapterExtrasOpen                  = binder.FirstCallTransaction + 0
	TransactionINfcAdapterExtrasClose                 = binder.FirstCallTransaction + 1
	TransactionINfcAdapterExtrasTransceive            = binder.FirstCallTransaction + 2
	TransactionINfcAdapterExtrasGetCardEmulationRoute = binder.FirstCallTransaction + 3
	TransactionINfcAdapterExtrasSetCardEmulationRoute = binder.FirstCallTransaction + 4
	TransactionINfcAdapterExtrasAuthenticate          = binder.FirstCallTransaction + 5
	TransactionINfcAdapterExtrasGetDriverName         = binder.FirstCallTransaction + 6
)
View Source
const (
	MethodINfcAdapterExtrasOpen                  = "open"
	MethodINfcAdapterExtrasClose                 = "close"
	MethodINfcAdapterExtrasTransceive            = "transceive"
	MethodINfcAdapterExtrasGetCardEmulationRoute = "getCardEmulationRoute"
	MethodINfcAdapterExtrasSetCardEmulationRoute = "setCardEmulationRoute"
	MethodINfcAdapterExtrasAuthenticate          = "authenticate"
	MethodINfcAdapterExtrasGetDriverName         = "getDriverName"
)
View Source
const (
	TransactionINfcCardEmulationIsDefaultServiceForCategory             = binder.FirstCallTransaction + 0
	TransactionINfcCardEmulationIsDefaultServiceForAid                  = binder.FirstCallTransaction + 1
	TransactionINfcCardEmulationSetDefaultServiceForCategory            = binder.FirstCallTransaction + 2
	TransactionINfcCardEmulationSetDefaultForNextTap                    = binder.FirstCallTransaction + 3
	TransactionINfcCardEmulationSetShouldDefaultToObserveModeForService = binder.FirstCallTransaction + 4
	TransactionINfcCardEmulationRegisterAidGroupForService              = binder.FirstCallTransaction + 5
	TransactionINfcCardEmulationRegisterPollingLoopFilterForService     = binder.FirstCallTransaction + 6
	TransactionINfcCardEmulationSetOffHostForService                    = binder.FirstCallTransaction + 7
	TransactionINfcCardEmulationUnsetOffHostForService                  = binder.FirstCallTransaction + 8
	TransactionINfcCardEmulationGetAidGroupForService                   = binder.FirstCallTransaction + 9
	TransactionINfcCardEmulationRemoveAidGroupForService                = binder.FirstCallTransaction + 10
	TransactionINfcCardEmulationGetServices                             = binder.FirstCallTransaction + 11
	TransactionINfcCardEmulationSetPreferredService                     = binder.FirstCallTransaction + 12
	TransactionINfcCardEmulationUnsetPreferredService                   = binder.FirstCallTransaction + 13
	TransactionINfcCardEmulationSupportsAidPrefixRegistration           = binder.FirstCallTransaction + 14
	TransactionINfcCardEmulationGetPreferredPaymentService              = binder.FirstCallTransaction + 15
	TransactionINfcCardEmulationSetServiceEnabledForCategoryOther       = binder.FirstCallTransaction + 16
	TransactionINfcCardEmulationIsDefaultPaymentRegistered              = binder.FirstCallTransaction + 17
	TransactionINfcCardEmulationOverrideRoutingTable                    = binder.FirstCallTransaction + 18
	TransactionINfcCardEmulationRecoverRoutingTable                     = binder.FirstCallTransaction + 19
)
View Source
const (
	MethodINfcCardEmulationIsDefaultServiceForCategory             = "isDefaultServiceForCategory"
	MethodINfcCardEmulationIsDefaultServiceForAid                  = "isDefaultServiceForAid"
	MethodINfcCardEmulationSetDefaultServiceForCategory            = "setDefaultServiceForCategory"
	MethodINfcCardEmulationSetDefaultForNextTap                    = "setDefaultForNextTap"
	MethodINfcCardEmulationSetShouldDefaultToObserveModeForService = "setShouldDefaultToObserveModeForService"
	MethodINfcCardEmulationRegisterAidGroupForService              = "registerAidGroupForService"
	MethodINfcCardEmulationRegisterPollingLoopFilterForService     = "registerPollingLoopFilterForService"
	MethodINfcCardEmulationSetOffHostForService                    = "setOffHostForService"
	MethodINfcCardEmulationUnsetOffHostForService                  = "unsetOffHostForService"
	MethodINfcCardEmulationGetAidGroupForService                   = "getAidGroupForService"
	MethodINfcCardEmulationRemoveAidGroupForService                = "removeAidGroupForService"
	MethodINfcCardEmulationGetServices                             = "getServices"
	MethodINfcCardEmulationSetPreferredService                     = "setPreferredService"
	MethodINfcCardEmulationUnsetPreferredService                   = "unsetPreferredService"
	MethodINfcCardEmulationSupportsAidPrefixRegistration           = "supportsAidPrefixRegistration"
	MethodINfcCardEmulationGetPreferredPaymentService              = "getPreferredPaymentService"
	MethodINfcCardEmulationSetServiceEnabledForCategoryOther       = "setServiceEnabledForCategoryOther"
	MethodINfcCardEmulationIsDefaultPaymentRegistered              = "isDefaultPaymentRegistered"
	MethodINfcCardEmulationOverrideRoutingTable                    = "overrideRoutingTable"
	MethodINfcCardEmulationRecoverRoutingTable                     = "recoverRoutingTable"
)
View Source
const (
	TransactionINfcDtaEnableDta              = binder.FirstCallTransaction + 0
	TransactionINfcDtaDisableDta             = binder.FirstCallTransaction + 1
	TransactionINfcDtaEnableServer           = binder.FirstCallTransaction + 2
	TransactionINfcDtaDisableServer          = binder.FirstCallTransaction + 3
	TransactionINfcDtaEnableClient           = binder.FirstCallTransaction + 4
	TransactionINfcDtaDisableClient          = binder.FirstCallTransaction + 5
	TransactionINfcDtaRegisterMessageService = binder.FirstCallTransaction + 6
)
View Source
const (
	MethodINfcDtaEnableDta              = "enableDta"
	MethodINfcDtaDisableDta             = "disableDta"
	MethodINfcDtaEnableServer           = "enableServer"
	MethodINfcDtaDisableServer          = "disableServer"
	MethodINfcDtaEnableClient           = "enableClient"
	MethodINfcDtaDisableClient          = "disableClient"
	MethodINfcDtaRegisterMessageService = "registerMessageService"
)
View Source
const (
	TransactionINfcFCardEmulationGetSystemCodeForService            = binder.FirstCallTransaction + 0
	TransactionINfcFCardEmulationRegisterSystemCodeForService       = binder.FirstCallTransaction + 1
	TransactionINfcFCardEmulationRemoveSystemCodeForService         = binder.FirstCallTransaction + 2
	TransactionINfcFCardEmulationGetNfcid2ForService                = binder.FirstCallTransaction + 3
	TransactionINfcFCardEmulationSetNfcid2ForService                = binder.FirstCallTransaction + 4
	TransactionINfcFCardEmulationEnableNfcFForegroundService        = binder.FirstCallTransaction + 5
	TransactionINfcFCardEmulationDisableNfcFForegroundService       = binder.FirstCallTransaction + 6
	TransactionINfcFCardEmulationGetNfcFServices                    = binder.FirstCallTransaction + 7
	TransactionINfcFCardEmulationGetMaxNumOfRegisterableSystemCodes = binder.FirstCallTransaction + 8
)
View Source
const (
	MethodINfcFCardEmulationGetSystemCodeForService            = "getSystemCodeForService"
	MethodINfcFCardEmulationRegisterSystemCodeForService       = "registerSystemCodeForService"
	MethodINfcFCardEmulationRemoveSystemCodeForService         = "removeSystemCodeForService"
	MethodINfcFCardEmulationGetNfcid2ForService                = "getNfcid2ForService"
	MethodINfcFCardEmulationSetNfcid2ForService                = "setNfcid2ForService"
	MethodINfcFCardEmulationEnableNfcFForegroundService        = "enableNfcFForegroundService"
	MethodINfcFCardEmulationDisableNfcFForegroundService       = "disableNfcFForegroundService"
	MethodINfcFCardEmulationGetNfcFServices                    = "getNfcFServices"
	MethodINfcFCardEmulationGetMaxNumOfRegisterableSystemCodes = "getMaxNumOfRegisterableSystemCodes"
)
View Source
const (
	TransactionINfcTagConnect                         = binder.FirstCallTransaction + 0
	TransactionINfcTagReconnect                       = binder.FirstCallTransaction + 1
	TransactionINfcTagGetTechList                     = binder.FirstCallTransaction + 2
	TransactionINfcTagIsNdef                          = binder.FirstCallTransaction + 3
	TransactionINfcTagIsPresent                       = binder.FirstCallTransaction + 4
	TransactionINfcTagTransceive                      = binder.FirstCallTransaction + 5
	TransactionINfcTagNdefRead                        = binder.FirstCallTransaction + 6
	TransactionINfcTagNdefWrite                       = binder.FirstCallTransaction + 7
	TransactionINfcTagNdefMakeReadOnly                = binder.FirstCallTransaction + 8
	TransactionINfcTagNdefIsWritable                  = binder.FirstCallTransaction + 9
	TransactionINfcTagFormatNdef                      = binder.FirstCallTransaction + 10
	TransactionINfcTagRediscover                      = binder.FirstCallTransaction + 11
	TransactionINfcTagSetTimeout                      = binder.FirstCallTransaction + 12
	TransactionINfcTagGetTimeout                      = binder.FirstCallTransaction + 13
	TransactionINfcTagResetTimeouts                   = binder.FirstCallTransaction + 14
	TransactionINfcTagCanMakeReadOnly                 = binder.FirstCallTransaction + 15
	TransactionINfcTagGetMaxTransceiveLength          = binder.FirstCallTransaction + 16
	TransactionINfcTagGetExtendedLengthApdusSupported = binder.FirstCallTransaction + 17
	TransactionINfcTagIsTagUpToDate                   = binder.FirstCallTransaction + 18
)
View Source
const (
	MethodINfcTagConnect                         = "connect"
	MethodINfcTagReconnect                       = "reconnect"
	MethodINfcTagGetTechList                     = "getTechList"
	MethodINfcTagIsNdef                          = "isNdef"
	MethodINfcTagIsPresent                       = "isPresent"
	MethodINfcTagTransceive                      = "transceive"
	MethodINfcTagNdefRead                        = "ndefRead"
	MethodINfcTagNdefWrite                       = "ndefWrite"
	MethodINfcTagNdefMakeReadOnly                = "ndefMakeReadOnly"
	MethodINfcTagNdefIsWritable                  = "ndefIsWritable"
	MethodINfcTagFormatNdef                      = "formatNdef"
	MethodINfcTagRediscover                      = "rediscover"
	MethodINfcTagSetTimeout                      = "setTimeout"
	MethodINfcTagGetTimeout                      = "getTimeout"
	MethodINfcTagResetTimeouts                   = "resetTimeouts"
	MethodINfcTagCanMakeReadOnly                 = "canMakeReadOnly"
	MethodINfcTagGetMaxTransceiveLength          = "getMaxTransceiveLength"
	MethodINfcTagGetExtendedLengthApdusSupported = "getExtendedLengthApdusSupported"
	MethodINfcTagIsTagUpToDate                   = "isTagUpToDate"
)
View Source
const (
	TransactionINfcVendorNciCallbackOnVendorResponseReceived     = binder.FirstCallTransaction + 0
	TransactionINfcVendorNciCallbackOnVendorNotificationReceived = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodINfcVendorNciCallbackOnVendorResponseReceived     = "onVendorResponseReceived"
	MethodINfcVendorNciCallbackOnVendorNotificationReceived = "onVendorNotificationReceived"
)
View Source
const DescriptorIAppCallback = "android.nfc.IAppCallback"
View Source
const DescriptorINfcAdapter = "android.nfc.INfcAdapter"
View Source
const DescriptorINfcAdapterExtras = "android.nfc.INfcAdapterExtras"
View Source
const DescriptorINfcCardEmulation = "android.nfc.INfcCardEmulation"
View Source
const DescriptorINfcControllerAlwaysOnListener = "android.nfc.INfcControllerAlwaysOnListener"
View Source
const DescriptorINfcDta = "android.nfc.INfcDta"
View Source
const DescriptorINfcFCardEmulation = "android.nfc.INfcFCardEmulation"
View Source
const DescriptorINfcTag = "android.nfc.INfcTag"
View Source
const DescriptorINfcUnlockHandler = "android.nfc.INfcUnlockHandler"
View Source
const DescriptorINfcVendorNciCallback = "android.nfc.INfcVendorNciCallback"
View Source
const DescriptorINfcWlcStateListener = "android.nfc.INfcWlcStateListener"
View Source
const DescriptorITagRemovedCallback = "android.nfc.ITagRemovedCallback"
View Source
const (
	MethodIAppCallbackOnTagDiscovered = "onTagDiscovered"
)
View Source
const (
	MethodINfcControllerAlwaysOnListenerOnControllerAlwaysOnChanged = "onControllerAlwaysOnChanged"
)
View Source
const (
	MethodINfcUnlockHandlerOnUnlockAttempted = "onUnlockAttempted"
)
View Source
const (
	MethodINfcWlcStateListenerOnWlcStateChanged = "onWlcStateChanged"
)
View Source
const (
	MethodITagRemovedCallbackOnTagRemoved = "onTagRemoved"
)
View Source
const (
	TransactionIAppCallbackOnTagDiscovered = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionINfcControllerAlwaysOnListenerOnControllerAlwaysOnChanged = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionINfcUnlockHandlerOnUnlockAttempted = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionINfcWlcStateListenerOnWlcStateChanged = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionITagRemovedCallbackOnTagRemoved = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApduList

type ApduList struct {
}

func (*ApduList) MarshalParcel

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

func (*ApduList) UnmarshalParcel

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

type AppCallbackProxy

type AppCallbackProxy struct {
	Remote binder.IBinder
}

func NewAppCallbackProxy

func NewAppCallbackProxy(
	remote binder.IBinder,
) *AppCallbackProxy

func (*AppCallbackProxy) AsBinder

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

func (*AppCallbackProxy) OnTagDiscovered

func (p *AppCallbackProxy) OnTagDiscovered(
	ctx context.Context,
	tag Tag,
) error

type AppCallbackStub

type AppCallbackStub struct {
	Impl      IAppCallback
	Transport binder.VersionAwareTransport
}

AppCallbackStub dispatches incoming binder transactions to a typed IAppCallback implementation.

func (*AppCallbackStub) Descriptor

func (s *AppCallbackStub) Descriptor() string

func (*AppCallbackStub) OnTransaction

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

type AvailableNfcAntenna

type AvailableNfcAntenna struct {
	LocationX int32
	LocationY int32
}

func (*AvailableNfcAntenna) MarshalParcel

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

func (*AvailableNfcAntenna) UnmarshalParcel

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

type IAppCallback

type IAppCallback interface {
	AsBinder() binder.IBinder
	OnTagDiscovered(ctx context.Context, tag Tag) error
}

func NewAppCallbackStub

func NewAppCallbackStub(
	impl IAppCallbackServer,
) IAppCallback

NewAppCallbackStub creates a server-side IAppCallback wrapping the given server implementation. The returned value satisfies IAppCallback 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 IAppCallbackServer

type IAppCallbackServer interface {
	OnTagDiscovered(ctx context.Context, tag Tag) error
}

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

type INfcAdapter

type INfcAdapter interface {
	AsBinder() binder.IBinder
	GetNfcTagInterface(ctx context.Context) (INfcTag, error)
	GetNfcCardEmulationInterface(ctx context.Context) (INfcCardEmulation, error)
	GetNfcFCardEmulationInterface(ctx context.Context) (INfcFCardEmulation, error)
	GetNfcAdapterExtrasInterface(ctx context.Context, pkg string) (INfcAdapterExtras, error)
	GetNfcDtaInterface(ctx context.Context, pkg string) (INfcDta, error)
	GetState(ctx context.Context) (int32, error)
	Disable(ctx context.Context, saveState bool) (bool, error)
	Enable(ctx context.Context) (bool, error)
	PausePolling(ctx context.Context, timeoutInMs int32) error
	ResumePolling(ctx context.Context) error
	SetForegroundDispatch(ctx context.Context, intent app.PendingIntent, filters []content.IntentFilter, techLists TechListParcel) error
	SetAppCallback(ctx context.Context, callback IAppCallback) error
	Ignore(ctx context.Context, nativeHandle int32, debounceMs int32, callback ITagRemovedCallback) (bool, error)
	Dispatch(ctx context.Context, tag Tag) error
	SetReaderMode(ctx context.Context, b binder.IBinder, callback IAppCallback, flags int32, extras os.Bundle) error
	AddNfcUnlockHandler(ctx context.Context, unlockHandler INfcUnlockHandler, techList []int32) error
	RemoveNfcUnlockHandler(ctx context.Context, unlockHandler INfcUnlockHandler) error
	VerifyNfcPermission(ctx context.Context) error
	IsNfcSecureEnabled(ctx context.Context) (bool, error)
	DeviceSupportsNfcSecure(ctx context.Context) (bool, error)
	SetNfcSecure(ctx context.Context, enable bool) (bool, error)
	GetNfcAntennaInfo(ctx context.Context) (NfcAntennaInfo, error)
	SetControllerAlwaysOn(ctx context.Context, value bool) (bool, error)
	IsControllerAlwaysOn(ctx context.Context) (bool, error)
	IsControllerAlwaysOnSupported(ctx context.Context) (bool, error)
	RegisterControllerAlwaysOnListener(ctx context.Context, listener INfcControllerAlwaysOnListener) error
	UnregisterControllerAlwaysOnListener(ctx context.Context, listener INfcControllerAlwaysOnListener) error
	IsTagIntentAppPreferenceSupported(ctx context.Context) (bool, error)
	GetTagIntentAppPreferenceForUser(ctx context.Context) (map[any]any, error)
	SetTagIntentAppPreferenceForUser(ctx context.Context, pkg string, allow bool) (int32, error)
	IsReaderOptionEnabled(ctx context.Context) (bool, error)
	IsReaderOptionSupported(ctx context.Context) (bool, error)
	EnableReaderOption(ctx context.Context, enable bool) (bool, error)
	IsObserveModeSupported(ctx context.Context) (bool, error)
	IsObserveModeEnabled(ctx context.Context) (bool, error)
	SetObserveMode(ctx context.Context, enabled bool) (bool, error)
	SetWlcEnabled(ctx context.Context, enable bool) (bool, error)
	IsWlcEnabled(ctx context.Context) (bool, error)
	RegisterWlcStateListener(ctx context.Context, listener INfcWlcStateListener) error
	UnregisterWlcStateListener(ctx context.Context, listener INfcWlcStateListener) error
	GetWlcListenerDeviceInfo(ctx context.Context) (WlcListenerDeviceInfo, error)
	UpdateDiscoveryTechnology(ctx context.Context, b binder.IBinder, pollFlags int32, listenFlags int32) error
	NotifyPollingLoop(ctx context.Context, frame os.Bundle) error
	NotifyHceDeactivated(ctx context.Context) error
	SendVendorNciMessage(ctx context.Context, mt int32, gid int32, oid int32, payload []byte) (int32, error)
	RegisterVendorExtensionCallback(ctx context.Context, callbacks INfcVendorNciCallback) error
	UnregisterVendorExtensionCallback(ctx context.Context, callbacks INfcVendorNciCallback) error
}

func NewNfcAdapterStub

func NewNfcAdapterStub(
	impl INfcAdapterServer,
) INfcAdapter

NewNfcAdapterStub creates a server-side INfcAdapter wrapping the given server implementation. The returned value satisfies INfcAdapter 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 INfcAdapterExtras

type INfcAdapterExtras interface {
	AsBinder() binder.IBinder
	Open(ctx context.Context, pkg string, b binder.IBinder) (os.Bundle, error)
	Close(ctx context.Context, pkg string, b binder.IBinder) (os.Bundle, error)
	Transceive(ctx context.Context, pkg string, data_in []byte) (os.Bundle, error)
	GetCardEmulationRoute(ctx context.Context, pkg string) (int32, error)
	SetCardEmulationRoute(ctx context.Context, pkg string, route int32) error
	Authenticate(ctx context.Context, pkg string, token []byte) error
	GetDriverName(ctx context.Context, pkg string) (string, error)
}

func NewNfcAdapterExtrasStub

func NewNfcAdapterExtrasStub(
	impl INfcAdapterExtrasServer,
) INfcAdapterExtras

NewNfcAdapterExtrasStub creates a server-side INfcAdapterExtras wrapping the given server implementation. The returned value satisfies INfcAdapterExtras 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 INfcAdapterExtrasServer

type INfcAdapterExtrasServer interface {
	Open(ctx context.Context, pkg string, b binder.IBinder) (os.Bundle, error)
	Close(ctx context.Context, pkg string, b binder.IBinder) (os.Bundle, error)
	Transceive(ctx context.Context, pkg string, data_in []byte) (os.Bundle, error)
	GetCardEmulationRoute(ctx context.Context, pkg string) (int32, error)
	SetCardEmulationRoute(ctx context.Context, pkg string, route int32) error
	Authenticate(ctx context.Context, pkg string, token []byte) error
	GetDriverName(ctx context.Context, pkg string) (string, error)
}

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

type INfcAdapterServer

type INfcAdapterServer interface {
	GetNfcTagInterface(ctx context.Context) (INfcTag, error)
	GetNfcCardEmulationInterface(ctx context.Context) (INfcCardEmulation, error)
	GetNfcFCardEmulationInterface(ctx context.Context) (INfcFCardEmulation, error)
	GetNfcAdapterExtrasInterface(ctx context.Context, pkg string) (INfcAdapterExtras, error)
	GetNfcDtaInterface(ctx context.Context, pkg string) (INfcDta, error)
	GetState(ctx context.Context) (int32, error)
	Disable(ctx context.Context, saveState bool) (bool, error)
	Enable(ctx context.Context) (bool, error)
	PausePolling(ctx context.Context, timeoutInMs int32) error
	ResumePolling(ctx context.Context) error
	SetForegroundDispatch(ctx context.Context, intent app.PendingIntent, filters []content.IntentFilter, techLists TechListParcel) error
	SetAppCallback(ctx context.Context, callback IAppCallback) error
	Ignore(ctx context.Context, nativeHandle int32, debounceMs int32, callback ITagRemovedCallback) (bool, error)
	Dispatch(ctx context.Context, tag Tag) error
	SetReaderMode(ctx context.Context, b binder.IBinder, callback IAppCallback, flags int32, extras os.Bundle) error
	AddNfcUnlockHandler(ctx context.Context, unlockHandler INfcUnlockHandler, techList []int32) error
	RemoveNfcUnlockHandler(ctx context.Context, unlockHandler INfcUnlockHandler) error
	VerifyNfcPermission(ctx context.Context) error
	IsNfcSecureEnabled(ctx context.Context) (bool, error)
	DeviceSupportsNfcSecure(ctx context.Context) (bool, error)
	SetNfcSecure(ctx context.Context, enable bool) (bool, error)
	GetNfcAntennaInfo(ctx context.Context) (NfcAntennaInfo, error)
	SetControllerAlwaysOn(ctx context.Context, value bool) (bool, error)
	IsControllerAlwaysOn(ctx context.Context) (bool, error)
	IsControllerAlwaysOnSupported(ctx context.Context) (bool, error)
	RegisterControllerAlwaysOnListener(ctx context.Context, listener INfcControllerAlwaysOnListener) error
	UnregisterControllerAlwaysOnListener(ctx context.Context, listener INfcControllerAlwaysOnListener) error
	IsTagIntentAppPreferenceSupported(ctx context.Context) (bool, error)
	GetTagIntentAppPreferenceForUser(ctx context.Context) (map[any]any, error)
	SetTagIntentAppPreferenceForUser(ctx context.Context, pkg string, allow bool) (int32, error)
	IsReaderOptionEnabled(ctx context.Context) (bool, error)
	IsReaderOptionSupported(ctx context.Context) (bool, error)
	EnableReaderOption(ctx context.Context, enable bool) (bool, error)
	IsObserveModeSupported(ctx context.Context) (bool, error)
	IsObserveModeEnabled(ctx context.Context) (bool, error)
	SetObserveMode(ctx context.Context, enabled bool) (bool, error)
	SetWlcEnabled(ctx context.Context, enable bool) (bool, error)
	IsWlcEnabled(ctx context.Context) (bool, error)
	RegisterWlcStateListener(ctx context.Context, listener INfcWlcStateListener) error
	UnregisterWlcStateListener(ctx context.Context, listener INfcWlcStateListener) error
	GetWlcListenerDeviceInfo(ctx context.Context) (WlcListenerDeviceInfo, error)
	UpdateDiscoveryTechnology(ctx context.Context, b binder.IBinder, pollFlags int32, listenFlags int32) error
	NotifyPollingLoop(ctx context.Context, frame os.Bundle) error
	NotifyHceDeactivated(ctx context.Context) error
	SendVendorNciMessage(ctx context.Context, mt int32, gid int32, oid int32, payload []byte) (int32, error)
	RegisterVendorExtensionCallback(ctx context.Context, callbacks INfcVendorNciCallback) error
	UnregisterVendorExtensionCallback(ctx context.Context, callbacks INfcVendorNciCallback) error
}

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

type INfcCardEmulation

type INfcCardEmulation interface {
	AsBinder() binder.IBinder
	IsDefaultServiceForCategory(ctx context.Context, service content.ComponentName, category string) (bool, error)
	IsDefaultServiceForAid(ctx context.Context, service content.ComponentName, aid string) (bool, error)
	SetDefaultServiceForCategory(ctx context.Context, service content.ComponentName, category string) (bool, error)
	SetDefaultForNextTap(ctx context.Context, service content.ComponentName) (bool, error)
	SetShouldDefaultToObserveModeForService(ctx context.Context, service content.ComponentName, enable bool) (bool, error)
	RegisterAidGroupForService(ctx context.Context, service content.ComponentName, aidGroup cardemulation.AidGroup) (bool, error)
	RegisterPollingLoopFilterForService(ctx context.Context, service content.ComponentName, pollingLoopFilter string, autoTransact bool) (bool, error)
	SetOffHostForService(ctx context.Context, service content.ComponentName, offHostSecureElement string) (bool, error)
	UnsetOffHostForService(ctx context.Context, service content.ComponentName) (bool, error)
	GetAidGroupForService(ctx context.Context, service content.ComponentName, category string) (cardemulation.AidGroup, error)
	RemoveAidGroupForService(ctx context.Context, service content.ComponentName, category string) (bool, error)
	GetServices(ctx context.Context, category string) ([]cardemulation.ApduServiceInfo, error)
	SetPreferredService(ctx context.Context, service content.ComponentName) (bool, error)
	UnsetPreferredService(ctx context.Context) (bool, error)
	SupportsAidPrefixRegistration(ctx context.Context) (bool, error)
	GetPreferredPaymentService(ctx context.Context) (cardemulation.ApduServiceInfo, error)
	SetServiceEnabledForCategoryOther(ctx context.Context, app content.ComponentName, status bool) (bool, error)
	IsDefaultPaymentRegistered(ctx context.Context) (bool, error)
	OverrideRoutingTable(ctx context.Context, protocol string, technology string) (bool, error)
	RecoverRoutingTable(ctx context.Context) (bool, error)
}

func NewNfcCardEmulationStub

func NewNfcCardEmulationStub(
	impl INfcCardEmulationServer,
) INfcCardEmulation

NewNfcCardEmulationStub creates a server-side INfcCardEmulation wrapping the given server implementation. The returned value satisfies INfcCardEmulation 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 INfcCardEmulationServer

type INfcCardEmulationServer interface {
	IsDefaultServiceForCategory(ctx context.Context, service content.ComponentName, category string) (bool, error)
	IsDefaultServiceForAid(ctx context.Context, service content.ComponentName, aid string) (bool, error)
	SetDefaultServiceForCategory(ctx context.Context, service content.ComponentName, category string) (bool, error)
	SetDefaultForNextTap(ctx context.Context, service content.ComponentName) (bool, error)
	SetShouldDefaultToObserveModeForService(ctx context.Context, service content.ComponentName, enable bool) (bool, error)
	RegisterAidGroupForService(ctx context.Context, service content.ComponentName, aidGroup cardemulation.AidGroup) (bool, error)
	RegisterPollingLoopFilterForService(ctx context.Context, service content.ComponentName, pollingLoopFilter string, autoTransact bool) (bool, error)
	SetOffHostForService(ctx context.Context, service content.ComponentName, offHostSecureElement string) (bool, error)
	UnsetOffHostForService(ctx context.Context, service content.ComponentName) (bool, error)
	GetAidGroupForService(ctx context.Context, service content.ComponentName, category string) (cardemulation.AidGroup, error)
	RemoveAidGroupForService(ctx context.Context, service content.ComponentName, category string) (bool, error)
	GetServices(ctx context.Context, category string) ([]cardemulation.ApduServiceInfo, error)
	SetPreferredService(ctx context.Context, service content.ComponentName) (bool, error)
	UnsetPreferredService(ctx context.Context) (bool, error)
	SupportsAidPrefixRegistration(ctx context.Context) (bool, error)
	GetPreferredPaymentService(ctx context.Context) (cardemulation.ApduServiceInfo, error)
	SetServiceEnabledForCategoryOther(ctx context.Context, app content.ComponentName, status bool) (bool, error)
	IsDefaultPaymentRegistered(ctx context.Context) (bool, error)
	OverrideRoutingTable(ctx context.Context, protocol string, technology string) (bool, error)
	RecoverRoutingTable(ctx context.Context) (bool, error)
}

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

type INfcControllerAlwaysOnListener

type INfcControllerAlwaysOnListener interface {
	AsBinder() binder.IBinder
	OnControllerAlwaysOnChanged(ctx context.Context, isEnabled bool) error
}

func NewNfcControllerAlwaysOnListenerStub

func NewNfcControllerAlwaysOnListenerStub(
	impl INfcControllerAlwaysOnListenerServer,
) INfcControllerAlwaysOnListener

NewNfcControllerAlwaysOnListenerStub creates a server-side INfcControllerAlwaysOnListener wrapping the given server implementation. The returned value satisfies INfcControllerAlwaysOnListener 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 INfcControllerAlwaysOnListenerServer

type INfcControllerAlwaysOnListenerServer interface {
	OnControllerAlwaysOnChanged(ctx context.Context, isEnabled bool) error
}

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

type INfcDta

type INfcDta interface {
	AsBinder() binder.IBinder
	EnableDta(ctx context.Context) error
	DisableDta(ctx context.Context) error
	EnableServer(ctx context.Context, serviceName string, serviceSap int32, miu int32, rwSize int32, testCaseId int32) (bool, error)
	DisableServer(ctx context.Context) error
	EnableClient(ctx context.Context, serviceName string, miu int32, rwSize int32, testCaseId int32) (bool, error)
	DisableClient(ctx context.Context) error
	RegisterMessageService(ctx context.Context, msgServiceName string) (bool, error)
}

func NewNfcDtaStub

func NewNfcDtaStub(
	impl INfcDtaServer,
) INfcDta

NewNfcDtaStub creates a server-side INfcDta wrapping the given server implementation. The returned value satisfies INfcDta 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 INfcDtaServer

type INfcDtaServer interface {
	EnableDta(ctx context.Context) error
	DisableDta(ctx context.Context) error
	EnableServer(ctx context.Context, serviceName string, serviceSap int32, miu int32, rwSize int32, testCaseId int32) (bool, error)
	DisableServer(ctx context.Context) error
	EnableClient(ctx context.Context, serviceName string, miu int32, rwSize int32, testCaseId int32) (bool, error)
	DisableClient(ctx context.Context) error
	RegisterMessageService(ctx context.Context, msgServiceName string) (bool, error)
}

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

type INfcFCardEmulation

type INfcFCardEmulation interface {
	AsBinder() binder.IBinder
	GetSystemCodeForService(ctx context.Context, service content.ComponentName) (string, error)
	RegisterSystemCodeForService(ctx context.Context, service content.ComponentName, systemCode string) (bool, error)
	RemoveSystemCodeForService(ctx context.Context, service content.ComponentName) (bool, error)
	GetNfcid2ForService(ctx context.Context, service content.ComponentName) (string, error)
	SetNfcid2ForService(ctx context.Context, service content.ComponentName, nfcid2 string) (bool, error)
	EnableNfcFForegroundService(ctx context.Context, service content.ComponentName) (bool, error)
	DisableNfcFForegroundService(ctx context.Context) (bool, error)
	GetNfcFServices(ctx context.Context) ([]cardemulation.NfcFServiceInfo, error)
	GetMaxNumOfRegisterableSystemCodes(ctx context.Context) (int32, error)
}

func NewNfcFCardEmulationStub

func NewNfcFCardEmulationStub(
	impl INfcFCardEmulationServer,
) INfcFCardEmulation

NewNfcFCardEmulationStub creates a server-side INfcFCardEmulation wrapping the given server implementation. The returned value satisfies INfcFCardEmulation 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 INfcFCardEmulationServer

type INfcFCardEmulationServer interface {
	GetSystemCodeForService(ctx context.Context, service content.ComponentName) (string, error)
	RegisterSystemCodeForService(ctx context.Context, service content.ComponentName, systemCode string) (bool, error)
	RemoveSystemCodeForService(ctx context.Context, service content.ComponentName) (bool, error)
	GetNfcid2ForService(ctx context.Context, service content.ComponentName) (string, error)
	SetNfcid2ForService(ctx context.Context, service content.ComponentName, nfcid2 string) (bool, error)
	EnableNfcFForegroundService(ctx context.Context, service content.ComponentName) (bool, error)
	DisableNfcFForegroundService(ctx context.Context) (bool, error)
	GetNfcFServices(ctx context.Context) ([]cardemulation.NfcFServiceInfo, error)
	GetMaxNumOfRegisterableSystemCodes(ctx context.Context) (int32, error)
}

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

type INfcTag

type INfcTag interface {
	AsBinder() binder.IBinder
	Connect(ctx context.Context, nativeHandle int32, technology int32) (int32, error)
	Reconnect(ctx context.Context, nativeHandle int32) (int32, error)
	GetTechList(ctx context.Context, nativeHandle int32) ([]int32, error)
	IsNdef(ctx context.Context, nativeHandle int32) (bool, error)
	IsPresent(ctx context.Context, nativeHandle int32) (bool, error)
	Transceive(ctx context.Context, nativeHandle int32, data []byte, raw bool) (TransceiveResult, error)
	NdefRead(ctx context.Context, nativeHandle int32) (NdefMessage, error)
	NdefWrite(ctx context.Context, nativeHandle int32, msg NdefMessage) (int32, error)
	NdefMakeReadOnly(ctx context.Context, nativeHandle int32) (int32, error)
	NdefIsWritable(ctx context.Context, nativeHandle int32) (bool, error)
	FormatNdef(ctx context.Context, nativeHandle int32, key []byte) (int32, error)
	Rediscover(ctx context.Context, nativehandle int32) (Tag, error)
	SetTimeout(ctx context.Context, technology int32, timeout int32) (int32, error)
	GetTimeout(ctx context.Context, technology int32) (int32, error)
	ResetTimeouts(ctx context.Context) error
	CanMakeReadOnly(ctx context.Context, ndefType int32) (bool, error)
	GetMaxTransceiveLength(ctx context.Context, technology int32) (int32, error)
	GetExtendedLengthApdusSupported(ctx context.Context) (bool, error)
	IsTagUpToDate(ctx context.Context, cookie int64) (bool, error)
}

func NewNfcTagStub

func NewNfcTagStub(
	impl INfcTagServer,
) INfcTag

NewNfcTagStub creates a server-side INfcTag wrapping the given server implementation. The returned value satisfies INfcTag 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 INfcTagServer

type INfcTagServer interface {
	Connect(ctx context.Context, nativeHandle int32, technology int32) (int32, error)
	Reconnect(ctx context.Context, nativeHandle int32) (int32, error)
	GetTechList(ctx context.Context, nativeHandle int32) ([]int32, error)
	IsNdef(ctx context.Context, nativeHandle int32) (bool, error)
	IsPresent(ctx context.Context, nativeHandle int32) (bool, error)
	Transceive(ctx context.Context, nativeHandle int32, data []byte, raw bool) (TransceiveResult, error)
	NdefRead(ctx context.Context, nativeHandle int32) (NdefMessage, error)
	NdefWrite(ctx context.Context, nativeHandle int32, msg NdefMessage) (int32, error)
	NdefMakeReadOnly(ctx context.Context, nativeHandle int32) (int32, error)
	NdefIsWritable(ctx context.Context, nativeHandle int32) (bool, error)
	FormatNdef(ctx context.Context, nativeHandle int32, key []byte) (int32, error)
	Rediscover(ctx context.Context, nativehandle int32) (Tag, error)
	SetTimeout(ctx context.Context, technology int32, timeout int32) (int32, error)
	GetTimeout(ctx context.Context, technology int32) (int32, error)
	ResetTimeouts(ctx context.Context) error
	CanMakeReadOnly(ctx context.Context, ndefType int32) (bool, error)
	GetMaxTransceiveLength(ctx context.Context, technology int32) (int32, error)
	GetExtendedLengthApdusSupported(ctx context.Context) (bool, error)
	IsTagUpToDate(ctx context.Context, cookie int64) (bool, error)
}

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

type INfcUnlockHandler

type INfcUnlockHandler interface {
	AsBinder() binder.IBinder
	OnUnlockAttempted(ctx context.Context, tag Tag) (bool, error)
}

func NewNfcUnlockHandlerStub

func NewNfcUnlockHandlerStub(
	impl INfcUnlockHandlerServer,
) INfcUnlockHandler

NewNfcUnlockHandlerStub creates a server-side INfcUnlockHandler wrapping the given server implementation. The returned value satisfies INfcUnlockHandler 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 INfcUnlockHandlerServer

type INfcUnlockHandlerServer interface {
	OnUnlockAttempted(ctx context.Context, tag Tag) (bool, error)
}

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

type INfcVendorNciCallback

type INfcVendorNciCallback interface {
	AsBinder() binder.IBinder
	OnVendorResponseReceived(ctx context.Context, gid int32, oid int32, payload []byte) error
	OnVendorNotificationReceived(ctx context.Context, gid int32, oid int32, payload []byte) error
}

func NewNfcVendorNciCallbackStub

func NewNfcVendorNciCallbackStub(
	impl INfcVendorNciCallbackServer,
) INfcVendorNciCallback

NewNfcVendorNciCallbackStub creates a server-side INfcVendorNciCallback wrapping the given server implementation. The returned value satisfies INfcVendorNciCallback 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 INfcVendorNciCallbackServer

type INfcVendorNciCallbackServer interface {
	OnVendorResponseReceived(ctx context.Context, gid int32, oid int32, payload []byte) error
	OnVendorNotificationReceived(ctx context.Context, gid int32, oid int32, payload []byte) error
}

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

type INfcWlcStateListener

type INfcWlcStateListener interface {
	AsBinder() binder.IBinder
	OnWlcStateChanged(ctx context.Context, wlcListenerDeviceInfo WlcListenerDeviceInfo) error
}

func NewNfcWlcStateListenerStub

func NewNfcWlcStateListenerStub(
	impl INfcWlcStateListenerServer,
) INfcWlcStateListener

NewNfcWlcStateListenerStub creates a server-side INfcWlcStateListener wrapping the given server implementation. The returned value satisfies INfcWlcStateListener 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 INfcWlcStateListenerServer

type INfcWlcStateListenerServer interface {
	OnWlcStateChanged(ctx context.Context, wlcListenerDeviceInfo WlcListenerDeviceInfo) error
}

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

type ITagRemovedCallback

type ITagRemovedCallback interface {
	AsBinder() binder.IBinder
	OnTagRemoved(ctx context.Context) error
}

func NewTagRemovedCallbackStub

func NewTagRemovedCallbackStub(
	impl ITagRemovedCallbackServer,
) ITagRemovedCallback

NewTagRemovedCallbackStub creates a server-side ITagRemovedCallback wrapping the given server implementation. The returned value satisfies ITagRemovedCallback 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 ITagRemovedCallbackServer

type ITagRemovedCallbackServer interface {
	OnTagRemoved(ctx context.Context) error
}

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

type NdefMessage

type NdefMessage struct {
}

func (*NdefMessage) MarshalParcel

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

func (*NdefMessage) UnmarshalParcel

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

type NdefRecord

type NdefRecord struct {
	Tnf int32
}

func (*NdefRecord) MarshalParcel

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

func (*NdefRecord) UnmarshalParcel

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

type NfcAdapterExtrasProxy

type NfcAdapterExtrasProxy struct {
	Remote binder.IBinder
}

func NewNfcAdapterExtrasProxy

func NewNfcAdapterExtrasProxy(
	remote binder.IBinder,
) *NfcAdapterExtrasProxy

func (*NfcAdapterExtrasProxy) AsBinder

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

func (*NfcAdapterExtrasProxy) Authenticate

func (p *NfcAdapterExtrasProxy) Authenticate(
	ctx context.Context,
	pkg string,
	token []byte,
) error

func (*NfcAdapterExtrasProxy) Close

func (p *NfcAdapterExtrasProxy) Close(
	ctx context.Context,
	pkg string,
	b binder.IBinder,
) (os.Bundle, error)

func (*NfcAdapterExtrasProxy) GetCardEmulationRoute

func (p *NfcAdapterExtrasProxy) GetCardEmulationRoute(
	ctx context.Context,
	pkg string,
) (int32, error)

func (*NfcAdapterExtrasProxy) GetDriverName

func (p *NfcAdapterExtrasProxy) GetDriverName(
	ctx context.Context,
	pkg string,
) (string, error)

func (*NfcAdapterExtrasProxy) Open

func (*NfcAdapterExtrasProxy) SetCardEmulationRoute

func (p *NfcAdapterExtrasProxy) SetCardEmulationRoute(
	ctx context.Context,
	pkg string,
	route int32,
) error

func (*NfcAdapterExtrasProxy) Transceive

func (p *NfcAdapterExtrasProxy) Transceive(
	ctx context.Context,
	pkg string,
	data_in []byte,
) (os.Bundle, error)

type NfcAdapterExtrasStub

type NfcAdapterExtrasStub struct {
	Impl      INfcAdapterExtras
	Transport binder.VersionAwareTransport
}

NfcAdapterExtrasStub dispatches incoming binder transactions to a typed INfcAdapterExtras implementation.

func (*NfcAdapterExtrasStub) Descriptor

func (s *NfcAdapterExtrasStub) Descriptor() string

func (*NfcAdapterExtrasStub) OnTransaction

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

type NfcAdapterProxy

type NfcAdapterProxy struct {
	Remote binder.IBinder
}

func NewNfcAdapterProxy

func NewNfcAdapterProxy(
	remote binder.IBinder,
) *NfcAdapterProxy

func (*NfcAdapterProxy) AddNfcUnlockHandler

func (p *NfcAdapterProxy) AddNfcUnlockHandler(
	ctx context.Context,
	unlockHandler INfcUnlockHandler,
	techList []int32,
) error

func (*NfcAdapterProxy) AsBinder

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

func (*NfcAdapterProxy) DeviceSupportsNfcSecure

func (p *NfcAdapterProxy) DeviceSupportsNfcSecure(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) Disable

func (p *NfcAdapterProxy) Disable(
	ctx context.Context,
	saveState bool,
) (bool, error)

func (*NfcAdapterProxy) Dispatch

func (p *NfcAdapterProxy) Dispatch(
	ctx context.Context,
	tag Tag,
) error

func (*NfcAdapterProxy) Enable

func (p *NfcAdapterProxy) Enable(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) EnableReaderOption

func (p *NfcAdapterProxy) EnableReaderOption(
	ctx context.Context,
	enable bool,
) (bool, error)

func (*NfcAdapterProxy) GetNfcAdapterExtrasInterface

func (p *NfcAdapterProxy) GetNfcAdapterExtrasInterface(
	ctx context.Context,
	pkg string,
) (INfcAdapterExtras, error)

func (*NfcAdapterProxy) GetNfcAntennaInfo

func (p *NfcAdapterProxy) GetNfcAntennaInfo(
	ctx context.Context,
) (NfcAntennaInfo, error)

func (*NfcAdapterProxy) GetNfcCardEmulationInterface

func (p *NfcAdapterProxy) GetNfcCardEmulationInterface(
	ctx context.Context,
) (INfcCardEmulation, error)

func (*NfcAdapterProxy) GetNfcDtaInterface

func (p *NfcAdapterProxy) GetNfcDtaInterface(
	ctx context.Context,
	pkg string,
) (INfcDta, error)

func (*NfcAdapterProxy) GetNfcFCardEmulationInterface

func (p *NfcAdapterProxy) GetNfcFCardEmulationInterface(
	ctx context.Context,
) (INfcFCardEmulation, error)

func (*NfcAdapterProxy) GetNfcTagInterface

func (p *NfcAdapterProxy) GetNfcTagInterface(
	ctx context.Context,
) (INfcTag, error)

func (*NfcAdapterProxy) GetState

func (p *NfcAdapterProxy) GetState(
	ctx context.Context,
) (int32, error)

func (*NfcAdapterProxy) GetTagIntentAppPreferenceForUser

func (p *NfcAdapterProxy) GetTagIntentAppPreferenceForUser(
	ctx context.Context,
) (map[any]any, error)

func (*NfcAdapterProxy) GetWlcListenerDeviceInfo

func (p *NfcAdapterProxy) GetWlcListenerDeviceInfo(
	ctx context.Context,
) (WlcListenerDeviceInfo, error)

func (*NfcAdapterProxy) Ignore

func (p *NfcAdapterProxy) Ignore(
	ctx context.Context,
	nativeHandle int32,
	debounceMs int32,
	callback ITagRemovedCallback,
) (bool, error)

func (*NfcAdapterProxy) IsControllerAlwaysOn

func (p *NfcAdapterProxy) IsControllerAlwaysOn(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) IsControllerAlwaysOnSupported

func (p *NfcAdapterProxy) IsControllerAlwaysOnSupported(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) IsNfcSecureEnabled

func (p *NfcAdapterProxy) IsNfcSecureEnabled(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) IsObserveModeEnabled

func (p *NfcAdapterProxy) IsObserveModeEnabled(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) IsObserveModeSupported

func (p *NfcAdapterProxy) IsObserveModeSupported(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) IsReaderOptionEnabled

func (p *NfcAdapterProxy) IsReaderOptionEnabled(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) IsReaderOptionSupported

func (p *NfcAdapterProxy) IsReaderOptionSupported(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) IsTagIntentAppPreferenceSupported

func (p *NfcAdapterProxy) IsTagIntentAppPreferenceSupported(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) IsWlcEnabled

func (p *NfcAdapterProxy) IsWlcEnabled(
	ctx context.Context,
) (bool, error)

func (*NfcAdapterProxy) NotifyHceDeactivated

func (p *NfcAdapterProxy) NotifyHceDeactivated(
	ctx context.Context,
) error

func (*NfcAdapterProxy) NotifyPollingLoop

func (p *NfcAdapterProxy) NotifyPollingLoop(
	ctx context.Context,
	frame os.Bundle,
) error

func (*NfcAdapterProxy) PausePolling

func (p *NfcAdapterProxy) PausePolling(
	ctx context.Context,
	timeoutInMs int32,
) error

func (*NfcAdapterProxy) RegisterControllerAlwaysOnListener

func (p *NfcAdapterProxy) RegisterControllerAlwaysOnListener(
	ctx context.Context,
	listener INfcControllerAlwaysOnListener,
) error

func (*NfcAdapterProxy) RegisterVendorExtensionCallback

func (p *NfcAdapterProxy) RegisterVendorExtensionCallback(
	ctx context.Context,
	callbacks INfcVendorNciCallback,
) error

func (*NfcAdapterProxy) RegisterWlcStateListener

func (p *NfcAdapterProxy) RegisterWlcStateListener(
	ctx context.Context,
	listener INfcWlcStateListener,
) error

func (*NfcAdapterProxy) RemoveNfcUnlockHandler

func (p *NfcAdapterProxy) RemoveNfcUnlockHandler(
	ctx context.Context,
	unlockHandler INfcUnlockHandler,
) error

func (*NfcAdapterProxy) ResumePolling

func (p *NfcAdapterProxy) ResumePolling(
	ctx context.Context,
) error

func (*NfcAdapterProxy) SendVendorNciMessage

func (p *NfcAdapterProxy) SendVendorNciMessage(
	ctx context.Context,
	mt int32,
	gid int32,
	oid int32,
	payload []byte,
) (int32, error)

func (*NfcAdapterProxy) SetAppCallback

func (p *NfcAdapterProxy) SetAppCallback(
	ctx context.Context,
	callback IAppCallback,
) error

func (*NfcAdapterProxy) SetControllerAlwaysOn

func (p *NfcAdapterProxy) SetControllerAlwaysOn(
	ctx context.Context,
	value bool,
) (bool, error)

func (*NfcAdapterProxy) SetForegroundDispatch

func (p *NfcAdapterProxy) SetForegroundDispatch(
	ctx context.Context,
	intent app.PendingIntent,
	filters []content.IntentFilter,
	techLists TechListParcel,
) error

func (*NfcAdapterProxy) SetNfcSecure

func (p *NfcAdapterProxy) SetNfcSecure(
	ctx context.Context,
	enable bool,
) (bool, error)

func (*NfcAdapterProxy) SetObserveMode

func (p *NfcAdapterProxy) SetObserveMode(
	ctx context.Context,
	enabled bool,
) (bool, error)

func (*NfcAdapterProxy) SetReaderMode

func (p *NfcAdapterProxy) SetReaderMode(
	ctx context.Context,
	b binder.IBinder,
	callback IAppCallback,
	flags int32,
	extras os.Bundle,
) error

func (*NfcAdapterProxy) SetTagIntentAppPreferenceForUser

func (p *NfcAdapterProxy) SetTagIntentAppPreferenceForUser(
	ctx context.Context,
	pkg string,
	allow bool,
) (int32, error)

func (*NfcAdapterProxy) SetWlcEnabled

func (p *NfcAdapterProxy) SetWlcEnabled(
	ctx context.Context,
	enable bool,
) (bool, error)

func (*NfcAdapterProxy) UnregisterControllerAlwaysOnListener

func (p *NfcAdapterProxy) UnregisterControllerAlwaysOnListener(
	ctx context.Context,
	listener INfcControllerAlwaysOnListener,
) error

func (*NfcAdapterProxy) UnregisterVendorExtensionCallback

func (p *NfcAdapterProxy) UnregisterVendorExtensionCallback(
	ctx context.Context,
	callbacks INfcVendorNciCallback,
) error

func (*NfcAdapterProxy) UnregisterWlcStateListener

func (p *NfcAdapterProxy) UnregisterWlcStateListener(
	ctx context.Context,
	listener INfcWlcStateListener,
) error

func (*NfcAdapterProxy) UpdateDiscoveryTechnology

func (p *NfcAdapterProxy) UpdateDiscoveryTechnology(
	ctx context.Context,
	b binder.IBinder,
	pollFlags int32,
	listenFlags int32,
) error

func (*NfcAdapterProxy) VerifyNfcPermission

func (p *NfcAdapterProxy) VerifyNfcPermission(
	ctx context.Context,
) error

type NfcAdapterStub

type NfcAdapterStub struct {
	Impl      INfcAdapter
	Transport binder.VersionAwareTransport
}

NfcAdapterStub dispatches incoming binder transactions to a typed INfcAdapter implementation.

func (*NfcAdapterStub) Descriptor

func (s *NfcAdapterStub) Descriptor() string

func (*NfcAdapterStub) OnTransaction

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

type NfcAntennaInfo

type NfcAntennaInfo struct {
	DeviceWidth  int32
	DeviceHeight int32
}

func (*NfcAntennaInfo) MarshalParcel

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

func (*NfcAntennaInfo) UnmarshalParcel

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

type NfcCardEmulationProxy

type NfcCardEmulationProxy struct {
	Remote binder.IBinder
}

func NewNfcCardEmulationProxy

func NewNfcCardEmulationProxy(
	remote binder.IBinder,
) *NfcCardEmulationProxy

func (*NfcCardEmulationProxy) AsBinder

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

func (*NfcCardEmulationProxy) GetAidGroupForService

func (p *NfcCardEmulationProxy) GetAidGroupForService(
	ctx context.Context,
	service content.ComponentName,
	category string,
) (cardemulation.AidGroup, error)

func (*NfcCardEmulationProxy) GetPreferredPaymentService

func (p *NfcCardEmulationProxy) GetPreferredPaymentService(
	ctx context.Context,
) (cardemulation.ApduServiceInfo, error)

func (*NfcCardEmulationProxy) GetServices

func (p *NfcCardEmulationProxy) GetServices(
	ctx context.Context,
	category string,
) ([]cardemulation.ApduServiceInfo, error)

func (*NfcCardEmulationProxy) IsDefaultPaymentRegistered

func (p *NfcCardEmulationProxy) IsDefaultPaymentRegistered(
	ctx context.Context,
) (bool, error)

func (*NfcCardEmulationProxy) IsDefaultServiceForAid

func (p *NfcCardEmulationProxy) IsDefaultServiceForAid(
	ctx context.Context,
	service content.ComponentName,
	aid string,
) (bool, error)

func (*NfcCardEmulationProxy) IsDefaultServiceForCategory

func (p *NfcCardEmulationProxy) IsDefaultServiceForCategory(
	ctx context.Context,
	service content.ComponentName,
	category string,
) (bool, error)

func (*NfcCardEmulationProxy) OverrideRoutingTable

func (p *NfcCardEmulationProxy) OverrideRoutingTable(
	ctx context.Context,
	protocol string,
	technology string,
) (bool, error)

func (*NfcCardEmulationProxy) RecoverRoutingTable

func (p *NfcCardEmulationProxy) RecoverRoutingTable(
	ctx context.Context,
) (bool, error)

func (*NfcCardEmulationProxy) RegisterAidGroupForService

func (p *NfcCardEmulationProxy) RegisterAidGroupForService(
	ctx context.Context,
	service content.ComponentName,
	aidGroup cardemulation.AidGroup,
) (bool, error)

func (*NfcCardEmulationProxy) RegisterPollingLoopFilterForService

func (p *NfcCardEmulationProxy) RegisterPollingLoopFilterForService(
	ctx context.Context,
	service content.ComponentName,
	pollingLoopFilter string,
	autoTransact bool,
) (bool, error)

func (*NfcCardEmulationProxy) RemoveAidGroupForService

func (p *NfcCardEmulationProxy) RemoveAidGroupForService(
	ctx context.Context,
	service content.ComponentName,
	category string,
) (bool, error)

func (*NfcCardEmulationProxy) SetDefaultForNextTap

func (p *NfcCardEmulationProxy) SetDefaultForNextTap(
	ctx context.Context,
	service content.ComponentName,
) (bool, error)

func (*NfcCardEmulationProxy) SetDefaultServiceForCategory

func (p *NfcCardEmulationProxy) SetDefaultServiceForCategory(
	ctx context.Context,
	service content.ComponentName,
	category string,
) (bool, error)

func (*NfcCardEmulationProxy) SetOffHostForService

func (p *NfcCardEmulationProxy) SetOffHostForService(
	ctx context.Context,
	service content.ComponentName,
	offHostSecureElement string,
) (bool, error)

func (*NfcCardEmulationProxy) SetPreferredService

func (p *NfcCardEmulationProxy) SetPreferredService(
	ctx context.Context,
	service content.ComponentName,
) (bool, error)

func (*NfcCardEmulationProxy) SetServiceEnabledForCategoryOther

func (p *NfcCardEmulationProxy) SetServiceEnabledForCategoryOther(
	ctx context.Context,
	app content.ComponentName,
	status bool,
) (bool, error)

func (*NfcCardEmulationProxy) SetShouldDefaultToObserveModeForService

func (p *NfcCardEmulationProxy) SetShouldDefaultToObserveModeForService(
	ctx context.Context,
	service content.ComponentName,
	enable bool,
) (bool, error)

func (*NfcCardEmulationProxy) SupportsAidPrefixRegistration

func (p *NfcCardEmulationProxy) SupportsAidPrefixRegistration(
	ctx context.Context,
) (bool, error)

func (*NfcCardEmulationProxy) UnsetOffHostForService

func (p *NfcCardEmulationProxy) UnsetOffHostForService(
	ctx context.Context,
	service content.ComponentName,
) (bool, error)

func (*NfcCardEmulationProxy) UnsetPreferredService

func (p *NfcCardEmulationProxy) UnsetPreferredService(
	ctx context.Context,
) (bool, error)

type NfcCardEmulationStub

type NfcCardEmulationStub struct {
	Impl      INfcCardEmulation
	Transport binder.VersionAwareTransport
}

NfcCardEmulationStub dispatches incoming binder transactions to a typed INfcCardEmulation implementation.

func (*NfcCardEmulationStub) Descriptor

func (s *NfcCardEmulationStub) Descriptor() string

func (*NfcCardEmulationStub) OnTransaction

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

type NfcControllerAlwaysOnListenerProxy

type NfcControllerAlwaysOnListenerProxy struct {
	Remote binder.IBinder
}

func NewNfcControllerAlwaysOnListenerProxy

func NewNfcControllerAlwaysOnListenerProxy(
	remote binder.IBinder,
) *NfcControllerAlwaysOnListenerProxy

func (*NfcControllerAlwaysOnListenerProxy) AsBinder

func (*NfcControllerAlwaysOnListenerProxy) OnControllerAlwaysOnChanged

func (p *NfcControllerAlwaysOnListenerProxy) OnControllerAlwaysOnChanged(
	ctx context.Context,
	isEnabled bool,
) error

type NfcControllerAlwaysOnListenerStub

type NfcControllerAlwaysOnListenerStub struct {
	Impl      INfcControllerAlwaysOnListener
	Transport binder.VersionAwareTransport
}

NfcControllerAlwaysOnListenerStub dispatches incoming binder transactions to a typed INfcControllerAlwaysOnListener implementation.

func (*NfcControllerAlwaysOnListenerStub) Descriptor

func (s *NfcControllerAlwaysOnListenerStub) Descriptor() string

func (*NfcControllerAlwaysOnListenerStub) OnTransaction

type NfcDtaProxy

type NfcDtaProxy struct {
	Remote binder.IBinder
}

func NewNfcDtaProxy

func NewNfcDtaProxy(
	remote binder.IBinder,
) *NfcDtaProxy

func (*NfcDtaProxy) AsBinder

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

func (*NfcDtaProxy) DisableClient

func (p *NfcDtaProxy) DisableClient(
	ctx context.Context,
) error

func (*NfcDtaProxy) DisableDta

func (p *NfcDtaProxy) DisableDta(
	ctx context.Context,
) error

func (*NfcDtaProxy) DisableServer

func (p *NfcDtaProxy) DisableServer(
	ctx context.Context,
) error

func (*NfcDtaProxy) EnableClient

func (p *NfcDtaProxy) EnableClient(
	ctx context.Context,
	serviceName string,
	miu int32,
	rwSize int32,
	testCaseId int32,
) (bool, error)

func (*NfcDtaProxy) EnableDta

func (p *NfcDtaProxy) EnableDta(
	ctx context.Context,
) error

func (*NfcDtaProxy) EnableServer

func (p *NfcDtaProxy) EnableServer(
	ctx context.Context,
	serviceName string,
	serviceSap int32,
	miu int32,
	rwSize int32,
	testCaseId int32,
) (bool, error)

func (*NfcDtaProxy) RegisterMessageService

func (p *NfcDtaProxy) RegisterMessageService(
	ctx context.Context,
	msgServiceName string,
) (bool, error)

type NfcDtaStub

type NfcDtaStub struct {
	Impl      INfcDta
	Transport binder.VersionAwareTransport
}

NfcDtaStub dispatches incoming binder transactions to a typed INfcDta implementation.

func (*NfcDtaStub) Descriptor

func (s *NfcDtaStub) Descriptor() string

func (*NfcDtaStub) OnTransaction

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

type NfcFCardEmulationProxy

type NfcFCardEmulationProxy struct {
	Remote binder.IBinder
}

func NewNfcFCardEmulationProxy

func NewNfcFCardEmulationProxy(
	remote binder.IBinder,
) *NfcFCardEmulationProxy

func (*NfcFCardEmulationProxy) AsBinder

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

func (*NfcFCardEmulationProxy) DisableNfcFForegroundService

func (p *NfcFCardEmulationProxy) DisableNfcFForegroundService(
	ctx context.Context,
) (bool, error)

func (*NfcFCardEmulationProxy) EnableNfcFForegroundService

func (p *NfcFCardEmulationProxy) EnableNfcFForegroundService(
	ctx context.Context,
	service content.ComponentName,
) (bool, error)

func (*NfcFCardEmulationProxy) GetMaxNumOfRegisterableSystemCodes

func (p *NfcFCardEmulationProxy) GetMaxNumOfRegisterableSystemCodes(
	ctx context.Context,
) (int32, error)

func (*NfcFCardEmulationProxy) GetNfcFServices

func (p *NfcFCardEmulationProxy) GetNfcFServices(
	ctx context.Context,
) ([]cardemulation.NfcFServiceInfo, error)

func (*NfcFCardEmulationProxy) GetNfcid2ForService

func (p *NfcFCardEmulationProxy) GetNfcid2ForService(
	ctx context.Context,
	service content.ComponentName,
) (string, error)

func (*NfcFCardEmulationProxy) GetSystemCodeForService

func (p *NfcFCardEmulationProxy) GetSystemCodeForService(
	ctx context.Context,
	service content.ComponentName,
) (string, error)

func (*NfcFCardEmulationProxy) RegisterSystemCodeForService

func (p *NfcFCardEmulationProxy) RegisterSystemCodeForService(
	ctx context.Context,
	service content.ComponentName,
	systemCode string,
) (bool, error)

func (*NfcFCardEmulationProxy) RemoveSystemCodeForService

func (p *NfcFCardEmulationProxy) RemoveSystemCodeForService(
	ctx context.Context,
	service content.ComponentName,
) (bool, error)

func (*NfcFCardEmulationProxy) SetNfcid2ForService

func (p *NfcFCardEmulationProxy) SetNfcid2ForService(
	ctx context.Context,
	service content.ComponentName,
	nfcid2 string,
) (bool, error)

type NfcFCardEmulationStub

type NfcFCardEmulationStub struct {
	Impl      INfcFCardEmulation
	Transport binder.VersionAwareTransport
}

NfcFCardEmulationStub dispatches incoming binder transactions to a typed INfcFCardEmulation implementation.

func (*NfcFCardEmulationStub) Descriptor

func (s *NfcFCardEmulationStub) Descriptor() string

func (*NfcFCardEmulationStub) OnTransaction

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

type NfcTagProxy

type NfcTagProxy struct {
	Remote binder.IBinder
}

func NewNfcTagProxy

func NewNfcTagProxy(
	remote binder.IBinder,
) *NfcTagProxy

func (*NfcTagProxy) AsBinder

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

func (*NfcTagProxy) CanMakeReadOnly

func (p *NfcTagProxy) CanMakeReadOnly(
	ctx context.Context,
	ndefType int32,
) (bool, error)

func (*NfcTagProxy) Connect

func (p *NfcTagProxy) Connect(
	ctx context.Context,
	nativeHandle int32,
	technology int32,
) (int32, error)

func (*NfcTagProxy) FormatNdef

func (p *NfcTagProxy) FormatNdef(
	ctx context.Context,
	nativeHandle int32,
	key []byte,
) (int32, error)

func (*NfcTagProxy) GetExtendedLengthApdusSupported

func (p *NfcTagProxy) GetExtendedLengthApdusSupported(
	ctx context.Context,
) (bool, error)

func (*NfcTagProxy) GetMaxTransceiveLength

func (p *NfcTagProxy) GetMaxTransceiveLength(
	ctx context.Context,
	technology int32,
) (int32, error)

func (*NfcTagProxy) GetTechList

func (p *NfcTagProxy) GetTechList(
	ctx context.Context,
	nativeHandle int32,
) ([]int32, error)

func (*NfcTagProxy) GetTimeout

func (p *NfcTagProxy) GetTimeout(
	ctx context.Context,
	technology int32,
) (int32, error)

func (*NfcTagProxy) IsNdef

func (p *NfcTagProxy) IsNdef(
	ctx context.Context,
	nativeHandle int32,
) (bool, error)

func (*NfcTagProxy) IsPresent

func (p *NfcTagProxy) IsPresent(
	ctx context.Context,
	nativeHandle int32,
) (bool, error)

func (*NfcTagProxy) IsTagUpToDate

func (p *NfcTagProxy) IsTagUpToDate(
	ctx context.Context,
	cookie int64,
) (bool, error)

func (*NfcTagProxy) NdefIsWritable

func (p *NfcTagProxy) NdefIsWritable(
	ctx context.Context,
	nativeHandle int32,
) (bool, error)

func (*NfcTagProxy) NdefMakeReadOnly

func (p *NfcTagProxy) NdefMakeReadOnly(
	ctx context.Context,
	nativeHandle int32,
) (int32, error)

func (*NfcTagProxy) NdefRead

func (p *NfcTagProxy) NdefRead(
	ctx context.Context,
	nativeHandle int32,
) (NdefMessage, error)

func (*NfcTagProxy) NdefWrite

func (p *NfcTagProxy) NdefWrite(
	ctx context.Context,
	nativeHandle int32,
	msg NdefMessage,
) (int32, error)

func (*NfcTagProxy) Reconnect

func (p *NfcTagProxy) Reconnect(
	ctx context.Context,
	nativeHandle int32,
) (int32, error)

func (*NfcTagProxy) Rediscover

func (p *NfcTagProxy) Rediscover(
	ctx context.Context,
	nativehandle int32,
) (Tag, error)

func (*NfcTagProxy) ResetTimeouts

func (p *NfcTagProxy) ResetTimeouts(
	ctx context.Context,
) error

func (*NfcTagProxy) SetTimeout

func (p *NfcTagProxy) SetTimeout(
	ctx context.Context,
	technology int32,
	timeout int32,
) (int32, error)

func (*NfcTagProxy) Transceive

func (p *NfcTagProxy) Transceive(
	ctx context.Context,
	nativeHandle int32,
	data []byte,
	raw bool,
) (TransceiveResult, error)

type NfcTagStub

type NfcTagStub struct {
	Impl      INfcTag
	Transport binder.VersionAwareTransport
}

NfcTagStub dispatches incoming binder transactions to a typed INfcTag implementation.

func (*NfcTagStub) Descriptor

func (s *NfcTagStub) Descriptor() string

func (*NfcTagStub) OnTransaction

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

type NfcUnlockHandlerProxy

type NfcUnlockHandlerProxy struct {
	Remote binder.IBinder
}

func NewNfcUnlockHandlerProxy

func NewNfcUnlockHandlerProxy(
	remote binder.IBinder,
) *NfcUnlockHandlerProxy

func (*NfcUnlockHandlerProxy) AsBinder

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

func (*NfcUnlockHandlerProxy) OnUnlockAttempted

func (p *NfcUnlockHandlerProxy) OnUnlockAttempted(
	ctx context.Context,
	tag Tag,
) (bool, error)

type NfcUnlockHandlerStub

type NfcUnlockHandlerStub struct {
	Impl      INfcUnlockHandler
	Transport binder.VersionAwareTransport
}

NfcUnlockHandlerStub dispatches incoming binder transactions to a typed INfcUnlockHandler implementation.

func (*NfcUnlockHandlerStub) Descriptor

func (s *NfcUnlockHandlerStub) Descriptor() string

func (*NfcUnlockHandlerStub) OnTransaction

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

type NfcVendorNciCallbackProxy

type NfcVendorNciCallbackProxy struct {
	Remote binder.IBinder
}

func NewNfcVendorNciCallbackProxy

func NewNfcVendorNciCallbackProxy(
	remote binder.IBinder,
) *NfcVendorNciCallbackProxy

func (*NfcVendorNciCallbackProxy) AsBinder

func (*NfcVendorNciCallbackProxy) OnVendorNotificationReceived

func (p *NfcVendorNciCallbackProxy) OnVendorNotificationReceived(
	ctx context.Context,
	gid int32,
	oid int32,
	payload []byte,
) error

func (*NfcVendorNciCallbackProxy) OnVendorResponseReceived

func (p *NfcVendorNciCallbackProxy) OnVendorResponseReceived(
	ctx context.Context,
	gid int32,
	oid int32,
	payload []byte,
) error

type NfcVendorNciCallbackStub

type NfcVendorNciCallbackStub struct {
	Impl      INfcVendorNciCallback
	Transport binder.VersionAwareTransport
}

NfcVendorNciCallbackStub dispatches incoming binder transactions to a typed INfcVendorNciCallback implementation.

func (*NfcVendorNciCallbackStub) Descriptor

func (s *NfcVendorNciCallbackStub) Descriptor() string

func (*NfcVendorNciCallbackStub) OnTransaction

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

type NfcWlcStateListenerProxy

type NfcWlcStateListenerProxy struct {
	Remote binder.IBinder
}

func NewNfcWlcStateListenerProxy

func NewNfcWlcStateListenerProxy(
	remote binder.IBinder,
) *NfcWlcStateListenerProxy

func (*NfcWlcStateListenerProxy) AsBinder

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

func (*NfcWlcStateListenerProxy) OnWlcStateChanged

func (p *NfcWlcStateListenerProxy) OnWlcStateChanged(
	ctx context.Context,
	wlcListenerDeviceInfo WlcListenerDeviceInfo,
) error

type NfcWlcStateListenerStub

type NfcWlcStateListenerStub struct {
	Impl      INfcWlcStateListener
	Transport binder.VersionAwareTransport
}

NfcWlcStateListenerStub dispatches incoming binder transactions to a typed INfcWlcStateListener implementation.

func (*NfcWlcStateListenerStub) Descriptor

func (s *NfcWlcStateListenerStub) Descriptor() string

func (*NfcWlcStateListenerStub) OnTransaction

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

type Tag

type Tag struct {
	ServiceHandle int32
	Cookie        int64
	IsMock        int32
}

func (*Tag) MarshalParcel

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

func (*Tag) UnmarshalParcel

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

type TagRemovedCallbackProxy

type TagRemovedCallbackProxy struct {
	Remote binder.IBinder
}

func NewTagRemovedCallbackProxy

func NewTagRemovedCallbackProxy(
	remote binder.IBinder,
) *TagRemovedCallbackProxy

func (*TagRemovedCallbackProxy) AsBinder

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

func (*TagRemovedCallbackProxy) OnTagRemoved

func (p *TagRemovedCallbackProxy) OnTagRemoved(
	ctx context.Context,
) error

type TagRemovedCallbackStub

type TagRemovedCallbackStub struct {
	Impl      ITagRemovedCallback
	Transport binder.VersionAwareTransport
}

TagRemovedCallbackStub dispatches incoming binder transactions to a typed ITagRemovedCallback implementation.

func (*TagRemovedCallbackStub) Descriptor

func (s *TagRemovedCallbackStub) Descriptor() string

func (*TagRemovedCallbackStub) OnTransaction

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

type TechListParcel

type TechListParcel struct {
	Count int32
}

func (*TechListParcel) MarshalParcel

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

func (*TechListParcel) UnmarshalParcel

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

type TransceiveResult

type TransceiveResult struct {
	Result int32
}

func (*TransceiveResult) MarshalParcel

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

func (*TransceiveResult) UnmarshalParcel

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

type WlcListenerDeviceInfo

type WlcListenerDeviceInfo struct {
	ProductId    int32
	Temperature  float64
	BatteryLevel float64
	State        int32
}

func (*WlcListenerDeviceInfo) MarshalParcel

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

func (*WlcListenerDeviceInfo) UnmarshalParcel

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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