Searched refs:ringtone (Results 1 – 14 of 14) sorted by relevance
60 void play(Uri ringtone) { in play() argument62 postMessage(EVENT_PLAY, true /* shouldCreateHandler */, ringtone); in play()78 private void postMessage(int messageCode, boolean shouldCreateHandler, Uri ringtone) { in postMessage() argument87 mHandler.obtainMessage(messageCode, ringtone).sendToTarget(); in postMessage()198 Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri);199 if (ringtone != null) {200 ringtone.setStreamType(AudioManager.STREAM_RING);202 return ringtone;
316 Ringtone ringtone; in run() local328 ringtone = mDefaultRingtone; in run()331 ringtone = mRingtoneManager.getRingtone(getRingtoneManagerPosition(mSampleRingtonePos)); in run()332 mCurrentRingtone = ringtone; in run()335 if (ringtone != null) { in run()337 ringtone.setAudioAttributes( in run()338 new AudioAttributes.Builder(ringtone.getAudioAttributes()) in run()342 ringtone.play(); in run()
876 String ringtone = NotificationPrefs.EMPTY_RINGTONE; in postNotification() local882 ringtone = prefs.getRingtoneAndSilence(); in postNotification()885 prefs.getDefaultVibrate(), ringtone, in postNotification()894 + (TextUtils.isEmpty(ringtone) ? ", quiet" : ", LOUD") in postNotification()969 private String ringtone = null; field in AlertService.NotificationPrefs998 if (ringtone == null) { in getRingtoneAndSilence()1000 ringtone = EMPTY_RINGTONE; in getRingtoneAndSilence()1002 ringtone = Utils.getRingTonePreference(context); in getRingtoneAndSilence()1005 String retVal = ringtone; in getRingtoneAndSilence()1006 ringtone = EMPTY_RINGTONE; in getRingtoneAndSilence()
576 TextView ringtone; field in AlarmClockFragment.AlarmItemAdapter.ItemHolder716 holder.ringtone = (TextView) view.findViewById(R.id.choose_ringtone); in setNewHolder()1039 final String ringtone; in bindExpandArea() local1041 ringtone = mContext.getResources().getString(R.string.silent_alarm_summary); in bindExpandArea()1043 ringtone = getRingToneTitle(alarm.alert); in bindExpandArea()1045 itemHolder.ringtone.setText(ringtone); in bindExpandArea()1046 itemHolder.ringtone.setContentDescription( in bindExpandArea()1048 + ringtone); in bindExpandArea()1049 itemHolder.ringtone.setOnClickListener(new View.OnClickListener() { in bindExpandArea()
86 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); in updateRingtoneName() local87 if (ringtone != null) { in updateRingtoneName()89 final String title = ringtone.getTitle(context); in updateRingtoneName()
95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri); in bind() local96 if (ringtone != null) { in bind()97 mSubtitle = ringtone.getTitle(mContext); in bind()
330 String ringtone = getRingtoneTitleFromUri(activity, (String) newValue); in onPreferenceChange() local331 mRingtone.setSummary(ringtone == null ? "" : ringtone); in onPreferenceChange()
416 String ringtone = prefs.getString(GeneralPreferences.KEY_ALERTS_RINGTONE, null); in getRingTonePreference() local421 if (ringtone == null) { in getRingTonePreference()423 ringtone = getSharedPreference(context, GeneralPreferences.KEY_ALERTS_RINGTONE, in getRingTonePreference()427 setRingTonePreference(context, ringtone); in getRingTonePreference()430 return ringtone; in getRingTonePreference()
256 private void setRingtone(Uri ringtone) { in setRingtone() argument257 if (ringtone != null) { in setRingtone()258 mInboxFolderPreferences.setNotificationRingtoneUri(ringtone.toString()); in setRingtone()259 mRingtone = RingtoneManager.getRingtone(getActivity(), ringtone); in setRingtone()
5828 String ringtone) { in updateSendToVoicemailAndRingtone() argument5831 if (ringtone != null) { in updateSendToVoicemailAndRingtone()5832 values.put(Contacts.CUSTOM_RINGTONE, ringtone); in updateSendToVoicemailAndRingtone()5841 boolean sendToVoicemail, String ringtone) { in updateSendToVoicemailAndRingtoneWithSelection() argument5844 if (ringtone != null) { in updateSendToVoicemailAndRingtoneWithSelection()5845 values.put(Contacts.CUSTOM_RINGTONE, ringtone); in updateSendToVoicemailAndRingtoneWithSelection()5859 String ringtone = c.getString(c.getColumnIndex(Contacts.CUSTOM_RINGTONE)); in assertSendToVoicemailAndRingtone() local5861 assertNull(ringtone); in assertSendToVoicemailAndRingtone()5863 assertTrue(ArrayUtils.contains(expectedRingtone.split(","), ringtone)); in assertSendToVoicemailAndRingtone()
1dictionary=main:en,locale=en,description=English,date=1414726273, ...