Documentation
¶
Index ¶
- Constants
- type Annotation
- type AnnotationId
- type AnnotationSet
- type AnnotationValue
- func (u *AnnotationValue) GetBoolValue() (bool, bool)
- func (u *AnnotationValue) GetIntValue() (int32, bool)
- func (u *AnnotationValue) MarshalParcel(p *parcel.Parcel) error
- func (u *AnnotationValue) SetBoolValue(v bool)
- func (u *AnnotationValue) SetIntValue(v int32)
- func (u *AnnotationValue) UnmarshalParcel(p *parcel.Parcel) error
- type IStats
- type IStatsServer
- type RestrictionCategory
- type StatsProxy
- type StatsStub
- type VendorAtom
- type VendorAtomValue
- func (u *VendorAtomValue) GetBoolValue() (bool, bool)
- func (u *VendorAtomValue) GetByteArrayValue() ([]byte, bool)
- func (u *VendorAtomValue) GetFloatValue() (float32, bool)
- func (u *VendorAtomValue) GetIntValue() (int32, bool)
- func (u *VendorAtomValue) GetLongValue() (int64, bool)
- func (u *VendorAtomValue) GetRepeatedBoolValue() ([]bool, bool)
- func (u *VendorAtomValue) GetRepeatedFloatValue() ([]float32, bool)
- func (u *VendorAtomValue) GetRepeatedIntValue() ([]int32, bool)
- func (u *VendorAtomValue) GetRepeatedLongValue() ([]int64, bool)
- func (u *VendorAtomValue) GetRepeatedStringValue() ([]string, bool)
- func (u *VendorAtomValue) GetStringValue() (string, bool)
- func (u *VendorAtomValue) MarshalParcel(p *parcel.Parcel) error
- func (u *VendorAtomValue) SetBoolValue(v bool)
- func (u *VendorAtomValue) SetByteArrayValue(v []byte)
- func (u *VendorAtomValue) SetFloatValue(v float32)
- func (u *VendorAtomValue) SetIntValue(v int32)
- func (u *VendorAtomValue) SetLongValue(v int64)
- func (u *VendorAtomValue) SetRepeatedBoolValue(v []bool)
- func (u *VendorAtomValue) SetRepeatedFloatValue(v []float32)
- func (u *VendorAtomValue) SetRepeatedIntValue(v []int32)
- func (u *VendorAtomValue) SetRepeatedLongValue(v []int64)
- func (u *VendorAtomValue) SetRepeatedStringValue(v []string)
- func (u *VendorAtomValue) SetStringValue(v string)
- func (u *VendorAtomValue) UnmarshalParcel(p *parcel.Parcel) error
Constants ¶
View Source
const ( AnnotationValueTagIntValue int32 = 0 AnnotationValueTagBoolValue int32 = 1 )
View Source
const ( VendorAtomValueTagIntValue int32 = 0 VendorAtomValueTagLongValue int32 = 1 VendorAtomValueTagFloatValue int32 = 2 VendorAtomValueTagStringValue int32 = 3 VendorAtomValueTagBoolValue int32 = 4 VendorAtomValueTagRepeatedIntValue int32 = 5 VendorAtomValueTagRepeatedLongValue int32 = 6 VendorAtomValueTagRepeatedFloatValue int32 = 7 VendorAtomValueTagRepeatedStringValue int32 = 8 VendorAtomValueTagRepeatedBoolValue int32 = 9 VendorAtomValueTagByteArrayValue int32 = 10 )
View Source
const DescriptorIStats = "android.frameworks.stats.IStats"
View Source
const (
MethodIStatsReportVendorAtom = "reportVendorAtom"
)
View Source
const (
TransactionIStatsReportVendorAtom = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
AnnotationId AnnotationId
Value AnnotationValue
}
func (*Annotation) MarshalParcel ¶
func (s *Annotation) MarshalParcel( p *parcel.Parcel, ) error
func (*Annotation) UnmarshalParcel ¶
func (s *Annotation) UnmarshalParcel( p *parcel.Parcel, ) error
type AnnotationId ¶
type AnnotationId int32
const ( AnnotationIdUNKNOWN AnnotationId = 0 AnnotationIdIsUid AnnotationId = 1 AnnotationIdTruncateTimestamp AnnotationId = 2 AnnotationIdPrimaryField AnnotationId = 3 AnnotationIdExclusiveState AnnotationId = 4 AnnotationIdPrimaryFieldFirstUid AnnotationId = 5 AnnotationIdDefaultState AnnotationId = 6 AnnotationIdTriggerStateReset AnnotationId = 7 AnnotationIdStateNested AnnotationId = 8 AnnotationIdRestrictionCategory AnnotationId = 9 AnnotationIdFieldRestrictionPeripheralDeviceInfo AnnotationId = 10 AnnotationIdFieldRestrictionAppUsage AnnotationId = 11 AnnotationIdFieldRestrictionAppActivity AnnotationId = 12 AnnotationIdFieldRestrictionHealthConnect AnnotationId = 13 AnnotationIdFieldRestrictionAccessibility AnnotationId = 14 AnnotationIdFieldRestrictionSystemSearch AnnotationId = 15 AnnotationIdFieldRestrictionUserEngagement AnnotationId = 16 AnnotationIdFieldRestrictionAmbientSensing AnnotationId = 17 AnnotationIdFieldRestrictionDemographicClassification AnnotationId = 18 )
type AnnotationSet ¶
type AnnotationSet struct {
ValueIndex int32
Annotations []Annotation
}
func (*AnnotationSet) MarshalParcel ¶
func (s *AnnotationSet) MarshalParcel( p *parcel.Parcel, ) error
func (*AnnotationSet) UnmarshalParcel ¶
func (s *AnnotationSet) UnmarshalParcel( p *parcel.Parcel, ) error
type AnnotationValue ¶
func (*AnnotationValue) GetBoolValue ¶
func (u *AnnotationValue) GetBoolValue() (bool, bool)
func (*AnnotationValue) GetIntValue ¶
func (u *AnnotationValue) GetIntValue() (int32, bool)
func (*AnnotationValue) MarshalParcel ¶
func (u *AnnotationValue) MarshalParcel( p *parcel.Parcel, ) error
func (*AnnotationValue) SetBoolValue ¶
func (u *AnnotationValue) SetBoolValue( v bool, )
func (*AnnotationValue) SetIntValue ¶
func (u *AnnotationValue) SetIntValue( v int32, )
func (*AnnotationValue) UnmarshalParcel ¶
func (u *AnnotationValue) UnmarshalParcel( p *parcel.Parcel, ) error
type IStats ¶
type IStats interface {
AsBinder() binder.IBinder
ReportVendorAtom(ctx context.Context, vendorAtom VendorAtom) error
}
func NewStatsStub ¶
func NewStatsStub( impl IStatsServer, ) IStats
NewStatsStub creates a server-side IStats wrapping the given server implementation. The returned value satisfies IStats 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 IStatsServer ¶
type IStatsServer interface {
ReportVendorAtom(ctx context.Context, vendorAtom VendorAtom) error
}
IStatsServer is the server-side interface that user implementations provide to NewStatsStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type RestrictionCategory ¶
type RestrictionCategory int32
const ( RestrictionCategoryUNKNOWN RestrictionCategory = 0 RestrictionCategoryDIAGNOSTIC RestrictionCategory = 1 RestrictionCategorySystemIntelligence RestrictionCategory = 2 RestrictionCategoryAUTHENTICATION RestrictionCategory = 3 RestrictionCategoryFraudAndAbuse RestrictionCategory = 4 )
type StatsProxy ¶
func NewStatsProxy ¶
func NewStatsProxy( remote binder.IBinder, ) *StatsProxy
func (*StatsProxy) AsBinder ¶
func (p *StatsProxy) AsBinder() binder.IBinder
func (*StatsProxy) ReportVendorAtom ¶
func (p *StatsProxy) ReportVendorAtom( ctx context.Context, vendorAtom VendorAtom, ) error
type StatsStub ¶
type StatsStub struct {
Impl IStats
Transport binder.VersionAwareTransport
}
StatsStub dispatches incoming binder transactions to a typed IStats implementation.
func (*StatsStub) Descriptor ¶
type VendorAtom ¶
type VendorAtom struct {
ReverseDomainName string
AtomId int32
Values []VendorAtomValue
ValuesAnnotations []AnnotationSet
AtomAnnotations []Annotation
}
func (*VendorAtom) MarshalParcel ¶
func (s *VendorAtom) MarshalParcel( p *parcel.Parcel, ) error
func (*VendorAtom) UnmarshalParcel ¶
func (s *VendorAtom) UnmarshalParcel( p *parcel.Parcel, ) error
type VendorAtomValue ¶
type VendorAtomValue struct {
Tag int32
IntValue int32
LongValue int64
FloatValue float32
StringValue string
BoolValue bool
RepeatedIntValue []int32
RepeatedLongValue []int64
RepeatedFloatValue []float32
RepeatedStringValue []string
RepeatedBoolValue []bool
ByteArrayValue []byte
}
func (*VendorAtomValue) GetBoolValue ¶
func (u *VendorAtomValue) GetBoolValue() (bool, bool)
func (*VendorAtomValue) GetByteArrayValue ¶
func (u *VendorAtomValue) GetByteArrayValue() ([]byte, bool)
func (*VendorAtomValue) GetFloatValue ¶
func (u *VendorAtomValue) GetFloatValue() (float32, bool)
func (*VendorAtomValue) GetIntValue ¶
func (u *VendorAtomValue) GetIntValue() (int32, bool)
func (*VendorAtomValue) GetLongValue ¶
func (u *VendorAtomValue) GetLongValue() (int64, bool)
func (*VendorAtomValue) GetRepeatedBoolValue ¶
func (u *VendorAtomValue) GetRepeatedBoolValue() ([]bool, bool)
func (*VendorAtomValue) GetRepeatedFloatValue ¶
func (u *VendorAtomValue) GetRepeatedFloatValue() ([]float32, bool)
func (*VendorAtomValue) GetRepeatedIntValue ¶
func (u *VendorAtomValue) GetRepeatedIntValue() ([]int32, bool)
func (*VendorAtomValue) GetRepeatedLongValue ¶
func (u *VendorAtomValue) GetRepeatedLongValue() ([]int64, bool)
func (*VendorAtomValue) GetRepeatedStringValue ¶
func (u *VendorAtomValue) GetRepeatedStringValue() ([]string, bool)
func (*VendorAtomValue) GetStringValue ¶
func (u *VendorAtomValue) GetStringValue() (string, bool)
func (*VendorAtomValue) MarshalParcel ¶
func (u *VendorAtomValue) MarshalParcel( p *parcel.Parcel, ) error
func (*VendorAtomValue) SetBoolValue ¶
func (u *VendorAtomValue) SetBoolValue( v bool, )
func (*VendorAtomValue) SetByteArrayValue ¶
func (u *VendorAtomValue) SetByteArrayValue( v []byte, )
func (*VendorAtomValue) SetFloatValue ¶
func (u *VendorAtomValue) SetFloatValue( v float32, )
func (*VendorAtomValue) SetIntValue ¶
func (u *VendorAtomValue) SetIntValue( v int32, )
func (*VendorAtomValue) SetLongValue ¶
func (u *VendorAtomValue) SetLongValue( v int64, )
func (*VendorAtomValue) SetRepeatedBoolValue ¶
func (u *VendorAtomValue) SetRepeatedBoolValue( v []bool, )
func (*VendorAtomValue) SetRepeatedFloatValue ¶
func (u *VendorAtomValue) SetRepeatedFloatValue( v []float32, )
func (*VendorAtomValue) SetRepeatedIntValue ¶
func (u *VendorAtomValue) SetRepeatedIntValue( v []int32, )
func (*VendorAtomValue) SetRepeatedLongValue ¶
func (u *VendorAtomValue) SetRepeatedLongValue( v []int64, )
func (*VendorAtomValue) SetRepeatedStringValue ¶
func (u *VendorAtomValue) SetRepeatedStringValue( v []string, )
func (*VendorAtomValue) SetStringValue ¶
func (u *VendorAtomValue) SetStringValue( v string, )
func (*VendorAtomValue) UnmarshalParcel ¶
func (u *VendorAtomValue) UnmarshalParcel( p *parcel.Parcel, ) error
Click to show internal directories.
Click to hide internal directories.