• Home
  • Raw
  • Download

Lines Matching full:duplicate

395 	struct grallocinfo info, duplicate;  in test_gralloc_order()  local
399 grallocinfo_init(&duplicate, 512, 512, HAL_PIXEL_FORMAT_BGRA_8888, in test_gralloc_order()
405 * Duplicate the buffer handle to simulate an additional reference in test_gralloc_order()
409 duplicate.handle = native_handle; in test_gralloc_order()
411 CHECK(unregister_buffer(ctx->module, &duplicate) == 0); in test_gralloc_order()
412 CHECK(register_buffer(ctx->module, &duplicate)); in test_gralloc_order()
414 CHECK(unlock(ctx->module, &duplicate) == 0); in test_gralloc_order()
416 CHECK(lock(ctx->module, &duplicate)); in test_gralloc_order()
417 CHECK(duplicate.vaddr); in test_gralloc_order()
418 CHECK(unlock(ctx->module, &duplicate)); in test_gralloc_order()
420 CHECK(unregister_buffer(ctx->module, &duplicate)); in test_gralloc_order()
422 CHECK(register_buffer(ctx->module, &duplicate)); in test_gralloc_order()
423 CHECK(unregister_buffer(ctx->module, &duplicate)); in test_gralloc_order()
424 CHECK(unregister_buffer(ctx->module, &duplicate) == 0); in test_gralloc_order()
426 CHECK(register_buffer(ctx->module, &duplicate)); in test_gralloc_order()
429 CHECK(lock(ctx->module, &duplicate)); in test_gralloc_order()
430 CHECK(lock(ctx->module, &duplicate)); in test_gralloc_order()
431 CHECK(unlock(ctx->module, &duplicate)); in test_gralloc_order()
432 CHECK(unlock(ctx->module, &duplicate)); in test_gralloc_order()
433 CHECK(unlock(ctx->module, &duplicate) == 0); in test_gralloc_order()
434 CHECK(unregister_buffer(ctx->module, &duplicate)); in test_gralloc_order()
436 CHECK(native_handle_close(duplicate.handle) == 0); in test_gralloc_order()
481 struct grallocinfo info, duplicate; in test_perform() local
499 duplicate.handle = native_handle; in test_perform()
501 CHECK(mod->perform(mod, GRALLOC_DRM_GET_BACKING_STORE, duplicate.handle, &id2)); in test_perform()
502 CHECK(register_buffer(mod, &duplicate)); in test_perform()
505 CHECK(mod->perform(mod, GRALLOC_DRM_GET_BACKING_STORE, duplicate.handle, &id2) == 0); in test_perform()
508 CHECK(unregister_buffer(mod, &duplicate)); in test_perform()