Documentation
¶
Overview ¶
Package jank provides Go bindings for android.app.jank.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type AppJankStats
- func (m *AppJankStats) GetJankyFrameCount() (int64, error)
- func (m *AppJankStats) GetNavigationComponent() (string, error)
- func (m *AppJankStats) GetRelativeFrameTimeHistogram() (*jni.Object, error)
- func (m *AppJankStats) GetTotalFrameCount() (int64, error)
- func (m *AppJankStats) GetUid() (int32, error)
- func (m *AppJankStats) GetWidgetCategory() (string, error)
- func (m *AppJankStats) GetWidgetId() (string, error)
- func (m *AppJankStats) GetWidgetState() (string, error)
- type RelativeFrameTimeHistogram
Constants ¶
const ( WidgetCategoryAnimation = consts.WidgetCategoryAnimation WidgetCategoryKeyboard = consts.WidgetCategoryKeyboard WidgetCategoryMedia = consts.WidgetCategoryMedia WidgetCategoryOther = consts.WidgetCategoryOther WidgetCategoryScroll = consts.WidgetCategoryScroll WidgetCategoryUnspecified = consts.WidgetCategoryUnspecified WidgetStateAnimating = consts.WidgetStateAnimating WidgetStateDragging = consts.WidgetStateDragging WidgetStateFlinging = consts.WidgetStateFlinging WidgetStateNone = consts.WidgetStateNone WidgetStatePlayback = consts.WidgetStatePlayback WidgetStatePredictiveBack = consts.WidgetStatePredictiveBack WidgetStateScrolling = consts.WidgetStateScrolling WidgetStateSwiping = consts.WidgetStateSwiping WidgetStateTapping = consts.WidgetStateTapping WidgetStateUnspecified = consts.WidgetStateUnspecified WidgetStateZooming = consts.WidgetStateZooming )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppJankStats ¶
AppJankStats wraps android.app.jank.AppJankStats.
func NewAppJankStats ¶
func NewAppJankStats(vm *jni.VM, arg0 int32, arg1 string, arg2 string, arg3 string, arg4 string, arg5 int64, arg6 int64, arg7 *jni.Object) (*AppJankStats, error)
NewAppJankStats creates a new android.app.jank.AppJankStats instance.
func (*AppJankStats) GetJankyFrameCount ¶
func (m *AppJankStats) GetJankyFrameCount() (int64, error)
GetJankyFrameCount calls android.app.jank.AppJankStats.getJankyFrameCount.
func (*AppJankStats) GetNavigationComponent ¶
func (m *AppJankStats) GetNavigationComponent() (string, error)
GetNavigationComponent calls android.app.jank.AppJankStats.getNavigationComponent.
func (*AppJankStats) GetRelativeFrameTimeHistogram ¶
func (m *AppJankStats) GetRelativeFrameTimeHistogram() (*jni.Object, error)
GetRelativeFrameTimeHistogram calls android.app.jank.AppJankStats.getRelativeFrameTimeHistogram.
func (*AppJankStats) GetTotalFrameCount ¶
func (m *AppJankStats) GetTotalFrameCount() (int64, error)
GetTotalFrameCount calls android.app.jank.AppJankStats.getTotalFrameCount.
func (*AppJankStats) GetUid ¶
func (m *AppJankStats) GetUid() (int32, error)
GetUid calls android.app.jank.AppJankStats.getUid.
func (*AppJankStats) GetWidgetCategory ¶
func (m *AppJankStats) GetWidgetCategory() (string, error)
GetWidgetCategory calls android.app.jank.AppJankStats.getWidgetCategory.
func (*AppJankStats) GetWidgetId ¶
func (m *AppJankStats) GetWidgetId() (string, error)
GetWidgetId calls android.app.jank.AppJankStats.getWidgetId.
func (*AppJankStats) GetWidgetState ¶
func (m *AppJankStats) GetWidgetState() (string, error)
GetWidgetState calls android.app.jank.AppJankStats.getWidgetState.
type RelativeFrameTimeHistogram ¶
RelativeFrameTimeHistogram wraps android.app.jank.RelativeFrameTimeHistogram.
func NewRelativeFrameTimeHistogram ¶
func NewRelativeFrameTimeHistogram(vm *jni.VM) (*RelativeFrameTimeHistogram, error)
NewRelativeFrameTimeHistogram creates a new android.app.jank.RelativeFrameTimeHistogram instance.
func (*RelativeFrameTimeHistogram) AddRelativeFrameTimeMillis ¶
func (m *RelativeFrameTimeHistogram) AddRelativeFrameTimeMillis(arg0 int32) error
AddRelativeFrameTimeMillis calls android.app.jank.RelativeFrameTimeHistogram.addRelativeFrameTimeMillis.
func (*RelativeFrameTimeHistogram) GetBucketCounters ¶
func (m *RelativeFrameTimeHistogram) GetBucketCounters() (*jni.Object, error)
GetBucketCounters calls android.app.jank.RelativeFrameTimeHistogram.getBucketCounters.
func (*RelativeFrameTimeHistogram) GetBucketEndpointsMillis ¶
func (m *RelativeFrameTimeHistogram) GetBucketEndpointsMillis() (*jni.Object, error)
GetBucketEndpointsMillis calls android.app.jank.RelativeFrameTimeHistogram.getBucketEndpointsMillis.