OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:mAudioManager
(Results
1 - 25
of
52
) sorted by null
1
2
3
/cts/tests/tests/media/src/android/media/cts/
AudioManagerTest.java
55
private AudioManager
mAudioManager
;
62
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
70
mAudioManager
.setMicrophoneMute(true);
71
assertTrue(
mAudioManager
.isMicrophoneMute());
72
mAudioManager
.setMicrophoneMute(false);
73
assertFalse(
mAudioManager
.isMicrophoneMute());
78
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
82
mAudioManager
.loadSoundEffects();
85
mAudioManager
.playSoundEffect(SoundEffectConstants.CLICK);
86
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
32
private AudioManager
mAudioManager
;
42
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
45
mOriginalRingerMode =
mAudioManager
.getRingerMode();
46
mOriginalVolume =
mAudioManager
.getStreamVolume(AudioManager.STREAM_RING);
49
int maxVolume =
mAudioManager
.getStreamMaxVolume(AudioManager.STREAM_RING);
50
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING, maxVolume / 2,
53
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
66
if (
mAudioManager
!= null) {
67
mAudioManager
.setRingerMode(mOriginalRingerMode);
68
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume
[
all
...]
RingtoneManagerTest.java
41
private AudioManager
mAudioManager
;
56
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
58
mOriginalVolume =
mAudioManager
.getStreamVolume(AudioManager.STREAM_RING);
61
mAudioManager
.adjustStreamVolume(AudioManager.STREAM_RING, AudioManager.ADJUST_RAISE,
68
if (
mAudioManager
!= null) {
69
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume,
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
SoundManager.java
28
private AudioManager
mAudioManager
;
39
if (
mAudioManager
== null) {
40
mAudioManager
= (AudioManager) mContext
43
mSilentMode = (
mAudioManager
.getRingerMode() != AudioManager.RINGER_MODE_NORMAL);
56
if (
mAudioManager
== null) {
61
mAudioManager
.playSoundEffect(sound, FX_VOLUME);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
VolumeController.java
38
private AudioManager
mAudioManager
;
52
mAudioManager
= (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
54
mMute =
mAudioManager
.getRingerMode() != AudioManager.RINGER_MODE_NORMAL;
55
mVolume =
mAudioManager
.getStreamVolume(STREAM);
62
control.setMax(
mAudioManager
.getStreamMaxVolume(STREAM));
70
mAudioManager
.setRingerMode(
74
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
75
mAudioManager
.setStreamVolume(STREAM, level, AudioManager.FLAG_PLAY_SOUND);
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsHelper.java
37
private AudioManager
mAudioManager
;
41
mAudioManager
= (AudioManager) context
116
mAudioManager
.loadSoundEffects();
118
mAudioManager
.unloadSoundEffects();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
AudioAndHapticFeedbackManager.java
32
private AudioManager
mAudioManager
;
54
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
76
if (mSettingsValues == null || !mSettingsValues.mSoundOn ||
mAudioManager
== null) {
79
return
mAudioManager
.getRingerMode() == AudioManager.RINGER_MODE_NORMAL;
83
// if
mAudioManager
is null, we can't play a sound anyway, so return
84
if (
mAudioManager
== null) {
103
mAudioManager
.playSoundEffect(sound, mSettingsValues.mKeypressSoundVolume);
/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
...]
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
KeyguardViewBase.java
49
private AudioManager
mAudioManager
;
196
if (
mAudioManager
== null) {
197
mAudioManager
= (AudioManager) getContext().getSystemService(
203
mAudioManager
.adjustLocalOrRemoteStreamVolume(
ObscureSpeechDelegate.java
40
private final AudioManager
mAudioManager
;
44
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
94
if (
mAudioManager
.isWiredHeadsetOn() ||
mAudioManager
.isBluetoothA2dpOn()) {
KeyguardTransportControlView.java
75
private AudioManager
mAudioManager
;
186
mAudioManager
= new AudioManager(mContext);
220
mAudioManager
.registerRemoteControlDisplay(mIRCD);
230
mAudioManager
.remoteControlDisplayUsesBitmapSize(mIRCD, dim, dim);
240
mAudioManager
.unregisterRemoteControlDisplay(mIRCD);
/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/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
...]
/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/core/java/android/preference/
VolumePreference.java
228
private AudioManager
mAudioManager
;
241
if (mSeekBar != null &&
mAudioManager
!= null) {
242
int volume =
mAudioManager
.getStreamVolume(mStreamType);
254
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
262
seekBar.setMax(
mAudioManager
.getStreamMaxVolume(mStreamType));
263
mOriginalStreamVolume =
mAudioManager
.getStreamVolume(mStreamType);
295
mAudioManager
.setStreamVolume(mStreamType, mOriginalStreamVolume, 0);
324
mAudioManager
.setStreamVolume(mStreamType, mLastProgress, 0);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
AccessibilityUtils.java
49
private AudioManager
mAudioManager
;
79
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
136
if (
mAudioManager
.isWiredHeadsetOn() ||
mAudioManager
.isBluetoothA2dpOn()) {
/packages/apps/Music/src/com/android/music/
AudioPreview.java
70
private AudioManager
mAudioManager
;
104
mAudioManager
= (AudioManager) getSystemService(Context.AUDIO_SERVICE);
218
mAudioManager
.abandonAudioFocus(mAudioFocusListener);
249
mAudioManager
.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC,
260
mAudioManager
.abandonAudioFocus(this);
287
mAudioManager
.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC,
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/
ScoAudioTest.java
61
AudioManager
mAudioManager
;
109
mAudioManager
= (AudioManager) getSystemService(Context.AUDIO_SERVICE);
152
mCurrentMode =
mAudioManager
.getMode();
186
mAudioManager
.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO,
195
mOriginalVoiceVolume =
mAudioManager
.getStreamVolume(
198
mCurrentMode =
mAudioManager
.getMode();
209
AudioManager mngr =
mAudioManager
;
555
mAudioManager
.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO,
566
mAudioManager
.setStreamVolume(AudioManager.STREAM_BLUETOOTH_SCO,
588
mOriginalVoiceVolume =
mAudioManager
.getStreamVolume
[
all
...]
/packages/apps/Settings/src/com/android/settings/
SoundSettings.java
98
private AudioManager
mAudioManager
;
135
mAudioManager
= (AudioManager) getSystemService(Context.AUDIO_SERVICE);
291
mAudioManager
.loadSoundEffects();
293
mAudioManager
.unloadSoundEffects();
RingerVolumePreference.java
115
boolean muted =
mAudioManager
.isStreamMute(streamType);
120
(
mAudioManager
.getRingerMode() == AudioManager.RINGER_MODE_VIBRATE)) {
129
final int volume =
mAudioManager
.getStreamVolume(streamType);
131
if (streamType !=
mAudioManager
.getMasterStreamType() && muted) {
141
private AudioManager
mAudioManager
;
157
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
/frameworks/base/services/java/com/android/server/
WiredAccessoryManager.java
76
private final AudioManager
mAudioManager
;
91
mAudioManager
= (AudioManager)context.getSystemService(Context.AUDIO_SERVICE);
267
mAudioManager
.setWiredDeviceConnectionState(device, state, headsetName);
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertAudio.java
100
private AudioManager
mAudioManager
;
205
mAudioManager
= (AudioManager) getSystemService(Context.AUDIO_SERVICE);
258
switch (
mAudioManager
.getRingerMode()) {
341
mAudioManager
.requestAudioFocus(null, AudioManager.STREAM_NOTIFICATION,
426
mAudioManager
.abandonAudioFocus(null);
/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);
/frameworks/base/policy/src/com/android/internal/policy/impl/
PhoneFallbackEventHandler.java
45
AudioManager
mAudioManager
;
280
if (
mAudioManager
== null) {
281
mAudioManager
= (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE);
283
return
mAudioManager
;
Completed in 895 milliseconds
1
2
3