Lines Matching refs:fenceFd
186 sp<GraphicBuffer> buffer, int fenceFd);
188 GraphicBuffer** buffer, int* fenceFd);
338 int fenceFd = -1;
339 status_t res = anw->dequeueBuffer(anw.get(), &anb, &fenceFd);
364 Image_setNativeContext(env, image, buffer, fenceFd);
414 int fenceFd = -1;
415 Image_getNativeContext(env, image, &buffer, &fenceFd);
425 anw->cancelBuffer(anw.get(), buffer, fenceFd);
444 int fenceFd = -1;
445 Image_getNativeContext(env, image, &buffer, &fenceFd);
476 res = anw->queueBuffer(anw.get(), buffer, fenceFd);
568 res = anw->queueBuffer(anw.get(), opaqueBuffer->mGraphicBuffer.get(), /*fenceFd*/
593 GraphicBuffer** buffer, int* fenceFd) {
601 if (fenceFd != NULL) {
602 *fenceFd = reinterpret_cast<jint>(env->GetIntField(
608 sp<GraphicBuffer> buffer, int fenceFd) {
611 Image_getNativeContext(env, thiz, &p, /*fenceFd*/NULL);
621 env->SetIntField(thiz, gSurfaceImageClassInfo.mNativeFenceFd, reinterpret_cast<jint>(fenceFd));
712 static void Image_setFenceFd(JNIEnv* env, jobject thiz, int fenceFd) {
714 env->SetIntField(thiz, gSurfaceImageClassInfo.mNativeFenceFd, reinterpret_cast<jint>(fenceFd));
720 int fenceFd = -1;
721 Image_getNativeContext(env, thiz, &buffer, &fenceFd);
735 res = buffer->lockAsyncYCbCr(GRALLOC_USAGE_SW_WRITE_OFTEN, &ycbcr, fenceFd);
736 // Clear the fenceFd as it is already consumed by lock call.
737 Image_setFenceFd(env, thiz, /*fenceFd*/-1);
748 res = buffer->lockAsync(GRALLOC_USAGE_SW_WRITE_OFTEN, &pData, fenceFd);