Home
last modified time | relevance | path

Searched refs:ringtone (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/data/
DRingtoneModel.java90 final CustomRingtone ringtone = CustomRingtoneDAO.addCustomRingtone(mPrefs, uri, title); in addCustomRingtone() local
91 getMutableCustomRingtones().add(ringtone); in addCustomRingtone()
93 return ringtone; in addCustomRingtone()
98 for (CustomRingtone ringtone : ringtones) { in removeCustomRingtone()
99 if (ringtone.getUri().equals(uri)) { in removeCustomRingtone()
100 CustomRingtoneDAO.removeCustomRingtone(mPrefs, ringtone.getId()); in removeCustomRingtone()
101 ringtones.remove(ringtone); in removeCustomRingtone()
108 for (CustomRingtone ringtone : getMutableCustomRingtones()) { in getCustomRingtone()
109 if (ringtone.getUri().equals(uri)) { in getCustomRingtone()
110 return ringtone; in getCustomRingtone()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtonePickerActivity.java17 package com.android.deskclock.ringtone;
64 import static com.android.deskclock.ringtone.AddCustomRingtoneViewHolder.VIEW_TYPE_ADD_NEW;
65 import static com.android.deskclock.ringtone.HeaderViewHolder.VIEW_TYPE_ITEM_HEADER;
66 import static com.android.deskclock.ringtone.RingtoneViewHolder.VIEW_TYPE_CUSTOM_SOUND;
67 import static com.android.deskclock.ringtone.RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND;
387 private void startPlayingRingtone(RingtoneHolder ringtone) { in startPlayingRingtone() argument
388 if (!ringtone.isPlaying() && !ringtone.isSilent()) { in startPlayingRingtone()
389 RingtonePreviewKlaxon.start(getApplicationContext(), ringtone.getUri()); in startPlayingRingtone()
390 ringtone.setPlaying(true); in startPlayingRingtone()
393 if (!ringtone.isSelected()) { in startPlayingRingtone()
[all …]
DCustomRingtoneHolder.java17 package com.android.deskclock.ringtone;
23 CustomRingtoneHolder(CustomRingtone ringtone) { in CustomRingtoneHolder() argument
24 super(ringtone.getUri(), ringtone.getTitle(), ringtone.hasPermissions()); in CustomRingtoneHolder()
DRingtoneLoader.java17 package com.android.deskclock.ringtone;
88 for (CustomRingtone ringtone : mCustomRingtones) { in loadInBackground()
89 itemHolders.add(new CustomRingtoneHolder(ringtone)); in loadInBackground()
DSystemRingtoneHolder.java17 package com.android.deskclock.ringtone;
DAddCustomRingtoneHolder.java17 package com.android.deskclock.ringtone;
DHeaderHolder.java17 package com.android.deskclock.ringtone;
DHeaderViewHolder.java17 package com.android.deskclock.ringtone;
/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java61 public boolean hasHapticChannels(Ringtone ringtone) { in hasHapticChannels() argument
62 boolean hasHapticChannels = RingtoneManager.hasHapticChannels(ringtone.getUri()); in hasHapticChannels()
63 Log.i(this, "hasHapticChannels %s -> %b", ringtone.getUri(), hasHapticChannels); in hasHapticChannels()
74 Ringtone ringtone = null; in getRingtone() local
78 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri, volumeShaperConfig); in getRingtone()
80 if(ringtone == null) { in getRingtone()
94 ringtone = RingtoneManager.getRingtone( in getRingtone()
97 if (ringtone != null) { in getRingtone()
98 ringtone.setAudioAttributes(new AudioAttributes.Builder() in getRingtone()
103 return ringtone; in getRingtone()
DRinger.java373 Ringtone ringtone = factory.getRingtone(call); in getVibrationEffectForCall() local
374 Uri ringtoneUri = ringtone != null ? ringtone.getUri() : null; in getVibrationEffectForCall()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
DExpandedAlarmViewHolder.java68 public final TextView ringtone; field in ExpandedAlarmViewHolder
82 ringtone = (TextView) itemView.findViewById(R.id.choose_ringtone); in ExpandedAlarmViewHolder()
152 ringtone.setOnClickListener(new View.OnClickListener() { in ExpandedAlarmViewHolder()
207 ringtone.setText(title); in bindRingtone()
210 ringtone.setContentDescription(description + " " + title); in bindRingtone()
215 ringtone.setCompoundDrawablesRelativeWithIntrinsicBounds(icon, null, null, null); in bindRingtone()
279 ObjectAnimator.ofFloat(ringtone, TRANSLATION_Y, 0f), in onAnimateChange()
303 ringtone.setTranslationY(translationY); in setTranslationY()
370 final Animator ringtoneAnimation = ObjectAnimator.ofFloat(ringtone, View.ALPHA, 0f) in createCollapsingAnimator()
438 final Animator ringtoneAnimation = ObjectAnimator.ofFloat(ringtone, View.ALPHA, 1f) in createExpandingAnimator()
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DSoundSettingsTest.java203 String ringtone = ringtoneSounds.get(mDevice.getProductName()).toString(); in testPhoneRingtone() local
205 verifyRingtone(new RingtoneSetting(ringtone, ringtoneSettingValue), in testPhoneRingtone()
317 private UiObject2 findRingtoneInList(String ringtone) throws Exception { in findRingtoneInList() argument
320 UiObject2 ringToneObject = mDevice.wait(Until.findObject(By.text(ringtone)), TIMEOUT); in findRingtoneInList()
325 ringToneObject = mDevice.wait(Until.findObject(By.text(ringtone)), TIMEOUT); in findRingtoneInList()
/packages/apps/Dialer/java/com/android/incallui/
DStatusBarNotifier.java91 import com.android.incallui.ringtone.DialerRingtoneManager;
92 import com.android.incallui.ringtone.InCallTonePlayer;
93 import com.android.incallui.ringtone.ToneGeneratorFactory;
131 private Uri ringtone; field in StatusBarNotifier
487 Uri ringtone, in checkForChangeAndSaveData() argument
512 || !Objects.equals(this.ringtone, ringtone) in checkForChangeAndSaveData()
525 !Objects.equals(this.ringtone, ringtone), in checkForChangeAndSaveData()
544 this.ringtone = ringtone; in checkForChangeAndSaveData()
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
DSettingsUtil.java86 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); in updateRingtoneName() local
87 if (ringtone != null) { in updateRingtoneName()
89 final String title = ringtone.getTitle(context); in updateRingtoneName()
/packages/apps/Dialer/java/com/android/dialer/util/
DSettingsUtil.java87 final Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri); in getRingtoneName() local
88 if (ringtone != null) { in getRingtoneName()
90 final String title = ringtone.getTitle(context); in getRingtoneName()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DPeopleOptionsItemData.java95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri); in bind() local
96 if (ringtone != null) { in bind()
97 mSubtitle = ringtone.getTitle(mContext); in bind()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DVolumeSettingsRingtoneManager.java115 Ringtone ringtone = RingtoneManager.getRingtone(mContext, getRingtoneUri(usage)); in lazyLoadRingtone() local
116 ringtone.setAudioAttributes(new AudioAttributes.Builder().setUsage(usage).build()); in lazyLoadRingtone()
117 mGroupToRingtoneMap.put(group, ringtone); in lazyLoadRingtone()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugReportService.java558 Ringtone ringtone = RingtoneManager.getRingtone(getApplicationContext(), notification); in playNotificationSound() local
559 if (ringtone == null) { in playNotificationSound()
563 float volume = ringtone.getVolume(); in playNotificationSound()
572 ringtone.setVolume(volume); in playNotificationSound()
573 ringtone.play(); in playNotificationSound()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/
DShadowRingtoneManager.java32 public static void setRingtone(Ringtone ringtone) { in setRingtone() argument
33 ShadowRingtoneManager.sRingtone = ringtone; in setRingtone()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowRingtoneManager.java36 public static void setRingtone(Ringtone ringtone) { in setRingtone() argument
37 sRingtone = ringtone; in setRingtone()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DDefaultNotificationTonePreference.java49 public void setRingtone(Uri ringtone) { in setRingtone() argument
50 mRingtone = ringtone; in setRingtone()
DNotificationSoundPreference.java43 public void setRingtone(Uri ringtone) { in setRingtone() argument
44 mRingtone = ringtone; in setRingtone()
/packages/apps/Settings/src/com/android/settings/notification/
DDefaultNotificationTonePreference.java49 public void setRingtone(Uri ringtone) { in setRingtone() argument
50 mRingtone = ringtone; in setRingtone()
/packages/apps/Settings/src/com/android/settings/notification/app/
DNotificationSoundPreference.java43 public void setRingtone(Uri ringtone) { in setRingtone() argument
44 mRingtone = ringtone; in setRingtone()
/packages/apps/Dialer/java/com/android/incallui/ringtone/
DToneGeneratorFactory.java17 package com.android.incallui.ringtone;

12