Home
last modified time | relevance | path

Searched refs:HDI (Results 1 – 25 of 229) sorted by relevance

12345678910

/test/xts/hats/hdf/display/buffer/moduletest_additional/
Ddisplay_buffer_mt.cpp29 namespace HDI { namespace
32 using namespace OHOS::HDI::Display::Composer::V1_0;
33 using namespace OHOS::HDI::Display::Buffer::V1_0;
163 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_CPU_READ;
183 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_CPU_WRITE;
203 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_MEM_MMZ;
225 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_MEM_DMA;
247 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_MEM_SHARE;
269 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_MEM_MMZ_CACHE;
291 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_MEM_FB;
[all …]
/test/xts/hats/hdf/codec/hdi_image/
Dcodec_hdi_jpeg_test.cpp29 using namespace OHOS::HDI::Display::Buffer::V1_0;
30 using namespace OHOS::HDI::Display::Composer::V1_0;
31 using namespace OHOS::HDI::Codec::V1_0;
32 using namespace OHOS::HDI::Codec::Image::V1_0;
177 EXPECT_TRUE(OHOS::HDI::Codec::V1_0::VIDEO_DECODER == 0);
184 EXPECT_TRUE(OHOS::HDI::Codec::V1_0::VIDEO_ENCODER == 1);
191 EXPECT_TRUE(OHOS::HDI::Codec::V1_0::AUDIO_DECODER == 2);
198 EXPECT_TRUE(OHOS::HDI::Codec::V1_0::AUDIO_ENCODER == 3);
205 EXPECT_TRUE(OHOS::HDI::Codec::V1_0::INVALID_TYPE == 4);
212 EXPECT_TRUE(OHOS::HDI::Codec::V1_0::MEDIA_ROLETYPE_IMAGE_JPEG == 0);
[all …]
/test/xts/hats/hdf/display/buffer/moduletest/
Ddisplay_test.cpp31 namespace HDI { namespace
34 using namespace OHOS::HDI::Display::Composer::V1_0;
35 using namespace OHOS::HDI::Display::Buffer::V1_0;
47 ret = OHOS::HDI::Display::Composer::V1_0::DispErrCode::DISPLAY_FD_ERR;
54 ret = OHOS::HDI::Display::Composer::V1_0::DispErrCode::DISPLAY_PARAM_ERR;
61 ret = OHOS::HDI::Display::Composer::V1_0::DispErrCode::DISPLAY_NOT_SUPPORT;
68 ret = OHOS::HDI::Display::Composer::V1_0::DispErrCode::DISPLAY_SYS_BUSY;
75 ret = OHOS::HDI::Display::Composer::V1_0::DispErrCode::DISPLAY_NOT_PERM;
82 ret = OHOS::HDI::Display::Composer::V1_0::LayerType::LAYER_TYPE_GRAPHIC;
89 ret = OHOS::HDI::Display::Composer::V1_0::LayerType::LAYER_TYPE_OVERLAY;
[all …]
Ddisplay_buffer_mt.cpp31 namespace HDI { namespace
34 using namespace OHOS::HDI::Display::Composer::V1_0;
35 using namespace OHOS::HDI::Display::Buffer::V1_0;
164 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_MEM_DMA |
165 OHOS::HDI::Display::Composer::V1_0::HBM_USE_CPU_READ |
166 OHOS::HDI::Display::Composer::V1_0::HBM_USE_CPU_WRITE;
181 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_MEM_DMA |
182 OHOS::HDI::Display::Composer::V1_0::HBM_USE_CPU_READ |
183 OHOS::HDI::Display::Composer::V1_0::HBM_USE_CPU_WRITE;
197 info.usage = OHOS::HDI::Display::Composer::V1_0::HBM_USE_MEM_DMA |
[all …]
/test/xts/hats/hdf/camera/cameraMg/v1_2/src/
Dcamera_prelaunch_test_v1_2.cpp45 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
58 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
71 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT);
84 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT);
97 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT);
108 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
113 *cameraTest->prelaunchConfig, OHOS::HDI::Camera::V1_2::NORMAL);
114 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
126 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
131 *cameraTest->prelaunchConfig, OHOS::HDI::Camera::V1_2::CAPTURE);
[all …]
Dcamera_flashlight_test_v1_2.cpp45 cameraTest->serviceV1_2 = OHOS::HDI::Camera::V1_2::ICameraHost::Get("camera_service", false);
50 EXPECT_EQ(ret, HDI::Camera::V1_2::INVALID_ARGUMENT);
63 cameraTest->serviceV1_2 = OHOS::HDI::Camera::V1_2::ICameraHost::Get("camera_service", false);
69 EXPECT_EQ(ret, HDI::Camera::V1_0::NO_ERROR);
84 EXPECT_EQ(ret, HDI::Camera::V1_0::NO_ERROR);
87 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT);
102 EXPECT_EQ(ret, HDI::Camera::V1_0::NO_ERROR);
105 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT);
120 EXPECT_EQ(ret, HDI::Camera::V1_0::NO_ERROR);
121 EXPECT_EQ(OHOS::Camera::Test::statusCallback, HDI::Camera::V1_0::FLASHLIGHT_OFF);
[all …]
Dhdi_common_v1_2.cpp22 OHOS::HDI::Camera::V1_0::FlashlightStatus Test::statusCallback =
23 static_cast<OHOS::HDI::Camera::V1_0::FlashlightStatus>(0);
77 serviceV1_2 = OHOS::HDI::Camera::V1_2::ICameraHost::Get("camera_service", false); in Init()
83 service = static_cast<OHOS::HDI::Camera::V1_0::ICameraHost *>(serviceV1_2.GetRefPtr()); in Init()
98 … imageProcessService_ = OHOS::HDI::Camera::V1_2::ImageProcessServiceProxy::Get(serviceName, false); in DefferredImageTestInit()
131 EXPECT_EQ(rc, HDI::Camera::V1_0::NO_ERROR); in Open()
133 …cameraDevice = static_cast<OHOS::HDI::Camera::V1_0::ICameraDevice *>(cameraDeviceV1_1.GetRefPtr()); in Open()
153 EXPECT_EQ(rc, HDI::Camera::V1_0::NO_ERROR); in OpenCameraV1_2()
155 …cameraDevice = static_cast<OHOS::HDI::Camera::V1_0::ICameraDevice *>(cameraDeviceV1_2.GetRefPtr()); in OpenCameraV1_2()
167 if (rc != HDI::Camera::V1_0::NO_ERROR) { in GetCameraMetadata()
[all …]
Dcamera_stream_test_v1_2.cpp51 cameraTest->streamInfoV1_1 = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
56 cameraTest->streamInfoCapture = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
61 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
64 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
72 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
93 cameraTest->streamInfoV1_1 = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
97 cameraTest->streamInfoVideo = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
101 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
104 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
115 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
[all …]
Dcamera_hdi_test_v1_2.cpp43 uint8_t value = OHOS::HDI::Camera::V1_2::STILL_IMAGE; in TakePhoteWithDefferredImage()
48 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); in TakePhoteWithDefferredImage()
54 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR); in TakePhoteWithDefferredImage()
89 OHOS::HDI::Camera::V1_2::STILL_IMAGE);
106 …ret = cameraTest->imageProcessSession_->GetCoucurrency(OHOS::HDI::Camera::V1_2::HIGH_PREFORMANCE, …
123 …ret = cameraTest->imageProcessSession_->GetCoucurrency(OHOS::HDI::Camera::V1_2::BALANCED, taskCoun… in ProcessPendingImages()
130 ret = cameraTest->imageProcessSession_->SetExecutionMode(OHOS::HDI::Camera::V1_2::BALANCED); in ProcessPendingImages()
132 ret = cameraTest->imageProcessSession_->SetExecutionMode(OHOS::HDI::Camera::V1_2::LOW_POWER); in ProcessPendingImages()
134 …ret = cameraTest->imageProcessSession_->SetExecutionMode(OHOS::HDI::Camera::V1_2::HIGH_PREFORMANCE… in ProcessPendingImages()
168 OHOS_ABILITY_DEFERRED_IMAGE_DELIVERY, OHOS::HDI::Camera::V1_2::STILL_IMAGE);
[all …]
Dfront_camera_hdi_test_v1_2.cpp52 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
55 cameraTest->streamInfoV1_1 = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
60 cameraTest->streamInfoV1_1 = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
66 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
68 static_cast<OHOS::HDI::Camera::V1_1::OperationMode_V1_1>(OHOS::HDI::Camera::V1_2::PORTRAIT),
70 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
79 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
111 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, cameraTest->rc);
114 cameraTest->streamInfoV1_1 = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
119 cameraTest->streamInfoV1_1 = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
[all …]
/test/xts/hats/useriam/fingerprintauth/src/
Dfingerprint_type_test.cpp25 using namespace OHOS::HDI::FingerprintAuth;
26 using namespace OHOS::HDI::FingerprintAuth::V1_0;
27 using CommandIdV1_1 = OHOS::HDI::FingerprintAuth::V1_1::CommandId;
28 using FingerprintTipsCodeV1_1 = OHOS::HDI::FingerprintAuth::V1_1::FingerprintTipsCode;
114 CommandIdV1_1 lock_template = OHOS::HDI::FingerprintAuth::V1_1::CommandId::LOCK_TEMPLATE;
115 CommandIdV1_1 unlock_template = OHOS::HDI::FingerprintAuth::V1_1::CommandId::UNLOCK_TEMPLATE;
116 …CommandIdV1_1 vendor_command_begin = OHOS::HDI::FingerprintAuth::V1_1::CommandId::VENDOR_COMMAND_B…
117 CommandIdV1_1 init_algorithm = OHOS::HDI::FingerprintAuth::V1_1::CommandId::INIT_ALGORITHM;
160 …FingerprintTipsCodeV1_1 f_good = OHOS::HDI::FingerprintAuth::V1_1::FingerprintTipsCode::FINGERPRIN…
161 …FingerprintTipsCodeV1_1 f_dirty = OHOS::HDI::FingerprintAuth::V1_1::FingerprintTipsCode::FINGERPRI…
[all …]
/test/xts/hats/powermgr/battery/hdi_battery/common/
Dhdi_battery_test.cpp30 using namespace OHOS::HDI::Battery;
31 using namespace OHOS::HDI::Battery::V2_0;
36 class BatteryCallback : public HDI::Battery::V2_0::IBatteryCallback {
40 int32_t Update(const HDI::Battery::V2_0::BatteryInfo& event) override in Update()
184 …OHOS::HDI::Battery::V2_0::BatteryHealthState healthState = OHOS::HDI::Battery::V2_0::BatteryHealth…
199 …OHOS::HDI::Battery::V2_0::BatteryPluggedType pluggedType = OHOS::HDI::Battery::V2_0::BatteryPlugge…
201 EXPECT_TRUE(pluggedType >= OHOS::HDI::Battery::V2_0::BatteryPluggedType::PLUGGED_TYPE_NONE &&
202 pluggedType <= OHOS::HDI::Battery::V2_0::BatteryPluggedType::PLUGGED_TYPE_BUTT);
215 …OHOS::HDI::Battery::V2_0::BatteryChargeState chargeState = OHOS::HDI::Battery::V2_0::BatteryCharge…
321 OHOS::HDI::Battery::V2_0::BatteryInfo event = {
[all …]
/test/xts/hats/hdf/camera/cameraMg/v1_2/include/
Dhdi_common_v1_2.h79 using namespace OHOS::HDI::Camera::V1_0;
89 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
91 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
93 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
95 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
97 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
99 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
101 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
103 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
105 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
[all …]
/test/xts/hats/useriam/faceauth/src/
Dface_auth_type_test.cpp25 using namespace OHOS::HDI::FaceAuth;
26 using namespace OHOS::HDI::FaceAuth::V1_0;
27 using CommandIdV1_1 = OHOS::HDI::FaceAuth::V1_1::CommandId;
113 CommandIdV1_1 lock_template = OHOS::HDI::FaceAuth::V1_1::CommandId::LOCK_TEMPLATE;
114 CommandIdV1_1 unlock_template = OHOS::HDI::FaceAuth::V1_1::CommandId::UNLOCK_TEMPLATE;
115 CommandIdV1_1 vendor_command_begin = OHOS::HDI::FaceAuth::V1_1::CommandId::VENDOR_COMMAND_BEGIN;
116 CommandIdV1_1 init_algorithm = OHOS::HDI::FaceAuth::V1_1::CommandId::INIT_ALGORITHM;
169 GetPropertyType g_type = OHOS::HDI::FaceAuth::V1_1::AUTH_SUB_TYPE;
170 GetPropertyType g_duration = OHOS::HDI::FaceAuth::V1_1::LOCKOUT_DURATION;
171 GetPropertyType g_attempts = OHOS::HDI::FaceAuth::V1_1::REMAIN_ATTEMPTS;
[all …]
/test/xts/hats/hdf/camera/cameraMg_additional/v1_1/include/
Dhdi_common_v1_1.h52 using namespace OHOS::HDI::Camera::V1_0;
53 using namespace OHOS::HDI::Display::Composer::V1_0;
61 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
63 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
65 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
67 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
69 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
71 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
78 OHOS::sptr<OHOS::HDI::Camera::V1_1::ICameraHost> serviceV1_1 = nullptr;
80 OHOS::sptr<OHOS::HDI::Camera::V1_1::ICameraDevice> cameraDeviceV1_1 = nullptr;
[all …]
/test/xts/hats/hdf/camera/cameraMg/v1_1/include/
Dhdi_common_v1_1.h52 using namespace OHOS::HDI::Camera::V1_0;
53 using namespace OHOS::HDI::Display::Composer::V1_0;
61 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
63 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
65 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
67 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
69 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
71 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
78 OHOS::sptr<OHOS::HDI::Camera::V1_1::ICameraHost> serviceV1_1 = nullptr;
80 OHOS::sptr<OHOS::HDI::Camera::V1_1::ICameraDevice> cameraDeviceV1_1 = nullptr;
[all …]
/test/xts/hats/hdf/display/buffer/unittest/
Ddisplay_buffer_ut.h26 namespace HDI {
29 using OHOS::HDI::Display::Buffer::V1_0::IAllocator;
30 using OHOS::HDI::Display::Buffer::V1_0::IMapper;
31 using OHOS::HDI::Display::Buffer::V1_0::AllocInfo;
32 using OHOS::HDI::Display::Buffer::V1_1::IMetadata;
33 using OHOS::HDI::Display::Buffer::V1_1::IDisplayBuffer;
/test/xts/hats/hdf/camera/cameraMg/v1_1/src/
Dcamera_hdi_uttest_v1_1.cpp43 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
49 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
61 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
79 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
97 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
136 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
152 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
166 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
170 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
192 cameraTest->streamInfoV1_1 = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>();
[all …]
Dhdi_common_v1_1.cpp76 serviceV1_1 = OHOS::HDI::Camera::V1_1::ICameraHost::Get("camera_service", false); in Init()
90 service = static_cast<OHOS::HDI::Camera::V1_0::ICameraHost *>(serviceV1_1.GetRefPtr()); in Init()
110 if (rc != HDI::Camera::V1_0::NO_ERROR || cameraDeviceV1_1 == nullptr) { in Open()
115 …cameraDevice = static_cast<OHOS::HDI::Camera::V1_0::ICameraDevice *>(cameraDeviceV1_1.GetRefPtr()); in Open()
123 if (rc != HDI::Camera::V1_0::NO_ERROR) { in GetCameraMetadata()
145 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultPreview()
157 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultCapture()
169 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultInfosPreview()
181 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultInfosCapture()
193 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultInfosVideo()
[all …]
/test/xts/hats/hdf/camera/cameraMg_additional/v1_1/src/
Dhdi_common_v1_1.cpp76 serviceV1_1 = OHOS::HDI::Camera::V1_1::ICameraHost::Get("camera_service", false); in Init()
90 service = static_cast<OHOS::HDI::Camera::V1_0::ICameraHost *>(serviceV1_1.GetRefPtr()); in Init()
110 if (rc != HDI::Camera::V1_0::NO_ERROR || cameraDeviceV1_1 == nullptr) { in Open()
115 …cameraDevice = static_cast<OHOS::HDI::Camera::V1_0::ICameraDevice *>(cameraDeviceV1_1.GetRefPtr()); in Open()
123 if (rc != HDI::Camera::V1_0::NO_ERROR) { in GetCameraMetadata()
145 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultPreview()
157 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultCapture()
169 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultInfosPreview()
181 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultInfosCapture()
193 std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos) in DefaultInfosVideo()
[all …]
Dcamera_hdi_uttest_v1_1.cpp42 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
49 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::NO_ERROR);
68 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
94 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
101 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT);
119 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
144 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
169 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
195 cameraTest->prelaunchConfig = std::make_shared<OHOS::HDI::Camera::V1_1::PrelaunchConfig>();
202 EXPECT_EQ(cameraTest->rc, HDI::Camera::V1_0::INVALID_ARGUMENT);
[all …]
/test/xts/hats/hdf/motion/hdi_additional/
Dhdf_motion_hdi_test.cpp27 using namespace OHOS::HDI::Motion::V1_1;
31 sptr<OHOS::HDI::Motion::V1_1::IMotionInterface> g_motionInterface = nullptr;
44 void HdfMotionTestAdditional::SetUpTestCase() { g_motionInterface = OHOS::HDI::Motion::V1_1::IMotio… in SetUpTestCase()
63 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_CLOSE_TO_EAR);
78 …int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_POCKET_MODE…
93 … int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_LEAVE_EAR);
108 … int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_WRIST_UP);
126 ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_CLOSE_TO_EAR);
143 int32_t ret = g_motionInterface->EnableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_MAX);
191 … int32_t ret = g_motionInterface->DisableMotion(OHOS::HDI::Motion::V1_1::HDF_MOTION_CLOSE_TO_EAR);
[all …]
/test/xts/hats/hdf/display/buffer/death/
Ddeath_test.h25 namespace HDI {
28 using OHOS::HDI::Display::Buffer::V1_0::IAllocator;
29 using OHOS::HDI::Display::Buffer::V1_0::IMapper;
30 using OHOS::HDI::Display::Buffer::V1_0::AllocInfo;
31 using OHOS::HDI::Display::Buffer::V1_0::IDisplayBuffer;
/test/xts/hats/hdf/camera/cameraBenchmarkTest/v1_1/src/
Dbenchmark_common.cpp76 serviceV1_1 = OHOS::HDI::Camera::V1_1::ICameraHost::Get("camera_service", false); in Init()
90 service = static_cast<OHOS::HDI::Camera::V1_0::ICameraHost *>(serviceV1_1.GetRefPtr()); in Init()
99 if (rc != HDI::Camera::V1_0::NO_ERROR) { in GetCameraMetadata()
125 if (rc != HDI::Camera::V1_0::NO_ERROR || cameraDeviceV1_1 == nullptr) { in Open()
130 …cameraDevice = static_cast<OHOS::HDI::Camera::V1_0::ICameraDevice *>(cameraDeviceV1_1.GetRefPtr()); in Open()
149 if (rc == HDI::Camera::V1_0::NO_ERROR) { in StartStream()
151 …streamOperator = static_cast<OHOS::HDI::Camera::V1_0::IStreamOperator *>(streamOperator_V1_1.GetRe… in StartStream()
152 if (rc != HDI::Camera::V1_0::NO_ERROR) { in StartStream()
162 streamInfoPre = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream()
163 streamInfoVideo = std::make_shared<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1>(); in StartStream()
[all …]
/test/xts/hats/powermgr/power/hdi_power/common/
Dhdi_power_test.cpp33 using namespace OHOS::HDI;
34 using namespace OHOS::HDI::Power::V1_1;
445 EXPECT_TRUE(OHOS::HDI::Power::V1_1::PowerHdfCmd::CMD_REGISTER_CALLBCK == 0);
457 EXPECT_TRUE(OHOS::HDI::Power::V1_1::PowerHdfCmd::CMD_START_SUSPEND == 1);
469 EXPECT_TRUE(OHOS::HDI::Power::V1_1::PowerHdfCmd::CMD_STOP_SUSPEND == 2);
481 EXPECT_TRUE(OHOS::HDI::Power::V1_1::PowerHdfCmd::CMD_FORCE_SUSPEND == 3);
493 EXPECT_TRUE(OHOS::HDI::Power::V1_1::PowerHdfCmd::CMD_SUSPEND_BLOCK == 4);
505 EXPECT_TRUE(OHOS::HDI::Power::V1_1::PowerHdfCmd::CMD_SUSPEND_UNBLOCK == 5);
517 EXPECT_TRUE(OHOS::HDI::Power::V1_1::PowerHdfCmd::CMD_DUMP == 6);
529 EXPECT_TRUE(OHOS::HDI::Power::V1_1::PowerHdfCallbackCmd::CMD_ON_SUSPEND == 0);
[all …]

12345678910