OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mAudioManager
(Results
1 - 25
of
89
) sorted by null
1
2
3
4
/cts/tests/tests/media/src/android/media/cts/
AudioManagerTest.java
58
private AudioManager
mAudioManager
;
69
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
89
mAudioManager
.setMicrophoneMute(true);
90
assertTrue(
mAudioManager
.isMicrophoneMute());
91
mAudioManager
.setMicrophoneMute(false);
92
assertFalse(
mAudioManager
.isMicrophoneMute());
97
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
101
mAudioManager
.loadSoundEffects();
104
mAudioManager
.playSoundEffect(SoundEffectConstants.CLICK);
105
mAudioManager
.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP)
[
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
34
private AudioManager
mAudioManager
;
44
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
47
mOriginalRingerMode =
mAudioManager
.getRingerMode();
48
mOriginalVolume =
mAudioManager
.getStreamVolume(AudioManager.STREAM_RING);
51
int maxVolume =
mAudioManager
.getStreamMaxVolume(AudioManager.STREAM_RING);
52
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2,
55
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
68
if (
mAudioManager
!= null) {
69
mAudioManager
.setRingerMode(mOriginalRingerMode);
70
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume
[
all
...]
RingtoneManagerTest.java
44
private AudioManager
mAudioManager
;
59
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
61
mOriginalVolume =
mAudioManager
.getStreamVolume(AudioManager.STREAM_RING);
64
mAudioManager
.adjustStreamVolume(AudioManager.STREAM_RING, AudioManager.ADJUST_RAISE,
71
if (
mAudioManager
!= null) {
72
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume,
/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
33
private AudioManager
mAudioManager
;
42
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
43
assertNotNull(
mAudioManager
);
158
int audioMode =
mAudioManager
.getMode();
159
mAudioManager
.setMode(AudioManager.MODE_IN_CALL);
160
assertEquals(audioMode,
mAudioManager
.getMode());
/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
34
private AudioManager
mAudioManager
;
56
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
78
if (mSettingsValues == null || !mSettingsValues.mSoundOn ||
mAudioManager
== null) {
81
return
mAudioManager
.getRingerMode() == AudioManager.RINGER_MODE_NORMAL;
85
// if
mAudioManager
is null, we can't play a sound anyway, so return
86
if (
mAudioManager
== null) {
107
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);
/frameworks/support/v4/jellybean-mr2/android/support/v4/media/
TransportMediatorJellybeanMR2.java
35
final AudioManager
mAudioManager
;
88
mAudioManager
= audioManager;
122
mAudioManager
.registerMediaButtonEventReceiver(mPendingIntent);
123
mAudioManager
.registerRemoteControlClient(mRemoteControl);
133
mAudioManager
.requestAudioFocus(mAudioFocusChangeListener,
185
mAudioManager
.abandonAudioFocus(mAudioFocusChangeListener);
193
mAudioManager
.unregisterRemoteControlClient(mRemoteControl);
194
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()) {
KeyguardViewBase.java
62
private AudioManager
mAudioManager
;
342
if (
mAudioManager
== null) {
343
mAudioManager
= (AudioManager) getContext().getSystemService(
349
mAudioManager
.adjustSuggestedStreamVolume(
385
if (
mAudioManager
== null) {
386
mAudioManager
= (AudioManager) getContext().getSystemService(
390
mAudioManager
.dispatchMediaKeyEvent(keyEvent);
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
VibrationProvider.java
23
private final AudioManager
mAudioManager
;
34
if (
mAudioManager
.getRingerMode() != AudioManager.RINGER_MODE_SILENT &&
46
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
55
private final AudioManager
mAudioManager
;
80
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
82
mAffectedByRingerMode =
mAudioManager
.isStreamAffectedByRingerMode(mStreamType);
85
mRingerMode =
mAudioManager
.getRingerModeInternal();
87
mMaxStreamVolume =
mAudioManager
.getStreamMaxVolume(mStreamType);
89
mOriginalStreamVolume =
mAudioManager
.getStreamVolume(mStreamType);
90
mMuted =
mAudioManager
.isStreamMute(mStreamType);
138
mAudioManager
.setStreamVolume(mStreamType, mLastProgress,
224
mAudioManager
.setStreamVolume(mStreamType, mOriginalStreamVolume, 0);
329
if (mSeekBar != null &&
mAudioManager
!= null)
[
all
...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/
SoundActivity.java
42
private AudioManager
mAudioManager
;
48
mAudioManager
= (AudioManager) getSystemService(Context.AUDIO_SERVICE);
80
mAudioManager
.loadSoundEffects();
83
mAudioManager
.unloadSoundEffects();
/external/chromium_org/media/base/android/java/src/org/chromium/media/
AudioManagerAndroid.java
162
private final AudioManager
mAudioManager
;
230
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
322
mSavedAudioMode =
mAudioManager
.getMode();
331
mSavedIsSpeakerphoneOn =
mAudioManager
.isSpeakerphoneOn();
332
mSavedIsMicrophoneMute =
mAudioManager
.isMicrophoneMute();
335
mAudioManager
.setMode(AudioManager.MODE_IN_COMMUNICATION);
362
mAudioManager
.setMode(mSavedAudioMode);
458
String sampleRateString =
mAudioManager
.getProperty(
516
mAudioManager
.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER);
582
mAudioManager
.stopBluetoothSco()
[
all
...]
/cts/tests/tests/net/src/android/net/rtp/cts/
AudioGroupTest.java
35
private AudioManager
mAudioManager
;
45
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
46
mAudioManager
.setMode(AudioManager.MODE_IN_COMMUNICATION);
74
mAudioManager
.setMode(AudioManager.MODE_NORMAL);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
AccessibilityUtils.java
50
private AudioManager
mAudioManager
;
84
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
141
if (
mAudioManager
.isWiredHeadsetOn() ||
mAudioManager
.isBluetoothA2dpOn()) {
/packages/services/Telecomm/src/com/android/server/telecom/
CallAudioManager.java
37
private final AudioManager
mAudioManager
;
52
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
320
if (mAudioState.isMuted() !=
mAudioManager
.isMicrophoneMute()) {
322
mAudioManager
.setMicrophoneMute(mAudioState.isMuted());
346
if (
mAudioManager
.isSpeakerphoneOn() != on) {
348
mAudioManager
.setSpeakerphoneOn(on);
416
mAudioManager
.requestAudioFocusForCall(stream,
428
mAudioManager
.abandonAudioFocusForCall();
441
int oldMode =
mAudioManager
.getMode();
447
mAudioManager
.setMode(AudioManager.MODE_NORMAL)
[
all
...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
VolumeUI.java
54
private AudioManager
mAudioManager
;
66
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
96
mAudioManager
.setVolumeController(mVolumeController);
100
mAudioManager
.setVolumeController(null);
125
if (
mAudioManager
!= null && mVolumeController != null) {
126
mAudioManager
.notifyVolumeControllerVisible(mVolumeController, visible);
/packages/apps/Mms/src/com/android/mms/transaction/
NotificationPlayer.java
115
mAudioManager
= audioManager;
187
mAudioManager
.abandonAudioFocus(null);
188
mAudioManager
= null;
216
if (
mAudioManager
!= null) {
217
mAudioManager
.abandonAudioFocus(null);
238
private AudioManager
mAudioManager
;
Completed in 8845 milliseconds
1
2
3
4