gapidapk

package
v0.0.0-...-9202be0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package gapidapk holds functions relating to the GAPID Android APK.

Index

Constants

View Source
const (
	// GraphicsSpyLayerName is the name of the graphics spy Vulkan layer.
	GraphicsSpyLayerName = "GraphicsSpy"
)

Variables

This section is empty.

Functions

func EnsurePerfettoProducerLaunched

func EnsurePerfettoProducerLaunched(ctx context.Context, d adb.Device) error

EnsurePerfettoProducerLaunched kills the existing launch_producer and starts a new one to launch the perfetto data producer.

func PackageList

func PackageList(ctx context.Context, d adb.Device, includeIcons bool, iconDensityScale float32) (*pkginfo.PackageList, error)

PackageList returns the list of packages installed on the device.

func PackageName

func PackageName(abi *device.ABI) string

PackageName returns the full package name of the GAPID apk for the given ABI.

Types

type APK

type APK struct {
	*android.InstalledPackage
	// contains filtered or unexported fields
}

APK represents the installed GAPIR APK.

func EnsureInstalled

func EnsureInstalled(ctx context.Context, d adb.Device, abi *device.ABI) (*APK, error)

EnsureInstalled ensures that gapid.apk with the specified ABI is installed on d with the same version as the APK on the host, and returns the installed APK. If abi is nil or UnknownABI, all the ABI available on the host will be tried for d, and the preferred ABI of the device will be tried first. Once an ABI is found compatible with the device, the APK of that ABI will be ensured to be installed.

func (APK) LibsPath

func (a APK) LibsPath(abi *device.ABI) string

LibsPath returns the path on the Android device to the GAPID libs directory. gapid.apk must be installed for this path to be valid.

Directories

Path Synopsis
Package pkginfo contains support for dealing with package manager information.
Package pkginfo contains support for dealing with package manager information.

Jump to

Keyboard shortcuts

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