/packages/services/Telecomm/src/com/android/server/telecom/ |
D | AsyncRingtonePlayer.java | 51 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/ |
D | AsyncRingtonePlayer.java | 444 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/ |
D | VolumeSettingsRingtoneManagerTest.java | 60 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 …]
|
D | VolumeSettingsPreferenceControllerTest.java | 69 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/ |
D | Beeper.java | 148 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/ |
D | DefaultNotificationTonePreference.java | 31 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()
|
D | NotificationSoundPreference.java | 32 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/ |
D | DefaultNotificationTonePreference.java | 31 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()
|
D | NotificationSoundPreference.java | 32 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/ |
D | AlarmInstance.java | 103 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()
|
D | AlarmInstance.kt | 57 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()
|
D | Alarm.kt | 167 result.mRingtone = alert in describeContents()
|
D | Alarm.java | 385 result.mRingtone = alert;
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmKlaxon.java | 57 if (!AlarmInstance.NO_RINGTONE_URI.equals(instance.mRingtone)) { in start() 59 getAsyncRingtonePlayer(context).play(instance.mRingtone, crescendoDuration); in start()
|
D | AlarmKlaxon.kt | 58 if (!AlarmSettingColumns.NO_RINGTONE_URI.equals(instance.mRingtone)) { in start() 60 getAsyncRingtonePlayer(context)!!.play(instance.mRingtone, crescendoDuration) in start()
|
D | AlarmUpdateHandler.kt | 116 newInstance.mRingtone = alarm.alert in <lambda>()
|
D | AlarmUpdateHandler.java | 123 newInstance.mRingtone = alarm.alert; in asyncUpdateAlarm()
|