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
133
) sorted by null
1
2
3
4
5
6
/cts/tests/tests/media/src/android/media/cts/
AudioManagerTest.java
57
private AudioManager
mAudioManager
;
70
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
88
mAudioManager
.setMicrophoneMute(true);
89
assertTrue(
mAudioManager
.isMicrophoneMute());
90
mAudioManager
.setMicrophoneMute(false);
91
assertFalse(
mAudioManager
.isMicrophoneMute());
99
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
107
mAudioManager
.loadSoundEffects();
110
mAudioManager
.playSoundEffect(SoundEffectConstants.CLICK);
111
mAudioManager
.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP)
[
all
...]
AudioManagerStub.java
34
private AudioManager
mAudioManager
;
49
mAudioManager
= (AudioManager) getSystemService(Context.AUDIO_SERVICE);
61
mAudioManager
.setStreamMute(i, false);
62
mAudioManager
.setStreamSolo(i, false);
75
mAudioManager
.setStreamMute(i, true);
76
mAudioManager
.setStreamSolo(i, true);
RingtoneManagerTest.java
44
private AudioManager
mAudioManager
;
60
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
62
mOriginalVolume =
mAudioManager
.getStreamVolume(AudioManager.STREAM_RING);
69
mAudioManager
.adjustStreamVolume(AudioManager.STREAM_RING, AudioManager.ADJUST_RAISE,
84
if (
mAudioManager
!= null) {
85
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING, mOriginalVolume,
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);
/packages/apps/Settings/tests/app/src/com/android/settings/notification/
SoundSettingsIntegrationTest.java
43
private AudioManager
mAudioManager
;
52
mAudioManager
= (AudioManager) mActivityRule.getActivity().getApplicationContext()
54
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_SILENT);
63
mAudioManager
= (AudioManager) mActivityRule.getActivity().getApplicationContext()
65
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
73
mAudioManager
= (AudioManager) mActivityRule.getActivity().getApplicationContext()
75
mAudioManager
.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
76
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING,
77
mAudioManager
.getStreamMaxVolume(AudioManager.STREAM_RING), 0);
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
AudioRestrictionTest.java
30
private AudioManager
mAudioManager
;
42
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
87
mAudioManager
.setStreamVolume(AudioManager.STREAM_RING, 1, /* flag= */ 0);
95
mAudioManager
.adjustVolume(AudioManager.ADJUST_RAISE, /* flag= */ 0);
96
assertEquals(1,
mAudioManager
.getStreamVolume(AudioManager.STREAM_RING));
104
mAudioManager
.adjustVolume(AudioManager.ADJUST_RAISE, /* flag= */ 0);
108
return
mAudioManager
.getStreamVolume(AudioManager.STREAM_RING);
125
mAudioManager
.setMicrophoneMute(false);
126
assertFalse(
mAudioManager
.isMicrophoneMute());
134
return
mAudioManager
.isMicrophoneMute()
[
all
...]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
AccessibilityVolumeTest.java
34
AudioManager
mAudioManager
;
41
mAudioManager
=
54
int startingVolume =
mAudioManager
.getStreamVolume(AudioManager.STREAM_ACCESSIBILITY);
56
mAudioManager
.setStreamVolume(AudioManager.STREAM_ACCESSIBILITY, otherVolume, 0);
58
startingVolume,
mAudioManager
.getStreamVolume(AudioManager.STREAM_ACCESSIBILITY));
66
int startingVolume =
mAudioManager
.getStreamVolume(AudioManager.STREAM_ACCESSIBILITY);
72
mAudioManager
.setStreamVolume(AudioManager.STREAM_ACCESSIBILITY, otherVolume, 0));
74
otherVolume,
mAudioManager
.getStreamVolume(AudioManager.STREAM_ACCESSIBILITY));
75
service.runOnServiceSync(() ->
mAudioManager
.setStreamVolume(
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
USBAudioPeripheralActivity.java
41
AudioManager
mAudioManager
;
65
mAudioManager
= (AudioManager)getSystemService(AUDIO_SERVICE);
66
mAudioManager
.registerAudioDeviceCallback(new ConnectListener(), new Handler());
69
mAudioManager
.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE));
147
scanPeripheralList(
mAudioManager
.getDevices(AudioManager.GET_DEVICES_ALL));
158
scanPeripheralList(
mAudioManager
.getDevices(AudioManager.GET_DEVICES_ALL));
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
ReadDefaultUris.java
30
private AudioManager
mAudioManager
;
35
mAudioManager
= (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
70
assertFalse(
mAudioManager
.isMusicActive());
/packages/apps/TV/src/com/android/tv/
AudioManagerHelper.java
21
private final AudioManager
mAudioManager
;
30
mAudioManager
= (AudioManager) activity.getSystemService(Context.AUDIO_SERVICE);
74
int result =
mAudioManager
.requestAudioFocus(this,
86
mAudioManager
.abandonAudioFocus(this);
/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);
/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
...]
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
VoicemailAudioManager.java
35
private AudioManager
mAudioManager
;
44
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
56
mAudioManager
.requestAudioFocus(
66
mAudioManager
.abandonAudioFocus(this);
144
mAudioManager
.startBluetoothSco();
148
mAudioManager
.setBluetoothScoOn(true);
150
mAudioManager
.setBluetoothScoOn(false);
151
mAudioManager
.stopBluetoothSco();
156
for (AudioDeviceInfo info :
mAudioManager
.getDevices(AudioManager.GET_DEVICES_OUTPUTS)) {
247
if (
mAudioManager
.isSpeakerphoneOn() != on)
[
all
...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
VolumeSeekBarPreferenceTest.java
42
private AudioManager
mAudioManager
;
51
when(mContext.getSystemService(Context.AUDIO_SERVICE)).thenReturn(
mAudioManager
);
52
mPreference.
mAudioManager
=
mAudioManager
;
60
when(
mAudioManager
.getStreamMaxVolume(stream)).thenReturn(max);
61
when(
mAudioManager
.getStreamVolume(stream)).thenReturn(progress);
NotificationVolumePreferenceControllerTest.java
48
private AudioManager
mAudioManager
;
58
when(mContext.getSystemService(Context.AUDIO_SERVICE)).thenReturn(
mAudioManager
);
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/service/
PlayerAdapter.java
55
private final AudioManager
mAudioManager
;
62
mAudioManager
= (AudioManager) mApplicationContext.getSystemService(Context.AUDIO_SERVICE);
135
final int result =
mAudioManager
.requestAudioFocus(this,
142
mAudioManager
.abandonAudioFocus(this);
166
mAudioManager
.abandonAudioFocus(this);
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/service/
PlayerAdapter.java
55
private final AudioManager
mAudioManager
;
62
mAudioManager
= (AudioManager) mApplicationContext.getSystemService(Context.AUDIO_SERVICE);
135
final int result =
mAudioManager
.requestAudioFocus(this,
142
mAudioManager
.abandonAudioFocus(this);
166
mAudioManager
.abandonAudioFocus(this);
/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();
/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,
/packages/services/Car/service/src/com/android/car/
VolumeUtils.java
157
private final AudioManager
mAudioManager
;
160
mAudioManager
= audioManager;
167
int maxIndex =
mAudioManager
.getStreamMaxVolume(streamType);
195
if (index ==
mAudioManager
.getStreamVolume(stream)) {
198
mAudioManager
.setStreamVolume(stream, index, 0 /*don't show UI*/);
/packages/services/Telecomm/src/com/android/server/telecom/
WiredHeadsetManager.java
71
private final AudioManager
mAudioManager
;
82
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
85
mAudioManager
.registerAudioDeviceCallback(new WiredHeadsetCallback(), null);
105
AudioDeviceInfo[] devices =
mAudioManager
.getDevices(AudioManager.GET_DEVICES_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);
/frameworks/av/media/libaudioclient/include/media/
PlayerBase.h
81
android::sp<android::IAudioManager>
mAudioManager
;
/packages/apps/Settings/src/com/android/settings/notification/
VolumeSeekBarPreference.java
56
AudioManager
mAudioManager
;
62
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
68
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
74
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
80
mAudioManager
= (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
85
setMax(
mAudioManager
.getStreamMaxVolume(mStream));
86
setProgress(
mAudioManager
.getStreamVolume(mStream));
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/sound/
SoundFragment.java
44
private AudioManager
mAudioManager
;
52
mAudioManager
= (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);
111
mAudioManager
.loadSoundEffects();
113
mAudioManager
.unloadSoundEffects();
Completed in 854 milliseconds
1
2
3
4
5
6