Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/notification/
DAudioHelper.java67 public int getStreamVolume(int stream) { in getStreamVolume() method in AudioHelper
68 return mAudioManager.getStreamVolume(stream); in getStreamVolume()
DVolumeSeekBarPreferenceController.java95 return mHelper.getStreamVolume(getAudioStream()); in getSliderPosition()
DNotificationVolumePreferenceController.java129 if (mHelper.getStreamVolume(AudioManager.STREAM_NOTIFICATION) == 0) { in getEffectiveRingerMode()
DVolumeSeekBarPreference.java106 setProgress(mAudioManager.getStreamVolume(mStream)); in setStream()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DAlarmVolumePreference.kt57 mSeekbar.setProgress(audioManager.getStreamVolume(STREAM_ALARM) - in onBindViewHolder()
66 mSeekbar.setProgress(audioManager.getStreamVolume(STREAM_ALARM) - in onBindViewHolder()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DRingerTest.java474 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(0); in testVibrateButNoRingForSilentRingtone()
495 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(0); in testVibrateButNoRingForSilentRingtoneWithoutAudioHapticSupport()
513 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(0); in testAudioCoupledHapticsForSilentRingtone()
586 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(0); in testSilentRingWithHfpStillAcquiresFocus()
603 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(100); in testRingAndVibrateForAllowedCallInDndMode()
804 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(100); in ensureRingerIsAudible()
809 when(mockAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(0); in ensureRingerIsNotAudible()
DMissedInformationTest.java314 when(mAudioManager.getStreamVolume(AudioManager.STREAM_RING)).thenReturn(0); in testLowRingVolume()
322 verify(mAudioManager, timeout(TEST_TIMEOUT_MILLIS)).getStreamVolume(anyInt()); in testLowRingVolume()
346 verify(mAudioManager, timeout(TEST_TIMEOUT_MILLIS)).getStreamVolume(anyInt()); in testNoVibrate()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertReminderTest.java152 doReturn(1).when(mMockedAudioManager).getStreamVolume(anyInt()); in testStartServicePlayAlertReminderForWatch()
168 verify(mMockedAudioManager).getStreamVolume(AudioManager.STREAM_ALARM); in testStartServicePlayAlertReminderForWatch()
/packages/services/Car/service/src/com/android/car/audio/
DAudioManagerWrapper.java186 int getStreamVolume(int stream) { in getStreamVolume() method in AudioManagerWrapper
187 return mAudioManager.getStreamVolume(stream); in getStreamVolume()
/packages/apps/TV/src/com/android/tv/data/
DStreamInfo.java47 float getStreamVolume(); in getStreamVolume() method
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DVolumeSeekBarPreferenceTest.java92 when(mAudioManager.getStreamVolume(STREAM)).thenReturn(progress); in setStream_shouldSetMinMaxAndProgress()
161 when(mAudioManager.getStreamVolume(STREAM)).thenReturn(progress); in init_changeProgress_stateDescriptionValueUpdated()
DVolumeSeekBarPreferenceControllerTest.java111 when(mHelper.getStreamVolume(mController.getAudioStream())).thenReturn(4); in sliderMethods_handleNullPreference()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DAudioManagerWrapperTest.java399 public void getStreamVolume() { in getStreamVolume() method in AudioManagerWrapperTest
402 when(mAudioManager.getStreamVolume(stream)).thenReturn(index); in getStreamVolume()
405 mAudioManagerWrapper.getStreamVolume(stream)).isEqualTo(index); in getStreamVolume()
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyTonePlayer.java116 mSavedInCallVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL); in startAlert()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/sensoryfeedback/
DEmergencyActionAlarmHelper.java100 mUserSetAlarmVolume = mAudioManager.getStreamVolume(streamType); in setAlarmVolumeToFull()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSilentSettingsModel.kt179 mAudioManager.getStreamVolume(STREAM_ALARM) <= 0
/packages/modules/AdServices/sdksandbox/tests/cts/inprocess/src/com/android/sdksandbox/tests/cts/inprocess/
DSdkSandboxConfigurationTest.java262 int currentVolume = audioManager.getStreamVolume(AudioManager.STREAM_SYSTEM); in testCanAccessVolume()
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxCodeProvider/src/com/android/sdksandboxcode_1/
DSdkApi.java159 int curVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in getSandboxDump()
/packages/modules/Bluetooth/android/pandora/server/src/
DAsha.kt243 if (audioManager.getStreamVolume(AudioManager.STREAM_MUSIC) < maxVolume) { in playbackAudio()
DA2dp.kt265 if (audioManager.getStreamVolume(AudioManager.STREAM_MUSIC) < maxVolume) { in playbackAudio()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/remotepreview/
DRemoteSurfaceController.java304 mPlayer.setVolume(audioManager.getStreamVolume(AudioManager.STREAM_MUSIC)); in updateAudioMuteStatus()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java421 sb.append(" Current System Volume: " + mAudioManager.getStreamVolume(STREAM_MUSIC) + "\n"); in dump()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.kt284 if (mAudioManager!!.getStreamVolume(AudioManager.STREAM_ALARM) == 0) { in <lambda>()
/packages/apps/TV/src/com/android/tv/interactive/
DIAppManager.java386 mTvIAppView.sendStreamVolume(mTvView.getStreamVolume()); in onRequestStreamVolume()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeGroupController.java410 audioManager.getStreamVolume(AudioManager.STREAM_MUSIC) * 255f / (max - min)); in getAudioVolumeIfNeeded()

12