Searched refs:mRingtoneManager (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/ |
D | VolumeSettingsRingtoneManagerTest.java | 58 private VolumeSettingsRingtoneManager mRingtoneManager; field in VolumeSettingsRingtoneManagerTest 67 mRingtoneManager = new VolumeSettingsRingtoneManager(mContext); in setUp() 79 mRingtoneManager = new VolumeSettingsRingtoneManager(mContext); in getRingtoneUri_defaultsToDefaultRingtoneUriIfConfigIsEmpty() 80 Uri ringtoneUri = mRingtoneManager.getRingtoneUri(USAGE_ALARM); in getRingtoneUri_defaultsToDefaultRingtoneUriIfConfigIsEmpty() 91 mRingtoneManager = new VolumeSettingsRingtoneManager(mContext); in getRingtoneUri_defaultsToDefaultRingtoneUriIfUsageNotInConfig() 93 Uri ringtoneUri = mRingtoneManager.getRingtoneUri(USAGE_ALARM); in getRingtoneUri_defaultsToDefaultRingtoneUriIfUsageNotInConfig() 103 mRingtoneManager = new VolumeSettingsRingtoneManager(mContext); in getRingtoneUri_usesConfigValuesForUsageRingtoneMapping() 105 Uri ringtoneUri = mRingtoneManager.getRingtoneUri(usage); in getRingtoneUri_usesConfigValuesForUsageRingtoneMapping() 112 mRingtoneManager.playAudioFeedback(TEST_GROUP_ID, TEST_USAGE_ID); in testPlayAudioFeedback_play_playUntilTimeout() 121 mRingtoneManager.playAudioFeedback(TEST_GROUP_ID, TEST_USAGE_ID); in testPlayAudioFeedback_play_stoppedBeforeTimeout() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/sound/ |
D | RingtonePickerPreferenceController.java | 63 private RingtoneManager mRingtoneManager; field in RingtonePickerPreferenceController 83 mRingtoneManager = new RingtoneManager(getContext(), /* includeParentRingtones= */ true); in RingtonePickerPreferenceController() 127 mRingtoneManager.setType(mRingtoneType); in onCreateInternal() 128 mCursor = new LocalizedCursor(mRingtoneManager.getCursor(), getContext().getResources(), in onCreateInternal() 202 mCurrentlySelectedPos = mRingtoneManager.getRingtonePosition(uri); in initSelection() 240 mCurrentRingtone = mRingtoneManager.getRingtone(mCurrentlySelectedPos); in run() 261 if (mRingtoneManager != null) { in stopAnyPlayingRingtone() 262 mRingtoneManager.stopPreviousRingtone(); in stopAnyPlayingRingtone() 268 return mRingtoneManager.getRingtoneUri(mCurrentlySelectedPos); in getCurrentlySelectedRingtoneUri() 367 mRingtoneManager = ringtoneManager; in setRingtoneManager()
|
D | RingtonePreferenceController.java | 37 private RingtoneManager mRingtoneManager; field in RingtonePreferenceController 43 mRingtoneManager = new RingtoneManager(context); in RingtonePreferenceController() 48 mRingtoneManager.setType(getPreference().getRingtoneType()); in onCreateInternal()
|
D | VolumeSettingsPreferenceController.java | 79 private final VolumeSettingsRingtoneManager mRingtoneManager; field in VolumeSettingsPreferenceController 124 mRingtoneManager = ringtoneManager; in VolumeSettingsPreferenceController() 235 mRingtoneManager.playAudioFeedback(prefGroup, prefUsage); in createVolumeSeekBarPreference() 281 mRingtoneManager.stopCurrentRingtone(); in cleanUpVolumePreferences()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/ |
D | RingtonePickerPreferenceControllerTest.java | 80 private RingtoneManager mRingtoneManager; field in RingtonePickerPreferenceControllerTest 100 mPreferenceController.setRingtoneManager(mRingtoneManager); in setUp() 116 verify(mRingtoneManager).setType(eq(-1)); in onStart_noArgsSet_invalidRingtoneTypeSet() 131 verify(mRingtoneManager).setType(eq(RingtoneManager.TYPE_RINGTONE)); in onStart_setArgs_validRingtoneTypeSet() 295 verify(mRingtoneManager, atLeastOnce()).stopPreviousRingtone(); in onStop_stopRingtone() 304 when(mRingtoneManager.getRingtonePosition(eq(createUri(value)))).thenReturn(i); in setUpCursor() 307 when(mRingtoneManager.getCursor()).thenReturn(mCursor); in setUpCursor()
|
D | VolumeSettingsPreferenceControllerTest.java | 159 private VolumeSettingsRingtoneManager mRingtoneManager; field in VolumeSettingsPreferenceControllerTest 230 "key", mFragmentController, mCarUxRestrictions, mRingtoneManager); in setUp() 295 verify(mRingtoneManager).playAudioFeedback(anyInt(), anyInt()); in testOnPreferenceChange_noDynamicAudio_ringtonePlays() 310 verify(mRingtoneManager, never()).playAudioFeedback(anyInt(), anyInt()); in testOnPreferenceChange_dynamicAudio_playbackActive_ringtoneDoesNotPlay() 325 verify(mRingtoneManager).playAudioFeedback(anyInt(), anyInt()); in testOnPreferenceChange_dynamicAudio_playbackNotActive_ringtonePlays()
|