Documentation
¶
Index ¶
- Constants
- type AppIntegrityManagerProxy
- func (p *AppIntegrityManagerProxy) AsBinder() binder.IBinder
- func (p *AppIntegrityManagerProxy) GetCurrentRuleSetProvider(ctx context.Context) (string, error)
- func (p *AppIntegrityManagerProxy) GetCurrentRuleSetVersion(ctx context.Context) (string, error)
- func (p *AppIntegrityManagerProxy) GetCurrentRules(ctx context.Context) (pm.ParceledListSlice, error)
- func (p *AppIntegrityManagerProxy) GetWhitelistedRuleProviders(ctx context.Context) ([]string, error)
- func (p *AppIntegrityManagerProxy) UpdateRuleSet(ctx context.Context, version string, rules pm.ParceledListSlice, ...) error
- type AppIntegrityManagerStub
- type IAppIntegrityManager
- type IAppIntegrityManagerServer
- type Rule
Constants ¶
const ( TransactionIAppIntegrityManagerUpdateRuleSet = binder.FirstCallTransaction + 0 TransactionIAppIntegrityManagerGetCurrentRuleSetVersion = binder.FirstCallTransaction + 1 TransactionIAppIntegrityManagerGetCurrentRuleSetProvider = binder.FirstCallTransaction + 2 TransactionIAppIntegrityManagerGetCurrentRules = binder.FirstCallTransaction + 3 TransactionIAppIntegrityManagerGetWhitelistedRuleProviders = binder.FirstCallTransaction + 4 )
const ( MethodIAppIntegrityManagerUpdateRuleSet = "updateRuleSet" MethodIAppIntegrityManagerGetCurrentRuleSetVersion = "getCurrentRuleSetVersion" MethodIAppIntegrityManagerGetCurrentRuleSetProvider = "getCurrentRuleSetProvider" MethodIAppIntegrityManagerGetCurrentRules = "getCurrentRules" MethodIAppIntegrityManagerGetWhitelistedRuleProviders = "getWhitelistedRuleProviders" )
const DescriptorIAppIntegrityManager = "android.content.integrity.IAppIntegrityManager"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppIntegrityManagerProxy ¶
func GetAppIntegrityManager ¶
func GetAppIntegrityManager( ctx context.Context, sm *servicemanager.ServiceManager, ) (*AppIntegrityManagerProxy, error)
GetAppIntegrityManager retrieves the AppIntegrityService service and returns a typed proxy.
func NewAppIntegrityManagerProxy ¶
func NewAppIntegrityManagerProxy( remote binder.IBinder, ) *AppIntegrityManagerProxy
func (*AppIntegrityManagerProxy) AsBinder ¶
func (p *AppIntegrityManagerProxy) AsBinder() binder.IBinder
func (*AppIntegrityManagerProxy) GetCurrentRuleSetProvider ¶
func (p *AppIntegrityManagerProxy) GetCurrentRuleSetProvider( ctx context.Context, ) (string, error)
func (*AppIntegrityManagerProxy) GetCurrentRuleSetVersion ¶
func (p *AppIntegrityManagerProxy) GetCurrentRuleSetVersion( ctx context.Context, ) (string, error)
func (*AppIntegrityManagerProxy) GetCurrentRules ¶
func (p *AppIntegrityManagerProxy) GetCurrentRules( ctx context.Context, ) (pm.ParceledListSlice, error)
func (*AppIntegrityManagerProxy) GetWhitelistedRuleProviders ¶
func (p *AppIntegrityManagerProxy) GetWhitelistedRuleProviders( ctx context.Context, ) ([]string, error)
func (*AppIntegrityManagerProxy) UpdateRuleSet ¶
func (p *AppIntegrityManagerProxy) UpdateRuleSet( ctx context.Context, version string, rules pm.ParceledListSlice, statusReceiver content.IntentSender, ) error
type AppIntegrityManagerStub ¶
type AppIntegrityManagerStub struct {
Impl IAppIntegrityManager
Transport binder.VersionAwareTransport
}
AppIntegrityManagerStub dispatches incoming binder transactions to a typed IAppIntegrityManager implementation.
func (*AppIntegrityManagerStub) Descriptor ¶
func (s *AppIntegrityManagerStub) Descriptor() string
func (*AppIntegrityManagerStub) OnTransaction ¶
func (s *AppIntegrityManagerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IAppIntegrityManager ¶
type IAppIntegrityManager interface {
AsBinder() binder.IBinder
UpdateRuleSet(ctx context.Context, version string, rules pm.ParceledListSlice, statusReceiver content.IntentSender) error
GetCurrentRuleSetVersion(ctx context.Context) (string, error)
GetCurrentRuleSetProvider(ctx context.Context) (string, error)
GetCurrentRules(ctx context.Context) (pm.ParceledListSlice, error)
GetWhitelistedRuleProviders(ctx context.Context) ([]string, error)
}
func NewAppIntegrityManagerStub ¶
func NewAppIntegrityManagerStub( impl IAppIntegrityManagerServer, ) IAppIntegrityManager
NewAppIntegrityManagerStub creates a server-side IAppIntegrityManager wrapping the given server implementation. The returned value satisfies IAppIntegrityManager 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 IAppIntegrityManagerServer ¶
type IAppIntegrityManagerServer interface {
UpdateRuleSet(ctx context.Context, version string, rules pm.ParceledListSlice, statusReceiver content.IntentSender) error
GetCurrentRuleSetVersion(ctx context.Context) (string, error)
GetCurrentRuleSetProvider(ctx context.Context) (string, error)
GetCurrentRules(ctx context.Context) (pm.ParceledListSlice, error)
GetWhitelistedRuleProviders(ctx context.Context) ([]string, error)
}
IAppIntegrityManagerServer is the server-side interface that user implementations provide to NewAppIntegrityManagerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).