/frameworks/base/media/java/android/media/ |
D | AudioDeviceInfo.java | 337 return EXT_TO_INT_DEVICE_MAPPING.get(deviceType, AudioSystem.DEVICE_NONE); in convertDeviceTypeToInternalDevice() 351 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_EARPIECE, TYPE_BUILTIN_EARPIECE); in INT_TO_EXT_DEVICE_MAPPING.put() 352 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_SPEAKER, TYPE_BUILTIN_SPEAKER); in INT_TO_EXT_DEVICE_MAPPING.put() 353 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADSET, TYPE_WIRED_HEADSET); in INT_TO_EXT_DEVICE_MAPPING.put() 354 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADPHONE, TYPE_WIRED_HEADPHONES); in INT_TO_EXT_DEVICE_MAPPING.put() 355 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put() 356 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_HEADSET, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put() 357 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_CARKIT, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put() 358 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, TYPE_BLUETOOTH_A2DP); in INT_TO_EXT_DEVICE_MAPPING.put() 359 …INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES, TYPE_BLUETOOTH_A2D… in INT_TO_EXT_DEVICE_MAPPING.put() [all …]
|
D | AudioAttributes.java | 836 case AudioSystem.STREAM_VOICE_CALL: in setInternalLegacyStreamType() 839 case AudioSystem.STREAM_SYSTEM_ENFORCED: in setInternalLegacyStreamType() 842 case AudioSystem.STREAM_SYSTEM: in setInternalLegacyStreamType() 845 case AudioSystem.STREAM_RING: in setInternalLegacyStreamType() 848 case AudioSystem.STREAM_MUSIC: in setInternalLegacyStreamType() 851 case AudioSystem.STREAM_ALARM: in setInternalLegacyStreamType() 854 case AudioSystem.STREAM_NOTIFICATION: in setInternalLegacyStreamType() 857 case AudioSystem.STREAM_BLUETOOTH_SCO: in setInternalLegacyStreamType() 861 case AudioSystem.STREAM_DTMF: in setInternalLegacyStreamType() 864 case AudioSystem.STREAM_TTS: in setInternalLegacyStreamType() [all …]
|
D | AudioManager.java | 348 public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL; 350 public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM; 352 public static final int STREAM_RING = AudioSystem.STREAM_RING; 354 public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC; 356 public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM; 358 public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION; 362 public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO; 366 public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED; 368 public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF; 372 public static final int STREAM_TTS = AudioSystem.STREAM_TTS; [all …]
|
D | AudioDevicePort.java | 20 import android.media.AudioSystem; 105 AudioSystem.getInputDeviceName(mType) : in toString() 106 AudioSystem.getOutputDeviceName(mType)); in toString()
|
D | HwAudioSource.java | 109 return AudioSystem.SUCCESS; in playerSetAuxEffectSendLevel() 134 mNativeHandle = AudioSystem.startAudioSource( in start() 153 AudioSystem.stopAudioSource(mNativeHandle); in stop()
|
D | MediaSyncEvent.java | 33 public static final int SYNC_EVENT_NONE = AudioSystem.SYNC_EVENT_NONE; 42 AudioSystem.SYNC_EVENT_PRESENTATION_COMPLETE;
|
/frameworks/av/media/libaudioclient/ |
D | AudioSystem.cpp | 38 Mutex AudioSystem::gLock; 39 Mutex AudioSystem::gLockAPS; 40 sp<IAudioFlinger> AudioSystem::gAudioFlinger; 41 sp<AudioSystem::AudioFlingerClient> AudioSystem::gAudioFlingerClient; 42 audio_error_callback AudioSystem::gAudioErrorCallback = NULL; 43 dynamic_policy_callback AudioSystem::gDynPolicyCallback = NULL; 44 record_config_callback AudioSystem::gRecordConfigCallback = NULL; 47 const sp<IAudioFlinger> AudioSystem::get_audio_flinger() in get_audio_flinger() 87 const sp<AudioSystem::AudioFlingerClient> AudioSystem::getAudioFlingerClient() in getAudioFlingerClient() 90 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in getAudioFlingerClient() [all …]
|
D | AudioEffect.cpp | 112 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in set() 171 AudioSystem::acquireAudioSessionId(mSessionId, mClientPid); in set() 184 AudioSystem::releaseAudioSessionId(mSessionId, mClientPid); in ~AudioEffect() 422 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in queryNumberEffects() 429 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in queryEffect() 439 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in getEffectDescriptor() 448 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in queryDefaultPreProcessing() 455 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in newEffectUniqueId() 468 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in addSourceDefaultEffect() 500 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in addStreamDefaultEffect() [all …]
|
D | AudioRecord.cpp | 55 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size); in getMinFrameCount() 180 AudioSystem::removeAudioDeviceCallback(this, mInput, mPortId); in ~AudioRecord() 189 AudioSystem::releaseAudioSessionId(mSessionId, -1 /*pid*/); in ~AudioRecord() 360 AudioSystem::acquireAudioSessionId(mSessionId, -1); in set() 377 status_t AudioRecord::start(AudioSystem::sync_event_t event, audio_session_t triggerSession) in start() 553 return AudioSystem::getInputFramesLost(getInputPrivate()); in getInputFramesLost() 609 audio_port_handle_t deviceId = AudioSystem::getDeviceIdForIo(mInput); in updateRoutedDeviceId_l() 662 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in createRecord_l() 815 AudioSystem::removeAudioDeviceCallback(this, mInput, mPortId); in createRecord_l() 817 AudioSystem::addAudioDeviceCallback(this, output.inputId, output.portId); in createRecord_l() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioDeviceInventory.java | 31 import android.media.AudioSystem; 139 AudioSystem.setDeviceConnectionState( in onRestoreDevices() 141 AudioSystem.DEVICE_STATE_AVAILABLE, in onRestoreDevices() 169 final String key = DeviceInfo.makeDeviceListKey(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, in onSetA2dpSinkConnectionState() 198 AudioSystem.AUDIO_FORMAT_DEFAULT); in onSetA2dpSinkConnectionState() 202 mDeviceBroker.postSetVolumeIndexOnDevice(AudioSystem.STREAM_MUSIC, in onSetA2dpSinkConnectionState() 205 AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, "onSetA2dpSinkConnectionState"); in onSetA2dpSinkConnectionState() 227 AudioSystem.DEVICE_IN_BLUETOOTH_A2DP, address); in onSetA2dpSourceConnectionState() 249 final String key = DeviceInfo.makeDeviceListKey(AudioSystem.DEVICE_OUT_HEARING_AID, in onSetHearingAidConnectionState() 293 AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, address); in onBluetoothA2dpActiveDeviceChange() [all …]
|
D | AudioService.java | 74 import android.media.AudioSystem; 219 return mPlatformType == AudioSystem.PLATFORM_VOICE; in isPlatformVoice() 223 return mPlatformType == AudioSystem.PLATFORM_TELEVISION; in isPlatformTelevision() 292 private int mMode = AudioSystem.MODE_NORMAL; 349 AudioSystem.STREAM_VOICE_CALL, // STREAM_VOICE_CALL 350 AudioSystem.STREAM_RING, // STREAM_SYSTEM 351 AudioSystem.STREAM_RING, // STREAM_RING 352 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC 353 AudioSystem.STREAM_ALARM, // STREAM_ALARM 354 AudioSystem.STREAM_RING, // STREAM_NOTIFICATION [all …]
|
D | AudioServiceEvents.java | 20 import android.media.AudioSystem; 45 return new StringBuilder("setMode(").append(AudioSystem.modeToString(mRequestedMode)) in eventToString() 48 .append(" selected mode=").append(AudioSystem.modeToString(mActualMode)) in eventToString() 64 .append(" state:").append(AudioSystem.deviceStateToString(mState.mState)) in eventToString() 85 .append(AudioSystem.forceUseUsageToString(mUsage)) in eventToString() 86 .append(", ").append(AudioSystem.forceUseConfigToString(mConfig)) in eventToString() 164 .append(AudioSystem.streamToString(mStream)) in eventToString() 171 .append(AudioSystem.streamToString(mStream)) in eventToString() 178 .append(AudioSystem.streamToString(mStream)) in eventToString() 194 .append(AudioSystem.streamToString(mStream)) in eventToString() [all …]
|
D | AudioDeviceBroker.java | 32 import android.media.AudioSystem; 100 mForcedUseForComm = AudioSystem.FORCE_NONE; in AudioDeviceBroker() 126 onSetForceUse(AudioSystem.FOR_COMMUNICATION, mForcedUseForComm, "onAudioServerDied"); in onAudioServerDied() 127 onSetForceUse(AudioSystem.FOR_RECORD, mForcedUseForComm, "onAudioServerDied"); in onAudioServerDied() 170 AudioSystem.FOR_MEDIA, in setBluetoothA2dpOn_Async() 171 mBluetoothA2dpEnabled ? AudioSystem.FORCE_NONE : AudioSystem.FORCE_NO_BT_A2DP, in setBluetoothA2dpOn_Async() 186 if (mForcedUseForComm == AudioSystem.FORCE_BT_SCO) { in setSpeakerphoneOn() 187 setForceUse_Async(AudioSystem.FOR_RECORD, AudioSystem.FORCE_NONE, eventSource); in setSpeakerphoneOn() 189 mForcedUseForComm = AudioSystem.FORCE_SPEAKER; in setSpeakerphoneOn() 190 } else if (mForcedUseForComm == AudioSystem.FORCE_SPEAKER) { in setSpeakerphoneOn() [all …]
|
D | BtHelper.java | 31 import android.media.AudioSystem; 122 this(btDevice, -1, AudioSystem.AUDIO_FORMAT_DEFAULT); in BluetoothA2dpDeviceInfo() 193 ? AudioSystem.FORCE_NONE : AudioSystem.FORCE_NO_BT_A2DP; in onAudioServerDiedRestoreA2dp() 194 mDeviceBroker.setForceUse_Async(AudioSystem.FOR_MEDIA, forMed, "onAudioServerDied()"); in onAudioServerDiedRestoreA2dp() 229 return AudioSystem.AUDIO_FORMAT_DEFAULT; in getA2dpCodec() 233 return AudioSystem.AUDIO_FORMAT_DEFAULT; in getA2dpCodec() 237 return AudioSystem.AUDIO_FORMAT_DEFAULT; in getA2dpCodec() 387 int gainDB = (int) AudioSystem.getStreamVolumeDB(streamType, index / 10, in setHearingAidVolume() 388 AudioSystem.DEVICE_OUT_HEARING_AID); in setHearingAidVolume() 426 AudioSystem.setParameters("A2dpSuspended=false"); in resetBluetoothSco() [all …]
|
D | RotationHelper.java | 21 import android.media.AudioSystem; 97 AudioSystem.setParameters("rotation=0"); in publishRotation() 100 AudioSystem.setParameters("rotation=90"); in publishRotation() 103 AudioSystem.setParameters("rotation=180"); in publishRotation() 106 AudioSystem.setParameters("rotation=270"); in publishRotation()
|
D | PlaybackActivityMonitor.java | 25 import android.media.AudioSystem; 157 final int newPiid = AudioSystem.newAudioPlayerId(); in trackPlayer() 203 mSavedAlarmVolume = AudioSystem.getStreamVolumeIndex( in checkVolumeForPrivilegedAlarm() 204 AudioSystem.STREAM_ALARM, AudioSystem.DEVICE_OUT_SPEAKER); in checkVolumeForPrivilegedAlarm() 205 AudioSystem.setStreamVolumeIndexAS(AudioSystem.STREAM_ALARM, in checkVolumeForPrivilegedAlarm() 206 mMaxAlarmVolume, AudioSystem.DEVICE_OUT_SPEAKER); in checkVolumeForPrivilegedAlarm() 211 if (AudioSystem.getStreamVolumeIndex( in checkVolumeForPrivilegedAlarm() 212 AudioSystem.STREAM_ALARM, AudioSystem.DEVICE_OUT_SPEAKER) == in checkVolumeForPrivilegedAlarm() 214 AudioSystem.setStreamVolumeIndexAS(AudioSystem.STREAM_ALARM, in checkVolumeForPrivilegedAlarm() 215 mSavedAlarmVolume, AudioSystem.DEVICE_OUT_SPEAKER); in checkVolumeForPrivilegedAlarm()
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyClientImpl.cpp | 30 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in loadHwModule() 47 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openOutput() 59 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openDuplicateOutput() 69 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in closeOutput() 79 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in suspendOutput() 90 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in restoreOutput() 107 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openInput() 118 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in closeInput() 136 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in invalidateStream() 154 String8 result = AudioSystem::getParameters(io_handle, keys); in getParameters() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_AudioSystem.cpp | 202 class JNIAudioPortCallback: public AudioSystem::AudioPortCallback 312 return (jint) check_AudioSystem_Command(AudioSystem::muteMicrophone(on)); in android_media_AudioSystem_muteMicrophone() 319 AudioSystem::isMicrophoneMuted(&state); in android_media_AudioSystem_isMicrophoneMuted() 327 AudioSystem::isStreamActive((audio_stream_type_t) stream, &state, inPastMs); in android_media_AudioSystem_isStreamActive() 336 AudioSystem::isStreamActiveRemotely((audio_stream_type_t) stream, &state, inPastMs); in android_media_AudioSystem_isStreamActiveRemotely() 344 AudioSystem::isSourceActive((audio_source_t) source, &state); in android_media_AudioSystem_isSourceActive() 351 return AudioSystem::newAudioUniqueId(AUDIO_UNIQUE_ID_USE_SESSION); in android_media_AudioSystem_newAudioSessionId() 357 int id = AudioSystem::newAudioUniqueId(AUDIO_UNIQUE_ID_USE_CLIENT); in android_media_AudioSystem_newAudioPlayerId() 364 int id = AudioSystem::newAudioUniqueId(AUDIO_UNIQUE_ID_USE_CLIENT); in android_media_AudioSystem_newAudioRecorderId() 379 int status = check_AudioSystem_Command(AudioSystem::setParameters(c_keyValuePairs8)); in android_media_AudioSystem_setParameters() [all …]
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMix.java | 26 import android.media.AudioSystem; 268 private int mDeviceSystemType = AudioSystem.DEVICE_NONE; 411 int rate = AudioSystem.getPrimaryOutputSamplingRate(); in build() 417 if ((mDeviceSystemType != AudioSystem.DEVICE_NONE) in build() 418 && (mDeviceSystemType != AudioSystem.DEVICE_OUT_REMOTE_SUBMIX) in build() 419 && (mDeviceSystemType != AudioSystem.DEVICE_IN_REMOTE_SUBMIX)) { in build() 434 mDeviceSystemType = AudioSystem.DEVICE_OUT_REMOTE_SUBMIX; in build() 436 mDeviceSystemType = AudioSystem.DEVICE_IN_REMOTE_SUBMIX; in build()
|
D | AudioProductStrategy.java | 23 import android.media.AudioSystem; 118 if (streamType == AudioSystem.STREAM_DEFAULT) { in getLegacyStreamTypeForStrategyWithAudioAttributes() 122 return AudioSystem.STREAM_MUSIC; in getLegacyStreamTypeForStrategyWithAudioAttributes() 127 return AudioSystem.STREAM_MUSIC; in getLegacyStreamTypeForStrategyWithAudioAttributes() 133 if (status != AudioSystem.SUCCESS) { in initializeAudioProductStrategies() 216 return AudioSystem.STREAM_DEFAULT; in getLegacyStreamTypeForAudioAttributes()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbAlsaDevice.java | 20 import android.media.AudioSystem; 194 ? AudioSystem.DEVICE_OUT_USB_HEADSET in updateWiredDeviceConnectionState() 195 : AudioSystem.DEVICE_OUT_USB_DEVICE; in updateWiredDeviceConnectionState() 214 int device = mIsInputHeadset ? AudioSystem.DEVICE_IN_USB_HEADSET in updateWiredDeviceConnectionState() 215 : AudioSystem.DEVICE_IN_USB_DEVICE; in updateWiredDeviceConnectionState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | Events.java | 21 import android.media.AudioSystem; 153 sb.append(AudioSystem.streamToString((Integer) list[0])); in writeEvent() 158 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in writeEvent() 168 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in writeEvent() 174 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in writeEvent()
|
/frameworks/av/include/media/ |
D | AudioRecord.h | 45 class AudioRecord : public AudioSystem::AudioDeviceCallback 280 status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE, 472 const sp<AudioSystem::AudioDeviceCallback>& callback); 482 const sp<AudioSystem::AudioDeviceCallback>& callback); 728 wp<AudioSystem::AudioDeviceCallback> mDeviceCallback;
|
/frameworks/av/media/libaudioclient/include/media/ |
D | AudioRecord.h | 45 class AudioRecord : public AudioSystem::AudioDeviceCallback 280 status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE, 472 const sp<AudioSystem::AudioDeviceCallback>& callback); 482 const sp<AudioSystem::AudioDeviceCallback>& callback); 728 wp<AudioSystem::AudioDeviceCallback> mDeviceCallback;
|
/frameworks/av/services/audioflinger/ |
D | PlaybackTracks.h | 83 virtual status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE, 213 void triggerEvents(AudioSystem::sync_event_t type); 317 virtual status_t start(AudioSystem::sync_event_t event = 318 AudioSystem::SYNC_EVENT_NONE, 390 virtual status_t start(AudioSystem::sync_event_t event = 391 AudioSystem::SYNC_EVENT_NONE,
|