Home
last modified time | relevance | path

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

/packages/services/Telecomm/src/com/android/server/telecom/
DDtmfLocalTonePlayer.java43 private ToneGenerator mToneGenerator; field in DtmfLocalTonePlayer.ToneGeneratorProxy
46 if (mToneGenerator == null) { in create()
48 mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF, 80); in create()
51 mToneGenerator = null; in create()
57 if (mToneGenerator != null) { in release()
58 mToneGenerator.release(); in release()
59 mToneGenerator = null; in release()
64 return mToneGenerator != null; in isPresent()
68 if (mToneGenerator != null) { in startTone()
69 mToneGenerator.startTone(toneType, durationMs); in startTone()
[all …]
DInCallTonePlayer.java209 private final ToneGeneratorFactory mToneGenerator; field in InCallTonePlayer
231 mToneGenerator = toneGeneratorFactory; in InCallTonePlayer()
372 toneGenerator = mToneGenerator.get(stream, toneVolume); in playToneGeneratorTone()
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyTonePlayer.java58 private ToneGenerator mToneGenerator; field in EmergencyTonePlayer
113 if (mToneGenerator == null) { in startAlert()
114 mToneGenerator = new ToneGenerator( in startAlert()
123 mToneGenerator.startTone(ToneGenerator.TONE_CDMA_EMERGENCY_RINGBACK); in startAlert()
128 if (mToneGenerator != null) { in stopAlert()
129 mToneGenerator.stopTone(); in stopAlert()
130 mToneGenerator.release(); in stopAlert()
131 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.java168 private ToneGenerator mToneGenerator; field in EmergencyDialer
351 if (mToneGenerator == null) { in onCreate()
353 mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); in onCreate()
356 mToneGenerator = null; in onCreate()
378 if (mToneGenerator != null) { in onDestroy()
379 mToneGenerator.release(); in onDestroy()
380 mToneGenerator = null; in onDestroy()
677 if (mToneGenerator == null) { in onResume()
679 mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF, in onResume()
683 mToneGenerator = null; in onResume()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DDialpadFragment.java81 private ToneGenerator mToneGenerator; field in DialpadFragment
108 mToneGenerator = new ToneGenerator(AudioManager.STREAM_MUSIC, TONE_RELATIVE_VOLUME); in onCreate()
194 mToneGenerator.startTone(mToneMap.get(keycode), TONE_LENGTH_INFINITE); in playTone()
200 mToneGenerator.stopTone(); in stopAllTones()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallTonePlayerTest.java59 private ToneGenerator mToneGenerator; field in InCallTonePlayerTest
110 when(mToneGeneratorFactory.get(anyInt(), anyInt())).thenReturn(mToneGenerator); in setUp()