Documentation
¶
Index ¶
- Constants
- type AudioConfigChangedCallbackProxy
- func (p *AudioConfigChangedCallbackProxy) AsBinder() binder.IBinder
- func (p *AudioConfigChangedCallbackProxy) OnPlaybackConfigChanged(ctx context.Context, configs []media.AudioPlaybackConfiguration) error
- func (p *AudioConfigChangedCallbackProxy) OnRecordingConfigChanged(ctx context.Context, configs []media.AudioRecordingConfiguration) error
- type AudioConfigChangedCallbackStub
- type AudioRoutingCallbackProxy
- type AudioRoutingCallbackStub
- type IAudioConfigChangedCallback
- type IAudioConfigChangedCallbackServer
- type IAudioRoutingCallback
- type IAudioRoutingCallbackServer
Constants ¶
const ( TransactionIAudioConfigChangedCallbackOnPlaybackConfigChanged = binder.FirstCallTransaction + 0 TransactionIAudioConfigChangedCallbackOnRecordingConfigChanged = binder.FirstCallTransaction + 1 )
const ( MethodIAudioConfigChangedCallbackOnPlaybackConfigChanged = "onPlaybackConfigChanged" MethodIAudioConfigChangedCallbackOnRecordingConfigChanged = "onRecordingConfigChanged" )
const DescriptorIAudioConfigChangedCallback = "android.companion.virtual.audio.IAudioConfigChangedCallback"
const DescriptorIAudioRoutingCallback = "android.companion.virtual.audio.IAudioRoutingCallback"
const (
MethodIAudioRoutingCallbackOnAppsNeedingAudioRoutingChanged = "onAppsNeedingAudioRoutingChanged"
)
const (
TransactionIAudioRoutingCallbackOnAppsNeedingAudioRoutingChanged = binder.FirstCallTransaction + 0
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioConfigChangedCallbackProxy ¶
func NewAudioConfigChangedCallbackProxy ¶
func NewAudioConfigChangedCallbackProxy( remote binder.IBinder, ) *AudioConfigChangedCallbackProxy
func (*AudioConfigChangedCallbackProxy) AsBinder ¶
func (p *AudioConfigChangedCallbackProxy) AsBinder() binder.IBinder
func (*AudioConfigChangedCallbackProxy) OnPlaybackConfigChanged ¶
func (p *AudioConfigChangedCallbackProxy) OnPlaybackConfigChanged( ctx context.Context, configs []media.AudioPlaybackConfiguration, ) error
func (*AudioConfigChangedCallbackProxy) OnRecordingConfigChanged ¶
func (p *AudioConfigChangedCallbackProxy) OnRecordingConfigChanged( ctx context.Context, configs []media.AudioRecordingConfiguration, ) error
type AudioConfigChangedCallbackStub ¶
type AudioConfigChangedCallbackStub struct {
Impl IAudioConfigChangedCallback
Transport binder.VersionAwareTransport
}
AudioConfigChangedCallbackStub dispatches incoming binder transactions to a typed IAudioConfigChangedCallback implementation.
func (*AudioConfigChangedCallbackStub) Descriptor ¶
func (s *AudioConfigChangedCallbackStub) Descriptor() string
func (*AudioConfigChangedCallbackStub) OnTransaction ¶
func (s *AudioConfigChangedCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type AudioRoutingCallbackProxy ¶
func NewAudioRoutingCallbackProxy ¶
func NewAudioRoutingCallbackProxy( remote binder.IBinder, ) *AudioRoutingCallbackProxy
func (*AudioRoutingCallbackProxy) AsBinder ¶
func (p *AudioRoutingCallbackProxy) AsBinder() binder.IBinder
func (*AudioRoutingCallbackProxy) OnAppsNeedingAudioRoutingChanged ¶
func (p *AudioRoutingCallbackProxy) OnAppsNeedingAudioRoutingChanged( ctx context.Context, appUids []int32, ) error
type AudioRoutingCallbackStub ¶
type AudioRoutingCallbackStub struct {
Impl IAudioRoutingCallback
Transport binder.VersionAwareTransport
}
AudioRoutingCallbackStub dispatches incoming binder transactions to a typed IAudioRoutingCallback implementation.
func (*AudioRoutingCallbackStub) Descriptor ¶
func (s *AudioRoutingCallbackStub) Descriptor() string
func (*AudioRoutingCallbackStub) OnTransaction ¶
func (s *AudioRoutingCallbackStub) OnTransaction( ctx context.Context, code binder.TransactionCode, _data *parcel.Parcel, ) (*parcel.Parcel, error)
type IAudioConfigChangedCallback ¶
type IAudioConfigChangedCallback interface {
AsBinder() binder.IBinder
OnPlaybackConfigChanged(ctx context.Context, configs []media.AudioPlaybackConfiguration) error
OnRecordingConfigChanged(ctx context.Context, configs []media.AudioRecordingConfiguration) error
}
func NewAudioConfigChangedCallbackStub ¶
func NewAudioConfigChangedCallbackStub( impl IAudioConfigChangedCallbackServer, ) IAudioConfigChangedCallback
NewAudioConfigChangedCallbackStub creates a server-side IAudioConfigChangedCallback wrapping the given server implementation. The returned value satisfies IAudioConfigChangedCallback 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 IAudioConfigChangedCallbackServer ¶
type IAudioConfigChangedCallbackServer interface {
OnPlaybackConfigChanged(ctx context.Context, configs []media.AudioPlaybackConfiguration) error
OnRecordingConfigChanged(ctx context.Context, configs []media.AudioRecordingConfiguration) error
}
IAudioConfigChangedCallbackServer is the server-side interface that user implementations provide to NewAudioConfigChangedCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).
type IAudioRoutingCallback ¶
type IAudioRoutingCallback interface {
AsBinder() binder.IBinder
OnAppsNeedingAudioRoutingChanged(ctx context.Context, appUids []int32) error
}
func NewAudioRoutingCallbackStub ¶
func NewAudioRoutingCallbackStub( impl IAudioRoutingCallbackServer, ) IAudioRoutingCallback
NewAudioRoutingCallbackStub creates a server-side IAudioRoutingCallback wrapping the given server implementation. The returned value satisfies IAudioRoutingCallback 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 IAudioRoutingCallbackServer ¶
type IAudioRoutingCallbackServer interface {
OnAppsNeedingAudioRoutingChanged(ctx context.Context, appUids []int32) error
}
IAudioRoutingCallbackServer is the server-side interface that user implementations provide to NewAudioRoutingCallbackStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).