Home
last modified time | relevance | path

Searched refs:mRingtone (Results 1 – 12 of 12) 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.kt383 private var mRingtone: Ringtone? = null in <lambda>() variable in com.android.deskclock.AsyncRingtonePlayer.RingtonePlaybackDelegate
432 mRingtone = RingtoneManager.getRingtone(context, ringtoneUriVariable) in <lambda>()
434 if (mRingtone == null) { in <lambda>()
437 mRingtone = RingtoneManager.getRingtone(context, ringtoneUriVariable) in <lambda>()
442 mSetLoopingMethod.invoke(mRingtone, true) in <lambda>()
448 mRingtone = null in <lambda>()
452 if (mRingtone == null) { in <lambda>()
455 mRingtone = RingtoneManager.getRingtone(context, ringtoneUriVariable) in <lambda>()
463 mRingtone = RingtoneManager.getRingtone(context, getFallbackRingtoneUri(context)) in <lambda>()
485 mRingtone!!.audioAttributes = AudioAttributes.Builder() in <lambda>()
[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 …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java145 private Ringtone mRingtone; field in Beeper.BeepRecord
191 if (mRingtone != null) { in stop()
192 mRingtone.stop(); in stop()
193 mRingtone = null; in stop()
279 mRingtone = RingtoneManager.getRingtone(getContextForForegroundUser(), mBeepUri); in playViaRingtoneManager()
280 if (mRingtone != null) { in playViaRingtoneManager()
281 mRingtone.setStreamType(mBeepStream); in playViaRingtoneManager()
282 mRingtone.play(); in playViaRingtoneManager()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeFragment.java69 private Ringtone mRingtone; field in CarAudioZoneVolumeFragment
251 mRingtone = ringtone; in startRingtone()
257 if (mRingtone == null) { in stopRingtone()
260 if (mRingtone.isPlaying()) { in stopRingtone()
261 mRingtone.stop(); in stopRingtone()
263 mRingtone = null; in stopRingtone()
269 return mRingtone != null && mRingtone.isPlaying() in isRingtoneActiveForUsage()
270 && mRingtone.getAudioAttributes().getUsage() == usage; in isRingtoneActiveForUsage()
/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()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
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.kt166 result.mRingtone = alert in describeContents()
/packages/apps/Settings/src/com/android/settings/notification/app/
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/Car/Notification/tests/robotests/src/com/android/car/notification/
DBeeperTest.java64 private Ringtone mRingtone; field in BeeperTest
89 ShadowRingtoneManager.setRingtone(mRingtone); in setup()
207 verify(mRingtone).stop(); in testStopAlsoStopsRingtoneManager()
222 verify(mRingtone).setStreamType(AudioManager.STREAM_MUSIC); in assertPlayedViaRingtoneManager()
223 verify(mRingtone).play(); in assertPlayedViaRingtoneManager()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
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>()