print

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TransactionILayoutResultCallbackOnLayoutStarted  = binder.FirstCallTransaction + 0
	TransactionILayoutResultCallbackOnLayoutFinished = binder.FirstCallTransaction + 1
	TransactionILayoutResultCallbackOnLayoutFailed   = binder.FirstCallTransaction + 2
	TransactionILayoutResultCallbackOnLayoutCanceled = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodILayoutResultCallbackOnLayoutStarted  = "onLayoutStarted"
	MethodILayoutResultCallbackOnLayoutFinished = "onLayoutFinished"
	MethodILayoutResultCallbackOnLayoutFailed   = "onLayoutFailed"
	MethodILayoutResultCallbackOnLayoutCanceled = "onLayoutCanceled"
)
View Source
const (
	TransactionIPrintDocumentAdapterSetObserver = binder.FirstCallTransaction + 0
	TransactionIPrintDocumentAdapterStart       = binder.FirstCallTransaction + 1
	TransactionIPrintDocumentAdapterLayout      = binder.FirstCallTransaction + 2
	TransactionIPrintDocumentAdapterWrite       = binder.FirstCallTransaction + 3
	TransactionIPrintDocumentAdapterFinish      = binder.FirstCallTransaction + 4
	TransactionIPrintDocumentAdapterKill        = binder.FirstCallTransaction + 5
)
View Source
const (
	MethodIPrintDocumentAdapterSetObserver = "setObserver"
	MethodIPrintDocumentAdapterStart       = "start"
	MethodIPrintDocumentAdapterLayout      = "layout"
	MethodIPrintDocumentAdapterWrite       = "write"
	MethodIPrintDocumentAdapterFinish      = "finish"
	MethodIPrintDocumentAdapterKill        = "kill"
)
View Source
const (
	TransactionIPrinterDiscoveryObserverOnPrintersAdded   = binder.FirstCallTransaction + 0
	TransactionIPrinterDiscoveryObserverOnPrintersRemoved = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIPrinterDiscoveryObserverOnPrintersAdded   = "onPrintersAdded"
	MethodIPrinterDiscoveryObserverOnPrintersRemoved = "onPrintersRemoved"
)
View Source
const (
	TransactionIPrintManagerGetPrintJobInfos                                = binder.FirstCallTransaction + 0
	TransactionIPrintManagerGetPrintJobInfo                                 = binder.FirstCallTransaction + 1
	TransactionIPrintManagerPrint                                           = binder.FirstCallTransaction + 2
	TransactionIPrintManagerCancelPrintJob                                  = binder.FirstCallTransaction + 3
	TransactionIPrintManagerRestartPrintJob                                 = binder.FirstCallTransaction + 4
	TransactionIPrintManagerAddPrintJobStateChangeListener                  = binder.FirstCallTransaction + 5
	TransactionIPrintManagerRemovePrintJobStateChangeListener               = binder.FirstCallTransaction + 6
	TransactionIPrintManagerAddPrintServicesChangeListener                  = binder.FirstCallTransaction + 7
	TransactionIPrintManagerRemovePrintServicesChangeListener               = binder.FirstCallTransaction + 8
	TransactionIPrintManagerGetPrintServices                                = binder.FirstCallTransaction + 9
	TransactionIPrintManagerSetPrintServiceEnabled                          = binder.FirstCallTransaction + 10
	TransactionIPrintManagerIsPrintServiceEnabled                           = binder.FirstCallTransaction + 11
	TransactionIPrintManagerAddPrintServiceRecommendationsChangeListener    = binder.FirstCallTransaction + 12
	TransactionIPrintManagerRemovePrintServiceRecommendationsChangeListener = binder.FirstCallTransaction + 13
	TransactionIPrintManagerGetPrintServiceRecommendations                  = binder.FirstCallTransaction + 14
	TransactionIPrintManagerCreatePrinterDiscoverySession                   = binder.FirstCallTransaction + 15
	TransactionIPrintManagerStartPrinterDiscovery                           = binder.FirstCallTransaction + 16
	TransactionIPrintManagerStopPrinterDiscovery                            = binder.FirstCallTransaction + 17
	TransactionIPrintManagerValidatePrinters                                = binder.FirstCallTransaction + 18
	TransactionIPrintManagerStartPrinterStateTracking                       = binder.FirstCallTransaction + 19
	TransactionIPrintManagerGetCustomPrinterIcon                            = binder.FirstCallTransaction + 20
	TransactionIPrintManagerStopPrinterStateTracking                        = binder.FirstCallTransaction + 21
	TransactionIPrintManagerDestroyPrinterDiscoverySession                  = binder.FirstCallTransaction + 22
	TransactionIPrintManagerGetBindInstantServiceAllowed                    = binder.FirstCallTransaction + 23
	TransactionIPrintManagerSetBindInstantServiceAllowed                    = binder.FirstCallTransaction + 24
)
View Source
const (
	MethodIPrintManagerGetPrintJobInfos                                = "getPrintJobInfos"
	MethodIPrintManagerGetPrintJobInfo                                 = "getPrintJobInfo"
	MethodIPrintManagerPrint                                           = "print"
	MethodIPrintManagerCancelPrintJob                                  = "cancelPrintJob"
	MethodIPrintManagerRestartPrintJob                                 = "restartPrintJob"
	MethodIPrintManagerAddPrintJobStateChangeListener                  = "addPrintJobStateChangeListener"
	MethodIPrintManagerRemovePrintJobStateChangeListener               = "removePrintJobStateChangeListener"
	MethodIPrintManagerAddPrintServicesChangeListener                  = "addPrintServicesChangeListener"
	MethodIPrintManagerRemovePrintServicesChangeListener               = "removePrintServicesChangeListener"
	MethodIPrintManagerGetPrintServices                                = "getPrintServices"
	MethodIPrintManagerSetPrintServiceEnabled                          = "setPrintServiceEnabled"
	MethodIPrintManagerIsPrintServiceEnabled                           = "isPrintServiceEnabled"
	MethodIPrintManagerAddPrintServiceRecommendationsChangeListener    = "addPrintServiceRecommendationsChangeListener"
	MethodIPrintManagerRemovePrintServiceRecommendationsChangeListener = "removePrintServiceRecommendationsChangeListener"
	MethodIPrintManagerGetPrintServiceRecommendations                  = "getPrintServiceRecommendations"
	MethodIPrintManagerCreatePrinterDiscoverySession                   = "createPrinterDiscoverySession"
	MethodIPrintManagerStartPrinterDiscovery                           = "startPrinterDiscovery"
	MethodIPrintManagerStopPrinterDiscovery                            = "stopPrinterDiscovery"
	MethodIPrintManagerValidatePrinters                                = "validatePrinters"
	MethodIPrintManagerStartPrinterStateTracking                       = "startPrinterStateTracking"
	MethodIPrintManagerGetCustomPrinterIcon                            = "getCustomPrinterIcon"
	MethodIPrintManagerStopPrinterStateTracking                        = "stopPrinterStateTracking"
	MethodIPrintManagerDestroyPrinterDiscoverySession                  = "destroyPrinterDiscoverySession"
	MethodIPrintManagerGetBindInstantServiceAllowed                    = "getBindInstantServiceAllowed"
	MethodIPrintManagerSetBindInstantServiceAllowed                    = "setBindInstantServiceAllowed"
)
View Source
const (
	TransactionIPrintSpoolerRemoveObsoletePrintJobs     = binder.FirstCallTransaction + 0
	TransactionIPrintSpoolerGetPrintJobInfos            = binder.FirstCallTransaction + 1
	TransactionIPrintSpoolerGetPrintJobInfo             = binder.FirstCallTransaction + 2
	TransactionIPrintSpoolerCreatePrintJob              = binder.FirstCallTransaction + 3
	TransactionIPrintSpoolerSetPrintJobState            = binder.FirstCallTransaction + 4
	TransactionIPrintSpoolerSetProgress                 = binder.FirstCallTransaction + 5
	TransactionIPrintSpoolerSetStatus                   = binder.FirstCallTransaction + 6
	TransactionIPrintSpoolerSetStatusRes                = binder.FirstCallTransaction + 7
	TransactionIPrintSpoolerOnCustomPrinterIconLoaded   = binder.FirstCallTransaction + 8
	TransactionIPrintSpoolerGetCustomPrinterIcon        = binder.FirstCallTransaction + 9
	TransactionIPrintSpoolerClearCustomPrinterIconCache = binder.FirstCallTransaction + 10
	TransactionIPrintSpoolerSetPrintJobTag              = binder.FirstCallTransaction + 11
	TransactionIPrintSpoolerWritePrintJobData           = binder.FirstCallTransaction + 12
	TransactionIPrintSpoolerSetClient                   = binder.FirstCallTransaction + 13
	TransactionIPrintSpoolerSetPrintJobCancelling       = binder.FirstCallTransaction + 14
	TransactionIPrintSpoolerPruneApprovedPrintServices  = binder.FirstCallTransaction + 15
)
View Source
const (
	MethodIPrintSpoolerRemoveObsoletePrintJobs     = "removeObsoletePrintJobs"
	MethodIPrintSpoolerGetPrintJobInfos            = "getPrintJobInfos"
	MethodIPrintSpoolerGetPrintJobInfo             = "getPrintJobInfo"
	MethodIPrintSpoolerCreatePrintJob              = "createPrintJob"
	MethodIPrintSpoolerSetPrintJobState            = "setPrintJobState"
	MethodIPrintSpoolerSetProgress                 = "setProgress"
	MethodIPrintSpoolerSetStatus                   = "setStatus"
	MethodIPrintSpoolerSetStatusRes                = "setStatusRes"
	MethodIPrintSpoolerOnCustomPrinterIconLoaded   = "onCustomPrinterIconLoaded"
	MethodIPrintSpoolerGetCustomPrinterIcon        = "getCustomPrinterIcon"
	MethodIPrintSpoolerClearCustomPrinterIconCache = "clearCustomPrinterIconCache"
	MethodIPrintSpoolerSetPrintJobTag              = "setPrintJobTag"
	MethodIPrintSpoolerWritePrintJobData           = "writePrintJobData"
	MethodIPrintSpoolerSetClient                   = "setClient"
	MethodIPrintSpoolerSetPrintJobCancelling       = "setPrintJobCancelling"
	MethodIPrintSpoolerPruneApprovedPrintServices  = "pruneApprovedPrintServices"
)
View Source
const (
	TransactionIPrintSpoolerCallbacksOnGetPrintJobInfosResult      = binder.FirstCallTransaction + 0
	TransactionIPrintSpoolerCallbacksOnCancelPrintJobResult        = binder.FirstCallTransaction + 1
	TransactionIPrintSpoolerCallbacksOnSetPrintJobStateResult      = binder.FirstCallTransaction + 2
	TransactionIPrintSpoolerCallbacksOnSetPrintJobTagResult        = binder.FirstCallTransaction + 3
	TransactionIPrintSpoolerCallbacksOnGetPrintJobInfoResult       = binder.FirstCallTransaction + 4
	TransactionIPrintSpoolerCallbacksOnGetCustomPrinterIconResult  = binder.FirstCallTransaction + 5
	TransactionIPrintSpoolerCallbacksOnCustomPrinterIconCached     = binder.FirstCallTransaction + 6
	TransactionIPrintSpoolerCallbacksCustomPrinterIconCacheCleared = binder.FirstCallTransaction + 7
)
View Source
const (
	MethodIPrintSpoolerCallbacksOnGetPrintJobInfosResult      = "onGetPrintJobInfosResult"
	MethodIPrintSpoolerCallbacksOnCancelPrintJobResult        = "onCancelPrintJobResult"
	MethodIPrintSpoolerCallbacksOnSetPrintJobStateResult      = "onSetPrintJobStateResult"
	MethodIPrintSpoolerCallbacksOnSetPrintJobTagResult        = "onSetPrintJobTagResult"
	MethodIPrintSpoolerCallbacksOnGetPrintJobInfoResult       = "onGetPrintJobInfoResult"
	MethodIPrintSpoolerCallbacksOnGetCustomPrinterIconResult  = "onGetCustomPrinterIconResult"
	MethodIPrintSpoolerCallbacksOnCustomPrinterIconCached     = "onCustomPrinterIconCached"
	MethodIPrintSpoolerCallbacksCustomPrinterIconCacheCleared = "customPrinterIconCacheCleared"
)
View Source
const (
	TransactionIPrintSpoolerClientOnPrintJobQueued                = binder.FirstCallTransaction + 0
	TransactionIPrintSpoolerClientOnAllPrintJobsForServiceHandled = binder.FirstCallTransaction + 1
	TransactionIPrintSpoolerClientOnAllPrintJobsHandled           = binder.FirstCallTransaction + 2
	TransactionIPrintSpoolerClientOnPrintJobStateChanged          = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodIPrintSpoolerClientOnPrintJobQueued                = "onPrintJobQueued"
	MethodIPrintSpoolerClientOnAllPrintJobsForServiceHandled = "onAllPrintJobsForServiceHandled"
	MethodIPrintSpoolerClientOnAllPrintJobsHandled           = "onAllPrintJobsHandled"
	MethodIPrintSpoolerClientOnPrintJobStateChanged          = "onPrintJobStateChanged"
)
View Source
const (
	TransactionIWriteResultCallbackOnWriteStarted  = binder.FirstCallTransaction + 0
	TransactionIWriteResultCallbackOnWriteFinished = binder.FirstCallTransaction + 1
	TransactionIWriteResultCallbackOnWriteFailed   = binder.FirstCallTransaction + 2
	TransactionIWriteResultCallbackOnWriteCanceled = binder.FirstCallTransaction + 3
)
View Source
const (
	MethodIWriteResultCallbackOnWriteStarted  = "onWriteStarted"
	MethodIWriteResultCallbackOnWriteFinished = "onWriteFinished"
	MethodIWriteResultCallbackOnWriteFailed   = "onWriteFailed"
	MethodIWriteResultCallbackOnWriteCanceled = "onWriteCanceled"
)
View Source
const DescriptorILayoutResultCallback = "android.print.ILayoutResultCallback"
View Source
const DescriptorIPrintDocumentAdapter = "android.print.IPrintDocumentAdapter"
View Source
const DescriptorIPrintDocumentAdapterObserver = "android.print.IPrintDocumentAdapterObserver"
View Source
const DescriptorIPrintJobStateChangeListener = "android.print.IPrintJobStateChangeListener"
View Source
const DescriptorIPrintManager = "android.print.IPrintManager"
View Source
const DescriptorIPrintServicesChangeListener = "android.print.IPrintServicesChangeListener"
View Source
const DescriptorIPrintSpooler = "android.print.IPrintSpooler"
View Source
const DescriptorIPrintSpoolerCallbacks = "android.print.IPrintSpoolerCallbacks"
View Source
const DescriptorIPrintSpoolerClient = "android.print.IPrintSpoolerClient"
View Source
const DescriptorIPrinterDiscoveryObserver = "android.print.IPrinterDiscoveryObserver"
View Source
const DescriptorIWriteResultCallback = "android.print.IWriteResultCallback"
View Source
const (
	MethodIPrintDocumentAdapterObserverOnDestroy = "onDestroy"
)
View Source
const (
	MethodIPrintJobStateChangeListenerOnPrintJobStateChanged = "onPrintJobStateChanged"
)
View Source
const (
	MethodIPrintServicesChangeListenerOnPrintServicesChanged = "onPrintServicesChanged"
)
View Source
const (
	TransactionIPrintDocumentAdapterObserverOnDestroy = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIPrintJobStateChangeListenerOnPrintJobStateChanged = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIPrintServicesChangeListenerOnPrintServicesChanged = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ILayoutResultCallback

type ILayoutResultCallback interface {
	AsBinder() binder.IBinder
	OnLayoutStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
	OnLayoutFinished(ctx context.Context, info PrintDocumentInfo, changed bool, sequence int32) error
	OnLayoutFailed(ctx context.Context, error_ string, sequence int32) error
	OnLayoutCanceled(ctx context.Context, sequence int32) error
}

func NewLayoutResultCallbackStub

func NewLayoutResultCallbackStub(
	impl ILayoutResultCallbackServer,
) ILayoutResultCallback

NewLayoutResultCallbackStub creates a server-side ILayoutResultCallback wrapping the given server implementation. The returned value satisfies ILayoutResultCallback 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 ILayoutResultCallbackServer

type ILayoutResultCallbackServer interface {
	OnLayoutStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
	OnLayoutFinished(ctx context.Context, info PrintDocumentInfo, changed bool, sequence int32) error
	OnLayoutFailed(ctx context.Context, error_ string, sequence int32) error
	OnLayoutCanceled(ctx context.Context, sequence int32) error
}

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

type IPrintDocumentAdapter

type IPrintDocumentAdapter interface {
	AsBinder() binder.IBinder
	SetObserver(ctx context.Context, observer IPrintDocumentAdapterObserver) error
	Start(ctx context.Context) error
	Layout(ctx context.Context, oldAttributes PrintAttributes, newAttributes PrintAttributes, callback ILayoutResultCallback, metadata os.Bundle, sequence int32) error
	Write(ctx context.Context, pages []PageRange, fd int32, callback IWriteResultCallback, sequence int32) error
	Finish(ctx context.Context) error
	Kill(ctx context.Context, reason string) error
}

func NewPrintDocumentAdapterStub

func NewPrintDocumentAdapterStub(
	impl IPrintDocumentAdapterServer,
) IPrintDocumentAdapter

NewPrintDocumentAdapterStub creates a server-side IPrintDocumentAdapter wrapping the given server implementation. The returned value satisfies IPrintDocumentAdapter 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 IPrintDocumentAdapterObserver

type IPrintDocumentAdapterObserver interface {
	AsBinder() binder.IBinder
	OnDestroy(ctx context.Context) error
}

func NewPrintDocumentAdapterObserverStub

func NewPrintDocumentAdapterObserverStub(
	impl IPrintDocumentAdapterObserverServer,
) IPrintDocumentAdapterObserver

NewPrintDocumentAdapterObserverStub creates a server-side IPrintDocumentAdapterObserver wrapping the given server implementation. The returned value satisfies IPrintDocumentAdapterObserver 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 IPrintDocumentAdapterObserverServer

type IPrintDocumentAdapterObserverServer interface {
	OnDestroy(ctx context.Context) error
}

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

type IPrintDocumentAdapterServer

type IPrintDocumentAdapterServer interface {
	SetObserver(ctx context.Context, observer IPrintDocumentAdapterObserver) error
	Start(ctx context.Context) error
	Layout(ctx context.Context, oldAttributes PrintAttributes, newAttributes PrintAttributes, callback ILayoutResultCallback, metadata os.Bundle, sequence int32) error
	Write(ctx context.Context, pages []PageRange, fd int32, callback IWriteResultCallback, sequence int32) error
	Finish(ctx context.Context) error
	Kill(ctx context.Context, reason string) error
}

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

type IPrintJobStateChangeListener

type IPrintJobStateChangeListener interface {
	AsBinder() binder.IBinder
	OnPrintJobStateChanged(ctx context.Context, printJobId PrintJobId) error
}

func NewPrintJobStateChangeListenerStub

func NewPrintJobStateChangeListenerStub(
	impl IPrintJobStateChangeListenerServer,
) IPrintJobStateChangeListener

NewPrintJobStateChangeListenerStub creates a server-side IPrintJobStateChangeListener wrapping the given server implementation. The returned value satisfies IPrintJobStateChangeListener 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 IPrintJobStateChangeListenerServer

type IPrintJobStateChangeListenerServer interface {
	OnPrintJobStateChanged(ctx context.Context, printJobId PrintJobId) error
}

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

type IPrintManager

type IPrintManager interface {
	AsBinder() binder.IBinder
	GetPrintJobInfos(ctx context.Context, appId int32) ([]PrintJobInfo, error)
	GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, appId int32) (PrintJobInfo, error)
	Print(ctx context.Context, printJobName string, printAdapter IPrintDocumentAdapter, attributes PrintAttributes, packageName string, appId int32) (os.Bundle, error)
	CancelPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
	RestartPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
	AddPrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener, appId int32) error
	RemovePrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener) error
	AddPrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
	RemovePrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
	GetPrintServices(ctx context.Context, selectionFlags int32) ([]printservice.PrintServiceInfo, error)
	SetPrintServiceEnabled(ctx context.Context, service content.ComponentName, isEnabled bool) error
	IsPrintServiceEnabled(ctx context.Context, service content.ComponentName) (bool, error)
	AddPrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
	RemovePrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
	GetPrintServiceRecommendations(ctx context.Context) ([]recommendation.RecommendationInfo, error)
	CreatePrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
	StartPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver, priorityList []PrinterId) error
	StopPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver) error
	ValidatePrinters(ctx context.Context, printerIds []PrinterId) error
	StartPrinterStateTracking(ctx context.Context, printerId PrinterId) error
	GetCustomPrinterIcon(ctx context.Context, printerId PrinterId) (drawable.Icon, error)
	StopPrinterStateTracking(ctx context.Context, printerId PrinterId) error
	DestroyPrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
	GetBindInstantServiceAllowed(ctx context.Context) (bool, error)
	SetBindInstantServiceAllowed(ctx context.Context, allowed bool) error
}

