/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | RingtoneModel.kt | 75 val ringtone = CustomRingtoneDAO.addCustomRingtone(mPrefs, uri, title) in addCustomRingtone() constant 76 mutableCustomRingtones.add(ringtone) in addCustomRingtone() 78 return ringtone in addCustomRingtone() 83 for (ringtone in ringtones) { in removeCustomRingtone() constant 84 if (ringtone.uri.equals(uri)) { in removeCustomRingtone() 85 CustomRingtoneDAO.removeCustomRingtone(mPrefs, ringtone.id) in removeCustomRingtone() 86 ringtones.remove(ringtone) in removeCustomRingtone() 93 for (ringtone in mutableCustomRingtones) { in getCustomRingtone() method 94 if (ringtone.uri.equals(uri)) { in getCustomRingtone() 95 return ringtone in getCustomRingtone() [all …]
|
/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 79 ringtone = RingtoneManager.getRingtone(userContext, ringtoneUri, in getRingtone() 85 if(ringtone == null) { in getRingtone() 100 ringtone = RingtoneManager.getRingtone( in getRingtone() 106 if (ringtone != null) { in getRingtone() 107 ringtone.setAudioAttributes(new AudioAttributes.Builder() in getRingtone() 112 return ringtone; in getRingtone()
|
D | Ringer.java | 360 Ringtone ringtone = factory.getRingtone(call); in getVibrationEffectForCall() local 361 Uri ringtoneUri = ringtone != null ? ringtone.getUri() : null; in getVibrationEffectForCall()
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivity.kt | 17 package com.android.deskclock.ringtone in <lambda>() 321 private fun startPlayingRingtone(ringtone: RingtoneHolder) { in <lambda>() 322 if (!ringtone.isPlaying && !ringtone.isSilent) { in <lambda>() 323 RingtonePreviewKlaxon.start(getApplicationContext(), ringtone.uri) in <lambda>() 324 ringtone.isPlaying = true in <lambda>() 327 if (!ringtone.isSelected) { in <lambda>() 328 ringtone.isSelected = true in <lambda>() 329 mSelectedRingtoneUri = ringtone.uri in <lambda>() 331 ringtone.notifyItemChanged() in <lambda>() 339 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 | RingtoneLoader.kt | 17 package com.android.deskclock.ringtone 75 for (ringtone in mCustomRingtones!!) { in loadInBackground() constant 76 itemHolders.add(CustomRingtoneHolder(ringtone)) in loadInBackground()
|
D | SystemRingtoneHolder.kt | 17 package com.android.deskclock.ringtone
|
D | AddCustomRingtoneHolder.kt | 17 package com.android.deskclock.ringtone
|
D | HeaderHolder.kt | 17 package com.android.deskclock.ringtone
|
D | RingtoneHolder.kt | 17 package com.android.deskclock.ringtone
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | CarAudioZoneVolumeFragment.java | 243 Ringtone ringtone = in startRingtone() local 245 ringtone.setAudioAttributes(attributes); in startRingtone() 246 ringtone.setLooping(true); in startRingtone() 248 ringtone.play(); in startRingtone() 251 mRingtone = ringtone; in startRingtone()
|
/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/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/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/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/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/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/Car/Notification/tests/robotests/src/com/android/car/notification/testutils/ |
D | ShadowRingtoneManager.java | 32 public static void setRingtone(Ringtone ringtone) { in setRingtone() argument 33 ShadowRingtoneManager.sRingtone = ringtone; in setRingtone()
|
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
D | BugReportService.java | 561 Ringtone ringtone = RingtoneManager.getRingtone(getApplicationContext(), notification); in playNotificationSound() local 562 if (ringtone == null) { in playNotificationSound() 566 float volume = ringtone.getVolume(); in playNotificationSound() 575 ringtone.setVolume(volume); in playNotificationSound() 576 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()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
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()
|
/packages/apps/Dialer/java/com/android/incallui/ringtone/ |
D | ToneGeneratorFactory.java | 17 package com.android.incallui.ringtone;
|