/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | RingtoneModel.kt | 74 val ringtone = CustomRingtoneDAO.addCustomRingtone(mPrefs, uri, title) in addCustomRingtone() constant 75 mutableCustomRingtones.add(ringtone) in addCustomRingtone() 77 return ringtone in addCustomRingtone() 82 for (ringtone in ringtones) { in removeCustomRingtone() constant 83 if (ringtone.uri.equals(uri)) { in removeCustomRingtone() 84 CustomRingtoneDAO.removeCustomRingtone(mPrefs, ringtone.id) in removeCustomRingtone() 85 ringtones.remove(ringtone) in removeCustomRingtone() 92 for (ringtone in mutableCustomRingtones) { in getCustomRingtone() method 93 if (ringtone.uri.equals(uri)) { in getCustomRingtone() 94 return ringtone in getCustomRingtone() [all …]
|
D | RingtoneModel.java | 90 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/ |
D | RingtonePickerActivity.java | 17 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 …]
|
D | RingtonePickerActivity.kt | 17 package com.android.deskclock.ringtone in <lambda>() 320 private fun startPlayingRingtone(ringtone: RingtoneHolder) { in <lambda>() 321 if (!ringtone.isPlaying && !ringtone.isSilent) { in <lambda>() 322 RingtonePreviewKlaxon.start(getApplicationContext(), ringtone.uri) in <lambda>() 323 ringtone.isPlaying = true in <lambda>() 326 if (!ringtone.isSelected) { in <lambda>() 327 ringtone.isSelected = true in <lambda>() 328 mSelectedRingtoneUri = ringtone.uri in <lambda>() 330 ringtone.notifyItemChanged() in <lambda>() 338 private fun stopPlayingRingtone(ringtone: RingtoneHolder?, deselect: Boolean) { in <lambda>() [all …]
|
D | CustomRingtoneHolder.kt | 17 package com.android.deskclock.ringtone 21 internal class CustomRingtoneHolder(ringtone: CustomRingtone) 22 : RingtoneHolder(ringtone.uri, ringtone.title, ringtone.hasPermissions()) {
|
D | CustomRingtoneHolder.java | 17 package com.android.deskclock.ringtone; 23 CustomRingtoneHolder(CustomRingtone ringtone) { in CustomRingtoneHolder() argument 24 super(ringtone.getUri(), ringtone.getTitle(), ringtone.hasPermissions()); in CustomRingtoneHolder()
|
D | RingtoneLoader.kt | 17 package com.android.deskclock.ringtone 75 for (ringtone in mCustomRingtones!!) { in loadInBackground() constant 76 itemHolders.add(CustomRingtoneHolder(ringtone)) in loadInBackground()
|
D | RingtoneLoader.java | 17 package com.android.deskclock.ringtone; 88 for (CustomRingtone ringtone : mCustomRingtones) { in loadInBackground() 89 itemHolders.add(new CustomRingtoneHolder(ringtone)); in loadInBackground()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RingtoneFactory.java | 61 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()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | ExpandedAlarmViewHolder.java | 68 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 …]
|
D | ExpandedAlarmViewHolder.kt | 63 val ringtone: TextView = itemView.findViewById(R.id.choose_ringtone) as TextView in <lambda>() constant 118 ringtone.setOnClickListener { _ -> in <lambda>() 157 ringtone.text = title in <lambda>() 160 ringtone.setContentDescription("$description $title") in <lambda>() 165 ringtone.setCompoundDrawablesRelativeWithIntrinsicBounds(icon, null, null, null) in <lambda>() 249 ObjectAnimator.ofFloat(ringtone, TRANSLATION_Y, 0f), in <lambda>() 272 ringtone.setTranslationY(translationY) in <lambda>() 342 val ringtoneAnimation: Animator = ObjectAnimator.ofFloat(ringtone, View.ALPHA, 0f) in <lambda>() 410 val ringtoneAnimation: Animator = ObjectAnimator.ofFloat(ringtone, View.ALPHA, 1f) in <lambda>() 480 ringtone.alpha = alpha in <lambda>()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | RingtonePickerActivity.java | 533 Ringtone ringtone; in run() local 545 ringtone = mDefaultRingtone; in run() 548 ringtone = mRingtoneManager.getRingtone(getRingtoneManagerPosition(mSampleRingtonePos)); in run() 549 mCurrentRingtone = ringtone; in run() 552 if (ringtone != null) { in run() 554 ringtone.setAudioAttributes( in run() 555 new AudioAttributes.Builder(ringtone.getAudioAttributes()) in run() 559 ringtone.play(); in run()
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | SoundSettingsTest.java | 203 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/ |
D | StatusBarNotifier.java | 91 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/ |
D | SettingsUtil.java | 86 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/ |
D | SettingsUtil.java | 87 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/Car/Settings/src/com/android/car/settings/sound/ |
D | VolumeSettingsRingtoneManager.java | 115 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/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | PeopleOptionsItemData.java | 95 final Ringtone ringtone = RingtoneManager.getRingtone(mContext, ringtoneUri); in bind() local 96 if (ringtone != null) { in bind() 97 mSubtitle = ringtone.getTitle(mContext); in bind()
|
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/ |
D | BugReportService.java | 546 Ringtone ringtone = RingtoneManager.getRingtone(getApplicationContext(), notification); in playNotificationSound() local 547 if (ringtone == null) { in playNotificationSound() 551 float volume = ringtone.getVolume(); in playNotificationSound() 560 ringtone.setVolume(volume); in playNotificationSound() 561 ringtone.play(); in playNotificationSound()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowRingtoneManager.java | 36 public static void setRingtone(Ringtone ringtone) { in setRingtone() argument 37 sRingtone = ringtone; in setRingtone()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | DefaultNotificationTonePreference.java | 49 public void setRingtone(Uri ringtone) { in setRingtone() argument 50 mRingtone = ringtone; in setRingtone()
|
D | NotificationSoundPreference.java | 43 public void setRingtone(Uri ringtone) { in setRingtone() argument 44 mRingtone = ringtone; in setRingtone()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | DefaultNotificationTonePreference.java | 49 public void setRingtone(Uri ringtone) { in setRingtone() argument 50 mRingtone = ringtone; in setRingtone()
|
D | NotificationSoundPreference.java | 43 public void setRingtone(Uri ringtone) { in setRingtone() argument 44 mRingtone = ringtone; in setRingtone()
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivityTest.java | 17 package com.android.deskclock.ringtone; 260 private void createAlarmRingtonePickerActivity(Uri ringtone) { in createAlarmRingtonePickerActivity() argument 269 alarm.alert = ringtone; in createAlarmRingtonePickerActivity()
|