func NewPrintManagerStub

func NewPrintManagerStub(
	impl IPrintManagerServer,
) IPrintManager

NewPrintManagerStub creates a server-side IPrintManager wrapping the given server implementation. The returned value satisfies IPrintManager 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 IPrintManagerServer

type IPrintManagerServer interface {
	GetPrintJobInfos(ctx context.Context, appId int32) ([]PrintJobInfo, error)
	GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, appId int32) (PrintJobInfo, error)
	Print(ctx context.Context, printJobName string, printAdapter IPrintDocumentAdapter, attributes PrintAttributes, packageName string, appId int32) (os.Bundle, error)
	CancelPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
	RestartPrintJob(ctx context.Context, printJobId PrintJobId, appId int32) error
	AddPrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener, appId int32) error
	RemovePrintJobStateChangeListener(ctx context.Context, listener IPrintJobStateChangeListener) error
	AddPrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
	RemovePrintServicesChangeListener(ctx context.Context, listener IPrintServicesChangeListener) error
	GetPrintServices(ctx context.Context, selectionFlags int32) ([]printservice.PrintServiceInfo, error)
	SetPrintServiceEnabled(ctx context.Context, service content.ComponentName, isEnabled bool) error
	IsPrintServiceEnabled(ctx context.Context, service content.ComponentName) (bool, error)
	AddPrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
	RemovePrintServiceRecommendationsChangeListener(ctx context.Context, listener recommendation.IRecommendationsChangeListener) error
	GetPrintServiceRecommendations(ctx context.Context) ([]recommendation.RecommendationInfo, error)
	CreatePrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
	StartPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver, priorityList []PrinterId) error
	StopPrinterDiscovery(ctx context.Context, observer IPrinterDiscoveryObserver) error
	ValidatePrinters(ctx context.Context, printerIds []PrinterId) error
	StartPrinterStateTracking(ctx context.Context, printerId PrinterId) error
	GetCustomPrinterIcon(ctx context.Context, printerId PrinterId) (drawable.Icon, error)
	StopPrinterStateTracking(ctx context.Context, printerId PrinterId) error
	DestroyPrinterDiscoverySession(ctx context.Context, observer IPrinterDiscoveryObserver) error
	GetBindInstantServiceAllowed(ctx context.Context) (bool, error)
	SetBindInstantServiceAllowed(ctx context.Context, allowed bool) error
}

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

