Documentation
¶
Index ¶
- Constants
- type IRemoteMemoryIntArray
- type IRemoteMemoryIntArrayServer
- type MemoryIntArray
- type MergedConfiguration
- type RemoteMemoryIntArrayProxy
- func (p *RemoteMemoryIntArrayProxy) AccessLastElementInRemoteProcess(ctx context.Context, array MemoryIntArray) error
- func (p *RemoteMemoryIntArrayProxy) AsBinder() binder.IBinder
- func (p *RemoteMemoryIntArrayProxy) Close(ctx context.Context) error
- func (p *RemoteMemoryIntArrayProxy) Create(ctx context.Context, size int32) error
- func (p *RemoteMemoryIntArrayProxy) Get(ctx context.Context, index int32) (int32, error)
- func (p *RemoteMemoryIntArrayProxy) IsClosed(ctx context.Context) (bool, error)
- func (p *RemoteMemoryIntArrayProxy) IsWritable(ctx context.Context) (bool, error)
- func (p *RemoteMemoryIntArrayProxy) PeekInstance(ctx context.Context) (MemoryIntArray, error)
- func (p *RemoteMemoryIntArrayProxy) Set(ctx context.Context, index int32, value int32) error
- func (p *RemoteMemoryIntArrayProxy) Size(ctx context.Context) (int32, error)
- type RemoteMemoryIntArrayStub
Constants ¶
View Source
const ( TransactionIRemoteMemoryIntArrayPeekInstance = binder.FirstCallTransaction + 0 TransactionIRemoteMemoryIntArrayCreate = binder.FirstCallTransaction + 1 TransactionIRemoteMemoryIntArrayIsWritable = binder.FirstCallTransaction + 2 TransactionIRemoteMemoryIntArrayGet = binder.FirstCallTransaction + 3 TransactionIRemoteMemoryIntArraySet = binder.FirstCallTransaction + 4 TransactionIRemoteMemoryIntArraySize = binder.FirstCallTransaction + 5 TransactionIRemoteMemoryIntArrayClose = binder.FirstCallTransaction + 6 TransactionIRemoteMemoryIntArrayIsClosed = binder.FirstCallTransaction + 7 TransactionIRemoteMemoryIntArrayAccessLastElementInRemoteProcess = binder.FirstCallTransaction + 8 )
View Source
const ( MethodIRemoteMemoryIntArrayPeekInstance = "peekInstance" MethodIRemoteMemoryIntArrayCreate = "create" MethodIRemoteMemoryIntArrayIsWritable = "isWritable" MethodIRemoteMemoryIntArrayGet = "get" MethodIRemoteMemoryIntArraySet = "set" MethodIRemoteMemoryIntArraySize = "size" MethodIRemoteMemoryIntArrayClose = "close" MethodIRemoteMemoryIntArrayIsClosed = "isClosed" MethodIRemoteMemoryIntArrayAccessLastElementInRemoteProcess = "accessLastElementInRemoteProcess" )
View Source
const DescriptorIRemoteMemoryIntArray = "android.util.IRemoteMemoryIntArray"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRemoteMemoryIntArray ¶
type IRemoteMemoryIntArray interface {
AsBinder() binder.IBinder
PeekInstance(ctx context.Context) (MemoryIntArray, error)
Create(ctx context.Context, size int32) error
IsWritable(ctx context.Context) (bool, error)
Get(ctx context.Context, index int32) (int32, error)
Set(ctx context.Context, index int32, value int32) error
Size(ctx context.Context) (int32, error)
Close(ctx context.Context) error
IsClosed(ctx context.Context) (bool, error)
AccessLastElementInRemoteProcess(ctx context.Context, array MemoryIntArray) error
}
func NewRemoteMemoryIntArrayStub ¶
func NewRemoteMemoryIntArrayStub( impl IRemoteMemoryIntArrayServer, ) IRemoteMemoryIntArray
NewRemoteMemoryIntArrayStub creates a server-side IRemoteMemoryIntArray wrapping the given server implementation. The returned value satisfies IRemoteMemoryIntArray 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 IRemoteMemoryIntArrayServer ¶
type IRemoteMemoryIntArrayServer interface {
PeekInstance(ctx context.Context) (MemoryIntArray, error)
Create(ctx context.Context, size int32) error
IsWritable(ctx context.Context) (bool, error)
Get(ctx context.Context, index int32) (int32, error)
Set(ctx context.Context, index int32, value int32) error
Size(ctx context.Context) (int32, error)
Close(ctx context.Context) error
IsClosed(ctx context.Context) (bool, error)
AccessLastElementInRemoteProcess(ctx context.Context, array MemoryIntArray) error
}
IRemoteMemoryIntArrayServer is the server-side interface that user implementations provide to NewRemoteMemoryIntArrayStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type MemoryIntArray ¶
type MemoryIntArray struct {
}
func (*MemoryIntArray) MarshalParcel ¶
func (s *MemoryIntArray) MarshalParcel( p *parcel.Parcel, ) error
func (*MemoryIntArray) UnmarshalParcel ¶
func (s *MemoryIntArray) UnmarshalParcel( p *parcel.Parcel, ) error
type MergedConfiguration ¶
type MergedConfiguration struct {
}
func (*MergedConfiguration) MarshalParcel ¶
func (s *MergedConfiguration) MarshalParcel( p *parcel.Parcel, ) error
func (*MergedConfiguration) UnmarshalParcel ¶
func (s *MergedConfiguration) UnmarshalParcel( p *parcel.Parcel, ) error
type RemoteMemoryIntArrayProxy ¶
func NewRemoteMemoryIntArrayProxy ¶
func NewRemoteMemoryIntArrayProxy( remote binder.IBinder, ) *RemoteMemoryIntArrayProxy
func (*RemoteMemoryIntArrayProxy) AccessLastElementInRemoteProcess ¶
func (p *RemoteMemoryIntArrayProxy) AccessLastElementInRemoteProcess( ctx context.Context, array MemoryIntArray, ) error
func (*RemoteMemoryIntArrayProxy) AsBinder ¶
func (p *RemoteMemoryIntArrayProxy) AsBinder() binder.IBinder
func (*RemoteMemoryIntArrayProxy) Close ¶
func (p *RemoteMemoryIntArrayProxy) Close( ctx context.Context, ) error
func (*RemoteMemoryIntArrayProxy) Create ¶
func (p *RemoteMemoryIntArrayProxy) Create( ctx context.Context, size int32, ) error
func (*RemoteMemoryIntArrayProxy) IsClosed ¶
func (p *RemoteMemoryIntArrayProxy) IsClosed( ctx context.Context, ) (bool, error)
func (*RemoteMemoryIntArrayProxy) IsWritable ¶
func (p *RemoteMemoryIntArrayProxy) IsWritable( ctx context.Context, ) (bool, error)
func (*RemoteMemoryIntArrayProxy) PeekInstance ¶
func (p *RemoteMemoryIntArrayProxy) PeekInstance( ctx context.Context, ) (MemoryIntArray, error)
type RemoteMemoryIntArrayStub ¶
type RemoteMemoryIntArrayStub struct {
Impl IRemoteMemoryIntArray
Transport binder.VersionAwareTransport
}
RemoteMemoryIntArrayStub dispatches incoming binder transactions to a typed IRemoteMemoryIntArray implementation.
func (*RemoteMemoryIntArrayStub) Descriptor ¶
func (s *RemoteMemoryIntArrayStub) Descriptor() string
func (*RemoteMemoryIntArrayStub) OnTransaction ¶
func (s *RemoteMemoryIntArrayStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Click to show internal directories.
Click to hide internal directories.