Home
last modified time | relevance | path

Searched refs:mRingtone (Results 1 – 17 of 17) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DAsyncRingtonePlayer.java51 private Ringtone mRingtone; field in AsyncRingtonePlayer
172 mRingtone = null;
184 if (mRingtone == null) {
185 mRingtone = factory.getRingtone(incomingCall, volumeShaperConfig);
186 if (mRingtone == null) {
203 boolean hasHaptics = factory.hasHapticChannels(mRingtone);
209 AudioAttributes attributes = mRingtone.getAudioAttributes();
212 mRingtone.setAudioAttributes(
222 mRingtone.setLooping(true);
223 if (mRingtone.isPlaying()) {
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java444 private Ringtone mRingtone;
492 mRingtone = RingtoneManager.getRingtone(context, ringtoneUri);
494 if (mRingtone == null) {
497 mRingtone = RingtoneManager.getRingtone(context, ringtoneUri);
502 mSetLoopingMethod.invoke(mRingtone, true);
508 mRingtone = null;
512 if (mRingtone == null) {
515 mRingtone = RingtoneManager.getRingtone(context, ringtoneUri);
523 mRingtone = RingtoneManager.getRingtone(context, getFallbackRingtoneUri(context));
545 mRingtone.setAudioAttributes(new AudioAttributes.Builder()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/
DVolumeSettingsRingtoneManagerTest.java60 private Ringtone mRingtone; field in VolumeSettingsRingtoneManagerTest
65 ShadowRingtoneManager.setRingtone(mRingtone); in setUp()
73 when(mRingtone.isPlaying()).thenReturn(false); in tearDown()
113 verify(mRingtone).play(); in testPlayAudioFeedback_play_playUntilTimeout()
114 when(mRingtone.isPlaying()).thenReturn(true); in testPlayAudioFeedback_play_playUntilTimeout()
116 verify(mRingtone).stop(); in testPlayAudioFeedback_play_playUntilTimeout()
122 verify(mRingtone).play(); in testPlayAudioFeedback_play_stoppedBeforeTimeout()
123 when(mRingtone.isPlaying()).thenReturn(false); in testPlayAudioFeedback_play_stoppedBeforeTimeout()
125 verify(mRingtone, never()).stop(); in testPlayAudioFeedback_play_stoppedBeforeTimeout()
132 verify(mRingtone).stop(); in testStopCurrentRingtone_stop()
[all …]
DVolumeSettingsPreferenceControllerTest.java69 private Ringtone mRingtone; field in VolumeSettingsPreferenceControllerTest
90 ShadowRingtoneManager.setRingtone(mRingtone); in setUp()
150 verify(mRingtone).play(); in testOnPreferenceChange_ringtonePlays()
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java148 private Ringtone mRingtone; field in Beeper.BeepRecord
194 if (mRingtone != null) { in stop()
195 mRingtone.stop(); in stop()
196 mRingtone = null; in stop()
282 mRingtone = RingtoneManager.getRingtone(getContextForForegroundUser(), mBeepUri); in playViaRingtoneManager()
283 if (mRingtone != null) { in playViaRingtoneManager()
284 mRingtone.setStreamType(mBeepStream); in playViaRingtoneManager()
285 mRingtone.play(); in playViaRingtoneManager()
/packages/apps/Settings/src/com/android/settings/notification/
DDefaultNotificationTonePreference.java31 private Uri mRingtone; field in DefaultNotificationTonePreference
39 return mRingtone; in onRestoreRingtone()
46 mRingtone); in onPrepareRingtonePickerIntent()
50 mRingtone = ringtone; in setRingtone()
51 updateRingtoneName(mRingtone); in setRingtone()
DNotificationSoundPreference.java32 private Uri mRingtone; field in NotificationSoundPreference
40 return mRingtone; in onRestoreRingtone()
44 mRingtone = ringtone; in setRingtone()
46 updateRingtoneName(mRingtone); in setRingtone()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DDefaultNotificationTonePreference.java31 private Uri mRingtone; field in DefaultNotificationTonePreference
39 return mRingtone; in onRestoreRingtone()
46 mRingtone); in onPrepareRingtonePickerIntent()
50 mRingtone = ringtone; in setRingtone()
51 updateRingtoneName(mRingtone); in setRingtone()
DNotificationSoundPreference.java32 private Uri mRingtone; field in NotificationSoundPreference
40 return mRingtone; in onRestoreRingtone()
44 mRingtone = ringtone; in setRingtone()
46 updateRingtoneName(mRingtone); in setRingtone()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java103 if (instance.mRingtone == null) { in createContentValues()
108 values.put(RINGTONE, instance.mRingtone.toString()); in createContentValues()
295 public Uri mRingtone; field in AlarmInstance
309 mRingtone = null; in AlarmInstance()
322 this.mRingtone = instance.mRingtone; in AlarmInstance()
350 mRingtone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM); in AlarmInstance()
352 mRingtone = Uri.parse(c.getString(RINGTONE_INDEX)); in AlarmInstance()
471 ", mRingtone=" + mRingtone + in toString()
DAlarmInstance.kt57 var mRingtone: Uri? = null variable in com.android.deskclock.provider.AlarmInstance
74 mRingtone = null
87 mRingtone = instance.mRingtone
112 mRingtone = if (c.isNull(RINGTONE_INDEX)) {
235 ", mRingtone=" + mRingtone + in toString()
308 if (instance.mRingtone == null) { in createContentValues()
313 values.put(AlarmSettingColumns.RINGTONE, instance.mRingtone.toString()) in createContentValues()
DAlarm.kt167 result.mRingtone = alert in describeContents()
DAlarm.java385 result.mRingtone = alert;
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmKlaxon.java57 if (!AlarmInstance.NO_RINGTONE_URI.equals(instance.mRingtone)) { in start()
59 getAsyncRingtonePlayer(context).play(instance.mRingtone, crescendoDuration); in start()
DAlarmKlaxon.kt58 if (!AlarmSettingColumns.NO_RINGTONE_URI.equals(instance.mRingtone)) { in start()
60 getAsyncRingtonePlayer(context)!!.play(instance.mRingtone, crescendoDuration) in start()
DAlarmUpdateHandler.kt116 newInstance.mRingtone = alarm.alert in <lambda>()
DAlarmUpdateHandler.java123 newInstance.mRingtone = alarm.alert; in asyncUpdateAlarm()