Home
last modified time | relevance | path

Searched refs:RINGER_MODE_SILENT (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceConfig.kt79 if (mode != null && mode != AudioManager.RINGER_MODE_SILENT) { in <lambda>()
88 mode == AudioManager.RINGER_MODE_SILENT -> in <lambda>()
109 if (currentRingerMode == AudioManager.RINGER_MODE_SILENT) { in <lambda>()
113 newRingerMode = AudioManager.RINGER_MODE_SILENT in <lambda>()
DMuteQuickAffordanceCoreStartable.kt75 if (AudioManager.RINGER_MODE_SILENT != lastRingerMode) { in <lambda>()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/shared/model/
DRingerMode.kt32 AudioManager.RINGER_MODE_SILENT,
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceConfigTest.kt117 whenever(audioManager.ringerModeInternal).thenReturn(AudioManager.RINGER_MODE_SILENT) in <lambda>()
142 assertEquals(AudioManager.RINGER_MODE_SILENT, ringerModeCapture.value) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java252 RINGER_MODE_SILENT(154), enumConstant
295 case AudioManager.RINGER_MODE_SILENT: in fromRingerMode()
296 return RINGER_MODE_SILENT; in fromRingerMode()
533 case AudioManager.RINGER_MODE_SILENT: return "silent"; in ringerModeToString()
DUtil.java35 case AudioManager.RINGER_MODE_SILENT: in ringerModeToString()
DVolumeDialogImpl.java21 import static android.media.AudioManager.RINGER_MODE_SILENT;
994 new RingerDrawerItemClickListener(RINGER_MODE_SILENT)); in setupRingerDrawer()
1033 } else if (mode == RINGER_MODE_SILENT) { in getDrawerIconViewForMode()
1047 : mode == RINGER_MODE_SILENT in getTranslationInDrawerForRingerMode()
1076 mState.ringerModeInternal == RINGER_MODE_SILENT ? INVISIBLE : VISIBLE); in showRingerDrawer()
1257 newRingerMode = AudioManager.RINGER_MODE_SILENT; in initRingerH()
1260 newRingerMode = AudioManager.RINGER_MODE_SILENT; in initRingerH()
1416 case RINGER_MODE_SILENT: in provideTouchFeedbackH()
1447 case RINGER_MODE_SILENT: in maybeShowToastH()
1778 case AudioManager.RINGER_MODE_SILENT:
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java20 import static android.media.AudioManager.RINGER_MODE_SILENT;
381 initialSilentState.ringerModeInternal = AudioManager.RINGER_MODE_SILENT; in testVibrateOnRingerChangedToVibrate()
446 AudioManager.RINGER_MODE_SILENT, false); in testSelectMuteFromDrawer()
568 assertRingerContainerDescribesItsState(RINGER_MODE_SILENT, RingerDrawerState.INIT); in ringerModeSilent_ringerContainerDescribesItsState()
583 assertRingerContainerDescribesItsState(RINGER_MODE_SILENT, RingerDrawerState.OPEN); in ringerModeSilent_openDrawer_ringerContainerDescribesItsState()
598 assertRingerContainerDescribesItsState(RINGER_MODE_SILENT, RingerDrawerState.CLOSE); in ringerModeSilent_closeDrawer_ringerContainerDescribesItsState()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DAudioRepositoryTest.kt136 `when`(audioManager.ringerModeInternal).thenReturn(AudioManager.RINGER_MODE_SILENT) in ringerModeChanges_repositoryEmits()
143 RingerMode(AudioManager.RINGER_MODE_SILENT), in ringerModeChanges_repositoryEmits()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioManagerTest.java44 AudioManager.RINGER_MODE_SILENT, AudioManager.RINGER_MODE_VIBRATE};
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java520 return mRingerMode != AudioManager.RINGER_MODE_SILENT; in shouldVibrateForRingerModeLocked()
622 ? AudioManager.RINGER_MODE_SILENT in updateRingerMode()
749 case AudioManager.RINGER_MODE_SILENT -> "silent"; in ringerModeToString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceCoreStartableTest.kt122 observerCaptor.value.onChanged(AudioManager.RINGER_MODE_SILENT) in <lambda>()
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java205 case AudioManager.RINGER_MODE_SILENT: return "silent"; in ringerModeToString()
DZenModeHelper.java2269 if (ringerModeInternal != AudioManager.RINGER_MODE_SILENT) { in applyZenToRingerMode()
2271 newRingerModeInternal = AudioManager.RINGER_MODE_SILENT; in applyZenToRingerMode()
2278 if (ringerModeInternal == AudioManager.RINGER_MODE_SILENT) { in applyZenToRingerMode()
2458 case AudioManager.RINGER_MODE_SILENT: in onSetRingerModeInternal()
2468 if (isChange && ringerModeOld == AudioManager.RINGER_MODE_SILENT in onSetRingerModeInternal()
2475 ringerModeExternalOut = AudioManager.RINGER_MODE_SILENT; in onSetRingerModeInternal()
2507 case AudioManager.RINGER_MODE_SILENT: in onSetRingerModeExternal()
2513 : AudioManager.RINGER_MODE_SILENT; in onSetRingerModeExternal()
DNotificationAttentionHelper.java452 == AudioManager.RINGER_MODE_SILENT; in buzzBeepBlinkLocked()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationSettingsTest.java425 setRingerMode(AudioManager.RINGER_MODE_SILENT); in shouldIgnoreVibration_withRingerModeSilent_ignoresRingtoneAndNotification()
438 setRingerMode(AudioManager.RINGER_MODE_SILENT); in shouldIgnoreVibration_withRingerModeSilentAndBypassFlag_allowsAllVibrations()
596 when(mAudioManagerMock.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_SILENT); in shouldIgnoreVibration_updateTriggeredAfterInternalRingerModeChanged()
DVibratorManagerServiceTest.java719 setRingerMode(AudioManager.RINGER_MODE_SILENT); in vibrate_withRingtone_usesRingerModeSettings()
2041 setRingerMode(AudioManager.RINGER_MODE_SILENT); in onExternalVibration_withRingtone_usesRingerModeSettings()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioManagerShellCommand.java180 case "SILENT" -> AudioManager.RINGER_MODE_SILENT; in getRingerMode()
DAudioService.java47 import static android.media.AudioManager.RINGER_MODE_SILENT;
2878 ringerMode = AudioManager.RINGER_MODE_SILENT; in readPersistedSettings()
4000 : mVolumePolicy.volumeDownToEnterSilent ? AudioManager.RINGER_MODE_SILENT in getNewRingerMode()
4025 if (getRingerModeExternal() == AudioManager.RINGER_MODE_SILENT in wouldToggleZenMode()
4026 && newMode != AudioManager.RINGER_MODE_SILENT) { in wouldToggleZenMode()
4028 } else if (getRingerModeExternal() != AudioManager.RINGER_MODE_SILENT in wouldToggleZenMode()
4029 && newMode == AudioManager.RINGER_MODE_SILENT) { in wouldToggleZenMode()
5646 int ringerMode = AudioManager.RINGER_MODE_SILENT; in silenceRingerModeInternal()
5660 ringerMode = AudioManager.RINGER_MODE_SILENT; in silenceRingerModeInternal()
5695 ringerMode = AudioManager.RINGER_MODE_SILENT; in setRingerMode()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java828 verify(mAudioManager, never()).setRingerModeInternal(AudioManager.RINGER_MODE_SILENT, in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted()
832 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_SILENT); in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted()
924 Integer.toString(AudioManager.RINGER_MODE_SILENT)); in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartSilent()
927 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_SILENT); in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartSilent()
932 verify(mAudioManager, atLeastOnce()).setRingerModeInternal(AudioManager.RINGER_MODE_SILENT, in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartSilent()
936 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_SILENT); in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartSilent()
939 verify(mAudioManager, atLeastOnce()).setRingerModeInternal(AudioManager.RINGER_MODE_SILENT, in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_StartSilent()
964 AudioManager.RINGER_MODE_SILENT, "test", AudioManager.RINGER_MODE_NORMAL, in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_RingerChanges()
966 assertEquals(AudioManager.RINGER_MODE_SILENT, Global.getInt(mContext.getContentResolver(), in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_RingerChanges()
970 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_SILENT); in testZenSetInternalRinger_NotAllPriorityNotificationSoundsMuted_RingerChanges()
[all …]
DNotificationAttentionHelperTest.java2127 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_SILENT); in testStartFlashNotificationEvent_receiveBuzzyBeepyNotification_ringerModeSilent()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java647 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java439 } else if (ringerModeInternal == AudioManager.RINGER_MODE_SILENT) { in updateVolumeZen()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialogLite.java2050 mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
/frameworks/base/media/java/android/media/
DAudioManager.java809 public static final int RINGER_MODE_SILENT = 0; field in AudioManager
5985 (ringerMode == RINGER_MODE_SILENT) || in isSilentMode()

12