Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_media_AudioRecord.cpp416 audiorecord_callback_cookie *lpCookie = (audiorecord_callback_cookie *)env->GetLongField( in android_media_AudioRecord_release() local
424 if (lpCookie) { in android_media_AudioRecord_release()
426 ALOGV("deleting lpCookie: %p", lpCookie); in android_media_AudioRecord_release()
427 while (lpCookie->busy) { in android_media_AudioRecord_release()
428 if (lpCookie->cond.waitRelative(sLock, in android_media_AudioRecord_release()
434 sAudioRecordCallBackCookies.remove(lpCookie); in android_media_AudioRecord_release()
435 env->DeleteGlobalRef(lpCookie->audioRecord_class); in android_media_AudioRecord_release()
436 env->DeleteGlobalRef(lpCookie->audioRecord_ref); in android_media_AudioRecord_release()
437 delete lpCookie; in android_media_AudioRecord_release()
Dandroid_media_AudioTrack.cpp566 audiotrack_callback_cookie *lpCookie = &pJniStorage->mCallbackData; in android_media_AudioTrack_release() local
568 while (lpCookie->busy) { in android_media_AudioTrack_release()
569 if (lpCookie->cond.waitRelative(sLock, in android_media_AudioTrack_release()
575 sAudioTrackCallBackCookies.remove(lpCookie); in android_media_AudioTrack_release()
577 env->DeleteGlobalRef(lpCookie->audioTrack_class); in android_media_AudioTrack_release()
578 env->DeleteGlobalRef(lpCookie->audioTrack_ref); in android_media_AudioTrack_release()