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 | 35 private RingtoneManager mRingtoneManager; field in RingtonePreferenceController 41 mRingtoneManager = new RingtoneManager(context); in RingtonePreferenceController() 46 mRingtoneManager.setType(getPreference().getRingtoneType()); in onCreateInternal() 59 if (mRingtoneManager.getRingtonePosition(ringtoneUri) < 0) { in updateState()
|
D | VolumeSettingsPreferenceController.java | 61 private final VolumeSettingsRingtoneManager mRingtoneManager; field in VolumeSettingsPreferenceController 116 mRingtoneManager = ringtoneManager; in VolumeSettingsPreferenceController() 190 mRingtoneManager.playAudioFeedback(prefGroup, prefUsage); in createVolumeSeekBarPreference() 211 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() 115 verify(mRingtoneManager).setType(eq(-1)); in onCreate_noArgsSet_invalidRingtoneTypeSet() 129 verify(mRingtoneManager).setType(eq(RingtoneManager.TYPE_RINGTONE)); in onCreate_setArgs_validRingtoneTypeSet() 286 verify(mRingtoneManager, atLeastOnce()).stopPreviousRingtone(); in onStop_stopRingtone() 295 when(mRingtoneManager.getRingtonePosition(eq(createUri(value)))).thenReturn(i); in setUpCursor() 298 when(mRingtoneManager.getCursor()).thenReturn(mCursor); in setUpCursor()
|
D | VolumeSettingsPreferenceControllerTest.java | 79 private VolumeSettingsRingtoneManager mRingtoneManager; field in VolumeSettingsPreferenceControllerTest 102 "key", mFragmentController, mCarUxRestrictions, mCar, mRingtoneManager); in setUp() 154 verify(mRingtoneManager).playAudioFeedback(anyInt(), anyInt()); in testOnPreferenceChange_ringtonePlays()
|