jank

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package jank provides Go bindings for android.app.jank.

Index

Constants

View Source
const (
	WidgetCategoryAnimation   = consts.WidgetCategoryAnimation
	WidgetCategoryKeyboard    = consts.WidgetCategoryKeyboard
	WidgetCategoryMedia       = consts.WidgetCategoryMedia
	WidgetCategoryNavigation  = consts.WidgetCategoryNavigation
	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

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type AppJankStats

type AppJankStats struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

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.

func (*AppJankStats) ToString added in v0.0.8

func (m *AppJankStats) ToString() (string, error)

ToString calls android.app.jank.AppJankStats.toString.

type RelativeFrameTimeHistogram

type RelativeFrameTimeHistogram struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

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.

func (*RelativeFrameTimeHistogram) ToString added in v0.0.8

func (m *RelativeFrameTimeHistogram) ToString() (string, error)

ToString calls android.app.jank.RelativeFrameTimeHistogram.toString.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL