/packages/services/Telecomm/src/com/android/server/telecom/ |
D | AsyncRingtonePlayer.java | 54 private Ringtone mRingtone; field in AsyncRingtonePlayer 187 mRingtone = null; 196 if (mRingtone == null) { 197 mRingtone = factory.getRingtone(incomingCall, volumeShaperConfig); 198 if (mRingtone == null) { 213 boolean hasHaptics = factory.hasHapticChannels(mRingtone); 218 AudioAttributes attributes = mRingtone.getAudioAttributes(); 221 mRingtone.setAudioAttributes( 236 mRingtone.setLooping(true); 237 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 | 49 private Ringtone mRingtone; field in VolumeSettingsRingtoneManagerTest 54 ShadowRingtoneManager.setRingtone(mRingtone); in setUp() 62 when(mRingtone.isPlaying()).thenReturn(false); in tearDown() 68 verify(mRingtone).play(); in testPlayAudioFeedback_play_playUntilTimeout() 69 when(mRingtone.isPlaying()).thenReturn(true); in testPlayAudioFeedback_play_playUntilTimeout() 71 verify(mRingtone).stop(); in testPlayAudioFeedback_play_playUntilTimeout() 77 verify(mRingtone).play(); in testPlayAudioFeedback_play_stoppedBeforeTimeout() 78 when(mRingtone.isPlaying()).thenReturn(false); in testPlayAudioFeedback_play_stoppedBeforeTimeout() 80 verify(mRingtone, never()).stop(); in testPlayAudioFeedback_play_stoppedBeforeTimeout() 87 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 | 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 | AlarmUpdateHandler.java | 123 newInstance.mRingtone = alarm.alert; in asyncUpdateAlarm()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsFragment.java | 137 private Ringtone mRingtone; field in AccountSettingsFragment 259 mRingtone = RingtoneManager.getRingtone(getActivity(), ringtone); in setRingtone() 263 mRingtone = null; in setRingtone() 270 final String summary = mRingtone != null ? mRingtone.getTitle(mContext) in setRingtoneSummary() 798 mRingtone = RingtoneManager.getRingtone(getActivity(), Uri.parse(ringtoneUri)); in loadSettings()
|