Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/domain/interactor/
DAudioVolumeInteractor.kt41 audioRepository.ringerMode, in <lambda>()
43 ) { streamModel: AudioStreamModel, ringerMode: RingerMode, isZenMuted: Boolean -> in <lambda>() method
44 streamModel.copy(volume = processVolume(streamModel, ringerMode, isZenMuted)) in <lambda>()
47 val ringerMode: StateFlow<RingerMode> in <lambda>() constant in com.android.settingslib.volume.domain.interactor.AudioVolumeInteractor
48 get() = audioRepository.ringerMode in <lambda>()
101 ringerMode: RingerMode, in <lambda>()
110 if (isNotificationOrRing && ringerMode.value == AudioManager.RINGER_MODE_VIBRATE) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java293 static VolumeDialogEvent fromRingerMode(int ringerMode) { in fromRingerMode() argument
294 switch (ringerMode) { in fromRingerMode()
452 final Integer ringerMode = (Integer) list[0]; in logEvent() local
453 sLegacyLogger.action(MetricsEvent.ACTION_VOLUME_RINGER_TOGGLE, ringerMode); in logEvent()
454 sUiEventLogger.log(VolumeDialogEvent.fromRingerMode(ringerMode)); in logEvent()
455 sb.append(ringerModeToString(ringerMode)); in logEvent()
459 final Integer ringerMode = (Integer) list[0]; in logEvent() local
460 sLegacyLogger.action(MetricsEvent.ACTION_RINGER_MODE, ringerMode); in logEvent()
464 final Integer ringerMode = (Integer) list[0]; in logEvent() local
465 sb.append(ringerModeToString(ringerMode)); in logEvent()
[all …]
DUtil.java33 public static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
34 switch (ringerMode) { in ringerModeToString()
42 return "RINGER_MODE_UNKNOWN_" + ringerMode; in ringerModeToString()
DVolumeDialogControllerImpl.java1126 RingerModeObservers(RingerModeLiveData ringerMode, in RingerModeObservers() argument
1128 mRingerMode = ringerMode; in RingerModeObservers()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/volume/slider/ui/viewmodel/
DAudioStreamSliderViewModel.kt106 audioVolumeInteractor.ringerMode, in <lambda>()
107 ) { model, isEnabled, ringerMode -> in <lambda>() method
108 model.toState(isEnabled, ringerMode) in <lambda>()
139 ringerMode: RingerMode, in <lambda>()
147 icon = getIcon(ringerMode), in <lambda>()
175 if (ringerMode.value == AudioManager.RINGER_MODE_VIBRATE) { in <lambda>()
192 private fun AudioStreamModel.getIcon(ringerMode: RingerMode): Icon { in <lambda>()
196 if (ringerMode.value == AudioManager.RINGER_MODE_VIBRATE) { in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/domain/interactor/
DAudioVolumeInteractorTest.kt228 val ringerMode by collectLastValue(audioRepository.ringerMode) in muteRingerStream_ringerMode_vibrate() constant
231 assertThat(ringerMode).isEqualTo(RingerMode(AudioManager.RINGER_MODE_VIBRATE)) in muteRingerStream_ringerMode_vibrate()
240 val ringerMode by collectLastValue(audioRepository.ringerMode) in unMuteRingerStream_ringerMode_normal() constant
243 assertThat(ringerMode).isEqualTo(RingerMode(AudioManager.RINGER_MODE_NORMAL)) in unMuteRingerStream_ringerMode_normal()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaPresetReverbTest.java195 int ringerMode = am.getRingerMode(); in test2_0AuxiliarySoundModification() local
253 am.setRingerMode(ringerMode); in test2_0AuxiliarySoundModification()
268 int ringerMode = am.getRingerMode(); in test2_1InsertSoundModification() local
338 am.setRingerMode(ringerMode); in test2_1InsertSoundModification()
DMediaVisualizerTest.java230 int ringerMode = am.getRingerMode(); in test2_0PollingCapture() local
296 am.setRingerMode(ringerMode); in test2_0PollingCapture()
309 int ringerMode = am.getRingerMode(); in test2_1ListenerCapture() local
428 am.setRingerMode(ringerMode); in test2_1ListenerCapture()
443 int ringerMode = am.getRingerMode(); in test2_2PollingCaptureVolumeScaling() local
513 am.setRingerMode(ringerMode); in test2_2PollingCaptureVolumeScaling()
DMediaEnvReverbTest.java350 int ringerMode = am.getRingerMode(); in test2_0AuxiliarySoundModification() local
410 am.setRingerMode(ringerMode); in test2_0AuxiliarySoundModification()
425 int ringerMode = am.getRingerMode(); in test2_1InsertSoundModification() local
497 am.setRingerMode(ringerMode); in test2_1InsertSoundModification()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DRingerModeTracker.kt23 val ringerMode: LiveData<Int> constant
DRingerModeTrackerImpl.kt40 override val ringerMode: LiveData<Int> = RingerModeLiveData( constant
/frameworks/base/media/java/android/media/
DAudioManagerInternal.java35 public abstract void setRingerModeInternal(int ringerMode, String caller); in setRingerModeInternal() argument
DIAudioService.aidl192 void setRingerModeExternal(int ringerMode, String caller); in setRingerModeExternal() argument
194 void setRingerModeInternal(int ringerMode, String caller); in setRingerModeInternal() argument
200 boolean isValidRingerMode(int ringerMode); in isValidRingerMode() argument
DAudioManager.java1191 public static boolean isValidRingerMode(int ringerMode) { in isValidRingerMode() argument
1192 if (ringerMode < 0 || ringerMode > RINGER_MODE_MAX) { in isValidRingerMode()
1197 return service.isValidRingerMode(ringerMode); in isValidRingerMode()
1388 public void setRingerMode(int ringerMode) { in setRingerMode() argument
1389 if (!isValidRingerMode(ringerMode)) { in setRingerMode()
1394 service.setRingerModeExternal(ringerMode, getContext().getOpPackageName()); in setRingerMode()
5983 int ringerMode = getRingerMode(); in isSilentMode() local
5985 (ringerMode == RINGER_MODE_SILENT) || in isSilentMode()
5986 (ringerMode == RINGER_MODE_VIBRATE); in isSilentMode()
7402 public void setRingerModeInternal(int ringerMode) { in setRingerModeInternal() argument
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioManagerShellCommand.java164 final int ringerMode = getRingerMode(ringerModeText); in setRingerMode() local
165 if (!AudioManager.isValidRingerMode(ringerMode)) { in setRingerMode()
172 am.setRingerModeInternal(ringerMode); in setRingerMode()
DAudioService.java2871 int ringerMode = ringerModeFromSettings; in readPersistedSettings() local
2874 if (!isValidRingerMode(ringerMode)) { in readPersistedSettings()
2875 ringerMode = AudioManager.RINGER_MODE_NORMAL; in readPersistedSettings()
2877 if ((ringerMode == AudioManager.RINGER_MODE_VIBRATE) && !mHasVibrator) { in readPersistedSettings()
2878 ringerMode = AudioManager.RINGER_MODE_SILENT; in readPersistedSettings()
2880 if (ringerMode != ringerModeFromSettings) { in readPersistedSettings()
2881 mSettings.putGlobalInt(cr, Settings.Global.MODE_RINGER, ringerMode); in readPersistedSettings()
2884 ringerMode = AudioManager.RINGER_MODE_NORMAL; in readPersistedSettings()
2887 mRingerMode = ringerMode; in readPersistedSettings()
3696 int ringerMode = getRingerModeInternal(); in adjustStreamVolume() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/data/repository/
DAudioRepository.kt65 val ringerMode: StateFlow<RingerMode> in <lambda>() constant
126 override val ringerMode: StateFlow<RingerMode> = constant in com.android.settingslib.volume.data.repository.AudioRepositoryImpl
216 withContext(backgroundCoroutineContext) { audioManager.ringerMode = mode.value } in setRingerMode()
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java203 private static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
204 switch (ringerMode) { in ringerModeToString()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java239 int ringerMode = am.getRingerModeInternal(); in onSystemReady() local
244 mRingerMode = ringerMode; in onSystemReady()
747 private static String ringerModeToString(int ringerMode) { in ringerModeToString() argument
748 return switch (ringerMode) { in ringerModeToString()
752 default -> String.valueOf(ringerMode); in ringerModeToString()
/frameworks/layoutlib/bridge/src/android/media/
DAudioManager.java87 public void setRingerMode(int ringerMode) { } in setRingerMode() argument
463 public void setRingerModeInternal(int ringerMode) { } in setRingerModeInternal() argument
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/data/repository/
DFakeAudioRepository.kt36 override val ringerMode: StateFlow<RingerMode> = mutableRingerMode.asStateFlow() constant in com.android.systemui.volume.data.repository.FakeAudioRepository
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/
DVolumeDialogImplTest.java631 private void assertRingerContainerDescribesItsState(int ringerMode, in assertRingerContainerDescribesItsState() argument
636 state.ringerModeInternal = ringerMode; in assertRingerContainerDescribesItsState()
654 mDialog.getStringDescriptionResourceForRingerMode(ringerMode)); in assertRingerContainerDescribesItsState()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/volume/data/repository/
DAudioRepositoryTest.kt133 underTest.ringerMode.onEach { modes.add(it) }.launchIn(backgroundScope) in ringerModeChanges_repositoryEmits()
/frameworks/base/services/core/java/com/android/server/policy/
DLegacyGlobalActions.java678 private int ringerModeToIndex(int ringerMode) {
680 return ringerMode;
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibrationSettingsTest.java999 private void setRingerMode(int ringerMode) { in setRingerMode() argument
1000 when(mAudioManagerMock.getRingerModeInternal()).thenReturn(ringerMode); in setRingerMode()

12