/packages/services/Telecomm/src/com/android/server/telecom/ |
D | AsyncRingtonePlayer.java | 51 private Ringtone mRingtone; field in AsyncRingtonePlayer 172 mRingtone = null; 184 if (mRingtone == null) { 185 mRingtone = factory.getRingtone(incomingCall, volumeShaperConfig); 186 if (mRingtone == null) { 203 boolean hasHaptics = factory.hasHapticChannels(mRingtone); 209 AudioAttributes attributes = mRingtone.getAudioAttributes(); 212 mRingtone.setAudioAttributes( 222 mRingtone.setLooping(true); 223 if (mRingtone.isPlaying()) { [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.kt | 383 private var mRingtone: Ringtone? = null in <lambda>() variable in com.android.deskclock.AsyncRingtonePlayer.RingtonePlaybackDelegate 432 mRingtone = RingtoneManager.getRingtone(context, ringtoneUriVariable) in <lambda>() 434 if (mRingtone == null) { in <lambda>() 437 mRingtone = RingtoneManager.getRingtone(context, ringtoneUriVariable) in <lambda>() 442 mSetLoopingMethod.invoke(mRingtone, true) in <lambda>() 448 mRingtone = null in <lambda>() 452 if (mRingtone == null) { in <lambda>() 455 mRingtone = RingtoneManager.getRingtone(context, ringtoneUriVariable) in <lambda>() 463 mRingtone = RingtoneManager.getRingtone(context, getFallbackRingtoneUri(context)) in <lambda>() 485 mRingtone!!.audioAttributes = AudioAttributes.Builder() in <lambda>() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/ |
D | VolumeSettingsRingtoneManagerTest.java | 60 private Ringtone mRingtone; field in VolumeSettingsRingtoneManagerTest 65 ShadowRingtoneManager.setRingtone(mRingtone); in setUp() 73 when(mRingtone.isPlaying()).thenReturn(false); in tearDown() 113 verify(mRingtone).play(); in testPlayAudioFeedback_play_playUntilTimeout() 114 when(mRingtone.isPlaying()).thenReturn(true); in testPlayAudioFeedback_play_playUntilTimeout() 116 verify(mRingtone).stop(); in testPlayAudioFeedback_play_playUntilTimeout() 122 verify(mRingtone).play(); in testPlayAudioFeedback_play_stoppedBeforeTimeout() 123 when(mRingtone.isPlaying()).thenReturn(false); in testPlayAudioFeedback_play_stoppedBeforeTimeout() 125 verify(mRingtone, never()).stop(); in testPlayAudioFeedback_play_stoppedBeforeTimeout() 132 verify(mRingtone).stop(); in testStopCurrentRingtone_stop() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | Beeper.java | 145 private Ringtone mRingtone; field in Beeper.BeepRecord 191 if (mRingtone != null) { in stop() 192 mRingtone.stop(); in stop() 193 mRingtone = null; in stop() 279 mRingtone = RingtoneManager.getRingtone(getContextForForegroundUser(), mBeepUri); in playViaRingtoneManager() 280 if (mRingtone != null) { in playViaRingtoneManager() 281 mRingtone.setStreamType(mBeepStream); in playViaRingtoneManager() 282 mRingtone.play(); in playViaRingtoneManager()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | CarAudioZoneVolumeFragment.java | 69 private Ringtone mRingtone; field in CarAudioZoneVolumeFragment 251 mRingtone = ringtone; in startRingtone() 257 if (mRingtone == null) { in stopRingtone() 260 if (mRingtone.isPlaying()) { in stopRingtone() 261 mRingtone.stop(); in stopRingtone() 263 mRingtone = null; in stopRingtone() 269 return mRingtone != null && mRingtone.isPlaying() in isRingtoneActiveForUsage() 270 && mRingtone.getAudioAttributes().getUsage() == usage; in isRingtoneActiveForUsage()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | DefaultNotificationTonePreference.java | 31 private Uri mRingtone; field in DefaultNotificationTonePreference 39 return mRingtone; in onRestoreRingtone() 46 mRingtone); in onPrepareRingtonePickerIntent() 50 mRingtone = ringtone; in setRingtone() 51 updateRingtoneName(mRingtone); in setRingtone()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | AlarmInstance.kt | 57 var mRingtone: Uri? = null variable in com.android.deskclock.provider.AlarmInstance 74 mRingtone = null 87 mRingtone = instance.mRingtone 112 mRingtone = if (c.isNull(RINGTONE_INDEX)) { 235 ", mRingtone=" + mRingtone + in toString() 308 if (instance.mRingtone == null) { in createContentValues() 313 values.put(AlarmSettingColumns.RINGTONE, instance.mRingtone.toString()) in createContentValues()
|
D | Alarm.kt | 166 result.mRingtone = alert in describeContents()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | NotificationSoundPreference.java | 32 private Uri mRingtone; field in NotificationSoundPreference 40 return mRingtone; in onRestoreRingtone() 44 mRingtone = ringtone; in setRingtone() 46 updateRingtoneName(mRingtone); in setRingtone()
|
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/ |
D | BeeperTest.java | 64 private Ringtone mRingtone; field in BeeperTest 89 ShadowRingtoneManager.setRingtone(mRingtone); in setup() 207 verify(mRingtone).stop(); in testStopAlsoStopsRingtoneManager() 222 verify(mRingtone).setStreamType(AudioManager.STREAM_MUSIC); in assertPlayedViaRingtoneManager() 223 verify(mRingtone).play(); in assertPlayedViaRingtoneManager()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmKlaxon.kt | 58 if (!AlarmSettingColumns.NO_RINGTONE_URI.equals(instance.mRingtone)) { in start() 60 getAsyncRingtonePlayer(context)!!.play(instance.mRingtone, crescendoDuration) in start()
|
D | AlarmUpdateHandler.kt | 116 newInstance.mRingtone = alarm.alert in <lambda>()
|