Home
last modified time | relevance | path

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

12

/packages/services/Car/service/src/com/android/car/audio/
DAudioManagerWrapper.java178 int getStreamMaxVolume(int stream) { in getStreamMaxVolume() method in AudioManagerWrapper
179 return mAudioManager.getStreamMaxVolume(stream); in getStreamMaxVolume()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVolumeSeekBarPreferenceTest.java90 when(mAudioManager.getStreamMaxVolume(STREAM)).thenReturn(max); in setStream_shouldSetMinMaxAndProgress()
159 when(mAudioManager.getStreamMaxVolume(STREAM)).thenReturn(max); in init_changeProgress_stateDescriptionValueUpdated()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DAudioManagerWrapperTest.java379 public void getStreamMaxVolume() { in getStreamMaxVolume() method in AudioManagerWrapperTest
382 when(mAudioManager.getStreamMaxVolume(stream)).thenReturn(index); in getStreamMaxVolume()
385 mAudioManagerWrapper.getStreamMaxVolume(stream)).isEqualTo(index); in getStreamMaxVolume()
/packages/apps/Settings/src/com/android/settings/notification/
DAudioHelper.java77 return mAudioManager.getStreamMaxVolume(stream); in getMaxVolume()
DVolumeSeekBarPreference.java102 setMax(mAudioManager.getStreamMaxVolume(mStream)); in setStream()
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyTonePlayer.java119 mAudioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL), in startAlert()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/sensoryfeedback/
DEmergencyActionAlarmHelper.java106 mAudioManager.getStreamMaxVolume(streamType), 0); in setAlarmVolumeToFull()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DAlarmVolumePreference.kt54 val maxVolume = audioManager.getStreamMaxVolume(STREAM_ALARM) - getMinVolume(audioManager) in onBindViewHolder()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManagerTest.java67 when(mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC)) in setUp()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeControlUpdater.java174 audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC) in setAudioManagerStreamVolume()
DAudioSharingDeviceVolumeGroupController.java407 int max = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in getAudioVolumeIfNeeded()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/displaysound/
DVolumeChangePreferenceFragment.java133 final int maxIndex = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in commit()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertAudioTest.java238 doReturn(TEST_MAX_VOLUME).when(mMockedAudioManager).getStreamMaxVolume( in testStartServiceNotInCallOverrideDnd()
468 doReturn(TEST_MAX_VOLUME).when(mMockedAudioManager).getStreamMaxVolume( in testStartServiceMuteWithOverrideDnd()
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/
DSdkSandboxConfigurationTest.java260 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_SYSTEM); in testCanAccessVolume()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/
DSdkApi.java160 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in getSandboxDump()
/packages/modules/Bluetooth/android/pandora/server/src/
DAsha.kt242 val maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC) in playbackAudio()
DA2dp.kt264 val maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC) in playbackAudio()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java175 sDeviceMaxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in AvrcpVolumeManager()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java1198 int maxLocalVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in setAbsVolume()
1226 int maxVolume = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in getAbsVolume()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeControlUpdaterTest.java288 when(mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC)) in addPreference_fallbackDevice_setStreamVolume()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/
DVolumeControlServiceTest.java121 .getStreamMaxVolume(eq(AudioManager.STREAM_MUSIC)); in setUp()
127 .getStreamMaxVolume(eq(AudioManager.STREAM_VOICE_CALL)); in setUp()
587 mAudioManager.getStreamMaxVolume(streamType), in testVolumeCalculations()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java122 when(mAudioManager.getStreamMaxVolume(anyInt())).thenReturn(10); in setUp()
205 when(mAudioManager.getStreamMaxVolume(anyInt())).thenReturn(amMax); in testAmHfVolumeSymmetric_AmLowerRange()
238 when(mAudioManager.getStreamMaxVolume(anyInt())).thenReturn(amMax);
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugReportService.java627 int maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_NOTIFICATION); in playNotificationSound()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DDataModel.kt106 val index = (am.getStreamMaxVolume(STREAM_ALARM) * 11f / 16f).roundToInt() in onClick()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java802 mAudioManager.getStreamMaxVolume(streamType), 0); in setAlarmStreamVolumeToFull()

12