/test/xts/hats/hdf/wlan/hdi_service/ |
D | wlan_hdi_hal_services_c_test.cpp | 62 int32_t rc = g_wlanObj->Start(g_wlanObj); in SetUp() local 63 ASSERT_EQ(rc, HDF_SUCCESS); in SetUp() 68 int32_t rc = g_wlanObj->Stop(g_wlanObj); in TearDown() local 69 ASSERT_EQ(rc, HDF_SUCCESS); in TearDown() 84 int32_t rc = g_wlanObj->GetSupportFeature(g_wlanObj, supType, &supTypeLenInvalid); variable 85 ASSERT_EQ(rc, HDF_ERR_INVALID_PARAM); 86 rc = g_wlanObj->GetSupportFeature(g_wlanObj, supType, &supTypeLen); 87 ASSERT_EQ(rc, HDF_SUCCESS); 88 rc = g_wlanObj->GetSupportCombo(g_wlanObj, combo); 89 ASSERT_NE(rc, HDF_FAILURE); [all …]
|
D | wlan_hdi_direct_test.cpp | 74 int32_t rc = g_wlanObj->GetSupportFeature(g_wlanObj, nullptr, &supTypeLenInvalid); variable 75 ASSERT_EQ(rc, HDF_ERR_INVALID_PARAM); 76 rc = g_wlanObj->GetSupportFeature(g_wlanObj, supType, nullptr); 77 ASSERT_EQ(rc, HDF_ERR_INVALID_PARAM); 78 rc = g_wlanObj->GetSupportFeature(g_wlanObj, supType, &supTypeLenInvalid); 79 ASSERT_EQ(rc, HDF_FAILURE); 91 int32_t rc = g_wlanObj->GetSupportCombo(g_wlanObj, nullptr); variable 92 ASSERT_EQ(rc, HDF_ERR_INVALID_PARAM); 93 rc = g_wlanObj->GetSupportCombo(g_wlanObj, combo); 94 ASSERT_EQ(rc, HDF_FAILURE); [all …]
|
/test/xts/hats/hdf/camera/cameraHdi/v4l2/src/ |
D | camera_preview_test.cpp | 95 display_->rc = (CamRetCode)display_->streamOperator->CreateStreams(streamInfos); 96 EXPECT_EQ(true, display_->rc != HDI::Camera::V1_0::NO_ERROR); 97 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) { 100 std::cout << "==========[test log] CreateStreams fail, rc = " << display_->rc << std::endl; 119 display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(display_->cameraIds.front(), 121 std::cout << "OpenCamera's RetCode = " << display_->rc << std::endl; 122 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR); 141 display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(display_->cameraIds.front(), 143 std::cout << "OpenCamera's RetCode = " << display_->rc << std::endl; 144 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR); [all …]
|
D | camera_capture_test.cpp | 123 display_->rc = (CamRetCode)display_->cameraDevice->UpdateSettings(setting); 124 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) { 127 std::cout << "==========[test log] UpdateSettings fail, rc = " << display_->rc << std::endl; 160 … std::cout << "==========[test log] Next, switch to preview + video." << display_->rc << std::endl; 198 display_->rc = (CamRetCode)display_->streamOperator->ReleaseStreams( 200 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR); 201 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) { 204 … std::cout << "==========[test log] ReleaseStreams fail, rc = ." << display_->rc << std::endl; 206 display_->rc = (CamRetCode)display_->streamOperator->ReleaseStreams( 208 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR); [all …]
|
D | open_camera_test.cpp | 55 display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, cameraDevice); 56 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR); 72 …display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, display_->cameraDe… 74 EXPECT_EQ(INVALID_ARGUMENT, display_->rc); 89 …display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, display_->cameraDe… 90 EXPECT_EQ(INVALID_ARGUMENT, display_->rc); 105 …display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, display_->cameraDe… 106 EXPECT_EQ(INVALID_ARGUMENT, display_->rc); 121 …display_->rc = (CamRetCode)display_->cameraHost->OpenCamera(cameraId, callback, display_->cameraDe… 122 EXPECT_EQ(INVALID_ARGUMENT, display_->rc); [all …]
|
D | usb_camera_test_mult.cpp | 38 …cameraBase_->rc = (CamRetCode)cameraBase_->cameraHost->OpenCamera(cameraId, callback, cameraDevice… in SelectOpenCamera() 39 if (cameraBase_->rc != HDI::Camera::V1_0::NO_ERROR || cameraDevice_ == nullptr) { in SelectOpenCamera() 40 std::cout << "OpenCamera2 failed, rc = " << cameraBase_->rc << std::endl; in SelectOpenCamera() 41 return cameraBase_->rc; in SelectOpenCamera() 44 return cameraBase_->rc; in SelectOpenCamera() 50 …cameraBase_->rc = (CamRetCode)cameraDevice_->GetStreamOperator(streamOperatorCallback, streamOpera… in AchieveStreamOperator() 51 EXPECT_EQ(true, cameraBase_->rc == HDI::Camera::V1_0::NO_ERROR); in AchieveStreamOperator() 52 if (cameraBase_->rc == HDI::Camera::V1_0::NO_ERROR) { in AchieveStreamOperator() 55 std::cout << "AchieveStreamOperator2 fail, rc = " << cameraBase_->rc << std::endl; in AchieveStreamOperator() 131 cameraBase_->rc = (CamRetCode)streamOperator_->CreateStreams(streamInfos_); in StartStream() [all …]
|
/test/xts/hats/hdf/camera/cameraMg/v1_0/src/ |
D | hdi_host_uttest.cpp | 45 cameraTest->rc = cameraTest->service->GetCameraIds(cameraTest->cameraIds); 46 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 63 … cameraTest->rc = cameraTest->service->GetCameraAbility(testCameraId, cameraTest->abilityVec); 64 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 79 … cameraTest->rc = cameraTest->service->GetCameraAbility(testCameraId, cameraTest->abilityVec); 80 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 96 …cameraTest->rc = cameraTest->service->OpenCamera(cameraTest->cameraIds.front(), cameraTest->device… 98 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 99 if (cameraTest->rc != HDI::Camera::V1_0::NO_ERROR || cameraTest->cameraDevice == nullptr) { 118 cameraTest->rc = cameraTest->service->OpenCamera(testCameraId, cameraTest->deviceCallback, [all …]
|
D | hdi_device_uttest.cpp | 45 cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, 47 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 60 cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, 62 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 76 cameraTest->rc = cameraTest->cameraDevice->GetEnabledResults(enableTypes); 77 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 81 cameraTest->rc = cameraTest->cameraDevice->SetResultMode(PER_FRAME); 82 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 96 cameraTest->rc = cameraTest->cameraDevice->GetEnabledResults(enableTypes); 97 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); [all …]
|
D | hdi_stream_uttest.cpp | 46 cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, 48 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 77 …cameraTest->rc = cameraTest->streamOperator->IsStreamsSupported(OperationMode::NORMAL, modeSetting… 79 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 93 cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, 95 …EXPECT_EQ(false, cameraTest->rc != HDI::Camera::V1_0::NO_ERROR || cameraTest->streamOperator == nu… 114 cameraTest->rc = cameraTest->streamOperator->CreateStreams(cameraTest->streamInfos); 115 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 119 cameraTest->rc = cameraTest->streamOperator->ReleaseStreams(streamIds); 120 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); [all …]
|
/test/xts/hats/hdf/camera/cameraMg_additional/v1_0/src/ |
D | hdi_stream_uttest.cpp | 43 cameraTest->rc = cameraTest->streamOperator->CancelCapture(0); 44 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); 61 cameraTest->rc = cameraTest->streamOperator->CancelCapture(2147483647); 62 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); 79 cameraTest->rc = cameraTest->streamOperator->CancelCapture(captureId); 80 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); 98 cameraTest->rc = cameraTest->streamOperator->CancelCapture(cameraTest->captureIdPreview); 99 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 101 cameraTest->rc = cameraTest->streamOperator->ReleaseStreams({cameraTest->streamIdPreview}); 113 cameraTest->rc = [all …]
|
D | hdi_host_uttest.cpp | 42 cameraTest->rc = cameraTest->service->GetCameraIds(cameraTest->cameraIds); 43 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 62 …cameraTest->rc = cameraTest->service->SetFlashlight(cameraTest->cameraIds.front(), cameraTest->sta… 63 EXPECT_EQ(true, cameraTest->rc == HDI::Camera::V1_0::NO_ERROR); 79 cameraTest->rc = cameraTest->service->SetFlashlight(testCameraId, cameraTest->status); 80 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 95 cameraTest->rc = cameraTest->service->SetFlashlight(testCameraId, cameraTest->status); 96 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 112 …cameraTest->rc = cameraTest->service->SetFlashlight(cameraTest->cameraIds.front(), cameraTest->sta… 113 EXPECT_EQ(true, cameraTest->rc == HDI::Camera::V1_0::NO_ERROR); [all …]
|
D | hdi_device_uttest.cpp | 45 … cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, 47 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 61 cameraTest->rc = cameraTest->cameraDevice->GetEnabledResults(enableTypes); 62 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 67 cameraTest->rc = cameraTest->cameraDevice->SetResultMode(PER_FRAME); 68 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 82 cameraTest->rc = cameraTest->cameraDevice->GetEnabledResults(enableTypes); 83 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 97 cameraTest->rc = cameraTest->cameraDevice->GetEnabledResults(enableTypes); 98 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); [all …]
|
D | camera_3a_uttest.cpp | 48 cameraTest->rc = cameraTest->cameraDevice->UpdateSettings(metaVec); 49 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 70 cameraTest->rc = cameraTest->cameraDevice->UpdateSettings(metaVec); 71 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 93 cameraTest->rc = cameraTest->cameraDevice->UpdateSettings(metaVec); 94 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 116 cameraTest->rc = cameraTest->cameraDevice->UpdateSettings(metaVec); 117 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 138 cameraTest->rc = cameraTest->cameraDevice->UpdateSettings(metaVec); 139 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); [all …]
|
/test/xts/hats/hdf/camera/cameraMg/v1_2/src/ |
D | camera_prelaunch_test_v1_2.cpp | 44 cameraTest->rc = cameraTest->serviceV1_2->PreCameraSwitch(cameraId); 45 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 57 cameraTest->rc = cameraTest->serviceV1_2->PreCameraSwitch(cameraId); 58 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 70 cameraTest->rc = cameraTest->serviceV1_2->PreCameraSwitch(cameraId); 71 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); 83 cameraTest->rc = cameraTest->serviceV1_2->PreCameraSwitch(cameraId); 84 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); 96 cameraTest->rc = cameraTest->serviceV1_2->PreCameraSwitch(cameraId); 97 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); [all …]
|
D | camera_stream_test_v1_2.cpp | 48 …cameraTest->rc = cameraTest->cameraDeviceV1_2->GetStreamOperator_V1_2(cameraTest->streamOperatorCa… 60 … cameraTest->rc = cameraTest->streamOperator_V1_2->CreateStreams_V1_1(cameraTest->streamInfosV1_1); 61 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc); 62 cameraTest->rc = cameraTest->streamOperator_V1_2->CommitStreams( 64 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc); 71 cameraTest->rc = cameraTest->streamOperator_V1_2->UpdateStreams(cameraTest->streamInfosV1_1); 72 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 89 …cameraTest->rc = cameraTest->cameraDeviceV1_2->GetStreamOperator_V1_2(cameraTest->streamOperatorCa… 100 … cameraTest->rc = cameraTest->streamOperator_V1_2->CreateStreams_V1_1(cameraTest->streamInfosV1_1); 101 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc); [all …]
|
D | front_camera_hdi_test_v1_2.cpp | 49 …cameraTest->rc = cameraTest->cameraDeviceV1_1->GetStreamOperator_V1_1(cameraTest->streamOperatorCa… 52 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc); 65 … cameraTest->rc = cameraTest->streamOperator_V1_1->CreateStreams_V1_1(cameraTest->streamInfosV1_1); 66 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc); 67 cameraTest->rc = cameraTest->streamOperator_V1_1->CommitStreams_V1_1( 70 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc); 78 cameraTest->rc = (CamRetCode)cameraTest->cameraDevice->UpdateSettings(setting); 79 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc); 103 … cameraTest->rc = FindCameraMetadataItem(data, OHOS_ABILITY_CAMERA_VIRTUAL_APERTURE_RANGE, &entry); 108 …cameraTest->rc = cameraTest->cameraDeviceV1_1->GetStreamOperator_V1_1(cameraTest->streamOperatorCa… [all …]
|
D | camera_flashlight_test_v1_2.cpp | 86 cameraTest->rc = cameraTest->serviceV1_2->SetFlashlight_V1_2(cameraTest->statusV1_2); 87 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); 104 cameraTest->rc = cameraTest->serviceV1_2->SetFlashlight_V1_2(cameraTest->statusV1_2); 105 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); 123 cameraTest->rc = cameraTest->serviceV1_2->SetFlashlight_V1_2(cameraTest->statusV1_2); 124 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 143 cameraTest->rc = cameraTest->serviceV1_2->SetFlashlight_V1_2(cameraTest->statusV1_2); 144 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 163 cameraTest->rc = cameraTest->serviceV1_2->SetFlashlight_V1_2(cameraTest->statusV1_2); 164 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); [all …]
|
/test/xts/hats/hdf/camera/cameraMg_additional/v1_1/src/ |
D | camera_hdi_uttest_v1_1.cpp | 48 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 49 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 74 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 75 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 100 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 101 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT); 125 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 126 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 150 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 151 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); [all …]
|
D | hdi_common_v1_1.cpp | 109 rc = serviceV1_1->OpenCamera_V1_1(cameraIds.front(), deviceCallback, cameraDeviceV1_1); in Open() 110 if (rc != HDI::Camera::V1_0::NO_ERROR || cameraDeviceV1_1 == nullptr) { in Open() 111 CAMERA_LOGE("openCamera V1_1 failed, rc = %{public}d", rc); in Open() 122 rc = service->GetCameraAbility(cameraIds.front(), abilityVec); in GetCameraMetadata() 123 if (rc != HDI::Camera::V1_0::NO_ERROR) { in GetCameraMetadata() 124 CAMERA_LOGE("GetCameraAbility failed, rc = %{public}d", rc); in GetCameraMetadata() 252 rc = cameraDeviceV1_1->GetStreamOperator_V1_1(streamOperatorCallback, streamOperator_V1_1); in StartStream() 253 if (rc == HDI::Camera::V1_0::NO_ERROR) { in StartStream() 254 rc = streamOperator_V1_1->GetVersion(mainVersion, minVersion); in StartStream() 256 if (rc != HDI::Camera::V1_0::NO_ERROR) { in StartStream() [all …]
|
/test/xts/hats/hdf/camera/cameraMg/v1_1/src/ |
D | camera_hdi_uttest_v1_1.cpp | 48 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 49 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); 66 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 67 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 84 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 85 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 102 cameraTest->rc = cameraTest->serviceV1_1->Prelaunch(*cameraTest->prelaunchConfig); 103 EXPECT_EQ(true, cameraTest->rc == INVALID_ARGUMENT); 135 cameraTest->rc = cameraTest->cameraDeviceV1_1->GetDefaultSettings(cameraTest->abilityVec); 136 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); [all …]
|
D | hdi_common_v1_1.cpp | 109 rc = serviceV1_1->OpenCamera_V1_1(cameraIds.front(), deviceCallback, cameraDeviceV1_1); in Open() 110 if (rc != HDI::Camera::V1_0::NO_ERROR || cameraDeviceV1_1 == nullptr) { in Open() 111 CAMERA_LOGE("openCamera V1_1 failed, rc = %{public}d", rc); in Open() 122 rc = service->GetCameraAbility(cameraIds.front(), abilityVec); in GetCameraMetadata() 123 if (rc != HDI::Camera::V1_0::NO_ERROR) { in GetCameraMetadata() 124 CAMERA_LOGE("GetCameraAbility failed, rc = %{public}d", rc); in GetCameraMetadata() 252 rc = cameraDeviceV1_1->GetStreamOperator_V1_1(streamOperatorCallback, streamOperator_V1_1); in StartStream() 253 if (rc == HDI::Camera::V1_0::NO_ERROR) { in StartStream() 254 rc = streamOperator_V1_1->GetVersion(mainVersion, minVersion); in StartStream() 256 if (rc != HDI::Camera::V1_0::NO_ERROR) { in StartStream() [all …]
|
/test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_0/src/ |
D | hdf_camera_benchmark_test.cpp | 48 …cameraTest->rc = cameraTest->service->OpenCamera(cameraTest->cameraIds.front(), cameraTest->device… in BENCHMARK_F() 68 cameraTest->rc = cameraTest->service->GetCameraIds(cameraTest->cameraIds); in BENCHMARK_F() 87 cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, in BENCHMARK_F() 103 cameraTest->rc = cameraTest->service->GetCameraIds(cameraTest->cameraIds); in BENCHMARK_F() 104 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); in BENCHMARK_F() 107 …cameraTest->rc = cameraTest->service->GetCameraAbility(cameraTest->cameraIds[i], cameraTest->abili… in BENCHMARK_F() 127 …cameraTest->rc = cameraTest->service->SetFlashlight(cameraTest->cameraIds.front(), cameraTest->sta… in BENCHMARK_F() 145 cameraTest->rc = cameraTest->cameraDevice->SetResultMode(PER_FRAME); in BENCHMARK_F() 163 cameraTest->rc = cameraTest->cameraDevice->GetStreamOperator(cameraTest->streamOperatorCallback, in BENCHMARK_F() 165 …EXPECT_EQ(false, cameraTest->rc != HDI::Camera::V1_0::NO_ERROR || cameraTest->streamOperator == nu… in BENCHMARK_F() [all …]
|
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/ |
D | hap_manager_test.cpp | 97 ResConfig *rc = CreateResConfig(); variable 98 if (rc == nullptr) { 102 rc->SetLocaleInfo("en", nullptr, "US"); 107 delete (rc); 111 hapManager->UpdateResConfig(*rc); 120 delete (rc); 133 delete (rc); 153 delete (rc);
|
D | res_config_test.cpp | 66 ResConfigImpl *rc = new ResConfigImpl; variable 67 rc->SetLocaleInfo("en", nullptr, "AU"); 72 EXPECT_TRUE(rc->Match(current)); 73 EXPECT_TRUE(rc->Match(target) == false); 76 delete rc;
|
/test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_1/src/ |
D | benchmark_common.cpp | 98 rc = service->GetCameraAbility(cameraIds.front(), abilityVec); in GetCameraMetadata() 99 if (rc != HDI::Camera::V1_0::NO_ERROR) { in GetCameraMetadata() 100 CAMERA_LOGE("GetCameraAbility failed, rc = %{public}d", rc); in GetCameraMetadata() 124 rc = serviceV1_1->OpenCamera_V1_1(cameraIds.front(), deviceCallback, cameraDeviceV1_1); in Open() 125 if (rc != HDI::Camera::V1_0::NO_ERROR || cameraDeviceV1_1 == nullptr) { in Open() 126 CAMERA_LOGE("openCamera V1_1 failed, rc = %{public}d", rc); in Open() 148 rc = cameraDeviceV1_1->GetStreamOperator_V1_1(streamOperatorCallback, streamOperator_V1_1); in StartStream() 149 if (rc == HDI::Camera::V1_0::NO_ERROR) { in StartStream() 150 rc = streamOperator_V1_1->GetVersion(mainVersion, minVersion); in StartStream() 152 if (rc != HDI::Camera::V1_0::NO_ERROR) { in StartStream() [all …]
|