type IPrintServicesChangeListener

type IPrintServicesChangeListener interface {
	AsBinder() binder.IBinder
	OnPrintServicesChanged(ctx context.Context) error
}

func NewPrintServicesChangeListenerStub

func NewPrintServicesChangeListenerStub(
	impl IPrintServicesChangeListenerServer,
) IPrintServicesChangeListener

NewPrintServicesChangeListenerStub creates a server-side IPrintServicesChangeListener wrapping the given server implementation. The returned value satisfies IPrintServicesChangeListener 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 IPrintServicesChangeListenerServer

type IPrintServicesChangeListenerServer interface {
	OnPrintServicesChanged(ctx context.Context) error
}

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

type IPrintSpooler

type IPrintSpooler interface {
	AsBinder() binder.IBinder
	RemoveObsoletePrintJobs(ctx context.Context) error
	GetPrintJobInfos(ctx context.Context, callback IPrintSpoolerCallbacks, componentName content.ComponentName, state int32, appId int32, sequence int32) error
	GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, callback IPrintSpoolerCallbacks, appId int32, sequence int32) error
	CreatePrintJob(ctx context.Context, printJob PrintJobInfo) error
	SetPrintJobState(ctx context.Context, printJobId PrintJobId, status int32, stateReason string, callback IPrintSpoolerCallbacks, sequence int32) error
	SetProgress(ctx context.Context, printJobId PrintJobId, progress float32) error
	SetStatus(ctx context.Context, printJobId PrintJobId, status string) error
	SetStatusRes(ctx context.Context, printJobId PrintJobId, status int32, appPackageName string) error
	OnCustomPrinterIconLoaded(ctx context.Context, printerId PrinterId, icon drawable.Icon, callbacks IPrintSpoolerCallbacks, sequence int32) error
	GetCustomPrinterIcon(ctx context.Context, printerId PrinterId, callbacks IPrintSpoolerCallbacks, sequence int32) error
	ClearCustomPrinterIconCache(ctx context.Context, callbacks IPrintSpoolerCallbacks, sequence int32) error
	SetPrintJobTag(ctx context.Context, printJobId PrintJobId, tag string, callback IPrintSpoolerCallbacks, sequence int32) error
	WritePrintJobData(ctx context.Context, fd int32, printJobId PrintJobId) error
	SetClient(ctx context.Context, client IPrintSpoolerClient) error
	SetPrintJobCancelling(ctx context.Context, printJobId PrintJobId, cancelling bool) error
	PruneApprovedPrintServices(ctx context.Context, servicesToKeep []content.ComponentName) error
}

