Home
last modified time | relevance | path

Searched refs:ringerModeInternal (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceCoreStartableTest.kt99 val ringerModeInternal = mock<MutableLiveData<Int>>() in <lambda>() constant
100 whenever(ringerModeTracker.ringerModeInternal).thenReturn(ringerModeInternal) in <lambda>()
114 val ringerModeInternal = mock<MutableLiveData<Int>>() in <lambda>() constant
116 whenever(ringerModeTracker.ringerModeInternal).thenReturn(ringerModeInternal) in <lambda>()
121 verify(ringerModeInternal).observeForever(observerCaptor.capture()) in <lambda>()
134 val ringerModeInternal = mock<MutableLiveData<Int>>() in <lambda>() constant
136 whenever(ringerModeTracker.ringerModeInternal).thenReturn(ringerModeInternal) in <lambda>()
144 verify(ringerModeInternal).observeForever(observerCaptor.capture()) in <lambda>()
157 val ringerModeInternal = mock<MutableLiveData<Int>>() in <lambda>() constant
158 whenever(ringerModeTracker.ringerModeInternal).thenReturn(ringerModeInternal) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceConfigTest.kt115 whenever(audioManager.ringerModeInternal).thenReturn(AudioManager.RINGER_MODE_NORMAL) in <lambda>()
117 whenever(audioManager.ringerModeInternal).thenReturn(AudioManager.RINGER_MODE_SILENT) in <lambda>()
122 verify(audioManager, times(2)).ringerModeInternal = ringerModeCapture.capture() in <lambda>()
133 whenever(audioManager.ringerModeInternal).thenReturn(AudioManager.RINGER_MODE_NORMAL) in <lambda>()
138 verify(audioManager).ringerModeInternal = ringerModeCapture.capture() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DMuteQuickAffordanceConfig.kt73 ringerModeTracker.ringerModeInternal in <lambda>()
108 val currentRingerMode = audioManager.ringerModeInternal in <lambda>()
117 audioManager.ringerModeInternal = newRingerMode in <lambda>()
146 ringerModeTracker.ringerModeInternal.value ?: DEFAULT_LAST_NON_SILENT_VALUE in <lambda>()
DMuteQuickAffordanceCoreStartable.kt65 ringerModeTracker.ringerModeInternal.observeForever(observer) in <lambda>()
67 ringerModeTracker.ringerModeInternal.removeObserver(observer) in <lambda>()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DVolumeDialogController.java120 public int ringerModeInternal; field in VolumeDialogController.State
137 rt.ringerModeInternal = ringerModeInternal; in copy()
172 sep(sb, indent); sb.append("ringerModeInternal:").append(ringerModeInternal); in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DRingerModeTracker.kt24 val ringerModeInternal: LiveData<Int> constant
DRingerModeTrackerImpl.kt47 override val ringerModeInternal: LiveData<Int> = RingerModeLiveData( constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java381 initialSilentState.ringerModeInternal = AudioManager.RINGER_MODE_SILENT; in testVibrateOnRingerChangedToVibrate()
384 vibrateState.ringerModeInternal = AudioManager.RINGER_MODE_VIBRATE; in testVibrateOnRingerChangedToVibrate()
402 initialUnsetState.ringerModeInternal = -1; in testNoVibrateOnRingerInitialization()
408 vibrateState.ringerModeInternal = AudioManager.RINGER_MODE_VIBRATE; in testNoVibrateOnRingerInitialization()
422 initialUnsetState.ringerModeInternal = AudioManager.RINGER_MODE_NORMAL; in testSelectVibrateFromDrawer()
438 initialUnsetState.ringerModeInternal = AudioManager.RINGER_MODE_NORMAL; in testSelectMuteFromDrawer()
454 initialUnsetState.ringerModeInternal = AudioManager.RINGER_MODE_VIBRATE; in testSelectNormalFromDrawer()
636 state.ringerModeInternal = ringerMode; in assertRingerContainerDescribesItsState()
/frameworks/base/media/java/android/media/
DAudioManagerInternal.java78 int ringerModeInternal, VolumePolicy policy); in onSetRingerModeExternal() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogImpl.java898 if (mState.ringerModeInternal == AudioManager.RINGER_MODE_NORMAL) { in initRow()
1074 mState.ringerModeInternal == RINGER_MODE_VIBRATE ? INVISIBLE : VISIBLE); in showRingerDrawer()
1076 mState.ringerModeInternal == RINGER_MODE_SILENT ? INVISIBLE : VISIBLE); in showRingerDrawer()
1078 mState.ringerModeInternal == RINGER_MODE_NORMAL ? INVISIBLE : VISIBLE); in showRingerDrawer()
1087 getTranslationInDrawerForRingerMode(mState.ringerModeInternal)); in showRingerDrawer()
1090 getTranslationInDrawerForRingerMode(mState.ringerModeInternal)); in showRingerDrawer()
1103 final int ringerDrawerAnimationDuration = mState.ringerModeInternal == RINGER_MODE_VIBRATE in showRingerDrawer()
1113 .setStartDelay(mState.ringerModeInternal == RINGER_MODE_VIBRATE in showRingerDrawer()
1126 getDrawerIconViewForMode(mState.ringerModeInternal).setVisibility(VISIBLE)); in showRingerDrawer()
1134 .translationY(getTranslationInDrawerForRingerMode(mState.ringerModeInternal)) in showRingerDrawer()
[all …]
DVolumeDialogControllerImpl.java698 if (rm == mState.ringerModeInternal) return false; in updateRingerModeInternalW()
699 mState.ringerModeInternal = rm; in updateRingerModeInternalW()
702 if (mState.ringerModeInternal == RINGER_MODE_NORMAL) { in updateRingerModeInternalW()
1112 mState.ringerModeInternal = rm;
1127 RingerModeLiveData ringerModeInternal) { in RingerModeObservers() argument
1129 mRingerModeInternal = ringerModeInternal; in RingerModeObservers()
1144 mState.ringerModeInternal = initialValue; in init()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/data/repository/
DAudioRepository.kt129 .map { RingerMode(audioManager.ringerModeInternal) } in <lambda>()
130 .onStart { emit(RingerMode(audioManager.ringerModeInternal)) } in <lambda>()
135 RingerMode(audioManager.ringerModeInternal),
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DAudioRepositoryTest.kt83 `when`(audioManager.ringerModeInternal).thenReturn(AudioManager.RINGER_MODE_NORMAL) in setup()
136 `when`(audioManager.ringerModeInternal).thenReturn(AudioManager.RINGER_MODE_SILENT) in ringerModeChanges_repositoryEmits()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java434 final Integer ringerModeInternal = in updateVolumeZen() local
436 if (ringerModeInternal != null) { in updateVolumeZen()
437 if (ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE) { in updateVolumeZen()
439 } else if (ringerModeInternal == AudioManager.RINGER_MODE_SILENT) { in updateVolumeZen()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java2264 final int ringerModeInternal = mAudioManager.getRingerModeInternal(); in applyZenToRingerMode() local
2265 int newRingerModeInternal = ringerModeInternal; in applyZenToRingerMode()
2269 if (ringerModeInternal != AudioManager.RINGER_MODE_SILENT) { in applyZenToRingerMode()
2270 setPreviousRingerModeSetting(ringerModeInternal); in applyZenToRingerMode()
2278 if (ringerModeInternal == AudioManager.RINGER_MODE_SILENT) { in applyZenToRingerMode()
2500 @Nullable String caller, int ringerModeInternal, VolumePolicy policy) { in onSetRingerModeExternal() argument
2503 final boolean isVibrate = ringerModeInternal == AudioManager.RINGER_MODE_VIBRATE; in onSetRingerModeExternal()
2515 ringerModeInternalOut = ringerModeInternal; in onSetRingerModeExternal()
2531 ringerModeInternal, ringerModeInternalOut); in onSetRingerModeExternal()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java5700 final int ringerModeInternal = getRingerModeInternal(); in setRingerMode() local
5706 ringerMode, caller, ringerModeInternal, mVolumePolicy); in setRingerMode()
5708 if (ringerMode != ringerModeInternal) { in setRingerMode()
5712 if (ringerMode != ringerModeInternal) { in setRingerMode()
5716 ringerMode = mRingerModeDelegate.onSetRingerModeInternal(ringerModeInternal, in setRingerMode()