Methods Summary |
---|
public int | abandonAudioFocus(android.media.IAudioFocusDispatcher fd, java.lang.String clientId, android.media.AudioAttributes aa)
|
public void | adjustMasterVolume(int direction, int flags, java.lang.String callingPackage)
|
public void | adjustStreamVolume(int streamType, int direction, int flags, java.lang.String callingPackage)
|
public void | adjustSuggestedStreamVolume(int direction, int suggestedStreamType, int flags, java.lang.String callingPackage)
|
public void | avrcpSupportsAbsoluteVolume(java.lang.String address, boolean support)
|
public void | disableSafeMediaVolume()
|
public void | forceRemoteSubmixFullVolume(boolean startForcing, android.os.IBinder cb)
|
public void | forceVolumeControlStream(int streamType, android.os.IBinder cb)
|
public int | getCurrentAudioFocus()
|
public int | getLastAudibleMasterVolume()
|
public int | getLastAudibleStreamVolume(int streamType)
|
public int | getMasterMaxVolume()
|
public int | getMasterStreamType()
|
public int | getMasterVolume()
|
public int | getMode()
|
public int | getRingerModeExternal()
|
public int | getRingerModeInternal()
|
public android.media.IRingtonePlayer | getRingtonePlayer()
|
public int | getStreamMaxVolume(int streamType)
|
public int | getStreamVolume(int streamType)
|
public int | getVibrateSetting(int vibrateType)
|
public boolean | isBluetoothA2dpOn()
|
public boolean | isBluetoothScoOn()
|
public boolean | isCameraSoundForced()
|
public boolean | isHdmiSystemAudioSupported()
|
public boolean | isMasterMute()
|
public boolean | isSpeakerphoneOn()
|
public boolean | isStreamAffectedByRingerMode(int streamType)
|
public boolean | isStreamMute(int streamType)
|
public boolean | isValidRingerMode(int ringerMode)
|
public boolean | loadSoundEffects()
|
public void | notifyVolumeControllerVisible(android.media.IVolumeController controller, boolean visible)
|
public void | playSoundEffect(int effectType)
|
public void | playSoundEffectVolume(int effectType, float volume)
|
public java.lang.String | registerAudioPolicy(android.media.audiopolicy.AudioPolicyConfig policyConfig, android.media.audiopolicy.IAudioPolicyCallback pcb, boolean hasFocusListener)
|
public boolean | registerRemoteControlDisplay(android.media.IRemoteControlDisplay rcd, int w, int h)Register an IRemoteControlDisplay.
Success of registration is subject to a check on
the android.Manifest.permission.MEDIA_CONTENT_CONTROL permission.
Notify all IRemoteControlClient of the new display and cause the RemoteControlClient
at the top of the stack to update the new display with its information.
|
public boolean | registerRemoteController(android.media.IRemoteControlDisplay rcd, int w, int h, android.content.ComponentName listenerComp)Like registerRemoteControlDisplay, but with success being subject to a check on
the android.Manifest.permission.MEDIA_CONTENT_CONTROL permission, and if it fails,
success is subject to listenerComp being one of the ENABLED_NOTIFICATION_LISTENERS
components.
|
public void | reloadAudioSettings()
|
public void | remoteControlDisplayUsesBitmapSize(android.media.IRemoteControlDisplay rcd, int w, int h)Update the size of the artwork used by an IRemoteControlDisplay.
|
public void | remoteControlDisplayWantsPlaybackPositionSync(android.media.IRemoteControlDisplay rcd, boolean wantsSync)Controls whether a remote control display needs periodic checks of the RemoteControlClient
playback position to verify that the estimated position has not drifted from the actual
position. By default the check is not performed.
The IRemoteControlDisplay must have been previously registered for this to have any effect.
|
public int | requestAudioFocus(android.media.AudioAttributes aa, int durationHint, android.os.IBinder cb, android.media.IAudioFocusDispatcher fd, java.lang.String clientId, java.lang.String callingPackageName, int flags, android.media.audiopolicy.IAudioPolicyCallback pcb)
|
public int | setBluetoothA2dpDeviceConnectionState(android.bluetooth.BluetoothDevice device, int state, int profile)
|
public void | setBluetoothA2dpOn(boolean on)
|
public void | setBluetoothScoOn(boolean on)
|
public int | setFocusPropertiesForPolicy(int duckingBehavior, android.media.audiopolicy.IAudioPolicyCallback pcb)
|
public int | setHdmiSystemAudioSupported(boolean on)
|
public void | setMasterMute(boolean state, int flags, java.lang.String callingPackage, android.os.IBinder cb)
|
public void | setMasterVolume(int index, int flags, java.lang.String callingPackage)
|
public void | setMicrophoneMute(boolean on, java.lang.String callingPackage)
|
public void | setMode(int mode, android.os.IBinder cb)
|
public void | setRemoteStreamVolume(int index)
|
public void | setRingerModeExternal(int ringerMode, java.lang.String caller)
|
public void | setRingerModeInternal(int ringerMode, java.lang.String caller)
|
public void | setRingtonePlayer(android.media.IRingtonePlayer player)
|
public void | setSpeakerphoneOn(boolean on)
|
public void | setStreamMute(int streamType, boolean state, android.os.IBinder cb)
|
public void | setStreamSolo(int streamType, boolean state, android.os.IBinder cb)
|
public void | setStreamVolume(int streamType, int index, int flags, java.lang.String callingPackage)
|
public void | setVibrateSetting(int vibrateType, int vibrateSetting)
|
public void | setVolumeController(android.media.IVolumeController controller)
|
public void | setWiredDeviceConnectionState(int device, int state, java.lang.String name)
|
public boolean | shouldVibrate(int vibrateType)
|
public void | startBluetoothSco(android.os.IBinder cb, int targetSdkVersion)
|
public void | startBluetoothScoVirtualCall(android.os.IBinder cb)
|
public android.media.AudioRoutesInfo | startWatchingRoutes(android.media.IAudioRoutesObserver observer)
|
public void | stopBluetoothSco(android.os.IBinder cb)
|
public void | unloadSoundEffects()
|
public void | unregisterAudioFocusClient(java.lang.String clientId)
|
public void | unregisterAudioPolicyAsync(android.media.audiopolicy.IAudioPolicyCallback pcb)
|
public void | unregisterRemoteControlDisplay(android.media.IRemoteControlDisplay rcd)Unregister an IRemoteControlDisplay.
No effect if the IRemoteControlDisplay hasn't been successfully registered.
|