func NewPrintSpoolerStub

func NewPrintSpoolerStub(
	impl IPrintSpoolerServer,
) IPrintSpooler

NewPrintSpoolerStub creates a server-side IPrintSpooler wrapping the given server implementation. The returned value satisfies IPrintSpooler 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 IPrintSpoolerCallbacks

type IPrintSpoolerCallbacks interface {
	AsBinder() binder.IBinder
	OnGetPrintJobInfosResult(ctx context.Context, printJob []PrintJobInfo, sequence int32) error
	OnCancelPrintJobResult(ctx context.Context, canceled bool, sequence int32) error
	OnSetPrintJobStateResult(ctx context.Context, success bool, sequence int32) error
	OnSetPrintJobTagResult(ctx context.Context, success bool, sequence int32) error
	OnGetPrintJobInfoResult(ctx context.Context, printJob PrintJobInfo, sequence int32) error
	OnGetCustomPrinterIconResult(ctx context.Context, icon drawable.Icon, sequence int32) error
	OnCustomPrinterIconCached(ctx context.Context, sequence int32) error
	CustomPrinterIconCacheCleared(ctx context.Context, sequence int32) error
}

func NewPrintSpoolerCallbacksStub

func NewPrintSpoolerCallbacksStub(
	impl IPrintSpoolerCallbacksServer,
) IPrintSpoolerCallbacks

NewPrintSpoolerCallbacksStub creates a server-side IPrintSpoolerCallbacks wrapping the given server implementation. The returned value satisfies IPrintSpoolerCallbacks 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 IPrintSpoolerCallbacksServer

type IPrintSpoolerCallbacksServer interface {
	OnGetPrintJobInfosResult(ctx context.Context, printJob []PrintJobInfo, sequence int32) error
	OnCancelPrintJobResult(ctx context.Context, canceled bool, sequence int32) error
	OnSetPrintJobStateResult(ctx context.Context, success bool, sequence int32) error
	OnSetPrintJobTagResult(ctx context.Context, success bool, sequence int32) error
	OnGetPrintJobInfoResult(ctx context.Context, printJob PrintJobInfo, sequence int32) error
	OnGetCustomPrinterIconResult(ctx context.Context, icon drawable.Icon, sequence int32) error
	OnCustomPrinterIconCached(ctx context.Context, sequence int32) error
	CustomPrinterIconCacheCleared(ctx context.Context, sequence int32) error
}

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

type IPrintSpoolerClient

type IPrintSpoolerClient interface {
	AsBinder() binder.IBinder
	OnPrintJobQueued(ctx context.Context, printJob PrintJobInfo) error
	OnAllPrintJobsForServiceHandled(ctx context.Context, printService content.ComponentName) error
	OnAllPrintJobsHandled(ctx context.Context) error
	OnPrintJobStateChanged(ctx context.Context, printJob PrintJobInfo) error
}

func NewPrintSpoolerClientStub

func NewPrintSpoolerClientStub(
	impl IPrintSpoolerClientServer,
) IPrintSpoolerClient

NewPrintSpoolerClientStub creates a server-side IPrintSpoolerClient wrapping the given server implementation. The returned value satisfies IPrintSpoolerClient 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 IPrintSpoolerClientServer

type IPrintSpoolerClientServer interface {
	OnPrintJobQueued(ctx context.Context, printJob PrintJobInfo) error
	OnAllPrintJobsForServiceHandled(ctx context.Context, printService content.ComponentName) error
	OnAllPrintJobsHandled(ctx context.Context) error
	OnPrintJobStateChanged(ctx context.Context, printJob PrintJobInfo) error
}

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

type IPrintSpoolerServer

