Documentation ¶
Overview ¶
Package gapidapk holds functions relating to the GAPID Android APK.
Index ¶
Constants ¶
const (
// GraphicsSpyLayerName is the name of the graphics spy Vulkan layer.
GraphicsSpyLayerName = "GraphicsSpy"
)
Variables ¶
This section is empty.
Functions ¶
func EnsurePerfettoProducerLaunched ¶
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 ¶
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 ¶
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.