Documentation
¶
Index ¶
- Constants
- type IProcessStats
- type IProcessStatsServer
- type ProcessStats
- type ProcessStatsProxy
- func (p *ProcessStatsProxy) AsBinder() binder.IBinder
- func (p *ProcessStatsProxy) GetCommittedStats(ctx context.Context, highWaterMarkMs int64, section int32, doAggregate bool, ...) (int64, error)
- func (p *ProcessStatsProxy) GetCommittedStatsMerged(ctx context.Context, highWaterMarkMs int64, section int32, doAggregate bool, ...) (int64, error)
- func (p *ProcessStatsProxy) GetCurrentMemoryState(ctx context.Context) (int32, error)
- func (p *ProcessStatsProxy) GetCurrentStats(ctx context.Context, historic []int32) ([]byte, error)
- func (p *ProcessStatsProxy) GetMinAssociationDumpDuration(ctx context.Context) (int64, error)
- func (p *ProcessStatsProxy) GetStatsOverTime(ctx context.Context, minTime int64) (int32, error)
- type ProcessStatsStub
Constants ¶
View Source
const ( TransactionIProcessStatsGetCurrentStats = binder.FirstCallTransaction + 0 TransactionIProcessStatsGetStatsOverTime = binder.FirstCallTransaction + 1 TransactionIProcessStatsGetCurrentMemoryState = binder.FirstCallTransaction + 2 TransactionIProcessStatsGetCommittedStats = binder.FirstCallTransaction + 3 TransactionIProcessStatsGetCommittedStatsMerged = binder.FirstCallTransaction + 4 TransactionIProcessStatsGetMinAssociationDumpDuration = binder.FirstCallTransaction + 5 )
View Source
const ( MethodIProcessStatsGetCurrentStats = "getCurrentStats" MethodIProcessStatsGetStatsOverTime = "getStatsOverTime" MethodIProcessStatsGetCurrentMemoryState = "getCurrentMemoryState" MethodIProcessStatsGetCommittedStats = "getCommittedStats" MethodIProcessStatsGetCommittedStatsMerged = "getCommittedStatsMerged" MethodIProcessStatsGetMinAssociationDumpDuration = "getMinAssociationDumpDuration" )
View Source
const DescriptorIProcessStats = "com.android.internal.app.procstats.IProcessStats"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IProcessStats ¶
type IProcessStats interface {
AsBinder() binder.IBinder
GetCurrentStats(ctx context.Context, historic []int32) ([]byte, error)
GetStatsOverTime(ctx context.Context, minTime int64) (int32, error)
GetCurrentMemoryState(ctx context.Context) (int32, error)
GetCommittedStats(ctx context.Context, highWaterMarkMs int64, section int32, doAggregate bool, committedStats []int32) (int64, error)
GetCommittedStatsMerged(ctx context.Context, highWaterMarkMs int64, section int32, doAggregate bool, committedStats []int32, mergedStats ProcessStats) (int64, error)
GetMinAssociationDumpDuration(ctx context.Context) (int64, error)
}
func NewProcessStatsStub ¶
func NewProcessStatsStub( impl IProcessStatsServer, ) IProcessStats
NewProcessStatsStub creates a server-side IProcessStats wrapping the given server implementation. The returned value satisfies IProcessStats 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 IProcessStatsServer ¶
type IProcessStatsServer interface {
GetCurrentStats(ctx context.Context, historic []int32) ([]byte, error)
GetStatsOverTime(ctx context.Context, minTime int64) (int32, error)
GetCurrentMemoryState(ctx context.Context) (int32, error)
GetCommittedStats(ctx context.Context, highWaterMarkMs int64, section int32, doAggregate bool, committedStats []int32) (int64, error)
GetCommittedStatsMerged(ctx context.Context, highWaterMarkMs int64, section int32, doAggregate bool, committedStats []int32, mergedStats ProcessStats) (int64, error)
GetMinAssociationDumpDuration(ctx context.Context) (int64, error)
}
IProcessStatsServer is the server-side interface that user implementations provide to NewProcessStatsStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type ProcessStats ¶
type ProcessStats struct {
MAGIC int32
ParcelVersion int32
StateCount int32
AdjCount int32
PssCount int32
SysMemUsageCount int32
NumAggregated int32
TimePeriodStartClock int64
TimePeriodStartRealtime int64
TimePeriodEndRealtime int64
TimePeriodStartUptime int64
TimePeriodEndUptime int64
InternalSinglePssCount int64
InternalSinglePssTime int64
InternalAllMemPssCount int64
InternalAllMemPssTime int64
InternalAllPollPssCount int64
InternalAllPollPssTime int64
ExternalPssCount int64
ExternalPssTime int64
ExternalSlowPssCount int64
ExternalSlowPssTime int64
Runtime string
HasSwappedOutPss bool
Flags int32
NumOfUids int32
NPROC int32
NPKG int32
NPAGETYPES int32
}
func (*ProcessStats) MarshalParcel ¶
func (s *ProcessStats) MarshalParcel( p *parcel.Parcel, ) error
func (*ProcessStats) UnmarshalParcel ¶
func (s *ProcessStats) UnmarshalParcel( p *parcel.Parcel, ) error
type ProcessStatsProxy ¶
func NewProcessStatsProxy ¶
func NewProcessStatsProxy( remote binder.IBinder, ) *ProcessStatsProxy
func (*ProcessStatsProxy) AsBinder ¶
func (p *ProcessStatsProxy) AsBinder() binder.IBinder
func (*ProcessStatsProxy) GetCommittedStats ¶
func (*ProcessStatsProxy) GetCommittedStatsMerged ¶
func (p *ProcessStatsProxy) GetCommittedStatsMerged( ctx context.Context, highWaterMarkMs int64, section int32, doAggregate bool, committedStats []int32, mergedStats ProcessStats, ) (int64, error)
func (*ProcessStatsProxy) GetCurrentMemoryState ¶
func (p *ProcessStatsProxy) GetCurrentMemoryState( ctx context.Context, ) (int32, error)
func (*ProcessStatsProxy) GetCurrentStats ¶
func (*ProcessStatsProxy) GetMinAssociationDumpDuration ¶
func (p *ProcessStatsProxy) GetMinAssociationDumpDuration( ctx context.Context, ) (int64, error)
func (*ProcessStatsProxy) GetStatsOverTime ¶
type ProcessStatsStub ¶
type ProcessStatsStub struct {
Impl IProcessStats
Transport binder.VersionAwareTransport
}
ProcessStatsStub dispatches incoming binder transactions to a typed IProcessStats implementation.
func (*ProcessStatsStub) Descriptor ¶
func (s *ProcessStatsStub) Descriptor() string
func (*ProcessStatsStub) OnTransaction ¶
func (s *ProcessStatsStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
Click to show internal directories.
Click to hide internal directories.