type IPrintSpoolerServer interface {
	RemoveObsoletePrintJobs(ctx context.Context) error
	GetPrintJobInfos(ctx context.Context, callback IPrintSpoolerCallbacks, componentName content.ComponentName, state int32, appId int32, sequence int32) error
	GetPrintJobInfo(ctx context.Context, printJobId PrintJobId, callback IPrintSpoolerCallbacks, appId int32, sequence int32) error
	CreatePrintJob(ctx context.Context, printJob PrintJobInfo) error
	SetPrintJobState(ctx context.Context, printJobId PrintJobId, status int32, stateReason string, callback IPrintSpoolerCallbacks, sequence int32) error
	SetProgress(ctx context.Context, printJobId PrintJobId, progress float32) error
	SetStatus(ctx context.Context, printJobId PrintJobId, status string) error
	SetStatusRes(ctx context.Context, printJobId PrintJobId, status int32, appPackageName string) error
	OnCustomPrinterIconLoaded(ctx context.Context, printerId PrinterId, icon drawable.Icon, callbacks IPrintSpoolerCallbacks, sequence int32) error
	GetCustomPrinterIcon(ctx context.Context, printerId PrinterId, callbacks IPrintSpoolerCallbacks, sequence int32) error
	ClearCustomPrinterIconCache(ctx context.Context, callbacks IPrintSpoolerCallbacks, sequence int32) error
	SetPrintJobTag(ctx context.Context, printJobId PrintJobId, tag string, callback IPrintSpoolerCallbacks, sequence int32) error
	WritePrintJobData(ctx context.Context, fd int32, printJobId PrintJobId) error
	SetClient(ctx context.Context, client IPrintSpoolerClient) error
	SetPrintJobCancelling(ctx context.Context, printJobId PrintJobId, cancelling bool) error
	PruneApprovedPrintServices(ctx context.Context, servicesToKeep []content.ComponentName) error
}

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

type IPrinterDiscoveryObserver

type IPrinterDiscoveryObserver interface {
	AsBinder() binder.IBinder
	OnPrintersAdded(ctx context.Context, printers pm.ParceledListSlice) error
	OnPrintersRemoved(ctx context.Context, printerIds pm.ParceledListSlice) error
}

func NewPrinterDiscoveryObserverStub

func NewPrinterDiscoveryObserverStub(
	impl IPrinterDiscoveryObserverServer,
) IPrinterDiscoveryObserver

NewPrinterDiscoveryObserverStub creates a server-side IPrinterDiscoveryObserver wrapping the given server implementation. The returned value satisfies IPrinterDiscoveryObserver 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 IPrinterDiscoveryObserverServer

type IPrinterDiscoveryObserverServer interface {
	OnPrintersAdded(ctx context.Context, printers pm.ParceledListSlice) error
	OnPrintersRemoved(ctx context.Context, printerIds pm.ParceledListSlice) error
}

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

type IWriteResultCallback

type IWriteResultCallback interface {
	AsBinder() binder.IBinder
	OnWriteStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
	OnWriteFinished(ctx context.Context, pages []PageRange, sequence int32) error
	OnWriteFailed(ctx context.Context, error_ string, sequence int32) error
	OnWriteCanceled(ctx context.Context, sequence int32) error
}

func NewWriteResultCallbackStub

func NewWriteResultCallbackStub(
	impl IWriteResultCallbackServer,
) IWriteResultCallback

NewWriteResultCallbackStub creates a server-side IWriteResultCallback wrapping the given server implementation. The returned value satisfies IWriteResultCallback 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 IWriteResultCallbackServer

type IWriteResultCallbackServer interface {
	OnWriteStarted(ctx context.Context, cancellation os.ICancellationSignal, sequence int32) error
	OnWriteFinished(ctx context.Context, pages []PageRange, sequence int32) error
	OnWriteFailed(ctx context.Context, error_ string, sequence int32) error
	OnWriteCanceled(ctx context.Context, sequence int32) error
}

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

type LayoutResultCallbackProxy

type LayoutResultCallbackProxy struct {
	Remote binder.IBinder
}

func NewLayoutResultCallbackProxy

func NewLayoutResultCallbackProxy(
	remote binder.IBinder,
) *LayoutResultCallbackProxy

func (*LayoutResultCallbackProxy) AsBinder

func (*LayoutResultCallbackProxy) OnLayoutCanceled

func (p *LayoutResultCallbackProxy) OnLayoutCanceled(
	ctx context.Context,
	sequence int32,
) error

func (*LayoutResultCallbackProxy) OnLayoutFailed

func (p *LayoutResultCallbackProxy) OnLayoutFailed(
	ctx context.Context,
	error_ string,
	sequence int32,
) error

func (*LayoutResultCallbackProxy) OnLayoutFinished

func (p *LayoutResultCallbackProxy) OnLayoutFinished(
	ctx context.Context,
	info PrintDocumentInfo,
	changed bool,
	sequence int32,
) error

func (*LayoutResultCallbackProxy) OnLayoutStarted

func (p *LayoutResultCallbackProxy) OnLayoutStarted(
	ctx context.Context,
	cancellation os.ICancellationSignal,
	sequence int32,
) error

type LayoutResultCallbackStub

type LayoutResultCallbackStub struct {
	Impl      ILayoutResultCallback
	Transport binder.VersionAwareTransport
}

LayoutResultCallbackStub dispatches incoming binder transactions to a typed ILayoutResultCallback implementation.

func (*LayoutResultCallbackStub) Descriptor

func (s *LayoutResultCallbackStub) Descriptor() string

func (*LayoutResultCallbackStub) OnTransaction

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

type PageRange

type PageRange struct {
	Start int32
	End   int32
}

func (*PageRange) MarshalParcel

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

func (*PageRange) UnmarshalParcel

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

type PrintAttributes

type PrintAttributes struct {
	ColorMode  int32
	DuplexMode int32
}

func (*PrintAttributes) MarshalParcel

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

func (*PrintAttributes) UnmarshalParcel

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

type PrintDocumentAdapterObserverProxy

type PrintDocumentAdapterObserverProxy struct {
	Remote binder.IBinder
}

func NewPrintDocumentAdapterObserverProxy

func NewPrintDocumentAdapterObserverProxy(
	remote binder.IBinder,
) *PrintDocumentAdapterObserverProxy

func (*PrintDocumentAdapterObserverProxy) AsBinder

func (*PrintDocumentAdapterObserverProxy) OnDestroy

type PrintDocumentAdapterObserverStub

type PrintDocumentAdapterObserverStub struct {
	Impl      IPrintDocumentAdapterObserver
	Transport binder.VersionAwareTransport
}

PrintDocumentAdapterObserverStub dispatches incoming binder transactions to a typed IPrintDocumentAdapterObserver implementation.

func (*PrintDocumentAdapterObserverStub) Descriptor

func (s *PrintDocumentAdapterObserverStub) Descriptor() string

func (*PrintDocumentAdapterObserverStub) OnTransaction

type PrintDocumentAdapterProxy

type PrintDocumentAdapterProxy struct {
	Remote binder.IBinder
}

func NewPrintDocumentAdapterProxy

func NewPrintDocumentAdapterProxy(
	remote binder.IBinder,
) *PrintDocumentAdapterProxy

func (*PrintDocumentAdapterProxy) AsBinder

func (*PrintDocumentAdapterProxy) Finish

func (p *PrintDocumentAdapterProxy) Finish(
	ctx context.Context,
) error

func (*PrintDocumentAdapterProxy) Kill

func (p *PrintDocumentAdapterProxy) Kill(
	ctx context.Context,
	reason string,
) error

func (*PrintDocumentAdapterProxy) Layout

func (p *PrintDocumentAdapterProxy) Layout(
	ctx context.Context,
	oldAttributes PrintAttributes,
	newAttributes PrintAttributes,
	callback ILayoutResultCallback,
	metadata os.Bundle,
	sequence int32,
) error

func (*PrintDocumentAdapterProxy) SetObserver

