Home
last modified time | relevance | path

Searched refs:ringerMode (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DUtil.java71 public static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
72 switch (ringerMode) { in ringerModeToString()
76 default: return "RINGER_MODE_UNKNOWN_" + ringerMode; in ringerModeToString()
DEvents.java197 private static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
198 switch (ringerMode) { in ringerModeToString()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1228 int ringerMode = ringerModeFromSettings; in readPersistedSettings() local
1231 if (!isValidRingerMode(ringerMode)) { in readPersistedSettings()
1232 ringerMode = AudioManager.RINGER_MODE_NORMAL; in readPersistedSettings()
1234 if ((ringerMode == AudioManager.RINGER_MODE_VIBRATE) && !mHasVibrator) { in readPersistedSettings()
1235 ringerMode = AudioManager.RINGER_MODE_SILENT; in readPersistedSettings()
1237 if (ringerMode != ringerModeFromSettings) { in readPersistedSettings()
1238 Settings.Global.putInt(cr, Settings.Global.MODE_RINGER, ringerMode); in readPersistedSettings()
1241 ringerMode = AudioManager.RINGER_MODE_NORMAL; in readPersistedSettings()
1244 mRingerMode = ringerMode; in readPersistedSettings()
1470 int ringerMode = getRingerModeInternal(); in adjustStreamVolume() local
[all …]
/frameworks/base/media/java/android/media/
DIAudioService.aidl78 void setRingerModeExternal(int ringerMode, String caller); in setRingerModeExternal() argument
80 void setRingerModeInternal(int ringerMode, String caller); in setRingerModeInternal() argument
86 boolean isValidRingerMode(int ringerMode); in isValidRingerMode() argument
DAudioManagerInternal.java43 public abstract void setRingerModeInternal(int ringerMode, String caller); in setRingerModeInternal() argument
DAudioManager.java885 public static boolean isValidRingerMode(int ringerMode) { in isValidRingerMode() argument
886 if (ringerMode < 0 || ringerMode > RINGER_MODE_MAX) { in isValidRingerMode()
891 return service.isValidRingerMode(ringerMode); in isValidRingerMode()
992 public void setRingerMode(int ringerMode) { in setRingerMode() argument
993 if (!isValidRingerMode(ringerMode)) { in setRingerMode()
998 service.setRingerModeExternal(ringerMode, getContext().getOpPackageName()); in setRingerMode()
3324 int ringerMode = getRingerMode(); in isSilentMode() local
3326 (ringerMode == RINGER_MODE_SILENT) || in isSilentMode()
3327 (ringerMode == RINGER_MODE_VIBRATE); in isSilentMode()
3809 public void setRingerModeInternal(int ringerMode) { in setRingerModeInternal() argument
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaVisualizerTest.java234 int ringerMode = am.getRingerMode(); in test2_0PollingCapture() local
300 am.setRingerMode(ringerMode); in test2_0PollingCapture()
313 int ringerMode = am.getRingerMode(); in test2_1ListenerCapture() local
432 am.setRingerMode(ringerMode); in test2_1ListenerCapture()
447 int ringerMode = am.getRingerMode(); in test2_2PollingCaptureVolumeScaling() local
517 am.setRingerMode(ringerMode); in test2_2PollingCaptureVolumeScaling()
DMediaPresetReverbTest.java201 int ringerMode = am.getRingerMode(); in test2_0AuxiliarySoundModification() local
259 am.setRingerMode(ringerMode); in test2_0AuxiliarySoundModification()
274 int ringerMode = am.getRingerMode(); in test2_1InsertSoundModification() local
344 am.setRingerMode(ringerMode); in test2_1InsertSoundModification()
DMediaEnvReverbTest.java356 int ringerMode = am.getRingerMode(); in test2_0AuxiliarySoundModification() local
416 am.setRingerMode(ringerMode); in test2_0AuxiliarySoundModification()
431 int ringerMode = am.getRingerMode(); in test2_1InsertSoundModification() local
503 am.setRingerMode(ringerMode); in test2_1InsertSoundModification()
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java167 private static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
168 switch (ringerMode) { in ringerModeToString()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java559 int ringerMode = audioManager.getRingerModeInternal(); in shouldVibrateForRingtone() local
563 return ringerMode != AudioManager.RINGER_MODE_SILENT; in shouldVibrateForRingtone()
565 return ringerMode == AudioManager.RINGER_MODE_VIBRATE; in shouldVibrateForRingtone()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java1063 private int ringerModeToIndex(int ringerMode) {
1065 return ringerMode;
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java1050 private int ringerModeToIndex(int ringerMode) {
1052 return ringerMode;