/test/xts/acts/ai/neural_network_runtime/v2_0/common/ |
H A D | mock_idevice.cpp | 141 void MockIDevice::SetFP16Supported(bool isSupported) in SetFP16Supported() argument 143 m_fp16 = isSupported; in SetFP16Supported() 146 void MockIDevice::SetPerformanceSupported(bool isSupported) in SetPerformanceSupported() argument 148 m_performance = isSupported; in SetPerformanceSupported() 151 void MockIDevice::SetPrioritySupported(bool isSupported) in SetPrioritySupported() argument 153 m_priority = isSupported; in SetPrioritySupported() 156 void MockIDevice::SetModelCacheSupported(bool isSupported) in SetModelCacheSupported() argument 158 m_cache = isSupported; in SetModelCacheSupported() 161 void MockIDevice::SetOperationsSupported(std::vector<bool> isSupported) in SetOperationsSupported() argument 163 m_operations = isSupported; in SetOperationsSupported() 166 SetDynamicInputSupported(bool isSupported) SetDynamicInputSupported() argument 208 IsFloat16PrecisionSupported(bool& isSupported) IsFloat16PrecisionSupported() argument 214 IsPerformanceModeSupported(bool& isSupported) IsPerformanceModeSupported() argument 220 IsPrioritySupported(bool& isSupported) IsPrioritySupported() argument 226 IsDynamicInputSupported(bool& isSupported) IsDynamicInputSupported() argument 232 IsModelCacheSupported(bool& isSupported) IsModelCacheSupported() argument [all...] |
H A D | mock_idevice.h | 47 int32_t IsFloat16PrecisionSupported(bool& isSupported) override; 49 int32_t IsPerformanceModeSupported(bool& isSupported) override; 51 int32_t IsPrioritySupported(bool& isSupported) override; 53 int32_t IsDynamicInputSupported(bool& isSupported) override; 55 int32_t IsModelCacheSupported(bool& isSupported) override; 81 void SetFP16Supported(bool isSupported); 83 void SetPerformanceSupported(bool isSupported); 85 void SetPrioritySupported(bool isSupported); 87 void SetModelCacheSupported(bool isSupported); 89 void SetOperationsSupported(std::vector<bool> isSupported); [all...] |
/test/xts/acts/ai/nncore/opstest/src/ |
H A D | mock_idevice.cpp | 138 void MockIDevice::SetFP16Supported(bool isSupported) in SetFP16Supported() argument 140 m_fp16 = isSupported; in SetFP16Supported() 143 void MockIDevice::SetPerformanceSupported(bool isSupported) in SetPerformanceSupported() argument 145 m_performance = isSupported; in SetPerformanceSupported() 148 void MockIDevice::SetPrioritySupported(bool isSupported) in SetPrioritySupported() argument 150 m_priority = isSupported; in SetPrioritySupported() 153 void MockIDevice::SetModelCacheSupported(bool isSupported) in SetModelCacheSupported() argument 155 m_cache = isSupported; in SetModelCacheSupported() 158 void MockIDevice::SetOperationsSupported(std::vector<bool> isSupported) in SetOperationsSupported() argument 160 m_operations = isSupported; in SetOperationsSupported() 163 SetDynamicInputSupported(bool isSupported) SetDynamicInputSupported() argument 206 IsFloat16PrecisionSupported(bool& isSupported) IsFloat16PrecisionSupported() argument 212 IsPerformanceModeSupported(bool& isSupported) IsPerformanceModeSupported() argument 218 IsPrioritySupported(bool& isSupported) IsPrioritySupported() argument 224 IsDynamicInputSupported(bool& isSupported) IsDynamicInputSupported() argument 230 IsModelCacheSupported(bool& isSupported) IsModelCacheSupported() argument [all...] |
/test/xts/acts/ai/neural_network_runtime/v1_0/common/ |
H A D | mock_idevice.cpp | 123 void MockIDevice::SetFP16Supported(bool isSupported) in SetFP16Supported() argument 125 m_fp16 = isSupported; in SetFP16Supported() 128 void MockIDevice::SetPerformanceSupported(bool isSupported) in SetPerformanceSupported() argument 130 m_performance = isSupported; in SetPerformanceSupported() 133 void MockIDevice::SetPrioritySupported(bool isSupported) in SetPrioritySupported() argument 135 m_priority = isSupported; in SetPrioritySupported() 138 void MockIDevice::SetModelCacheSupported(bool isSupported) in SetModelCacheSupported() argument 140 m_cache = isSupported; in SetModelCacheSupported() 143 void MockIDevice::SetOperationsSupported(std::vector<bool> isSupported) in SetOperationsSupported() argument 145 m_operations = isSupported; in SetOperationsSupported() 148 SetDynamicInputSupported(bool isSupported) SetDynamicInputSupported() argument 190 IsFloat16PrecisionSupported(bool& isSupported) IsFloat16PrecisionSupported() argument 196 IsPerformanceModeSupported(bool& isSupported) IsPerformanceModeSupported() argument 202 IsPrioritySupported(bool& isSupported) IsPrioritySupported() argument 208 IsDynamicInputSupported(bool& isSupported) IsDynamicInputSupported() argument 214 IsModelCacheSupported(bool& isSupported) IsModelCacheSupported() argument [all...] |
H A D | mock_idevice.h | 47 int32_t IsFloat16PrecisionSupported(bool& isSupported) override; 49 int32_t IsPerformanceModeSupported(bool& isSupported) override; 51 int32_t IsPrioritySupported(bool& isSupported) override; 53 int32_t IsDynamicInputSupported(bool& isSupported) override; 55 int32_t IsModelCacheSupported(bool& isSupported) override; 78 void SetFP16Supported(bool isSupported); 80 void SetPerformanceSupported(bool isSupported); 82 void SetPrioritySupported(bool isSupported); 84 void SetModelCacheSupported(bool isSupported); 86 void SetOperationsSupported(std::vector<bool> isSupported); [all...] |
/test/xts/acts/ai/nncore/common/ |
H A D | mock_idevice.cpp | 138 void MockIDevice::SetFP16Supported(bool isSupported) in SetFP16Supported() argument 140 m_fp16 = isSupported; in SetFP16Supported() 143 void MockIDevice::SetPerformanceSupported(bool isSupported) in SetPerformanceSupported() argument 145 m_performance = isSupported; in SetPerformanceSupported() 148 void MockIDevice::SetPrioritySupported(bool isSupported) in SetPrioritySupported() argument 150 m_priority = isSupported; in SetPrioritySupported() 153 void MockIDevice::SetModelCacheSupported(bool isSupported) in SetModelCacheSupported() argument 155 m_cache = isSupported; in SetModelCacheSupported() 158 void MockIDevice::SetOperationsSupported(std::vector<bool> isSupported) in SetOperationsSupported() argument 160 m_operations = isSupported; in SetOperationsSupported() 163 SetDynamicInputSupported(bool isSupported) SetDynamicInputSupported() argument 206 IsFloat16PrecisionSupported(bool& isSupported) IsFloat16PrecisionSupported() argument 212 IsPerformanceModeSupported(bool& isSupported) IsPerformanceModeSupported() argument 218 IsPrioritySupported(bool& isSupported) IsPrioritySupported() argument 224 IsDynamicInputSupported(bool& isSupported) IsDynamicInputSupported() argument 230 IsModelCacheSupported(bool& isSupported) IsModelCacheSupported() argument [all...] |
H A D | mock_idevice.h | 47 int32_t IsFloat16PrecisionSupported(bool& isSupported) override; 49 int32_t IsPerformanceModeSupported(bool& isSupported) override; 51 int32_t IsPrioritySupported(bool& isSupported) override; 53 int32_t IsDynamicInputSupported(bool& isSupported) override; 55 int32_t IsModelCacheSupported(bool& isSupported) override; 79 void SetFP16Supported(bool isSupported); 81 void SetPerformanceSupported(bool isSupported); 83 void SetPrioritySupported(bool isSupported); 85 void SetModelCacheSupported(bool isSupported); 87 void SetOperationsSupported(std::vector<bool> isSupported); [all...] |
/test/xts/acts/ai/nncore/opstest/include/ |
H A D | mock_idevice.h | 47 int32_t IsFloat16PrecisionSupported(bool& isSupported) override; 49 int32_t IsPerformanceModeSupported(bool& isSupported) override; 51 int32_t IsPrioritySupported(bool& isSupported) override; 53 int32_t IsDynamicInputSupported(bool& isSupported) override; 55 int32_t IsModelCacheSupported(bool& isSupported) override; 81 void SetFP16Supported(bool isSupported); 83 void SetPerformanceSupported(bool isSupported); 85 void SetPrioritySupported(bool isSupported); 87 void SetModelCacheSupported(bool isSupported); 89 void SetOperationsSupported(std::vector<bool> isSupported); [all...] |
/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/ |
H A D | ModelTest.cpp | 790 const bool *isSupported{nullptr}; in HWTEST_F() 795 OH_NN_ReturnCode ret = OH_NNModel_GetAvailableOperations(nullptr, targetDevice, &isSupported, &opCount); in HWTEST_F() 811 const bool *isSupported{nullptr}; in HWTEST_F() 813 ASSERT_EQ(OH_NN_FAILED, OH_NNModel_GetAvailableOperations(model, targetDevice, &isSupported, &opCount)); in HWTEST_F() 820 * @tc.name : 查询算子支持,*isSupported为nullptr 842 * @tc.name : 查询算子支持,**isSupported非nullptr 852 const bool isSupported = true; in HWTEST_F() local 853 const bool *realSupported = &isSupported; in HWTEST_F() 875 const bool *isSupported{nullptr}; in HWTEST_F() 880 &isSupported, nullpt in HWTEST_F() [all...] |
H A D | CompileTest.cpp | 118 std::vector<bool> isSupported = {true, false}; in HWTEST_F() local 119 device->SetOperationsSupported(isSupported); in HWTEST_F() 138 EXPECT_EQ(realSupported[i], isSupported[i]); in HWTEST_F()
|
/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/ |
H A D | ModelTest.cpp | 790 const bool *isSupported{nullptr}; in HWTEST_F() 795 OH_NN_ReturnCode ret = OH_NNModel_GetAvailableOperations(nullptr, targetDevice, &isSupported, &opCount); in HWTEST_F() 811 const bool *isSupported{nullptr}; in HWTEST_F() 813 ASSERT_EQ(OH_NN_FAILED, OH_NNModel_GetAvailableOperations(model, targetDevice, &isSupported, &opCount)); in HWTEST_F() 820 * @tc.name : 查询算子支持,*isSupported为nullptr 842 * @tc.name : 查询算子支持,**isSupported非nullptr 852 const bool isSupported = true; in HWTEST_F() local 853 const bool *realSupported = &isSupported; in HWTEST_F() 875 const bool *isSupported{nullptr}; in HWTEST_F() 880 &isSupported, nullpt in HWTEST_F() [all...] |
H A D | CompileTest.cpp | 118 std::vector<bool> isSupported = {true, false}; in HWTEST_F() local 119 device->SetOperationsSupported(isSupported); in HWTEST_F() 138 EXPECT_EQ(realSupported[i], isSupported[i]); in HWTEST_F()
|
/test/xts/acts/multimedia/av_codec/vcodec/encoder/src/ |
H A D | func_test.cpp | 665 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(nullptr, BITRATE_MODE_CBR); in HWTEST_F() local 666 ASSERT_EQ(false, isSupported); in HWTEST_F() 688 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(capability, BITRATE_MODE_CBR); in HWTEST_F() local 689 EXPECT_EQ(isSupported, true); in HWTEST_F() 713 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(capability, BITRATE_MODE_VBR); in HWTEST_F() local 714 EXPECT_EQ(isSupported, true); in HWTEST_F() 738 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(capa, BITRATE_MODE_CQ); in HWTEST_F() local 739 EXPECT_EQ(isSupported, true); in HWTEST_F() 743 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(capa, BITRATE_MODE_CQ); in HWTEST_F() local 744 EXPECT_EQ(isSupported, fals in HWTEST_F() 1835 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(capability, BITRATE_MODE_CBR); HWTEST_F() local 1860 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(capability, BITRATE_MODE_VBR); HWTEST_F() local 1885 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(capa, BITRATE_MODE_CQ); HWTEST_F() local 1890 bool isSupported = OH_AVCapability_IsEncoderBitrateModeSupported(capa, BITRATE_MODE_CQ); HWTEST_F() local [all...] |
/test/xts/acts/multimedia/image/image_js_standard/imageReceiverNDK/entry/src/main/cpp/napi/ |
H A D | camera_manager.cpp | 114 bool isSupported = false; in HasFlashFn() local 115 ret = OH_CaptureSession_IsFlashModeSupported(captureSession_, flashMode, &isSupported); in HasFlashFn() 119 if (isSupported) { in HasFlashFn()
|
/test/xts/acts/communication/nfc_Controller/entry/src/ohosTest/js/test/ |
H A D | IsoDepTag.test.js | 169 cardEmulationnfc = cardEmulation.isSupported(cardEmulation.FeatureType.ESE);
|
/test/xts/acts/multimedia/camera/camera_ndk_test/src/main/cpp/ |
H A D | camera_manager.cpp | 184 bool isSupported = false; in HasFlashFn() local 185 ret = OH_CaptureSession_IsFlashModeSupported(captureSession_, flashMode, &isSupported); in HasFlashFn() 189 if (isSupported) { in HasFlashFn()
|
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/ |
H A D | nnrtndk.cpp | 396 const bool *isSupported{nullptr}; in OHNNModelGetAvailableoperationsTwo() 399 OH_NNModel_GetAvailableOperations(nullptr, targetDevice, &isSupported, &opCount); in OHNNModelGetAvailableoperationsTwo()
|