Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/shared/model/
DRingerMode.kt33 AudioManager.RINGER_MODE_VIBRATE,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/domain/interactor/
DAudioVolumeInteractor.kt70 if (isMuted) AudioManager.RINGER_MODE_VIBRATE else AudioManager.RINGER_MODE_NORMAL in <lambda>()
110 if (isNotificationOrRing && ringerMode.value == AudioManager.RINGER_MODE_VIBRATE) { in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java21 import static android.media.AudioManager.RINGER_MODE_VIBRATE;
384 vibrateState.ringerModeInternal = AudioManager.RINGER_MODE_VIBRATE; in testVibrateOnRingerChangedToVibrate()
408 vibrateState.ringerModeInternal = AudioManager.RINGER_MODE_VIBRATE; in testNoVibrateOnRingerInitialization()
430 AudioManager.RINGER_MODE_VIBRATE, false); in testSelectVibrateFromDrawer()
454 initialUnsetState.ringerModeInternal = AudioManager.RINGER_MODE_VIBRATE; in testSelectNormalFromDrawer()
573 assertRingerContainerDescribesItsState(RINGER_MODE_VIBRATE, RingerDrawerState.INIT); in ringerModeVibrate_ringerContainerDescribesItsState()
588 assertRingerContainerDescribesItsState(RINGER_MODE_VIBRATE, RingerDrawerState.OPEN); in ringerModeVibrate_openDrawer_ringerContainerDescribesItsState()
603 assertRingerContainerDescribesItsState(RINGER_MODE_VIBRATE, RingerDrawerState.CLOSE); in ringerModeVibrate_closeDrawer_ringerContainerDescribesItsState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java254 RINGER_MODE_VIBRATE(155), enumConstant
297 case AudioManager.RINGER_MODE_VIBRATE: in fromRingerMode()
298 return RINGER_MODE_VIBRATE; in fromRingerMode()
534 case AudioManager.RINGER_MODE_VIBRATE: return "vibrate"; in ringerModeToString()
DUtil.java37 case AudioManager.RINGER_MODE_VIBRATE: in ringerModeToString()
DVolumeDialogImpl.java22 import static android.media.AudioManager.RINGER_MODE_VIBRATE;
900 mController.setRingerMode(AudioManager.RINGER_MODE_VIBRATE, false); in initRow()
992 new RingerDrawerItemClickListener(RINGER_MODE_VIBRATE)); in setupRingerDrawer()
1031 if (mode == RINGER_MODE_VIBRATE) { in getDrawerIconViewForMode()
1045 return mode == RINGER_MODE_VIBRATE in getTranslationInDrawerForRingerMode()
1074 mState.ringerModeInternal == RINGER_MODE_VIBRATE ? INVISIBLE : VISIBLE); in showRingerDrawer()
1103 final int ringerDrawerAnimationDuration = mState.ringerModeInternal == RINGER_MODE_VIBRATE in showRingerDrawer()
1113 .setStartDelay(mState.ringerModeInternal == RINGER_MODE_VIBRATE in showRingerDrawer()
1255 newRingerMode = AudioManager.RINGER_MODE_VIBRATE; in initRingerH()
1259 } else if (mState.ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE) { in initRingerH()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/domain/interactor/
DAudioVolumeInteractorTest.kt175 audioRepository.setRingerMode(RingerMode(AudioManager.RINGER_MODE_VIBRATE)) in ringerModeVibrateAndMuted_getNotificationStream_volumeIsMin()
193 audioRepository.setRingerMode(RingerMode(AudioManager.RINGER_MODE_VIBRATE)) in ringerModeVibrate_getRingerStream_volumeIsMin()
231 assertThat(ringerMode).isEqualTo(RingerMode(AudioManager.RINGER_MODE_VIBRATE)) in muteRingerStream_ringerMode_vibrate()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DVolumeHelperTest.java29 import static android.media.AudioManager.RINGER_MODE_VIBRATE;
304 assertEquals(RINGER_MODE_VIBRATE, mAudioService.getRingerModeExternal()); in setStreamRingVolume0_setsRingerModeVibrate()
468 mAudioService.setRingerModeInternal(RINGER_MODE_VIBRATE, mContext.getOpPackageName()); in flagAllowRingerModes_onSystemStreams_changesMode()
474 assertNotEquals(mAudioService.getRingerModeInternal(), RINGER_MODE_VIBRATE); in flagAllowRingerModes_onSystemStreams_changesMode() local
482 mAudioService.setRingerModeInternal(RINGER_MODE_VIBRATE, mContext.getOpPackageName()); in flagAllowRingerModesAbsent_onNonSystemStreams_noModeChange()
488 assertEquals(mAudioService.getRingerModeInternal(), RINGER_MODE_VIBRATE); in flagAllowRingerModesAbsent_onNonSystemStreams_noModeChange() local
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/volume/slider/ui/viewmodel/
DAudioStreamSliderViewModel.kt175 if (ringerMode.value == AudioManager.RINGER_MODE_VIBRATE) { in <lambda>()
196 if (ringerMode.value == AudioManager.RINGER_MODE_VIBRATE) { in <lambda>()
/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/notification/
DZenLog.java206 case AudioManager.RINGER_MODE_VIBRATE: return "vibrate"; in ringerModeToString()
DZenModeHelper.java2466 case AudioManager.RINGER_MODE_VIBRATE: in onSetRingerModeInternal()
2503 final boolean isVibrate = ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE; in onSetRingerModeExternal()
2512 ringerModeInternalOut = isVibrate ? AudioManager.RINGER_MODE_VIBRATE in onSetRingerModeExternal()
2518 case AudioManager.RINGER_MODE_VIBRATE: in onSetRingerModeExternal()
DNotificationAttentionHelper.java415 == AudioManager.RINGER_MODE_VIBRATE) in buzzBeepBlinkLocked()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioManagerShellCommand.java179 case "VIBRATE" -> AudioManager.RINGER_MODE_VIBRATE; in getRingerMode()
DAudioService.java48 import static android.media.AudioManager.RINGER_MODE_VIBRATE;
2877 if ((ringerMode == AudioManager.RINGER_MODE_VIBRATE) && !mHasVibrator) { in readPersistedSettings()
3698 if (ringerMode == AudioManager.RINGER_MODE_VIBRATE) { in adjustStreamVolume()
3999 newRingerMode = mHasVibrator ? AudioManager.RINGER_MODE_VIBRATE in getNewRingerMode()
5665 ringerMode = AudioManager.RINGER_MODE_VIBRATE; in silenceRingerModeInternal()
5694 if ((ringerMode == AudioManager.RINGER_MODE_VIBRATE) && !mHasVibrator) { in setRingerMode()
5749 final boolean ringerModeMute = ringerMode == AudioManager.RINGER_MODE_VIBRATE in muteRingerModeStreams()
5751 final boolean shouldRingSco = ringerMode == AudioManager.RINGER_MODE_VIBRATE in muteRingerModeStreams()
5861 return getRingerModeExternal() == AudioManager.RINGER_MODE_VIBRATE; in shouldVibrate()
6942 ringerMode = RINGER_MODE_VIBRATE; in checkForRingerModeChange()
[all …]
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationSettingsTest.java448 setRingerMode(AudioManager.RINGER_MODE_VIBRATE); in shouldIgnoreVibration_withRingerModeVibrate_allowsAllVibrations()
572 setRingerMode(AudioManager.RINGER_MODE_VIBRATE); in shouldIgnoreVibration_withRingSettingsOff_ignoresRingtoneVibrations()
DVibratorManagerServiceTest.java729 setRingerMode(AudioManager.RINGER_MODE_VIBRATE); in vibrate_withRingtone_usesRingerModeSettings()
2052 setRingerMode(AudioManager.RINGER_MODE_VIBRATE); in onExternalVibration_withRingtone_usesRingerModeSettings()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAttentionHelperTest.java1021 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_VIBRATE); in testNoDemoteSoundToVibrateIfVibrateGiven()
1040 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_VIBRATE); in testNoDemoteSoundToVibrateIfNonNotificationStream()
1060 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_VIBRATE); in testDemoteSoundToVibrate()
1083 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_VIBRATE); in testDemoteInsistentSoundToVibrate()
1356 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_VIBRATE); in testQuietUpdateCancelsDemotedVibrate()
DZenModeHelperTest.java1027 AudioManager.RINGER_MODE_VIBRATE, "test", AudioManager.RINGER_MODE_NORMAL, in testVibrateRingerSavedOnZenOff_startsZenOn()
1029 assertEquals(AudioManager.RINGER_MODE_VIBRATE, Global.getInt(mContext.getContentResolver(), in testVibrateRingerSavedOnZenOff_startsZenOn()
1033 when(mAudioManager.getRingerModeInternal()).thenReturn(AudioManager.RINGER_MODE_VIBRATE); in testVibrateRingerSavedOnZenOff_startsZenOn()
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java295 } else if (mNotificationOrRing && mRingerMode == AudioManager.RINGER_MODE_VIBRATE) { in updateSeekBar()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java750 case AudioManager.RINGER_MODE_VIBRATE -> "vibrate"; in ringerModeToString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java437 if (ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE) { in updateVolumeZen()
/frameworks/base/media/java/android/media/
DAudioManager.java819 public static final int RINGER_MODE_VIBRATE = 1; field in AudioManager
5986 (ringerMode == RINGER_MODE_VIBRATE); in isSilentMode()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt14146 field public static final int RINGER_MODE_VIBRATE = 1; // 0x1
/frameworks/base/core/api/
Dcurrent.txt21533 field public static final int RINGER_MODE_VIBRATE = 1; // 0x1