sounddose

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DescriptorISoundDoseFactory = "android.hardware.audio.sounddose.ISoundDoseFactory"
View Source
const (
	MethodISoundDoseFactoryGetSoundDose = "getSoundDose"
)
View Source
const (
	TransactionISoundDoseFactoryGetSoundDose = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ISoundDoseFactory

type ISoundDoseFactory interface {
	AsBinder() binder.IBinder
	GetSoundDose(ctx context.Context, module string) (coreSounddose.ISoundDose, error)
}

func NewSoundDoseFactoryStub

func NewSoundDoseFactoryStub(
	impl ISoundDoseFactoryServer,
) ISoundDoseFactory

NewSoundDoseFactoryStub creates a server-side ISoundDoseFactory wrapping the given server implementation. The returned value satisfies ISoundDoseFactory 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 ISoundDoseFactoryServer

type ISoundDoseFactoryServer interface {
	GetSoundDose(ctx context.Context, module string) (coreSounddose.ISoundDose, error)
}

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

type SoundDoseFactoryProxy

type SoundDoseFactoryProxy struct {
	Remote binder.IBinder
}

func NewSoundDoseFactoryProxy

func NewSoundDoseFactoryProxy(
	remote binder.IBinder,
) *SoundDoseFactoryProxy

func (*SoundDoseFactoryProxy) AsBinder

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

func (*SoundDoseFactoryProxy) GetSoundDose

func (p *SoundDoseFactoryProxy) GetSoundDose(
	ctx context.Context,
	module string,
) (coreSounddose.ISoundDose, error)

type SoundDoseFactoryStub

type SoundDoseFactoryStub struct {
	Impl      ISoundDoseFactory
	Transport binder.VersionAwareTransport
}

SoundDoseFactoryStub dispatches incoming binder transactions to a typed ISoundDoseFactory implementation.

func (*SoundDoseFactoryStub) Descriptor

func (s *SoundDoseFactoryStub) Descriptor() string

func (*SoundDoseFactoryStub) OnTransaction

func (s *SoundDoseFactoryStub) 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