Documentation
¶
Index ¶
Constants ¶
View Source
const DescriptorIResourcesManager = "android.content.res.IResourcesManager"
View Source
const (
MethodIResourcesManagerDumpResources = "dumpResources"
)
View Source
const (
TransactionIResourcesManagerDumpResources = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompatibilityInfo ¶
type CompatibilityInfo struct {
CompatibilityFlags int32
ApplicationDensity int32
ApplicationScale float32
ApplicationInvertedScale float32
ApplicationDensityScale float32
ApplicationDensityInvertedScale float32
}
func (*CompatibilityInfo) MarshalParcel ¶
func (s *CompatibilityInfo) MarshalParcel( p *parcel.Parcel, ) error
func (*CompatibilityInfo) UnmarshalParcel ¶
func (s *CompatibilityInfo) UnmarshalParcel( p *parcel.Parcel, ) error
type Configuration ¶
type Configuration struct {
FontScale float32
Mcc int32
Mnc int32
Touchscreen int32
Keyboard int32
KeyboardHidden int32
HardKeyboardHidden int32
Orientation int32
ScreenLayout int32
ColorMode int32
UiMode int32
ScreenWidthDp int32
ScreenHeightDp int32
SmallestScreenWidthDp int32
DensityDpi int32
CompatScreenWidthDp int32
CompatScreenHeightDp int32
CompatSmallestScreenWidthDp int32
AssetsSeq int32
Seq int32
FontWeightAdjustment int32
GrammaticalGender int32
LocaleList *types.LocaleList
}
func (*Configuration) MarshalParcel ¶
func (s *Configuration) MarshalParcel( p *parcel.Parcel, ) error
func (*Configuration) UnmarshalParcel ¶
func (s *Configuration) UnmarshalParcel( p *parcel.Parcel, ) error
type IResourcesManager ¶
type IResourcesManager interface {
AsBinder() binder.IBinder
DumpResources(ctx context.Context, process string, fd int32, finishCallback types.RemoteCallback) (bool, error)
}
func NewResourcesManagerStub ¶
func NewResourcesManagerStub( impl IResourcesManagerServer, ) IResourcesManager
NewResourcesManagerStub creates a server-side IResourcesManager wrapping the given server implementation. The returned value satisfies IResourcesManager 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 IResourcesManagerServer ¶
type IResourcesManagerServer interface {
DumpResources(ctx context.Context, process string, fd int32, finishCallback types.RemoteCallback) (bool, error)
}
IResourcesManagerServer is the server-side interface that user implementations provide to NewResourcesManagerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ResourcesManagerProxy ¶
func NewResourcesManagerProxy ¶
func NewResourcesManagerProxy( remote binder.IBinder, ) *ResourcesManagerProxy
func (*ResourcesManagerProxy) AsBinder ¶
func (p *ResourcesManagerProxy) AsBinder() binder.IBinder
func (*ResourcesManagerProxy) DumpResources ¶
func (p *ResourcesManagerProxy) DumpResources( ctx context.Context, process string, fd int32, finishCallback types.RemoteCallback, ) (bool, error)
type ResourcesManagerStub ¶
type ResourcesManagerStub struct {
Impl IResourcesManager
Transport binder.VersionAwareTransport
}
ResourcesManagerStub dispatches incoming binder transactions to a typed IResourcesManager implementation.
func (*ResourcesManagerStub) Descriptor ¶
func (s *ResourcesManagerStub) Descriptor() string
func (*ResourcesManagerStub) OnTransaction ¶
func (s *ResourcesManagerStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.