Documentation
¶
Index ¶
- type Client
- func (c *Client) AbandonAudioFocus(ctx context.Context, arg0 int64) (int32, error)
- func (c *Client) AbandonAudioFocusRequestOp(ctx context.Context, arg0 int64) (int32, error)
- func (c *Client) AddOnCommunicationDeviceChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) AddOnModeChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) AddOnPreferredMixerAttributesChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
- func (c *Client) AdjustStreamVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error
- func (c *Client) AdjustSuggestedStreamVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error
- func (c *Client) AdjustVolume(ctx context.Context, arg0 int32, arg1 int32) error
- func (c *Client) AdjustVolumeGroupVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error
- func (c *Client) ClearCommunicationDevice(ctx context.Context) error
- func (c *Client) ClearPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64) (bool, error)
- func (c *Client) DispatchMediaKeyEvent(ctx context.Context, arg0 int64) error
- func (c *Client) GenerateAudioSessionId(ctx context.Context) (int32, error)
- func (c *Client) GetActivePlaybackConfigurations(ctx context.Context) (int64, error)
- func (c *Client) GetActiveRecordingConfigurations(ctx context.Context) (int64, error)
- func (c *Client) GetAllowedCapturePolicy(ctx context.Context) (int32, error)
- func (c *Client) GetAudioDevicesForAttributes(ctx context.Context, arg0 int64) (int64, error)
- func (c *Client) GetAudioHwSyncForSession(ctx context.Context, arg0 int32) (int32, error)
- func (c *Client) GetAvailableCommunicationDevices(ctx context.Context) (int64, error)
- func (c *Client) GetCommunicationDevice(ctx context.Context) (int64, error)
- func (c *Client) GetDevices(ctx context.Context, arg0 int32) (int64, error)
- func (c *Client) GetDirectPlaybackSupport(ctx context.Context, arg0 int64, arg1 int64) (int32, error)
- func (c *Client) GetDirectProfilesForAttributes(ctx context.Context, arg0 int64) (int64, error)
- func (c *Client) GetEncodedSurroundMode(ctx context.Context) (int32, error)
- func (c *Client) GetMicrophones(ctx context.Context) (int64, error)
- func (c *Client) GetMode(ctx context.Context) (int32, error)
- func (c *Client) GetParameters(ctx context.Context, arg0 string) (string, error)
- func (c *Client) GetPlaybackOffloadSupport(ctx context.Context, arg0 int64, arg1 int64) (int32, error)
- func (c *Client) GetPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64) (int64, error)
- func (c *Client) GetProperty(ctx context.Context, arg0 string) (string, error)
- func (c *Client) GetRingerMode(ctx context.Context) (int32, error)
- func (c *Client) GetRouting(ctx context.Context, arg0 int32) (int32, error)
- func (c *Client) GetSpatializer(ctx context.Context) (int64, error)
- func (c *Client) GetStreamMaxVolume(ctx context.Context, arg0 int32) (int32, error)
- func (c *Client) GetStreamMinVolume(ctx context.Context, arg0 int32) (int32, error)
- func (c *Client) GetStreamVolume(ctx context.Context, arg0 int32) (int32, error)
- func (c *Client) GetStreamVolumeDb(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) (float32, error)
- func (c *Client) GetSupportedDeviceTypes(ctx context.Context, arg0 int32) (int64, error)
- func (c *Client) GetSupportedMixerAttributes(ctx context.Context, arg0 int64) (int64, error)
- func (c *Client) GetVibrateSetting(ctx context.Context, arg0 int32) (int32, error)
- func (c *Client) GetVolumeGroupIdForAttributes(ctx context.Context, arg0 int64) (int32, error)
- func (c *Client) IsBluetoothA2DpOn(ctx context.Context) (bool, error)
- func (c *Client) IsBluetoothScoAvailableOffCall(ctx context.Context) (bool, error)
- func (c *Client) IsBluetoothScoOn(ctx context.Context) (bool, error)
- func (c *Client) IsCallScreeningModeSupported(ctx context.Context) (bool, error)
- func (c *Client) IsHapticPlaybackSupported(ctx context.Context) (bool, error)
- func (c *Client) IsMicrophoneMute(ctx context.Context) (bool, error)
- func (c *Client) IsMusicActive(ctx context.Context) (bool, error)
- func (c *Client) IsOffloadedPlaybackSupported(ctx context.Context, arg0 int64, arg1 int64) (bool, error)
- func (c *Client) IsRampingRingerEnabled(ctx context.Context) (bool, error)
- func (c *Client) IsSpeakerphoneOn(ctx context.Context) (bool, error)
- func (c *Client) IsStreamMute(ctx context.Context, arg0 int32) (bool, error)
- func (c *Client) IsSurroundFormatEnabled(ctx context.Context, arg0 int32) (bool, error)
- func (c *Client) IsVolumeFixed(ctx context.Context) (bool, error)
- func (c *Client) IsVolumeGroupMuted(ctx context.Context, arg0 int32) (bool, error)
- func (c *Client) IsWiredHeadsetOn(ctx context.Context) (bool, error)
- func (c *Client) LoadSoundEffects(ctx context.Context) error
- func (c *Client) PlaySoundEffect1(ctx context.Context, arg0 int32) error
- func (c *Client) PlaySoundEffect2_1(ctx context.Context, arg0 int32, arg1 float32) error
- func (c *Client) RegisterMediaButtonEventReceiver1(ctx context.Context, arg0 int64) error
- func (c *Client) RegisterMediaButtonEventReceiver1_1(ctx context.Context, arg0 int64) error
- func (c *Client) RegisterRemoteControlClient(ctx context.Context, arg0 int64) error
- func (c *Client) RegisterRemoteController(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) RemoveOnCommunicationDeviceChangedListener(ctx context.Context, arg0 int64) error
- func (c *Client) RemoveOnModeChangedListener(ctx context.Context, arg0 int64) error
- func (c *Client) RemoveOnPreferredMixerAttributesChangedListener(ctx context.Context, arg0 int64) error
- func (c *Client) RequestAudioFocus1(ctx context.Context, arg0 int64) (int32, error)
- func (c *Client) RequestAudioFocus3_1(ctx context.Context, arg0 int64, arg1 int32, arg2 int32) (int32, error)
- func (c *Client) SetAllowedCapturePolicy(ctx context.Context, arg0 int32) error
- func (c *Client) SetBluetoothA2DpOn(ctx context.Context, arg0 bool) error
- func (c *Client) SetBluetoothScoOn(ctx context.Context, arg0 bool) error
- func (c *Client) SetCommunicationDevice(ctx context.Context, arg0 int64) (bool, error)
- func (c *Client) SetEncodedSurroundMode(ctx context.Context, arg0 int32) (bool, error)
- func (c *Client) SetMicrophoneMute(ctx context.Context, arg0 bool) error
- func (c *Client) SetMode(ctx context.Context, arg0 int32) error
- func (c *Client) SetParameters(ctx context.Context, arg0 string) error
- func (c *Client) SetPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64, arg2 int64) (bool, error)
- func (c *Client) SetRingerMode(ctx context.Context, arg0 int32) error
- func (c *Client) SetRouting(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error
- func (c *Client) SetSpeakerphoneOn(ctx context.Context, arg0 bool) error
- func (c *Client) SetStreamMute(ctx context.Context, arg0 int32, arg1 bool) error
- func (c *Client) SetStreamSolo(ctx context.Context, arg0 int32, arg1 bool) error
- func (c *Client) SetStreamVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error
- func (c *Client) SetSurroundFormatEnabled(ctx context.Context, arg0 int32, arg1 bool) (bool, error)
- func (c *Client) SetVibrateSetting(ctx context.Context, arg0 int32, arg1 int32) error
- func (c *Client) SetWiredHeadsetOn(ctx context.Context, arg0 bool) error
- func (c *Client) ShouldVibrate(ctx context.Context, arg0 int32) (bool, error)
- func (c *Client) StartBluetoothSco(ctx context.Context) error
- func (c *Client) StopBluetoothSco(ctx context.Context) error
- func (c *Client) UnloadSoundEffects(ctx context.Context) error
- func (c *Client) UnregisterAudioDeviceCallback(ctx context.Context, arg0 int64) error
- func (c *Client) UnregisterAudioPlaybackCallback(ctx context.Context, arg0 int64) error
- func (c *Client) UnregisterAudioRecordingCallback(ctx context.Context, arg0 int64) error
- func (c *Client) UnregisterMediaButtonEventReceiver1(ctx context.Context, arg0 int64) error
- func (c *Client) UnregisterMediaButtonEventReceiver1_1(ctx context.Context, arg0 int64) error
- func (c *Client) UnregisterRemoteControlClient(ctx context.Context, arg0 int64) error
- func (c *Client) UnregisterRemoteController(ctx context.Context, arg0 int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the gRPC AudioManagerService client.
func NewClient ¶
func NewClient(cc grpc.ClientConnInterface) *Client
NewClient creates a new audiomanager client.
func (*Client) AbandonAudioFocus ¶
AbandonAudioFocus calls the AbandonAudioFocus RPC.
func (*Client) AbandonAudioFocusRequestOp ¶
AbandonAudioFocusRequestOp calls the AbandonAudioFocusRequestOp RPC.
func (*Client) AddOnCommunicationDeviceChangedListener ¶
func (c *Client) AddOnCommunicationDeviceChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
AddOnCommunicationDeviceChangedListener calls the AddOnCommunicationDeviceChangedListener RPC.
func (*Client) AddOnModeChangedListener ¶
AddOnModeChangedListener calls the AddOnModeChangedListener RPC.
func (*Client) AddOnPreferredMixerAttributesChangedListener ¶
func (c *Client) AddOnPreferredMixerAttributesChangedListener(ctx context.Context, arg0 int64, arg1 int64) error
AddOnPreferredMixerAttributesChangedListener calls the AddOnPreferredMixerAttributesChangedListener RPC.
func (*Client) AdjustStreamVolume ¶
AdjustStreamVolume calls the AdjustStreamVolume RPC.
func (*Client) AdjustSuggestedStreamVolume ¶
func (c *Client) AdjustSuggestedStreamVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error
AdjustSuggestedStreamVolume calls the AdjustSuggestedStreamVolume RPC.
func (*Client) AdjustVolume ¶
AdjustVolume calls the AdjustVolume RPC.
func (*Client) AdjustVolumeGroupVolume ¶
func (c *Client) AdjustVolumeGroupVolume(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) error
AdjustVolumeGroupVolume calls the AdjustVolumeGroupVolume RPC.
func (*Client) ClearCommunicationDevice ¶
ClearCommunicationDevice calls the ClearCommunicationDevice RPC.
func (*Client) ClearPreferredMixerAttributes ¶
func (c *Client) ClearPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64) (bool, error)
ClearPreferredMixerAttributes calls the ClearPreferredMixerAttributes RPC.
func (*Client) DispatchMediaKeyEvent ¶
DispatchMediaKeyEvent calls the DispatchMediaKeyEvent RPC.
func (*Client) GenerateAudioSessionId ¶
GenerateAudioSessionId calls the GenerateAudioSessionId RPC.
func (*Client) GetActivePlaybackConfigurations ¶
GetActivePlaybackConfigurations calls the GetActivePlaybackConfigurations RPC.
func (*Client) GetActiveRecordingConfigurations ¶
GetActiveRecordingConfigurations calls the GetActiveRecordingConfigurations RPC.
func (*Client) GetAllowedCapturePolicy ¶
GetAllowedCapturePolicy calls the GetAllowedCapturePolicy RPC.
func (*Client) GetAudioDevicesForAttributes ¶
GetAudioDevicesForAttributes calls the GetAudioDevicesForAttributes RPC.
func (*Client) GetAudioHwSyncForSession ¶
GetAudioHwSyncForSession calls the GetAudioHwSyncForSession RPC.
func (*Client) GetAvailableCommunicationDevices ¶
GetAvailableCommunicationDevices calls the GetAvailableCommunicationDevices RPC.
func (*Client) GetCommunicationDevice ¶
GetCommunicationDevice calls the GetCommunicationDevice RPC.
func (*Client) GetDevices ¶
GetDevices calls the GetDevices RPC.
func (*Client) GetDirectPlaybackSupport ¶
func (c *Client) GetDirectPlaybackSupport(ctx context.Context, arg0 int64, arg1 int64) (int32, error)
GetDirectPlaybackSupport calls the GetDirectPlaybackSupport RPC.
func (*Client) GetDirectProfilesForAttributes ¶
GetDirectProfilesForAttributes calls the GetDirectProfilesForAttributes RPC.
func (*Client) GetEncodedSurroundMode ¶
GetEncodedSurroundMode calls the GetEncodedSurroundMode RPC.
func (*Client) GetMicrophones ¶
GetMicrophones calls the GetMicrophones RPC.
func (*Client) GetParameters ¶
GetParameters calls the GetParameters RPC.
func (*Client) GetPlaybackOffloadSupport ¶
func (c *Client) GetPlaybackOffloadSupport(ctx context.Context, arg0 int64, arg1 int64) (int32, error)
GetPlaybackOffloadSupport calls the GetPlaybackOffloadSupport RPC.
func (*Client) GetPreferredMixerAttributes ¶
func (c *Client) GetPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64) (int64, error)
GetPreferredMixerAttributes calls the GetPreferredMixerAttributes RPC.
func (*Client) GetProperty ¶
GetProperty calls the GetProperty RPC.
func (*Client) GetRingerMode ¶
GetRingerMode calls the GetRingerMode RPC.
func (*Client) GetRouting ¶
GetRouting calls the GetRouting RPC.
func (*Client) GetSpatializer ¶
GetSpatializer calls the GetSpatializer RPC.
func (*Client) GetStreamMaxVolume ¶
GetStreamMaxVolume calls the GetStreamMaxVolume RPC.
func (*Client) GetStreamMinVolume ¶
GetStreamMinVolume calls the GetStreamMinVolume RPC.
func (*Client) GetStreamVolume ¶
GetStreamVolume calls the GetStreamVolume RPC.
func (*Client) GetStreamVolumeDb ¶
func (c *Client) GetStreamVolumeDb(ctx context.Context, arg0 int32, arg1 int32, arg2 int32) (float32, error)
GetStreamVolumeDb calls the GetStreamVolumeDb RPC.
func (*Client) GetSupportedDeviceTypes ¶
GetSupportedDeviceTypes calls the GetSupportedDeviceTypes RPC.
func (*Client) GetSupportedMixerAttributes ¶
GetSupportedMixerAttributes calls the GetSupportedMixerAttributes RPC.
func (*Client) GetVibrateSetting ¶
GetVibrateSetting calls the GetVibrateSetting RPC.
func (*Client) GetVolumeGroupIdForAttributes ¶
GetVolumeGroupIdForAttributes calls the GetVolumeGroupIdForAttributes RPC.
func (*Client) IsBluetoothA2DpOn ¶
IsBluetoothA2DpOn calls the IsBluetoothA2DpOn RPC.
func (*Client) IsBluetoothScoAvailableOffCall ¶
IsBluetoothScoAvailableOffCall calls the IsBluetoothScoAvailableOffCall RPC.
func (*Client) IsBluetoothScoOn ¶
IsBluetoothScoOn calls the IsBluetoothScoOn RPC.
func (*Client) IsCallScreeningModeSupported ¶
IsCallScreeningModeSupported calls the IsCallScreeningModeSupported RPC.
func (*Client) IsHapticPlaybackSupported ¶
IsHapticPlaybackSupported calls the IsHapticPlaybackSupported RPC.
func (*Client) IsMicrophoneMute ¶
IsMicrophoneMute calls the IsMicrophoneMute RPC.
func (*Client) IsMusicActive ¶
IsMusicActive calls the IsMusicActive RPC.
func (*Client) IsOffloadedPlaybackSupported ¶
func (c *Client) IsOffloadedPlaybackSupported(ctx context.Context, arg0 int64, arg1 int64) (bool, error)
IsOffloadedPlaybackSupported calls the IsOffloadedPlaybackSupported RPC.
func (*Client) IsRampingRingerEnabled ¶
IsRampingRingerEnabled calls the IsRampingRingerEnabled RPC.
func (*Client) IsSpeakerphoneOn ¶
IsSpeakerphoneOn calls the IsSpeakerphoneOn RPC.
func (*Client) IsStreamMute ¶
IsStreamMute calls the IsStreamMute RPC.
func (*Client) IsSurroundFormatEnabled ¶
IsSurroundFormatEnabled calls the IsSurroundFormatEnabled RPC.
func (*Client) IsVolumeFixed ¶
IsVolumeFixed calls the IsVolumeFixed RPC.
func (*Client) IsVolumeGroupMuted ¶
IsVolumeGroupMuted calls the IsVolumeGroupMuted RPC.
func (*Client) IsWiredHeadsetOn ¶
IsWiredHeadsetOn calls the IsWiredHeadsetOn RPC.
func (*Client) LoadSoundEffects ¶
LoadSoundEffects calls the LoadSoundEffects RPC.
func (*Client) PlaySoundEffect1 ¶
PlaySoundEffect1 calls the PlaySoundEffect1 RPC.
func (*Client) PlaySoundEffect2_1 ¶
PlaySoundEffect2_1 calls the PlaySoundEffect2_1 RPC.
func (*Client) RegisterMediaButtonEventReceiver1 ¶
RegisterMediaButtonEventReceiver1 calls the RegisterMediaButtonEventReceiver1 RPC.
func (*Client) RegisterMediaButtonEventReceiver1_1 ¶
RegisterMediaButtonEventReceiver1_1 calls the RegisterMediaButtonEventReceiver1_1 RPC.
func (*Client) RegisterRemoteControlClient ¶
RegisterRemoteControlClient calls the RegisterRemoteControlClient RPC.
func (*Client) RegisterRemoteController ¶
RegisterRemoteController calls the RegisterRemoteController RPC.
func (*Client) RemoveOnCommunicationDeviceChangedListener ¶
RemoveOnCommunicationDeviceChangedListener calls the RemoveOnCommunicationDeviceChangedListener RPC.
func (*Client) RemoveOnModeChangedListener ¶
RemoveOnModeChangedListener calls the RemoveOnModeChangedListener RPC.
func (*Client) RemoveOnPreferredMixerAttributesChangedListener ¶
func (c *Client) RemoveOnPreferredMixerAttributesChangedListener(ctx context.Context, arg0 int64) error
RemoveOnPreferredMixerAttributesChangedListener calls the RemoveOnPreferredMixerAttributesChangedListener RPC.
func (*Client) RequestAudioFocus1 ¶
RequestAudioFocus1 calls the RequestAudioFocus1 RPC.
func (*Client) RequestAudioFocus3_1 ¶
func (c *Client) RequestAudioFocus3_1(ctx context.Context, arg0 int64, arg1 int32, arg2 int32) (int32, error)
RequestAudioFocus3_1 calls the RequestAudioFocus3_1 RPC.
func (*Client) SetAllowedCapturePolicy ¶
SetAllowedCapturePolicy calls the SetAllowedCapturePolicy RPC.
func (*Client) SetBluetoothA2DpOn ¶
SetBluetoothA2DpOn calls the SetBluetoothA2DpOn RPC.
func (*Client) SetBluetoothScoOn ¶
SetBluetoothScoOn calls the SetBluetoothScoOn RPC.
func (*Client) SetCommunicationDevice ¶
SetCommunicationDevice calls the SetCommunicationDevice RPC.
func (*Client) SetEncodedSurroundMode ¶
SetEncodedSurroundMode calls the SetEncodedSurroundMode RPC.
func (*Client) SetMicrophoneMute ¶
SetMicrophoneMute calls the SetMicrophoneMute RPC.
func (*Client) SetParameters ¶
SetParameters calls the SetParameters RPC.
func (*Client) SetPreferredMixerAttributes ¶
func (c *Client) SetPreferredMixerAttributes(ctx context.Context, arg0 int64, arg1 int64, arg2 int64) (bool, error)
SetPreferredMixerAttributes calls the SetPreferredMixerAttributes RPC.
func (*Client) SetRingerMode ¶
SetRingerMode calls the SetRingerMode RPC.
func (*Client) SetRouting ¶
SetRouting calls the SetRouting RPC.
func (*Client) SetSpeakerphoneOn ¶
SetSpeakerphoneOn calls the SetSpeakerphoneOn RPC.
func (*Client) SetStreamMute ¶
SetStreamMute calls the SetStreamMute RPC.
func (*Client) SetStreamSolo ¶
SetStreamSolo calls the SetStreamSolo RPC.
func (*Client) SetStreamVolume ¶
SetStreamVolume calls the SetStreamVolume RPC.
func (*Client) SetSurroundFormatEnabled ¶
SetSurroundFormatEnabled calls the SetSurroundFormatEnabled RPC.
func (*Client) SetVibrateSetting ¶
SetVibrateSetting calls the SetVibrateSetting RPC.
func (*Client) SetWiredHeadsetOn ¶
SetWiredHeadsetOn calls the SetWiredHeadsetOn RPC.
func (*Client) ShouldVibrate ¶
ShouldVibrate calls the ShouldVibrate RPC.
func (*Client) StartBluetoothSco ¶
StartBluetoothSco calls the StartBluetoothSco RPC.
func (*Client) StopBluetoothSco ¶
StopBluetoothSco calls the StopBluetoothSco RPC.
func (*Client) UnloadSoundEffects ¶
UnloadSoundEffects calls the UnloadSoundEffects RPC.
func (*Client) UnregisterAudioDeviceCallback ¶
UnregisterAudioDeviceCallback calls the UnregisterAudioDeviceCallback RPC.
func (*Client) UnregisterAudioPlaybackCallback ¶
UnregisterAudioPlaybackCallback calls the UnregisterAudioPlaybackCallback RPC.
func (*Client) UnregisterAudioRecordingCallback ¶
UnregisterAudioRecordingCallback calls the UnregisterAudioRecordingCallback RPC.
func (*Client) UnregisterMediaButtonEventReceiver1 ¶
UnregisterMediaButtonEventReceiver1 calls the UnregisterMediaButtonEventReceiver1 RPC.
func (*Client) UnregisterMediaButtonEventReceiver1_1 ¶
UnregisterMediaButtonEventReceiver1_1 calls the UnregisterMediaButtonEventReceiver1_1 RPC.
func (*Client) UnregisterRemoteControlClient ¶
UnregisterRemoteControlClient calls the UnregisterRemoteControlClient RPC.