HomeSort by relevance Sort by last modified time
    Searched refs:mAudioManager (Results 1 - 25 of 110) sorted by null

1 2 3 4 5

  /cts/tests/tests/media/src/android/media/cts/
AudioManagerTest.java 55 private AudioManager mAudioManager;
67 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
80 mAudioManager.setMicrophoneMute(true);
81 assertTrue(mAudioManager.isMicrophoneMute());
82 mAudioManager.setMicrophoneMute(false);
83 assertFalse(mAudioManager.isMicrophoneMute());
91 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
99 mAudioManager.loadSoundEffects();
102 mAudioManager.playSoundEffect(SoundEffectConstants.CLICK);
103 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP)
    [all...]
EnumDevicesTest.java 35 private AudioManager mAudioManager;
45 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
46 assertNotNull(mAudioManager);
53 deviceList = mAudioManager.getDevices(0);
60 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS);
74 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS);
88 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_ALL);
95 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_ALL);
175 mAudioManager.registerAudioDeviceCallback(null,null);
180 mAudioManager.registerAudioDeviceCallback(callback, null)
    [all...]
AudioManagerStub.java 33 private AudioManager mAudioManager;
43 mAudioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);
55 mAudioManager.setStreamMute(i, false);
56 mAudioManager.setStreamSolo(i, false);
69 mAudioManager.setStreamMute(i, true);
70 mAudioManager.setStreamSolo(i, true);
RingtoneTest.java 35 private AudioManager mAudioManager;
46 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
49 mOriginalRingerMode = mAudioManager.getRingerMode();
50 mOriginalVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_RING);
53 int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_RING);
59 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2,
62 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
91 if (mAudioManager != null) {
95 mAudioManager.setRingerMode(mOriginalRingerMode);
96 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume
    [all...]
AudioPlayRoutingNative.java 37 private AudioManager mAudioManager;
48 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
49 assertNotNull(mAudioManager);
109 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_OUTPUTS);
AudioRecordRoutingNative.java 37 private AudioManager mAudioManager;
48 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
49 assertNotNull(mAudioManager);
119 deviceList = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS);
  /cts/tests/tests/permission/src/android/permission/cts/
NoAudioPermissionTest.java 28 private AudioManager mAudioManager;
34 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
35 assertNotNull(mAudioManager);
45 boolean muteState = mAudioManager.isMicrophoneMute();
46 int originalMode = mAudioManager.getMode();
48 mAudioManager.setMicrophoneMute(!muteState);
49 assertEquals(muteState, mAudioManager.isMicrophoneMute());
54 mAudioManager.setMode(AudioManager.MODE_NORMAL);
55 assertEquals(originalMode, mAudioManager.getMode());
57 mAudioManager.setMode(AudioManager.MODE_RINGTONE)
    [all...]
