Searched refs:mToneGenerator (Results 1 – 6 of 6) sorted by relevance
39 private ToneGenerator mToneGenerator; field in DtmfLocalTonePlayer73 if (mToneGenerator == null) { in playTone()79 mToneGenerator.startTone(tone, -1 /* toneDuration */); in playTone()96 if (mToneGenerator == null) { in stopTone()100 mToneGenerator.stopTone(); in stopTone()182 if (mToneGenerator == null) { in getNewHandler()184 mToneGenerator = new ToneGenerator( in getNewHandler()188 mToneGenerator = null; in getNewHandler()195 if (mToneGenerator != null) { in getNewHandler()196 mToneGenerator.release(); in getNewHandler()[all …]
55 private ToneGenerator mToneGenerator; field in EmergencyTonePlayer102 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()
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()
115 private ToneGenerator mToneGenerator; field in EmergencyDialer233 if (mToneGenerator == null) { in onCreate()235 mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); in onCreate()238 mToneGenerator = null; in onCreate()254 if (mToneGenerator != null) { in onDestroy()255 mToneGenerator.release(); in onDestroy()256 mToneGenerator = null; in onDestroy()477 if (mToneGenerator == null) { in onResume()479 mToneGenerator = new ToneGenerator(AudioManager.STREAM_DTMF, in onResume()483 mToneGenerator = null; in onResume()[all …]
35 @Mock private ToneGenerator mToneGenerator; field in InCallTonePlayerTest51 Mockito.anyInt())).thenReturn(mToneGenerator); in setUp()108 Mockito.verify(mToneGenerator).startTone(ToneGenerator.TONE_SUP_CALL_WAITING); in testPlay_Single()129 Mockito.verify(mToneGenerator, Mockito.times(2)) in testPlay_Consecutive()
182 private ToneGenerator mToneGenerator; field in DialpadFragment639 if (mToneGenerator == null) { in onStart()641 mToneGenerator = new ToneGenerator(DIAL_TONE_STREAM_TYPE, TONE_RELATIVE_VOLUME); in onStart()644 mToneGenerator = null; in onStart()739 if (mToneGenerator != null) { in onStop()740 mToneGenerator.release(); in onStop()741 mToneGenerator = null; in onStop()1198 if (mToneGenerator == null) { in playTone()1204 mToneGenerator.startTone(tone, durationMs); in playTone()1217 if (mToneGenerator == null) { in stopTone()[all …]