Home
last modified time | relevance | path

Searched refs:AudioManager (Results 1 – 25 of 46) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAudioManagerTest.java9 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 …]
DShadowSoundPoolTest.java10 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/
Daudio_manager.cc33 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 …]
Daudio_manager.h33 class AudioManager {
58 AudioManager();
59 ~AudioManager();
137 rtc::scoped_ptr<AudioManager::JavaAudioManager> j_audio_manager_;
Daudio_manager_unittest.cc30 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_;
Daudio_record_jni.h69 explicit AudioRecordJni(AudioManager* audio_manager);
129 const AudioManager* audio_manager_;
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAudioManager.java7 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/
DAudioManagerFacade.java21 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/
DSettingsFacade.java25 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 …]
DToneGeneratorFacade.java19 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/
DWebRtcAudioTrack.java19 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);
DWebRtcAudioManager.java17 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/
DSoundLevelCalibration.java20 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()
DRecorderRunnable.java21 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()
DNativeAudioThread.java23 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()
DLoopbackActivity.java35 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 …]
DLoopbackAudioThread.java22 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/
DAppRTCAudioManager.java20 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/
DAndroidTest.java28 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/
DAudioTest.java20 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()
DAudioFragment.java25 import android.media.AudioManager;
185AudioManager 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/
DAudioDeviceAndroidTest.java4 import android.media.AudioManager;
31 setVolumeControlStream(AudioManager.STREAM_VOICE_CALL); in onCreate()
/external/webrtc/webrtc/modules/audio_device/
Daudio_device_impl.h24 class AudioManager; variable
199 AudioManager* GetAndroidAudioManagerForTest() { in GetAndroidAudioManagerForTest()
219 rtc::scoped_ptr<AudioManager> _audioManagerAndroid;
/external/replicaisland/src/com/replica/replicaisland/
DSoundSystem.java22 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/
DAudioManager.asset4 AudioManager:

12