/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowAudioManagerTest.java | 9 import android.media.AudioManager; 21 private final AudioManager audioManager = 22 new AudioManager((Application) ApplicationProvider.getApplicationContext()); 23 …private final AudioManager.OnAudioFocusChangeListener listener = new AudioManager.OnAudioFocusChan… 42 assertThat(value).isEqualTo(AudioManager.AUDIOFOCUS_REQUEST_GRANTED); in requestAudioFocus_shouldReturnTheSpecifiedValue() 44 shadowOf(audioManager).setNextFocusRequestResponse(AudioManager.AUDIOFOCUS_REQUEST_FAILED); in requestAudioFocus_shouldReturnTheSpecifiedValue() 47 assertThat(value).isEqualTo(AudioManager.AUDIOFOCUS_REQUEST_FAILED); in requestAudioFocus_shouldReturnTheSpecifiedValue() 57 new android.media.AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN) in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall() 74 new android.media.AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN).build()); in requestAudioFocus2_shouldReturnTheSpecifiedValue() 75 assertThat(value).isEqualTo(AudioManager.AUDIOFOCUS_REQUEST_GRANTED); in requestAudioFocus2_shouldReturnTheSpecifiedValue() [all …]
|
D | ShadowSoundPoolTest.java | 10 import android.media.AudioManager; 37 SoundPool soundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0); in shouldCreateSoundPool_JellyBean() 164 : new SoundPool(1, AudioManager.STREAM_MUSIC, 0); in createSoundPool()
|
/external/webrtc/webrtc/modules/audio_device/android/ |
D | audio_manager.cc | 33 AudioManager::JavaAudioManager::JavaAudioManager( in JavaAudioManager() 47 AudioManager::JavaAudioManager::~JavaAudioManager() { in ~JavaAudioManager() 51 bool AudioManager::JavaAudioManager::Init() { in Init() 55 void AudioManager::JavaAudioManager::Close() { in Close() 59 bool AudioManager::JavaAudioManager::IsCommunicationModeEnabled() { in IsCommunicationModeEnabled() 63 bool AudioManager::JavaAudioManager::IsDeviceBlacklistedForOpenSLESUsage() { in IsDeviceBlacklistedForOpenSLESUsage() 69 AudioManager::AudioManager() in AudioManager() function in webrtc::AudioManager 83 reinterpret_cast<void*>(&webrtc::AudioManager::CacheAudioParameters)}}; in AudioManager() 94 AudioManager::~AudioManager() { in ~AudioManager() 100 void AudioManager::SetActiveAudioLayer( in SetActiveAudioLayer() [all …]
|
D | audio_manager.h | 33 class AudioManager { 58 AudioManager(); 59 ~AudioManager(); 137 rtc::scoped_ptr<AudioManager::JavaAudioManager> j_audio_manager_;
|
D | audio_manager_unittest.cc | 30 audio_manager_.reset(new AudioManager()); in AudioManagerTest() 36 AudioManager* audio_manager() const { return audio_manager_.get(); } in audio_manager() 46 rtc::scoped_ptr<AudioManager> audio_manager_;
|
D | audio_record_jni.h | 69 explicit AudioRecordJni(AudioManager* audio_manager); 129 const AudioManager* audio_manager_;
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowAudioManager.java | 7 import android.media.AudioManager; 21 @Implements(AudioManager.class) 29 AudioManager.STREAM_MUSIC, 30 AudioManager.STREAM_ALARM, 31 AudioManager.STREAM_NOTIFICATION, 32 AudioManager.STREAM_RING, 33 AudioManager.STREAM_SYSTEM, 34 AudioManager.STREAM_VOICE_CALL, 35 AudioManager.STREAM_DTMF 39 private int nextResponseValue = AudioManager.AUDIOFOCUS_REQUEST_GRANTED; [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/ |
D | AudioManagerFacade.java | 21 import android.media.AudioManager; 22 import android.media.AudioManager.OnAudioFocusChangeListener; 33 private final AudioManager mAudio; 41 mAudio = (AudioManager) mService.getSystemService(Context.AUDIO_SERVICE); in AudioManagerFacade() 44 if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK) { in AudioManagerFacade() 46 } else if (focusChange == AudioManager.AUDIOFOCUS_GAIN) { in AudioManagerFacade() 66 AudioManager.STREAM_MUSIC, in audioRequestAudioFocus() 67 AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK); in audioRequestAudioFocus() 68 if (status == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) { in audioRequestAudioFocus()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | SettingsFacade.java | 25 import android.media.AudioManager; 55 private final AudioManager mAudio; 72 mAudio = (AudioManager) mService.getSystemService(Context.AUDIO_SERVICE); in SettingsFacade() 111 return mAudio.getRingerMode() == AudioManager.RINGER_MODE_SILENT; in checkRingerSilentMode() 121 mAudio.setRingerMode(enabled ? AudioManager.RINGER_MODE_SILENT in toggleRingerSilentMode() 122 : AudioManager.RINGER_MODE_NORMAL); in toggleRingerSilentMode() 128 if (AudioManager.isValidRingerMode(mode)) { in setRingerMode() 143 return mAudio.getStreamMaxVolume(AudioManager.STREAM_RING); in getMaxRingerVolume() 148 return mAudio.getStreamVolume(AudioManager.STREAM_RING); in getRingerVolume() 153 mAudio.setStreamVolume(AudioManager.STREAM_RING, volume, 0); in setRingerVolume() [all …]
|
D | ToneGeneratorFacade.java | 19 import android.media.AudioManager; 37 mToneGenerator = new ToneGenerator(AudioManager.STREAM_MUSIC, 100); in ToneGeneratorFacade()
|
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/ |
D | WebRtcAudioTrack.java | 19 import android.media.AudioManager; 42 private final AudioManager audioManager; 148 audioManager = (AudioManager) context.getSystemService( in WebRtcAudioTrack() 186 audioTrack = new AudioTrack(AudioManager.STREAM_VOICE_CALL, in initPlayout() 198 assertTrue(audioTrack.getStreamType() == AudioManager.STREAM_VOICE_CALL); in initPlayout() 226 return audioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL); 237 audioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, volume, 0); 252 return audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);
|
D | WebRtcAudioManager.java | 17 import android.media.AudioManager; 74 private final AudioManager audioManager; 93 audioManager = (AudioManager) context.getSystemService( in WebRtcAudioManager() 123 return (audioManager.getMode() == AudioManager.MODE_IN_COMMUNICATION); in isCommunicationModeEnabled() 205 AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE); in getSampleRateOnJellyBeanMR10OrHigher() 219 AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER); in getLowLatencyOutputFramesPerBuffer()
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
D | SoundLevelCalibration.java | 20 import android.media.AudioManager; 35 private AudioManager mAudioManager; 66 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in SoundLevelCalibration() 71 final int maxLevel = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in calibrate() 130 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, level, 0); in setVolume()
|
D | RecorderRunnable.java | 21 import android.media.AudioManager; 73 private AudioManager mAudioManager; 195 mAudioManager = (AudioManager) mContext.getSystemService(mContext.AUDIO_SERVICE); in initBufferRecord() 196 mMaxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in initBufferRecord() 477 int currentVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in AdjustSoundLevel() 484 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, currentVolume, 0); in AdjustSoundLevel() 497 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, in AdjustSoundLevel()
|
D | NativeAudioThread.java | 23 import android.media.AudioManager; 106 int samplingRate = AudioTrack.getNativeOutputSampleRate(AudioManager.STREAM_MUSIC); in computeDefaultSettings() 109 AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in computeDefaultSettings() 110 String value = am.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER); in computeDefaultSettings()
|
D | LoopbackActivity.java | 35 import android.media.AudioManager; 539 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() 540 int maxVolume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in onCreate() 554 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() 555 am.setStreamVolume(AudioManager.STREAM_MUSIC, in onCreate() 722 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in applyIntent() 723 am.setStreamVolume(AudioManager.STREAM_MUSIC, audioLevel, 0); in applyIntent() 922 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in restartAudioSystem() 923 mSoundLevel = am.getStreamVolume(AudioManager.STREAM_MUSIC); in restartAudioSystem() 1642 AudioManager am = (AudioManager) getSystemService(Context.AUDIO_SERVICE); in refreshSoundLevelBar() [all …]
|
D | LoopbackAudioThread.java | 22 import android.media.AudioManager; 84 int samplingRate = AudioTrack.getNativeOutputSampleRate(AudioManager.STREAM_MUSIC); in computeDefaultSettings() 164 mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, in run()
|
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/ |
D | AppRTCAudioManager.java | 20 import android.media.AudioManager; 47 private AudioManager audioManager; 48 private int savedAudioMode = AudioManager.MODE_INVALID; 105 audioManager = ((AudioManager) context.getSystemService( in AppRTCAudioManager() 134 audioManager.requestAudioFocus(null, AudioManager.STREAM_VOICE_CALL, in init() 135 AudioManager.AUDIOFOCUS_GAIN_TRANSIENT); in init() 141 audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); in init()
|
/external/webrtc/webrtc/voice_engine/test/android/android_test/src/org/webrtc/voiceengine/test/ |
D | AndroidTest.java | 28 import android.media.AudioManager; 352 setVolumeControlStream(AudioManager.STREAM_VOICE_CALL); in onCreate() 356 AudioManager am = in onCreate() 357 (AudioManager) getSystemService(Context.AUDIO_SERVICE); in onCreate() 358 _maxVolume = am.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL); in onCreate() 699 new AudioTrack(AudioManager.STREAM_VOICE_CALL, 16000, in playAudioFromFile() 804 AudioManager.STREAM_VOICE_CALL)); in playAudioInThread() 810 AudioManager.STREAM_VOICE_CALL, in playAudioInThread()
|
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/ |
D | AudioTest.java | 20 import android.media.AudioManager; 97 AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); in AudioTest() 98 String frameRateStr = am.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE); in AudioTest() 99 String framesPerBufferStr = am.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER); in AudioTest()
|
D | AudioFragment.java | 25 import android.media.AudioManager; 185 … AudioManager am = (AudioManager) getContext().getSystemService(Context.AUDIO_SERVICE); in onClick() 186 …am.setStreamVolume(AudioManager.STREAM_MUSIC, am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), 0); in onClick()
|
/external/webrtc/webrtc/modules/audio_device/test/android/audio_device_android_test/src/org/webrtc/voiceengine/test/ |
D | AudioDeviceAndroidTest.java | 4 import android.media.AudioManager; 31 setVolumeControlStream(AudioManager.STREAM_VOICE_CALL); in onCreate()
|
/external/webrtc/webrtc/modules/audio_device/ |
D | audio_device_impl.h | 24 class AudioManager; variable 199 AudioManager* GetAndroidAudioManagerForTest() { in GetAndroidAudioManagerForTest() 219 rtc::scoped_ptr<AudioManager> _audioManagerAndroid;
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | SoundSystem.java | 22 import android.media.AudioManager; 43 mSoundPool = new SoundPool(MAX_STREAMS, AudioManager.STREAM_MUSIC, 0); in SoundSystem()
|
/external/tensorflow/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ProjectSettings/ |
D | AudioManager.asset | 4 AudioManager:
|