Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_media_AudioRecord.cpp436 audiorecord_callback_cookie *lpCookie = (audiorecord_callback_cookie *)env->GetLongField( in android_media_AudioRecord_release() local
444 if (lpCookie) { in android_media_AudioRecord_release()
446 ALOGV("deleting lpCookie: %p", lpCookie); in android_media_AudioRecord_release()
447 while (lpCookie->busy) { in android_media_AudioRecord_release()
448 if (lpCookie->cond.waitRelative(sLock, in android_media_AudioRecord_release()
454 sAudioRecordCallBackCookies.remove(lpCookie); in android_media_AudioRecord_release()
455 env->DeleteGlobalRef(lpCookie->audioRecord_class); in android_media_AudioRecord_release()
456 env->DeleteGlobalRef(lpCookie->audioRecord_ref); in android_media_AudioRecord_release()
457 delete lpCookie; in android_media_AudioRecord_release()
Dandroid_media_AudioTrack.cpp562 audiotrack_callback_cookie *lpCookie = &pJniStorage->mCallbackData; in android_media_AudioTrack_release() local
564 while (lpCookie->busy) { in android_media_AudioTrack_release()
565 if (lpCookie->cond.waitRelative(sLock, in android_media_AudioTrack_release()
571 sAudioTrackCallBackCookies.remove(lpCookie); in android_media_AudioTrack_release()
573 env->DeleteGlobalRef(lpCookie->audioTrack_class); in android_media_AudioTrack_release()
574 env->DeleteGlobalRef(lpCookie->audioTrack_ref); in android_media_AudioTrack_release()