TelephonyManagerPermissionTest.java 34 private AudioManager mAudioManager;
43 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
44 assertNotNull(mAudioManager);
165 int audioMode = mAudioManager.getMode();
166 mAudioManager.setMode(AudioManager.MODE_IN_CALL);
167 assertEquals(audioMode, mAudioManager.getMode());
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
AudioRestrictionTest.java 29 private AudioManager mAudioManager;
40 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
76 mAudioManager.setStreamVolume(AudioManager.STREAM_RING, 1, /* flag= */ 0);
84 mAudioManager.adjustVolume(AudioManager.ADJUST_RAISE, /* flag= */ 0);
85 assertEquals(1, mAudioManager.getStreamVolume(AudioManager.STREAM_RING));
93 mAudioManager.adjustVolume(AudioManager.ADJUST_RAISE, /* flag= */ 0);
97 return mAudioManager.getStreamVolume(AudioManager.STREAM_RING);
110 mAudioManager.setMicrophoneMute(false);
111 assertFalse(mAudioManager.isMicrophoneMute());
119 return mAudioManager.isMicrophoneMute()
    [all...]
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
MediaAudioManagerTest.java 38 private AudioManager mAudioManager;
57 mAudioManager = (AudioManager)getActivity().getSystemService(Context.AUDIO_SERVICE);
98 int getRingtone = mAudioManager.getRingerMode();
113 mAudioManager.setRingerMode(ringtoneMode[i]);
145 int result = mAudioManager.requestAudioFocus(mAudioFocusListener,
151 result = mAudioManager.requestAudioFocus(null, AudioManager.STREAM_MUSIC,
164 mAudioManager.registerAudioFocusListener(mAudioFocusListener);
169 mAudioManager.abandonAudioFocus(mAudioFocusListener);
170 mAudioManager.unregisterAudioFocusListener(mAudioFocusListener);
218 int result = mAudioManager.requestAudioFocus(mAudioFocusListener
    [all...]
  /packages/services/Telephony/src/com/android/services/telephony/
EmergencyTonePlayer.java 53 private final AudioManager mAudioManager;
61 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
71 int ringerMode = mAudioManager.getRingerMode();
107 mSavedInCallVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);
108 mAudioManager.setStreamVolume(
110 mAudioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL),
124 mAudioManager.setStreamVolume(AudioManager.STREAM_VOICE_CALL, mSavedInCallVolume, 0);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
AudioAndHapticFeedbackManager.java 35 private AudioManager mAudioManager;
57 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
79 if (mSettingsValues == null || !mSettingsValues.mSoundOn || mAudioManager == null) {
82 return mAudioManager.getRingerMode() == AudioManager.RINGER_MODE_NORMAL;
86 // if mAudioManager is null, we can't play a sound anyway, so return
87 if (mAudioManager == null) {
108 mAudioManager.playSoundEffect(sound, mSettingsValues.mKeypressSoundVolume);
  /developers/build/prebuilts/gradle/FindMyPhone/Application/src/main/java/com/example/android/wearable/findphone/
SoundAlarmListenerService.java 41 private AudioManager mAudioManager;
50 mAudioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
51 mOrigVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM);
52 mMaxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_ALARM);
60 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mOrigVolume, 0);
77 mOrigVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM);
80 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mMaxVolume, 0);
91 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mOrigVolume, 0);
  /developers/samples/android/wearable/wear/FindMyPhone/Application/src/main/java/com/example/android/wearable/findphone/
SoundAlarmListenerService.java 41 private AudioManager mAudioManager;
50 mAudioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
51 mOrigVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM);
52 mMaxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_ALARM);
60 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mOrigVolume, 0);
77 mOrigVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM);
80 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mMaxVolume, 0);
91 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mOrigVolume, 0);
  /development/samples/browseable/FindMyPhone/Application/src/com.example.android.wearable.findphone/
SoundAlarmListenerService.java 41 private AudioManager mAudioManager;
50 mAudioManager = (AudioManager) getSystemService(AUDIO_SERVICE);
51 mOrigVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM);
52 mMaxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_ALARM);
60 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mOrigVolume, 0);
77 mOrigVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM);
80 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mMaxVolume, 0);
91 mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM, mOrigVolume, 0);
  /packages/services/Telecomm/src/com/android/server/telecom/
WiredHeadsetManager.java 62 AudioDeviceInfo[] devices = mAudioManager.getDevices(AudioManager.GET_DEVICES_ALL);
79 private final AudioManager mAudioManager;
90 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
91 mIsPluggedIn = mAudioManager.isWiredHeadsetOn();
93 mAudioManager.registerAudioDeviceCallback(new WiredHeadsetCallback(), null);
  /frameworks/support/media-compat/jellybean-mr2/android/support/v4/media/
