Home
last modified time | relevance | path

Searched refs:mRingtone (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DRingtonePlayer.java80 private final Ringtone mRingtone; field in RingtonePlayer.Client
90 mRingtone = new Ringtone(getContextForUser(user), false); in Client()
91 mRingtone.setAudioAttributes(aa); in Client()
92 mRingtone.setUri(uri, volumeShaperConfig); in Client()
101 mRingtone.stop(); in binderDied()
129 client.mRingtone.setLooping(looping);
130 client.mRingtone.setVolume(volume);
131 client.mRingtone.play();
143 client.mRingtone.stop();
155 return client.mRingtone.isPlaying();
[all …]
/frameworks/base/core/java/android/preference/
DSeekBarVolumizer.java113 private Ringtone mRingtone; field in SeekBarVolumizer
306 mRingtone = RingtoneManager.getRingtone(mContext, mDefaultUri); in onInitSample()
307 if (mRingtone != null) { in onInitSample()
308 mRingtone.setStreamType(mStreamType); in onInitSample()
327 if (mRingtone != null) { in onStartSample()
329 mRingtone.setAudioAttributes(new AudioAttributes.Builder(mRingtone in onStartSample()
333 mRingtone.play(); in onStartSample()
352 if (mRingtone != null) { in onStopSample()
353 mRingtone.stop(); in onStopSample()
419 return mRingtone != null && mRingtone.isPlaying(); in isSamplePlaying()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutControllerTest.java118 private @Mock Ringtone mRingtone; field in AccessibilityShortcutControllerTest
156 when(mFrameworkObjectProvider.getRingtone(eq(mContext), any())).thenReturn(mRingtone); in setUp()
479 verify(mRingtone, times(0)).play(); in testOnAccessibilityShortcut_showsWarningDialog_shouldTtsSpokenPrompt()
498 verify(mRingtone).play(); in testOnAccessibilityShortcut_showsWarningDialog_ttsInitFail_noSpokenPrompt()