Home
last modified time | relevance | path

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

/packages/services/Telecomm/src/com/android/server/telecom/
DAsyncRingtonePlayer.java47 private Ringtone mRingtone; field in AsyncRingtonePlayer
127 mRingtone = null;
134 if (mRingtone == null) {
135 mRingtone = factory.getRingtone(incomingCall);
136 if (mRingtone == null) {
150 if (mRingtone == null) {
154 if (mRingtone.isPlaying()) {
157 mRingtone.play();
176 if (mRingtone != null) {
178 mRingtone.stop();
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java446 private Ringtone mRingtone;
493 mRingtone = RingtoneManager.getRingtone(context, ringtoneUri);
495 if (mRingtone == null) {
498 mRingtone = RingtoneManager.getRingtone(context, defaultUri);
503 mSetLoopingMethod.invoke(mRingtone, true);
509 mRingtone = null;
513 if (mRingtone == null) {
516 mRingtone = RingtoneManager.getRingtone(context, getFallbackRingtoneUri(context));
520 mRingtone.setAudioAttributes(new AudioAttributes.Builder()
542 mRingtone.play();
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java110 if (instance.mRingtone == null) { in createContentValues()
115 values.put(RINGTONE, instance.mRingtone.toString()); in createContentValues()
293 public Uri mRingtone; field in AlarmInstance
307 mRingtone = null; in AlarmInstance()
320 this.mRingtone = instance.mRingtone; in AlarmInstance()
348 mRingtone = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_ALARM); in AlarmInstance()
350 mRingtone = Uri.parse(c.getString(RINGTONE_INDEX)); in AlarmInstance()
465 ", mRingtone=" + mRingtone + in toString()
DAlarm.java346 result.mRingtone = alert; in createInstanceAfter()
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java121 RingtonePreference mRingtone; field in GeneralPreferences
168 mRingtone = (RingtonePreference) preferenceScreen.findPreference(KEY_ALERTS_RINGTONE); in onCreate()
177 mRingtone.setSummary(ringtoneDisplayString == null ? "" : ringtoneDisplayString); in onCreate()
266 mRingtone.setOnPreferenceChangeListener(listener); in setPreferenceListeners()
327 } else if (preference == mRingtone) { in onPreferenceChange()
331 mRingtone.setSummary(ringtone == null ? "" : ringtone); in onPreferenceChange()
394 mRingtone.setEnabled(true); in updateChildPreferences()
398 mRingtone.setEnabled(false); in updateChildPreferences()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmKlaxon.java56 if (!AlarmInstance.NO_RINGTONE_URI.equals(instance.mRingtone)) { in start()
57 getAsyncRingtonePlayer(context).play(instance.mRingtone); in start()
DAlarmUpdateHandler.java124 newInstance.mRingtone = alarm.alert; in asyncUpdateAlarm()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java137 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()
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlertServiceTest.java50 private String mRingtone; field in AlertServiceTest.MockSharedPreferences
68 mRingtone = "/some/cool/ringtone"; in init()
109 if (mRingtone == null) { in getString()
113 String val = mRingtone; in getString()
115 mRingtone = null; in getString()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DStatusBarNotifier.java94 private Uri mRingtone; field in StatusBarNotifier
398 || contentTitleChanged || !Objects.equals(mRingtone, ringtone); in checkForChangeAndSaveData()
414 mRingtone = ringtone; in checkForChangeAndSaveData()