Searched refs:mToneGenerator (Results 1 – 7 of 7) sorted by relevance
43 private ToneGenerator mToneGenerator; field in DtmfLocalTonePlayer.ToneGeneratorProxy46 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 …]
209 private final ToneGeneratorFactory mToneGenerator; field in InCallTonePlayer231 mToneGenerator = toneGeneratorFactory; in InCallTonePlayer()372 toneGenerator = mToneGenerator.get(stream, toneVolume); in playToneGeneratorTone()
58 private ToneGenerator mToneGenerator; field in EmergencyTonePlayer113 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()
47 private ToneGenerator mToneGenerator = null; field in TonePlayer50 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()
168 private ToneGenerator mToneGenerator; field in EmergencyDialer351 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 …]
81 private ToneGenerator mToneGenerator; field in DialpadFragment108 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()
59 private ToneGenerator mToneGenerator; field in InCallTonePlayerTest110 when(mToneGeneratorFactory.get(anyInt(), anyInt())).thenReturn(mToneGenerator); in setUp()