func (*PrintDocumentAdapterProxy) Start

func (*PrintDocumentAdapterProxy) Write

func (p *PrintDocumentAdapterProxy) Write(
	ctx context.Context,
	pages []PageRange,
	fd int32,
	callback IWriteResultCallback,
	sequence int32,
) error

type PrintDocumentAdapterStub

type PrintDocumentAdapterStub struct {
	Impl      IPrintDocumentAdapter
	Transport binder.VersionAwareTransport
}

PrintDocumentAdapterStub dispatches incoming binder transactions to a typed IPrintDocumentAdapter implementation.

func (*PrintDocumentAdapterStub) Descriptor

func (s *PrintDocumentAdapterStub) Descriptor() string

func (*PrintDocumentAdapterStub) OnTransaction

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

type PrintDocumentInfo

type PrintDocumentInfo struct {
	Name        string
	PageCount   int32
	ContentType int32
	DataSize    int64
}

func (*PrintDocumentInfo) MarshalParcel

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

func (*PrintDocumentInfo) UnmarshalParcel

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

type PrintJobId

type PrintJobId struct {
	Value string
}

func (*PrintJobId) MarshalParcel

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

func (*PrintJobId) UnmarshalParcel

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

type PrintJobInfo

type PrintJobInfo struct {
	Label        string
	PrinterName  string
	State        int32
	AppId        int32
	Tag          string
	CreationTime int64
	Copies       int32
	Progress     float32
	StatusRes    int32
	PrinterId    *PrinterId
}

func (*PrintJobInfo) MarshalParcel

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

func (*PrintJobInfo) UnmarshalParcel

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

type PrintJobStateChangeListenerProxy

type PrintJobStateChangeListenerProxy struct {
	Remote binder.IBinder
}

func NewPrintJobStateChangeListenerProxy

func NewPrintJobStateChangeListenerProxy(
	remote binder.IBinder,
) *PrintJobStateChangeListenerProxy

func (*PrintJobStateChangeListenerProxy) AsBinder

func (*PrintJobStateChangeListenerProxy) OnPrintJobStateChanged

func (p *PrintJobStateChangeListenerProxy) OnPrintJobStateChanged(
	ctx context.Context,
	printJobId PrintJobId,
) error

type PrintJobStateChangeListenerStub

type PrintJobStateChangeListenerStub struct {
	Impl      IPrintJobStateChangeListener
	Transport binder.VersionAwareTransport
}

PrintJobStateChangeListenerStub dispatches incoming binder transactions to a typed IPrintJobStateChangeListener implementation.

func (*PrintJobStateChangeListenerStub) Descriptor

func (s *PrintJobStateChangeListenerStub) Descriptor() string

func (*PrintJobStateChangeListenerStub) OnTransaction

type PrintManagerProxy

type PrintManagerProxy struct {
	Remote binder.IBinder
}

func GetPrintManager

func GetPrintManager(
	ctx context.Context,
	sm *servicemanager.ServiceManager,
) (*PrintManagerProxy, error)

GetPrintManager retrieves the PrintService service and returns a typed proxy.

func NewPrintManagerProxy

func NewPrintManagerProxy(
	remote binder.IBinder,
) *PrintManagerProxy

func (*PrintManagerProxy) AddPrintJobStateChangeListener

func (p *PrintManagerProxy) AddPrintJobStateChangeListener(
	ctx context.Context,
	listener IPrintJobStateChangeListener,
	appId int32,
) error

func (*PrintManagerProxy) AddPrintServiceRecommendationsChangeListener

func (p *PrintManagerProxy) AddPrintServiceRecommendationsChangeListener(
	ctx context.Context,
	listener recommendation.IRecommendationsChangeListener,
) error

func (*PrintManagerProxy) AddPrintServicesChangeListener

func (p *PrintManagerProxy) AddPrintServicesChangeListener(
	ctx context.Context,
	listener IPrintServicesChangeListener,
) error

func (*PrintManagerProxy) AsBinder

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

func (*PrintManagerProxy) CancelPrintJob

func (p *PrintManagerProxy) CancelPrintJob(
	ctx context.Context,
	printJobId PrintJobId,
	appId int32,
) error

func (*PrintManagerProxy) CreatePrinterDiscoverySession

func (p *PrintManagerProxy) CreatePrinterDiscoverySession(
	ctx context.Context,
	observer IPrinterDiscoveryObserver,
) error

func (*PrintManagerProxy) DestroyPrinterDiscoverySession

func (p *PrintManagerProxy) DestroyPrinterDiscoverySession(
	ctx context.Context,
	observer IPrinterDiscoveryObserver,
) error

func (*PrintManagerProxy) GetBindInstantServiceAllowed

func (p *PrintManagerProxy) GetBindInstantServiceAllowed(
	ctx context.Context,
) (bool, error)

func (*PrintManagerProxy) GetCustomPrinterIcon

func (p *PrintManagerProxy) GetCustomPrinterIcon(
	ctx context.Context,
	printerId PrinterId,
) (drawable.Icon, error)

func (*PrintManagerProxy) GetPrintJobInfo

func (p *PrintManagerProxy) GetPrintJobInfo(
	ctx context.Context,
	printJobId PrintJobId,
	appId int32,
) (PrintJobInfo, error)

func (*PrintManagerProxy) GetPrintJobInfos

func (p *PrintManagerProxy) GetPrintJobInfos(
	ctx context.Context,
	appId int32,
) ([]PrintJobInfo, error)

func (*PrintManagerProxy) GetPrintServiceRecommendations

func (p *PrintManagerProxy) GetPrintServiceRecommendations(
	ctx context.Context,
) ([]recommendation.RecommendationInfo, error)

func (*PrintManagerProxy) GetPrintServices

func (p *PrintManagerProxy) GetPrintServices(
	ctx context.Context,
	selectionFlags int32,
) ([]printservice.PrintServiceInfo, error)

func (*PrintManagerProxy) IsPrintServiceEnabled

func (p *PrintManagerProxy) IsPrintServiceEnabled(
	ctx context.Context,
	service content.ComponentName,
) (bool, error)

func (*PrintManagerProxy) Print

func (p *PrintManagerProxy) Print(
	ctx context.Context,
	printJobName string,
	printAdapter IPrintDocumentAdapter,
	attributes PrintAttributes,
	packageName string,
	appId int32,
) (os.Bundle, error)

func (*PrintManagerProxy) RemovePrintJobStateChangeListener

func (p *PrintManagerProxy) RemovePrintJobStateChangeListener(
	ctx context.Context,
	listener IPrintJobStateChangeListener,
) error

func (*PrintManagerProxy) RemovePrintServiceRecommendationsChangeListener

func (p *PrintManagerProxy) RemovePrintServiceRecommendationsChangeListener(
	ctx context.Context,
	listener recommendation.IRecommendationsChangeListener,
) error

func (*PrintManagerProxy) RemovePrintServicesChangeListener

func (p *PrintManagerProxy) RemovePrintServicesChangeListener(
	ctx context.Context,
	listener IPrintServicesChangeListener,
) error

func (*PrintManagerProxy) RestartPrintJob

func (p *PrintManagerProxy) RestartPrintJob(
	ctx context.Context,
	printJobId PrintJobId,
	appId int32,
) error

func (*PrintManagerProxy) SetBindInstantServiceAllowed

func (p *PrintManagerProxy) SetBindInstantServiceAllowed(
	ctx context.Context,
	allowed bool,
) error

func (*PrintManagerProxy) SetPrintServiceEnabled

func (p *PrintManagerProxy) SetPrintServiceEnabled(
	ctx context.Context,
	service content.ComponentName,
	isEnabled bool,
) error

