Home
last modified time | relevance | path

Searched refs:lpToneGen (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/jni/
Dandroid_media_ToneGenerator.cpp45 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz, in android_media_ToneGenerator_startTone() local
47 if (lpToneGen == NULL) { in android_media_ToneGenerator_startTone()
52 return lpToneGen->startTone((ToneGenerator::tone_type) toneType, durationMs); in android_media_ToneGenerator_startTone()
58 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz, in android_media_ToneGenerator_stopTone() local
61 ALOGV("ToneGenerator lpToneGen: %p", lpToneGen); in android_media_ToneGenerator_stopTone()
62 if (lpToneGen == NULL) { in android_media_ToneGenerator_stopTone()
66 lpToneGen->stopTone(); in android_media_ToneGenerator_stopTone()
70 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz, in android_media_ToneGenerator_getAudioSessionId() local
72 if (lpToneGen == NULL) { in android_media_ToneGenerator_getAudioSessionId()
76 return lpToneGen->getSessionId(); in android_media_ToneGenerator_getAudioSessionId()
[all …]
/frameworks/av/media/libaudioclient/
DToneGenerator.cpp1330 ToneGenerator *lpToneGen = static_cast<ToneGenerator *>(user); in audioCallback() local
1333 const ToneDescriptor *lpToneDesc = lpToneGen->mpToneDesc; in audioCallback()
1342 … unsigned int lReqSmp = lNumSmp < lpToneGen->mProcessSize*2 ? lNumSmp : lpToneGen->mProcessSize; in audioCallback()
1347 lpToneGen->mLock.lock(); in audioCallback()
1351 lpToneGen->mTotalSmp += lReqSmp; in audioCallback()
1354 switch (lpToneGen->mState) { in audioCallback()
1368 lpToneGen->mNextSegSmp = TONEGEN_INF; // forced to skip state machine management below in audioCallback()
1379 if (lpToneDesc->segments[lpToneGen->mCurSegment].duration == 0 || in audioCallback()
1380 lpToneGen->mTotalSmp > lpToneGen->mMaxSmp) { in audioCallback()
1381 if (lpToneGen->mState == TONE_PLAYING) { in audioCallback()
[all …]