Home
last modified time | relevance | path

Searched refs:V1_0 (Results 1 – 25 of 82) sorted by relevance

1234

/test/xts/hats/ai/nnrt/hdi/nnrtFunctionTest/src/
Dhdi_model_prepare_test.cpp57 V1_0::Model *iModel = nullptr;
58 V1_0::SharedBuffer tensorBuffer{NNRT_INVALID_FD, 0, 0, 0};
61 V1_0::ModelConfig config;
63 config.mode = V1_0::PERFORMANCE_NONE;
64 config.priority = V1_0::PRIORITY_NONE;
66 OHOS::sptr<V1_0::IPreparedModel> iPreparedModel;
69 std::vector<V1_0::SharedBuffer> modelCache;
91 V1_0::ModelConfig config;
93 config.mode = V1_0::PERFORMANCE_NONE;
94 config.priority = V1_0::PRIORITY_NONE;
[all …]
Dhdi_model_run_test.cpp39 void AddModelTest(OHOS::sptr<V1_0::INnrtDevice> &device_, V1_0::ModelConfig &modelConfig, bool isDy… in AddModelTest()
49 V1_0::Model *iModel = nullptr; in AddModelTest()
50 V1_0::SharedBuffer tensorBuffer{NNRT_INVALID_FD, 0, 0, 0}; in AddModelTest()
53 OHOS::sptr<V1_0::IPreparedModel> iPreparedModel; in AddModelTest()
56 std::vector<V1_0::IOTensor> inputs; in AddModelTest()
57 std::vector<V1_0::IOTensor> outputs; in AddModelTest()
109 V1_0::ModelConfig modelConfig = {
110 .enableFloat16 = false, .mode = V1_0::PERFORMANCE_EXTREME, .priority = V1_0::PRIORITY_HIGH};
127 V1_0::ModelConfig modelConfig = {
128 .enableFloat16 = true, .mode = V1_0::PERFORMANCE_EXTREME, .priority = V1_0::PRIORITY_HIGH};
[all …]
Dhdi_device_test.cpp75 V1_0::DeviceType deviceType;
79 ASSERT_TRUE(deviceType == V1_0::DeviceType::OTHER || deviceType == V1_0::DeviceType::GPU ||
80 deviceType == V1_0::DeviceType::CPU || deviceType == V1_0::DeviceType::ACCELERATOR)
91 V1_0::DeviceStatus deviceStatus;
94 …ASSERT_TRUE(deviceStatus == V1_0::DeviceStatus::AVAILABLE || deviceStatus == V1_0::DeviceStatus::B…
95 … deviceStatus == V1_0::DeviceStatus::OFFLINE || deviceStatus == V1_0::DeviceStatus::UNKNOWN)
170 V1_0::Model *iModel = nullptr;
171 V1_0::SharedBuffer tensorBuffer{NNRT_INVALID_FD, 0, 0, 0};
197 V1_0::Model *iModel = nullptr;
198 V1_0::SharedBuffer tensorBuffer{NNRT_INVALID_FD, 0, 0, 0};
[all …]
/test/xts/hats/ai/nnrt/hdi/common/
Dhdi_nnrt_test_utils.h29 namespace V1_0 = OHOS::HDI::Nnrt::V1_0; variable
46 static OH_NN_ReturnCode ConvertModel(OHOS::sptr<V1_0::INnrtDevice> device_, OH_NNModel *model,
47 V1_0::SharedBuffer &tensorBuffer, V1_0::Model **iModel);
48 static V1_0::IOTensor CreateIOTensor(OHOS::sptr<V1_0::INnrtDevice> &device);
49 …static V1_0::IOTensor CreateInputIOTensor(OHOS::sptr<V1_0::INnrtDevice> &device, size_t length, fl…
50 … static V1_0::IOTensor CreateOutputIOTensor(OHOS::sptr<V1_0::INnrtDevice> &device, size_t length);
55 …static void ReleaseBufferOfTensors(OHOS::sptr<V1_0::INnrtDevice> &device, std::vector<V1_0::IOTens…
Dhdi_nnrt_test_utils.cpp106 OH_NN_ReturnCode HDICommon::ConvertModel(OHOS::sptr<V1_0::INnrtDevice> device_, OH_NNModel *model, in ConvertModel()
107 V1_0::SharedBuffer &tensorBuffer, V1_0::Model **iModel) in ConvertModel()
141 V1_0::IOTensor HDICommon::CreateIOTensor(OHOS::sptr<V1_0::INnrtDevice> &device) in CreateIOTensor()
143 V1_0::SharedBuffer buffer{NNRT_INVALID_FD, 0, 0, 0}; in CreateIOTensor()
148 V1_0::IOTensor tensor{.name = "tensor", in CreateIOTensor()
149 .dataType = V1_0::DATA_TYPE_FLOAT32, in CreateIOTensor()
151 .format = V1_0::FORMAT_NHWC, in CreateIOTensor()
156 V1_0::IOTensor HDICommon::CreateInputIOTensor(OHOS::sptr<V1_0::INnrtDevice> &device, size_t length,… in CreateInputIOTensor()
162 V1_0::SharedBuffer buffer{NNRT_INVALID_FD, 0, 0, 0}; in CreateInputIOTensor()
176 V1_0::IOTensor tensor{.name = "tensor", in CreateInputIOTensor()
[all …]
Dhdi_nnrt_test.h28 namespace V1_0 = OHOS::HDI::Nnrt::V1_0; variable
35 OHOS::sptr<V1_0::INnrtDevice> device_;
40 device_ = V1_0::INnrtDevice::Get(); in SetUp()
/test/xts/hats/ai/nnrt/hdi/nnrtStabilityTest/src/
Dhdi_stability_test.cpp50 void PrepareModelTest(OHOS::sptr<V1_0::INnrtDevice> device, V1_0::Model *iModel) in PrepareModelTest()
52 OHOS::sptr<V1_0::IPreparedModel> iPreparedModel; in PrepareModelTest()
53 V1_0::ModelConfig config; in PrepareModelTest()
57 void RunModelTest(OHOS::sptr<V1_0::INnrtDevice> device, OHOS::sptr<V1_0::IPreparedModel> iPreparedM… in RunModelTest()
59 std::vector<V1_0::IOTensor> inputs; in RunModelTest()
60 std::vector<V1_0::IOTensor> outputs; in RunModelTest()
103 OHOS::sptr<V1_0::INnrtDevice> device = V1_0::INnrtDevice::Get();
104 std::vector<V1_0::Model *> iModels;
105 std::vector<OHOS::sptr<V1_0::IPreparedModel>> iPreparedModels;
106 std::vector<V1_0::SharedBuffer> tensorBuffers;
[all …]
/test/xts/hats/hdf/bluetooth/hdiService/
Dbluetooth_hci_callback_impl.h22 using OHOS::HDI::Bluetooth::Hci::V1_0::IHciCallback;
23 using OHOS::HDI::Bluetooth::Hci::V1_0::BtStatus;
24 using OHOS::HDI::Bluetooth::Hci::V1_0::BtType;
29 namespace V1_0 {
/test/xts/hats/hdf/usb/UsbSubscriberTest/
DUsbSubscriberTest.h21 using OHOS::HDI::Usb::V1_0::PortInfo;
22 using OHOS::HDI::Usb::V1_0::USBDeviceInfo;
26 class UsbSubscriberTest : public OHOS::HDI::Usb::V1_0::IUsbdSubscriber {
/test/xts/hats/hdf/camera/v4l2/src/
Dhdi_test.cpp45 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
65 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
70 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
132 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
255 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
293 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
314 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
335 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
356 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
377 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
[all …]
Dcamera_preview_test.cpp95 EXPECT_EQ(true, display_->rc != HDI::Camera::V1_0::NO_ERROR);
96 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
121 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
143 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
170 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
176 EXPECT_EQ(HDI::Camera::V1_0::NO_ERROR, display_->rc);
215 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
219 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
220 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
267 EXPECT_EQ(false, display_->rc == HDI::Camera::V1_0::NO_ERROR);
[all …]
Dcamera_capture_test.cpp122 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
198 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
199 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
206 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
207 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
245 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
246 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
252 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
253 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
260 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
[all …]
Ddouble_preview_test.cpp81 EXPECT_EQ(false, result_!= HDI::Camera::V1_0::NO_ERROR); in CreateStream()
82 if (result_ == HDI::Camera::V1_0::NO_ERROR) { in CreateStream()
92 EXPECT_EQ(false, result_ != HDI::Camera::V1_0::NO_ERROR); in CommitStream()
93 if (result_ == HDI::Camera::V1_0::NO_ERROR) { in CommitStream()
106 EXPECT_EQ(true, result_ == HDI::Camera::V1_0::NO_ERROR); in StartCapture()
107 if (result_ == HDI::Camera::V1_0::NO_ERROR) { in StartCapture()
152 EXPECT_EQ(true, result_ == HDI::Camera::V1_0::NO_ERROR); in StopStream()
153 if (result_ == HDI::Camera::V1_0::NO_ERROR) { in StopStream()
235 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
236 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
Dcamera_video_test.cpp84 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
293 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
294 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
301 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
302 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
310 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
311 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
318 EXPECT_EQ(true, display_->rc == HDI::Camera::V1_0::NO_ERROR);
319 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
351 if (display_->rc == HDI::Camera::V1_0::NO_ERROR) {
[all …]
Dtest_display.cpp371 if (ret != HDI::Camera::V1_0::NO_ERROR) { in Init()
384 if (rc != HDI::Camera::V1_0::NO_ERROR || cameraDevice == nullptr) { in Init()
411 if (ret != HDI::Camera::V1_0::NO_ERROR) { in UsbInit()
434 if (rc != HDI::Camera::V1_0::NO_ERROR || cameraDevice == nullptr) { in OpenCamera()
454 EXPECT_EQ(true, rc == HDI::Camera::V1_0::NO_ERROR); in AchieveStreamOperator()
455 if (rc == HDI::Camera::V1_0::NO_ERROR) { in AchieveStreamOperator()
533 EXPECT_EQ(false, rc != HDI::Camera::V1_0::NO_ERROR); in StartStream()
534 if (rc == HDI::Camera::V1_0::NO_ERROR) { in StartStream()
541 EXPECT_EQ(false, rc != HDI::Camera::V1_0::NO_ERROR); in StartStream()
542 if (rc == HDI::Camera::V1_0::NO_ERROR) { in StartStream()
[all …]
/test/xts/hats/hdf/usb/transferTest/include/
Dusbd_transfer_test.h22 using OHOS::HDI::Usb::V1_0::UsbDev;
34 class UsbdBulkCallbackTest : public OHOS::HDI::Usb::V1_0::IUsbdBulkCallback {
/test/xts/hats/hdf/usb/requestTest/include/
Dusbd_request_test.h22 using OHOS::HDI::Usb::V1_0::UsbDev;
34 class UsbdBulkCallbackTest : public OHOS::HDI::Usb::V1_0::IUsbdBulkCallback {
/test/xts/hats/hdf/usb/usbdBenchmarkTest/include/
DHdfUsbdBenchmarkTransferTest.h23 using OHOS::HDI::Usb::V1_0::UsbDev;
33 class UsbdBulkCallbackTest : public OHOS::HDI::Usb::V1_0::IUsbdBulkCallback {
DHdfUsbdBenchmarkRequestTest.h23 using OHOS::HDI::Usb::V1_0::UsbDev;
33 class UsbdBulkCallbackTest : public OHOS::HDI::Usb::V1_0::IUsbdBulkCallback {
/test/xts/hats/hdf/nfc/hdcService/
Dnfc_services_test.cpp29 using namespace OHOS::HDI::Nfc::V1_0;
33 using INfcV1_0 = OHOS::HDI::Nfc::V1_0::INfcInterface;
34 using OHOS::HDI::Nfc::V1_0::NfcStatus;
35 using OHOS::HDI::Nfc::V1_0::NfcEvent;
36 using OHOS::HDI::Nfc::V1_0::INfcCallback;
41 using OHOS::HDI::Nfc::V1_0::NfcImpl; in NfcInterfaceImplGetInstance()
52 OHOS::sptr<V1_0::INfcCallback> g_callbackV1_0 = nullptr;
/test/xts/hats/hdf/location/agnss/
Dagnss_hdi_test.cpp35 using namespace OHOS::HDI::Location::Agnss::V1_0;
36 using namespace OHOS::HDI::Location::Gnss::V1_0;
74 setId.type = HDI::Location::Agnss::V1_0::SETID_TYPE_IMSI; in RequestSubscriberSetId()
101 refInfo.type = HDI::Location::Agnss::V1_0::ANSS_REF_INFO_TYPE_CELLID; in RequestAgnssRefInfo()
134 refInfo.cellId.type = HDI::Location::Agnss::V1_0::CELLID_TYPE_GSM; in JudgmentDataGsm()
146 refInfo.cellId.type = HDI::Location::Agnss::V1_0::CELLID_TYPE_LTE; in JudgmentDataLte()
159 refInfo.cellId.type = HDI::Location::Agnss::V1_0::CELLID_TYPE_NR; in JudgmentDataNr()
173 refInfo.cellId.type = HDI::Location::Agnss::V1_0::CELLID_TYPE_UMTS; in JudgmentDataUmts()
282 auto devmgr = HDI::DeviceManager::V1_0::IDeviceManager::Get(); in SetUpTestCase()
311 auto devmgr = HDI::DeviceManager::V1_0::IDeviceManager::Get(); in TearDownTestCase()
/test/xts/hats/hdf/location/geofence/
Dlocation_geofence_test.cpp32 using namespace OHOS::HDI::Location::Geofence::V1_0;
68 auto devmgr = HDI::DeviceManager::V1_0::IDeviceManager::Get(); in SetUpTestCase()
90 auto devmgr = HDI::DeviceManager::V1_0::IDeviceManager::Get(); in TearDownTestCase()
/test/xts/hats/hdf/motion/hdi/
Dmotion_callback_service.cpp22 namespace V1_0 { namespace
Dmotion_callback_service.h24 namespace V1_0 {
/test/xts/hats/hdf/usb/deviceTest/include/
Dusbd_device_test.h21 using OHOS::HDI::Usb::V1_0::UsbDev;

1234