Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java73 public static void traceSetRingerMode(int ringerMode) { in traceSetRingerMode() argument
74 append(TYPE_SET_RINGER_MODE, ringerModeToString(ringerMode)); in traceSetRingerMode()
105 public static void traceFollowRingerMode(int ringerMode, int oldZen, int newZen) { in traceFollowRingerMode() argument
106 append(TYPE_FOLLOW_RINGER_MODE, ringerModeToString(ringerMode) + ", " in traceFollowRingerMode()
137 private static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
138 switch (ringerMode) { in ringerModeToString()
DZenModeHelper.java246 int ringerMode = mAudioManager.getRingerMode(); in updateZenMode() local
249 if (ringerMode != AudioManager.RINGER_MODE_SILENT) { in updateZenMode()
250 mPreviousRingerMode = ringerMode; in updateZenMode()
255 if (ringerMode == AudioManager.RINGER_MODE_SILENT) { in updateZenMode()
309 final int ringerMode = mAudioManager.getRingerMode(); in handleRingerModeChanged() local
311 if (ringerMode == AudioManager.RINGER_MODE_SILENT) { in handleRingerModeChanged()
315 } else if ((ringerMode == AudioManager.RINGER_MODE_NORMAL in handleRingerModeChanged()
316 || ringerMode == AudioManager.RINGER_MODE_VIBRATE) in handleRingerModeChanged()
321 ZenLog.traceFollowRingerMode(ringerMode, mZenMode, newZen); in handleRingerModeChanged()
/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/
DAudioService.java843 int ringerMode = ringerModeFromSettings; in readPersistedSettings() local
846 if (!AudioManager.isValidRingerMode(ringerMode)) { in readPersistedSettings()
847 ringerMode = AudioManager.RINGER_MODE_NORMAL; in readPersistedSettings()
849 if ((ringerMode == AudioManager.RINGER_MODE_VIBRATE) && !mHasVibrator) { in readPersistedSettings()
850 ringerMode = AudioManager.RINGER_MODE_SILENT; in readPersistedSettings()
852 if (ringerMode != ringerModeFromSettings) { in readPersistedSettings()
853 Settings.Global.putInt(cr, Settings.Global.MODE_RINGER, ringerMode); in readPersistedSettings()
856 ringerMode = AudioManager.RINGER_MODE_NORMAL; in readPersistedSettings()
859 mRingerMode = ringerMode; in readPersistedSettings()
900 broadcastRingerMode(ringerMode); in readPersistedSettings()
[all …]
DAudioManager.java886 public static boolean isValidRingerMode(int ringerMode) { in isValidRingerMode() argument
887 if (ringerMode < 0 || ringerMode > RINGER_MODE_MAX) { in isValidRingerMode()
984 public void setRingerMode(int ringerMode) { in setRingerMode() argument
985 setRingerMode(ringerMode, true /*checkZen*/); in setRingerMode()
993 public void setRingerMode(int ringerMode, boolean checkZen) { in setRingerMode() argument
994 if (!isValidRingerMode(ringerMode)) { in setRingerMode()
999 service.setRingerMode(ringerMode, checkZen); in setRingerMode()
2745 int ringerMode = getRingerMode(); in isSilentMode() local
2747 (ringerMode == RINGER_MODE_SILENT) || in isSilentMode()
2748 (ringerMode == RINGER_MODE_VIBRATE); in isSilentMode()
DIAudioService.aidl79 void setRingerMode(int ringerMode, boolean checkZen); in setRingerMode() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePanel.java691 int ringerMode = mAudioManager.getRingerMode(); in updateSliderIcon() local
692 if (ringerMode == AudioManager.RINGER_MODE_SILENT) { in updateSliderIcon()
693 ringerMode = mLastRingerMode; in updateSliderIcon()
695 mLastRingerMode = ringerMode; in updateSliderIcon()
697 muted = ringerMode == AudioManager.RINGER_MODE_VIBRATE; in updateSliderIcon()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DGlobalActions.java916 private int ringerModeToIndex(int ringerMode) {
918 return ringerMode;