Home
last modified time | relevance | path

Searched refs:mToneGenerator (Results 1 – 6 of 6) sorted by relevance

/packages/services/Telecomm/src/com/android/server/telecom/
DDtmfLocalTonePlayer.java39 private ToneGenerator mToneGenerator; field in DtmfLocalTonePlayer
73 if (mToneGenerator == null) { in playTone()
79 mToneGenerator.startTone(tone, -1 /* toneDuration */); in playTone()
96 if (mToneGenerator == null) { in stopTone()
100 mToneGenerator.stopTone(); in stopTone()
182 if (mToneGenerator == null) { in getNewHandler()
184 mToneGenerator = new ToneGenerator( in getNewHandler()
188 mToneGenerator = null; in getNewHandler()
195 if (mToneGenerator != null) { in getNewHandler()
196 mToneGenerator.release(); in getNewHandler()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyTonePlayer.java55 private ToneGenerator mToneGenerator; field in EmergencyTonePlayer
102 if (mToneGenerator == null) { in startAlert()
103 mToneGenerator = new ToneGenerator( in startAlert()
112 mToneGenerator.startTone(ToneGenerator.TONE_CDMA_EMERGENCY_RINGBACK); in startAlert()
119 if (mToneGenerator != null) { in stopAlert()
120 mToneGenerator.stopTone(); in stopAlert()
121 mToneGenerator.release(); in stopAlert()
122 mToneGenerator = null; in stopAlert()
/packages/apps/Stk/src/com/android/stk/
DTonePlayer.java47 private ToneGenerator mToneGenerator = null; field in TonePlayer
50 mToneGenerator = new ToneGenerator(AudioManager.STREAM_SYSTEM, 100); in TonePlayer()
55 if (toneId > 0 && mToneGenerator != null) { in play()
56 mToneGenerator.startTone(toneId); in play()
61 if (mToneGenerator != null) { in stop()
62 mToneGenerator.stopTone(); in stop()
67 mToneGenerator.release(); in release()
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java115 private ToneGenerator mToneGenerator; field in EmergencyDialer
233 if (mToneGenerator == null) { in onCreate()
235 mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); in onCreate()
238 mToneGenerator = null; in onCreate()
254 if (mToneGenerator != null) { in onDestroy()
255 mToneGenerator.release(); in onDestroy()
256 mToneGenerator = null; in onDestroy()
477 if (mToneGenerator == null) { in onResume()
479 mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF, in onResume()
483 mToneGenerator = null; in onResume()
[all …]
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/ringtone/
DInCallTonePlayerTest.java35 @Mock private ToneGenerator mToneGenerator; field in InCallTonePlayerTest
51 Mockito.anyInt())).thenReturn(mToneGenerator); in setUp()
108 Mockito.verify(mToneGenerator).startTone(ToneGenerator.TONE_SUP_CALL_WAITING); in testPlay_Single()
129 Mockito.verify(mToneGenerator, Mockito.times(2)) in testPlay_Consecutive()
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DDialpadFragment.java182 private ToneGenerator mToneGenerator; field in DialpadFragment
639 if (mToneGenerator == null) { in onStart()
641 mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); in onStart()
644 mToneGenerator = null; in onStart()
739 if (mToneGenerator != null) { in onStop()
740 mToneGenerator.release(); in onStop()
741 mToneGenerator = null; in onStop()
1198 if (mToneGenerator == null) { in playTone()
1204 mToneGenerator.startTone(tone, durationMs); in playTone()
1217 if (mToneGenerator == null) { in stopTone()
[all …]