Home
last modified time | relevance | path

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

/packages/services/Telecomm/src/com/android/server/telecom/
DDtmfLocalTonePlayer.java39 private ToneGenerator mToneGenerator; field in DtmfLocalTonePlayer
81 if (mToneGenerator == null) { in playTone()
87 mToneGenerator.startTone(tone, -1 /* toneDuration */); in playTone()
104 if (mToneGenerator == null) { in stopTone()
108 mToneGenerator.stopTone(); in stopTone()
190 if (mToneGenerator == null) { in getNewHandler()
192 mToneGenerator = new ToneGenerator( in getNewHandler()
196 mToneGenerator = null; in getNewHandler()
203 if (mToneGenerator != null) { in getNewHandler()
204 mToneGenerator.release(); in getNewHandler()
[all …]
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java113 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()
263 if (mToneGenerator != null) { in onDestroy()
264 mToneGenerator.release(); in onDestroy()
265 mToneGenerator = null; in onDestroy()
489 if (mToneGenerator == null) { in onResume()
491 mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF, in onResume()
495 mToneGenerator = null; in onResume()
[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/apps/Dialer/src/com/android/dialer/dialpad/
DDialpadFragment.java181 private ToneGenerator mToneGenerator; field in DialpadFragment
604 if (mToneGenerator == null) { in onStart()
606 mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); in onStart()
609 mToneGenerator = null; in onStart()
704 if (mToneGenerator != null) { in onStop()
705 mToneGenerator.release(); in onStop()
706 mToneGenerator = null; in onStop()
1200 if (mToneGenerator == null) { in playTone()
1206 mToneGenerator.startTone(tone, durationMs); in playTone()
1219 if (mToneGenerator == null) { in stopTone()
[all …]