desktop

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 26 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DesktopTracer

type DesktopTracer struct {
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer(dev bind.Device) *DesktopTracer

func (*DesktopTracer) FindTraceTargets

func (t *DesktopTracer) FindTraceTargets(ctx context.Context, str string) ([]*tracer.TraceTargetTreeNode, error)

func (*DesktopTracer) GetDevice

func (t *DesktopTracer) GetDevice() bind.Device

func (*DesktopTracer) GetTraceTargetNode

func (t *DesktopTracer) GetTraceTargetNode(ctx context.Context, uri string, iconDensity float32) (*tracer.TraceTargetTreeNode, error)

func (*DesktopTracer) JoinPath

func (t *DesktopTracer) JoinPath(paths []string) string

JoinPath provides a path.Join() for this specific target

func (*DesktopTracer) SetupTrace

func (*DesktopTracer) SplitPath

func (t *DesktopTracer) SplitPath(p string) (string, string)

SplitPath performs a path.Split() operation for this specific target

func (*DesktopTracer) TraceConfiguration added in v1.3.1

func (t *DesktopTracer) TraceConfiguration(ctx context.Context) (*service.DeviceTraceConfiguration, error)

TraceConfiguration returns the device's supported trace configuration.

type GGPTracer added in v1.6.0

type GGPTracer struct {
	DesktopTracer
	// contains filtered or unexported fields
}

func NewGGPTracer added in v1.6.0

func NewGGPTracer(ctx context.Context, dev bind.Device) (*GGPTracer, error)

func (*GGPTracer) FindTraceTargets added in v1.6.0

func (t *GGPTracer) FindTraceTargets(ctx context.Context, str string) ([]*tracer.TraceTargetTreeNode, error)

FindTraceTargets implements the tracer.Tracer interface. GGP tracer supports two forms of URI to specify tracing targets:

  1. File path and Application form: <Absolute Path>:<Application>, e.g.: "/mnt/developer/cube:MyApplication"
  2. Package ID (w/o Project Name) and Application form: If the package is in current project: "package=<Package ID>:<Application>" If the package is in another project: "package=<Project Name>/<Package ID>:<Application>"

e.g.:

		"package=ba843a36f96451b237138769fc141733pks1:MyApplication"
     "package=/PACKAGE/ba843a36f96451b237138769fc141733pks1:MyApplication"

Valid charactors for <Project Name> and <Application> are: [a-zA-Z0-9\s\_\-], valid charactors for <Package ID> are: [a-z0-9]. In case the given |str| is not a valid URI, error will be returned.

func (*GGPTracer) GetTraceTargetNode added in v1.6.0

func (t *GGPTracer) GetTraceTargetNode(ctx context.Context, uri string, iconDensity float32) (*tracer.TraceTargetTreeNode, error)

GetTraceTargetNode implements the tracer.Tracer interface.

func (*GGPTracer) SetupTrace added in v1.6.0

func (*GGPTracer) StartOnDevice added in v1.6.0

func (t *GGPTracer) StartOnDevice(ctx context.Context, name string, opts *process.StartOptions) (int, error)

StartOnDevice runs the application on the given remote device, with the given path and options, waits for the "Bound on port {port}" string to be printed to stdout, and then returns the port number.

func (*GGPTracer) TraceConfiguration added in v1.6.0

func (t *GGPTracer) TraceConfiguration(ctx context.Context) (*service.DeviceTraceConfiguration, error)

TraceConfiguration returns the device's supported trace configuration.

Jump to

Keyboard shortcuts

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