TransportMediatorJellybeanMR2.java 33 final AudioManager mAudioManager;
99 mAudioManager = audioManager;
133 mAudioManager.registerMediaButtonEventReceiver(mPendingIntent);
134 mAudioManager.registerRemoteControlClient(mRemoteControl);
144 mAudioManager.requestAudioFocus(mAudioFocusChangeListener,
186 mAudioManager.abandonAudioFocus(mAudioFocusChangeListener);
194 mAudioManager.unregisterRemoteControlClient(mRemoteControl);
195 mAudioManager.unregisterMediaButtonEventReceiver(mPendingIntent);
  /frameworks/base/packages/Keyguard/src/com/android/keyguard/
ObscureSpeechDelegate.java 41 private final AudioManager mAudioManager;
45 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
95 if (mAudioManager.isWiredHeadsetOn() || mAudioManager.isBluetoothA2dpOn()) {
  /packages/services/Car/car-lib/src/android/car/media/
CarAudioManager.java 88 private final AudioManager mAudioManager;
117 return mAudioManager.requestAudioFocus(l, requestAttributes, durationHint, flags);
127 return mAudioManager.abandonAudioFocus(l, aa);
138 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
  /frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
FixVibrateSetting.java 32 AudioManager mAudioManager;
45 mAudioManager = (AudioManager)getSystemService(AUDIO_SERVICE);
68 int setting = mAudioManager.getVibrateSetting(vibrateType);
102 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION,
107 mAudioManager.setVibrateSetting(AudioManager.VIBRATE_TYPE_NOTIFICATION,
  /frameworks/base/core/java/android/preference/
SeekBarVolumizer.java 60 private final AudioManager mAudioManager;
92 mAudioManager = context.getSystemService(AudioManager.class);
95 mAffectedByRingerMode = mAudioManager.isStreamAffectedByRingerMode(mStreamType);
98 mRingerMode = mAudioManager.getRingerModeInternal();
101 mMaxStreamVolume = mAudioManager.getStreamMaxVolume(mStreamType);
103 mOriginalStreamVolume = mAudioManager.getStreamVolume(mStreamType);
104 mLastAudibleStreamVolume = mAudioManager.getLastAudibleStreamVolume(mStreamType);
105 mMuted = mAudioManager.isStreamMute(mStreamType);
160 mAudioManager.adjustStreamVolume(mStreamType, AudioManager.ADJUST_UNMUTE, 0);
162 mAudioManager.adjustStreamVolume(mStreamType, AudioManager.ADJUST_MUTE, 0)
    [all...]
  /packages/apps/Dialer/src/com/android/dialer/voicemail/
VoicemailAudioManager.java 36 private AudioManager mAudioManager;
44 mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
54 int result = mAudioManager.requestAudioFocus(
64 mAudioManager.abandonAudioFocus(this);
195 if (mAudioManager.isSpeakerphoneOn() != on) {
197 mAudioManager.setSpeakerphoneOn(on);
  /packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
AudioPlayer.java 78 private AudioManager mAudioManager;
101 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
104 ret = mAudioManager.requestAudioFocus(mFocusListener, mAttrib,
137 mAudioManager.abandonAudioFocus(mFocusListener);
151 mAudioManager.abandonAudioFocus(mFocusListener);
180 mAudioManager.abandonAudioFocus(mFocusListener);
  /packages/services/Car/tests/carservice_test/src/android/media/tests/
AudioPolicyTest.java 42 private AudioManager mAudioManager;
53 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
62 mAudioManager.registerAudioPortUpdateListener(listener);
70 mAudioManager.registerAudioPolicy(audioPolicy);
72 mAudioManager.unregisterAudioPolicyAsync(audioPolicy);
74 mAudioManager.unregisterAudioPortUpdateListener(listener);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
SafetyWarningDialog.java 39 private final AudioManager mAudioManager;
47 mAudioManager = audioManager;
77 mAudioManager.disableSafeMediaVolume();
85 mAudioManager.disableSafeMediaVolume();

Completed in 1419 milliseconds

1 2 3 4 5