Lines Matching refs:ret
53 #define DISPLAY_TEST_CHK_RETURN(val, ret, ...) \
57 return (ret); \
399 int32_t ret = displayBuffer_->RegisterBuffer(handle);
400 EXPECT_TRUE(ret == DISPLAY_NOT_SUPPORT || ret == DISPLAY_SUCCESS);
406 ret = displayBuffer_->SetMetadata(handle, key, values);
407 EXPECT_TRUE(ret == DISPLAY_NOT_SUPPORT || ret == DISPLAY_SUCCESS);
408 ret = displayBuffer_->GetMetadata(handle, key, rets);
409 EXPECT_TRUE(ret == DISPLAY_NOT_SUPPORT || ret == DISPLAY_SUCCESS);
410 if (ret != DISPLAY_NOT_SUPPORT) {
414 ret = displayBuffer_->ListMetadataKeys(handle, keys);
415 EXPECT_TRUE(ret == DISPLAY_NOT_SUPPORT || ret == DISPLAY_SUCCESS);
416 if (ret != DISPLAY_NOT_SUPPORT) {
420 ret = displayBuffer_->EraseMetadataKey(handle, key);
421 EXPECT_TRUE(ret == DISPLAY_NOT_SUPPORT || ret == DISPLAY_SUCCESS);
422 if (ret != DISPLAY_NOT_SUPPORT) {
424 ret = displayBuffer_->GetMetadata(handle, key, rets);
425 EXPECT_TRUE(ret != DISPLAY_SUCCESS);
431 int ret;
435 ret = displayBuffer_->AllocMem(info, buffer);
436 if (ret == DISPLAY_NOT_SUPPORT) {
437 HDF_LOGE("%{public}s: AllocMem not support, ret=%{public}d", __func__, ret);
440 if (ret != DISPLAY_SUCCESS || buffer == nullptr) {
442 return ret;
452 ret = displayBuffer_->InvalidateCache(*buffer);
453 if (ret != DISPLAY_SUCCESS) {
457 return ret;
467 ret = displayBuffer_->FlushCache(*buffer);
468 if (ret != DISPLAY_SUCCESS) {
472 return ret;
484 int ret = AllocMemTest(params);
485 ASSERT_TRUE(ret == DISPLAY_SUCCESS);