Searched refs:mToneGenerator (Results 1 – 8 of 8) sorted by relevance
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | DtmfLocalTonePlayer.java | 43 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 …]
|
D | InCallTonePlayer.java | 209 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/ |
D | EmergencyTonePlayer.java | 55 private ToneGenerator mToneGenerator; field in EmergencyTonePlayer 111 if (mToneGenerator == null) { in startAlert() 112 mToneGenerator = new ToneGenerator( in startAlert() 121 mToneGenerator.startTone(ToneGenerator.TONE_CDMA_EMERGENCY_RINGBACK); in startAlert() 126 if (mToneGenerator != null) { in stopAlert() 127 mToneGenerator.stopTone(); in stopAlert() 128 mToneGenerator.release(); in stopAlert() 129 mToneGenerator = null; in stopAlert()
|
/packages/apps/Stk/src/com/android/stk/ |
D | TonePlayer.java | 47 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/ |
D | EmergencyDialer.java | 164 private ToneGenerator mToneGenerator; field in EmergencyDialer 340 if (mToneGenerator == null) { in onCreate() 342 mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); in onCreate() 345 mToneGenerator = null; in onCreate() 367 if (mToneGenerator != null) { in onDestroy() 368 mToneGenerator.release(); in onDestroy() 369 mToneGenerator = null; in onDestroy() 639 if (mToneGenerator == null) { in onResume() 641 mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF, in onResume() 645 mToneGenerator = null; in onResume() [all …]
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/dialpad/ |
D | DialpadFragment.java | 97 private ToneGenerator mToneGenerator; field in DialpadFragment 128 mToneGenerator = new ToneGenerator(AudioManager.STREAM_MUSIC, TONE_RELATIVE_VOLUME); in onCreate() 221 mToneGenerator.startTone(mToneMap.get(keycode), TONE_LENGTH_INFINITE); in playTone() 227 mToneGenerator.stopTone(); in stopAllTones()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | InCallTonePlayerTest.java | 59 private ToneGenerator mToneGenerator; field in InCallTonePlayerTest 110 when(mToneGeneratorFactory.get(anyInt(), anyInt())).thenReturn(mToneGenerator); in setUp()
|
D | TelecomSystemTest.java | 209 @Mock ToneGenerator mToneGenerator; field in TelecomSystemTest 490 (streamType, volume) -> mToneGenerator, in setupTelecomSystem()
|