Home
last modified time | relevance | path

Searched refs:toneGenerator (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/ringtone/
DInCallTonePlayer.java106 ToneGenerator toneGenerator = null; in playOnBackgroundThread() local
109 toneGenerator = toneGeneratorFactory.newInCallToneGenerator(info.stream, info.volume); in playOnBackgroundThread()
110 toneGenerator.startTone(info.tone); in playOnBackgroundThread()
124 if (toneGenerator != null) { in playOnBackgroundThread()
125 toneGenerator.release(); in playOnBackgroundThread()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallTonePlayer.java367 ToneGenerator toneGenerator = null; in playToneGeneratorTone() local
372 toneGenerator = mToneGenerator.get(stream, toneVolume); in playToneGeneratorTone()
388 toneGenerator.startTone(toneType); in playToneGeneratorTone()
400 if (toneGenerator != null) { in playToneGeneratorTone()
401 toneGenerator.release(); in playToneGeneratorTone()
/packages/services/Telephony/src/com/android/phone/
DCallNotifier.java391 ToneGenerator toneGenerator; in run() local
400 toneGenerator = new ToneGenerator(stream, toneVolume); in run()
405 toneGenerator = null; in run()
425 if (toneGenerator != null) { in run()
463 toneGenerator.startTone(toneType); in run()
471 toneGenerator.stopTone(); in run()
475 toneGenerator.release(); in run()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadFragment.java178 private ToneGenerator toneGenerator; field in DialpadFragment
752 if (toneGenerator == null) { in onStart()
754 toneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); in onStart()
759 toneGenerator = null; in onStart()
860 if (toneGenerator != null) { in onStop()
861 toneGenerator.release(); in onStop()
862 toneGenerator = null; in onStop()
1277 if (toneGenerator == null) { in playTone()
1283 toneGenerator.startTone(tone, durationMs); in playTone()
1294 if (toneGenerator == null) { in stopTone()
[all …]