func (*PrintManagerProxy) StartPrinterDiscovery

func (p *PrintManagerProxy) StartPrinterDiscovery(
	ctx context.Context,
	observer IPrinterDiscoveryObserver,
	priorityList []PrinterId,
) error

func (*PrintManagerProxy) StartPrinterStateTracking

func (p *PrintManagerProxy) StartPrinterStateTracking(
	ctx context.Context,
	printerId PrinterId,
) error

func (*PrintManagerProxy) StopPrinterDiscovery

func (p *PrintManagerProxy) StopPrinterDiscovery(
	ctx context.Context,
	observer IPrinterDiscoveryObserver,
) error

func (*PrintManagerProxy) StopPrinterStateTracking

func (p *PrintManagerProxy) StopPrinterStateTracking(
	ctx context.Context,
	printerId PrinterId,
) error

func (*PrintManagerProxy) ValidatePrinters

func (p *PrintManagerProxy) ValidatePrinters(
	ctx context.Context,
	printerIds []PrinterId,
) error

type PrintManagerStub

type PrintManagerStub struct {
	Impl      IPrintManager
	Transport binder.VersionAwareTransport
}

PrintManagerStub dispatches incoming binder transactions to a typed IPrintManager implementation.

func (*PrintManagerStub) Descriptor

func (s *PrintManagerStub) Descriptor() string

func (*PrintManagerStub) OnTransaction

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

type PrintServicesChangeListenerProxy

type PrintServicesChangeListenerProxy struct {
	Remote binder.IBinder
}

func NewPrintServicesChangeListenerProxy

func NewPrintServicesChangeListenerProxy(
	remote binder.IBinder,
) *PrintServicesChangeListenerProxy

func (*PrintServicesChangeListenerProxy) AsBinder

func (*PrintServicesChangeListenerProxy) OnPrintServicesChanged

func (p *PrintServicesChangeListenerProxy) OnPrintServicesChanged(
	ctx context.Context,
) error

type PrintServicesChangeListenerStub

type PrintServicesChangeListenerStub struct {
	Impl      IPrintServicesChangeListener
	Transport binder.VersionAwareTransport
}

PrintServicesChangeListenerStub dispatches incoming binder transactions to a typed IPrintServicesChangeListener implementation.

func (*PrintServicesChangeListenerStub) Descriptor

func (s *PrintServicesChangeListenerStub) Descriptor() string

func (*PrintServicesChangeListenerStub) OnTransaction

type PrintSpoolerCallbacksProxy

type PrintSpoolerCallbacksProxy struct {
	Remote binder.IBinder
}

func NewPrintSpoolerCallbacksProxy

func NewPrintSpoolerCallbacksProxy(
	remote binder.IBinder,
) *PrintSpoolerCallbacksProxy

func (*PrintSpoolerCallbacksProxy) AsBinder

func (*PrintSpoolerCallbacksProxy) CustomPrinterIconCacheCleared

func (p *PrintSpoolerCallbacksProxy) CustomPrinterIconCacheCleared(
	ctx context.Context,
	sequence int32,
) error

func (*PrintSpoolerCallbacksProxy) OnCancelPrintJobResult

func (p *PrintSpoolerCallbacksProxy) OnCancelPrintJobResult(
	ctx context.Context,
	canceled bool,
	sequence int32,
) error

func (*PrintSpoolerCallbacksProxy) OnCustomPrinterIconCached

func (p *PrintSpoolerCallbacksProxy) OnCustomPrinterIconCached(
	ctx context.Context,
	sequence int32,
) error

func (*PrintSpoolerCallbacksProxy) OnGetCustomPrinterIconResult

func (p *PrintSpoolerCallbacksProxy) OnGetCustomPrinterIconResult(
	ctx context.Context,
	icon drawable.Icon,
	sequence int32,
) error

func (*PrintSpoolerCallbacksProxy) OnGetPrintJobInfoResult

func (p *PrintSpoolerCallbacksProxy) OnGetPrintJobInfoResult(
	ctx context.Context,
	printJob PrintJobInfo,
	sequence int32,
) error

func (*PrintSpoolerCallbacksProxy) OnGetPrintJobInfosResult

func (p *PrintSpoolerCallbacksProxy) OnGetPrintJobInfosResult(
	ctx context.Context,
	printJob []PrintJobInfo,
	sequence int32,
) error

func (*PrintSpoolerCallbacksProxy) OnSetPrintJobStateResult

func (p *PrintSpoolerCallbacksProxy) OnSetPrintJobStateResult(
	ctx context.Context,
	success bool,
	sequence int32,
) error

func (*PrintSpoolerCallbacksProxy) OnSetPrintJobTagResult

func (p *PrintSpoolerCallbacksProxy) OnSetPrintJobTagResult(
	ctx context.Context,
	success bool,
	sequence int32,
) error

type PrintSpoolerCallbacksStub

type PrintSpoolerCallbacksStub struct {
	Impl      IPrintSpoolerCallbacks
	Transport binder.VersionAwareTransport
}

PrintSpoolerCallbacksStub dispatches incoming binder transactions to a typed IPrintSpoolerCallbacks implementation.

func (*PrintSpoolerCallbacksStub) Descriptor

func (s *PrintSpoolerCallbacksStub) Descriptor() string

func (*PrintSpoolerCallbacksStub) OnTransaction

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

type PrintSpoolerClientProxy

type PrintSpoolerClientProxy struct {
	Remote binder.IBinder
}

func NewPrintSpoolerClientProxy

func NewPrintSpoolerClientProxy(
	remote binder.IBinder,
) *PrintSpoolerClientProxy

func (*PrintSpoolerClientProxy) AsBinder

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

func (*PrintSpoolerClientProxy) OnAllPrintJobsForServiceHandled

func (p *PrintSpoolerClientProxy) OnAllPrintJobsForServiceHandled(
	ctx context.Context,
	printService content.ComponentName,
) error

func (*PrintSpoolerClientProxy) OnAllPrintJobsHandled

func (p *PrintSpoolerClientProxy) OnAllPrintJobsHandled(
	ctx context.Context,
) error

func (*PrintSpoolerClientProxy) OnPrintJobQueued

func (p *PrintSpoolerClientProxy) OnPrintJobQueued(
	ctx context.Context,
	printJob PrintJobInfo,
) error

func (*PrintSpoolerClientProxy) OnPrintJobStateChanged

func (p *PrintSpoolerClientProxy) OnPrintJobStateChanged(
	ctx context.Context,
	printJob PrintJobInfo,
) error

type PrintSpoolerClientStub

type PrintSpoolerClientStub struct {
	Impl      IPrintSpoolerClient
	Transport binder.VersionAwareTransport
}

PrintSpoolerClientStub dispatches incoming binder transactions to a typed IPrintSpoolerClient implementation.

func (*PrintSpoolerClientStub) Descriptor

func (s *PrintSpoolerClientStub) Descriptor() string

func (*PrintSpoolerClientStub) OnTransaction

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

type PrintSpoolerProxy

type PrintSpoolerProxy struct {
	Remote binder.IBinder
}

func NewPrintSpoolerProxy

func NewPrintSpoolerProxy(
	remote binder.IBinder,
) *PrintSpoolerProxy

func (*PrintSpoolerProxy) AsBinder

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

func (*PrintSpoolerProxy) ClearCustomPrinterIconCache

func (p *PrintSpoolerProxy) ClearCustomPrinterIconCache(
	ctx context.Context,
	callbacks IPrintSpoolerCallbacks,
	sequence int32,
) error

func (*PrintSpoolerProxy) CreatePrintJob

