Help us shape the future of Go! Take the 2026 Go Developer Survey

tracing

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionITracingServiceProxyNotifyTraceSessionEnded = binder.FirstCallTransaction + 0
	TransactionITracingServiceProxyReportTrace             = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodITracingServiceProxyNotifyTraceSessionEnded = "notifyTraceSessionEnded"
	MethodITracingServiceProxyReportTrace             = "reportTrace"
)
View Source
const DescriptorITracingServiceProxy = "android.tracing.ITracingServiceProxy"

Variables

This section is empty.

Functions

This section is empty.

Types

type ITracingServiceProxy

type ITracingServiceProxy interface {
	AsBinder() binder.IBinder
	NotifyTraceSessionEnded(ctx context.Context, sessionStolen bool) error
	ReportTrace(ctx context.Context, params TraceReportParams) error
}

func NewTracingServiceProxyStub

func NewTracingServiceProxyStub(
	impl ITracingServiceProxyServer,
) ITracingServiceProxy

NewTracingServiceProxyStub creates a server-side ITracingServiceProxy wrapping the given server implementation. The returned value satisfies ITracingServiceProxy and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type ITracingServiceProxyServer

type ITracingServiceProxyServer interface {
	NotifyTraceSessionEnded(ctx context.Context, sessionStolen bool) error
	ReportTrace(ctx context.Context, params TraceReportParams) error
}

ITracingServiceProxyServer is the server-side interface that user implementations provide to NewTracingServiceProxyStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type TraceReportParams

type TraceReportParams struct {
	ReporterPackageName string
	ReporterClassName   string
	Fd                  int32
	UuidLsb             int64
	UuidMsb             int64
	UsePipeForTesting   bool
}

func (*TraceReportParams) MarshalParcel

func (s *TraceReportParams) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TraceReportParams) UnmarshalParcel

func (s *TraceReportParams) UnmarshalParcel(
	p *parcel.Parcel,
) error

type TracingServiceProxyProxy

type TracingServiceProxyProxy struct {
	Remote binder.IBinder
}

func NewTracingServiceProxyProxy

func NewTracingServiceProxyProxy(
	remote binder.IBinder,
) *TracingServiceProxyProxy

func (*TracingServiceProxyProxy) AsBinder

func (p *TracingServiceProxyProxy) AsBinder() binder.IBinder

func (*TracingServiceProxyProxy) NotifyTraceSessionEnded

func (p *TracingServiceProxyProxy) NotifyTraceSessionEnded(
	ctx context.Context,
	sessionStolen bool,
) error

func (*TracingServiceProxyProxy) ReportTrace

func (p *TracingServiceProxyProxy) ReportTrace(
	ctx context.Context,
	params TraceReportParams,
) error

type TracingServiceProxyStub

type TracingServiceProxyStub struct {
	Impl      ITracingServiceProxy
	Transport binder.VersionAwareTransport
}

TracingServiceProxyStub dispatches incoming binder transactions to a typed ITracingServiceProxy implementation.

func (*TracingServiceProxyStub) Descriptor

func (s *TracingServiceProxyStub) Descriptor() string

func (*TracingServiceProxyStub) OnTransaction

func (s *TracingServiceProxyStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

Jump to

Keyboard shortcuts

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