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.java32 public static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
33 switch (ringerMode) { in ringerModeToString()
41 return "RINGER_MODE_UNKNOWN_" + ringerMode; in ringerModeToString()
DEvents.java235 private static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
236 switch (ringerMode) { in ringerModeToString()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1537 int ringerMode = ringerModeFromSettings; in readPersistedSettings() local
1540 if (!isValidRingerMode(ringerMode)) { in readPersistedSettings()
1541 ringerMode = AudioManager.RINGER_MODE_NORMAL; in readPersistedSettings()
1543 if ((ringerMode == AudioManager.RINGER_MODE_VIBRATE) && !mHasVibrator) { in readPersistedSettings()
1544 ringerMode = AudioManager.RINGER_MODE_SILENT; in readPersistedSettings()
1546 if (ringerMode != ringerModeFromSettings) { in readPersistedSettings()
1547 Settings.Global.putInt(cr, Settings.Global.MODE_RINGER, ringerMode); in readPersistedSettings()
1550 ringerMode = AudioManager.RINGER_MODE_NORMAL; in readPersistedSettings()
1553 mRingerMode = ringerMode; in readPersistedSettings()
1840 int ringerMode = getRingerModeInternal(); in adjustStreamVolume() local
[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/media/java/android/media/
DIAudioService.aidl115 void setRingerModeExternal(int ringerMode, String caller); in setRingerModeExternal() argument
117 void setRingerModeInternal(int ringerMode, String caller); in setRingerModeInternal() argument
123 boolean isValidRingerMode(int ringerMode); in isValidRingerMode() argument
DAudioManagerInternal.java43 public abstract void setRingerModeInternal(int ringerMode, String caller); in setRingerModeInternal() argument
DAudioManager.java947 public static boolean isValidRingerMode(int ringerMode) { in isValidRingerMode() argument
948 if (ringerMode < 0 || ringerMode > RINGER_MODE_MAX) { in isValidRingerMode()
953 return service.isValidRingerMode(ringerMode); in isValidRingerMode()
1136 public void setRingerMode(int ringerMode) { in setRingerMode() argument
1137 if (!isValidRingerMode(ringerMode)) { in setRingerMode()
1142 service.setRingerModeExternal(ringerMode, getContext().getOpPackageName()); in setRingerMode()
3928 int ringerMode = getRingerMode(); in isSilentMode() local
3930 (ringerMode == RINGER_MODE_SILENT) || in isSilentMode()
3931 (ringerMode == RINGER_MODE_VIBRATE); in isSilentMode()
4475 public void setRingerModeInternal(int ringerMode) { in setRingerModeInternal() argument
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java187 private static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
188 switch (ringerMode) { in ringerModeToString()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java673 private int ringerModeToIndex(int ringerMode) {
675 return ringerMode;
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java936 int ringerMode = audioManager.getRingerModeInternal(); in shouldVibrateForRingtone() local
940 return ringerMode != AudioManager.RINGER_MODE_SILENT; in shouldVibrateForRingtone()
945 return ringerMode != AudioManager.RINGER_MODE_SILENT; in shouldVibrateForRingtone()
947 return ringerMode == AudioManager.RINGER_MODE_VIBRATE; in shouldVibrateForRingtone()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialog.java1331 private int ringerModeToIndex(int ringerMode) {
1333 return ringerMode;