func (p *PrintSpoolerProxy) CreatePrintJob(
	ctx context.Context,
	printJob PrintJobInfo,
) error

func (*PrintSpoolerProxy) GetCustomPrinterIcon

func (p *PrintSpoolerProxy) GetCustomPrinterIcon(
	ctx context.Context,
	printerId PrinterId,
	callbacks IPrintSpoolerCallbacks,
	sequence int32,
) error

func (*PrintSpoolerProxy) GetPrintJobInfo

func (p *PrintSpoolerProxy) GetPrintJobInfo(
	ctx context.Context,
	printJobId PrintJobId,
	callback IPrintSpoolerCallbacks,
	appId int32,
	sequence int32,
) error

func (*PrintSpoolerProxy) GetPrintJobInfos

func (p *PrintSpoolerProxy) GetPrintJobInfos(
	ctx context.Context,
	callback IPrintSpoolerCallbacks,
	componentName content.ComponentName,
	state int32,
	appId int32,
	sequence int32,
) error

func (*PrintSpoolerProxy) OnCustomPrinterIconLoaded

func (p *PrintSpoolerProxy) OnCustomPrinterIconLoaded(
	ctx context.Context,
	printerId PrinterId,
	icon drawable.Icon,
	callbacks IPrintSpoolerCallbacks,
	sequence int32,
) error

func (*PrintSpoolerProxy) PruneApprovedPrintServices

func (p *PrintSpoolerProxy) PruneApprovedPrintServices(
	ctx context.Context,
	servicesToKeep []content.ComponentName,
) error

func (*PrintSpoolerProxy) RemoveObsoletePrintJobs

func (p *PrintSpoolerProxy) RemoveObsoletePrintJobs(
	ctx context.Context,
) error

func (*PrintSpoolerProxy) SetClient

func (p *PrintSpoolerProxy) SetClient(
	ctx context.Context,
	client IPrintSpoolerClient,
) error

func (*PrintSpoolerProxy) SetPrintJobCancelling

func (p *PrintSpoolerProxy) SetPrintJobCancelling(
	ctx context.Context,
	printJobId PrintJobId,
	cancelling bool,
) error

func (*PrintSpoolerProxy) SetPrintJobState

func (p *PrintSpoolerProxy) SetPrintJobState(
	ctx context.Context,
	printJobId PrintJobId,
	status int32,
	stateReason string,
	callback IPrintSpoolerCallbacks,
	sequence int32,
) error

func (*PrintSpoolerProxy) SetPrintJobTag

func (p *PrintSpoolerProxy) SetPrintJobTag(
	ctx context.Context,
	printJobId PrintJobId,
	tag string,
	callback IPrintSpoolerCallbacks,
	sequence int32,
) error

func (*PrintSpoolerProxy) SetProgress

func (p *PrintSpoolerProxy) SetProgress(
	ctx context.Context,
	printJobId PrintJobId,
	progress float32,
) error

func (*PrintSpoolerProxy) SetStatus

func (p *PrintSpoolerProxy) SetStatus(
	ctx context.Context,
	printJobId PrintJobId,
	status string,
) error

func (*PrintSpoolerProxy) SetStatusRes

func (p *PrintSpoolerProxy) SetStatusRes(
	ctx context.Context,
	printJobId PrintJobId,
	status int32,
	appPackageName string,
) error

func (*PrintSpoolerProxy) WritePrintJobData

func (p *PrintSpoolerProxy) WritePrintJobData(
	ctx context.Context,
	fd int32,
	printJobId PrintJobId,
) error

type PrintSpoolerStub

type PrintSpoolerStub struct {
	Impl      IPrintSpooler
	Transport binder.VersionAwareTransport
}

PrintSpoolerStub dispatches incoming binder transactions to a typed IPrintSpooler implementation.

func (*PrintSpoolerStub) Descriptor

func (s *PrintSpoolerStub) Descriptor() string

func (*PrintSpoolerStub) OnTransaction

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

type PrinterCapabilitiesInfo

type PrinterCapabilitiesInfo struct {
	ColorModes  int32
	DuplexModes int32
}

func (*PrinterCapabilitiesInfo) MarshalParcel

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

func (*PrinterCapabilitiesInfo) UnmarshalParcel

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

type PrinterDiscoveryObserverProxy

type PrinterDiscoveryObserverProxy struct {
	Remote binder.IBinder
}

func NewPrinterDiscoveryObserverProxy

func NewPrinterDiscoveryObserverProxy(
	remote binder.IBinder,
) *PrinterDiscoveryObserverProxy

func (*PrinterDiscoveryObserverProxy) AsBinder

func (*PrinterDiscoveryObserverProxy) OnPrintersAdded

func (p *PrinterDiscoveryObserverProxy) OnPrintersAdded(
	ctx context.Context,
	printers pm.ParceledListSlice,
) error

func (*PrinterDiscoveryObserverProxy) OnPrintersRemoved

func (p *PrinterDiscoveryObserverProxy) OnPrintersRemoved(
	ctx context.Context,
	printerIds pm.ParceledListSlice,
) error

type PrinterDiscoveryObserverStub

type PrinterDiscoveryObserverStub struct {
	Impl      IPrinterDiscoveryObserver
	Transport binder.VersionAwareTransport
}

PrinterDiscoveryObserverStub dispatches incoming binder transactions to a typed IPrinterDiscoveryObserver implementation.

func (*PrinterDiscoveryObserverStub) Descriptor

func (s *PrinterDiscoveryObserverStub) Descriptor() string

func (*PrinterDiscoveryObserverStub) OnTransaction

type PrinterId

type PrinterId struct {
	LocalId string
}

func (*PrinterId) MarshalParcel

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

func (*PrinterId) UnmarshalParcel

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

type PrinterInfo

type PrinterInfo struct {
	Name                 string
	Status               int32
	Description          string
	IconResourceId       int32
	CustomPrinterIconGen int32
	Capabilities         *neuralnetworks.Capabilities
}

func (*PrinterInfo) MarshalParcel

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

func (*PrinterInfo) UnmarshalParcel

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

type WriteResultCallbackProxy

type WriteResultCallbackProxy struct {
	Remote binder.IBinder
}

func NewWriteResultCallbackProxy

func NewWriteResultCallbackProxy(
	remote binder.IBinder,
) *WriteResultCallbackProxy

func (*WriteResultCallbackProxy) AsBinder

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

func (*WriteResultCallbackProxy) OnWriteCanceled

func (p *WriteResultCallbackProxy) OnWriteCanceled(
	ctx context.Context,
	sequence int32,
) error

func (*WriteResultCallbackProxy) OnWriteFailed

func (p *WriteResultCallbackProxy) OnWriteFailed(
	ctx context.Context,
	error_ string,
	sequence int32,
) error

func (*WriteResultCallbackProxy) OnWriteFinished

func (p *WriteResultCallbackProxy) OnWriteFinished(
	ctx context.Context,
	pages []PageRange,
	sequence int32,
) error

func (*WriteResultCallbackProxy) OnWriteStarted

func (p *WriteResultCallbackProxy) OnWriteStarted(
	ctx context.Context,
	cancellation os.ICancellationSignal,
	sequence int32,
) error

type WriteResultCallbackStub

type WriteResultCallbackStub struct {
	Impl      IWriteResultCallback
	Transport binder.VersionAwareTransport
}

WriteResultCallbackStub dispatches incoming binder transactions to a typed IWriteResultCallback implementation.

func (*WriteResultCallbackStub) Descriptor

func (s *WriteResultCallbackStub) Descriptor() string

func (*WriteResultCallbackStub) OnTransaction

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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