/foundation/ai/neural_network_runtime/test/unittest/common/v1_0/ |
H A D | compilation_mock_idevice.cpp | 21 OH_NN_ReturnCode OHOS::HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode = OH_NN_OPERATION_FORBIDDEN; 28 if (HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode == OH_NN_SUCCESS) { in IsModelCacheSupported() 30 HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode = OH_NN_OPERATION_FORBIDDEN; in IsModelCacheSupported() 35 if (HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode == OH_NN_FAILED) { in IsModelCacheSupported() 36 HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode = OH_NN_OPERATION_FORBIDDEN; in IsModelCacheSupported() 48 if (HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode == OH_NN_INVALID_FILE) { in GetSupportedOperation() 49 HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode = OH_NN_OPERATION_FORBIDDEN; in GetSupportedOperation() 59 if (HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode == OH_NN_SUCCESS) { in GetSupportedOperation() 60 HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode = OH_NN_OPERATION_FORBIDDEN; in GetSupportedOperation() 71 if (HDI::Nnrt::V1_0 in IsDynamicInputSupported() [all...] |
H A D | executor_mock_device.cpp | 20 OH_NN_ReturnCode OHOS::HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode = OH_NN_OPERATION_FORBIDDEN; 38 if (OHOS::HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode == OH_NN_INVALID_PARAMETER) { in AllocateBuffer() 39 OHOS::HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode = OH_NN_OPERATION_FORBIDDEN; in AllocateBuffer() 64 if (OHOS::HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode == OH_NN_FAILED) { in Run() 65 OHOS::HDI::Nnrt::V1_0::MockIPreparedModel::m_ExpectRetCode = OH_NN_OPERATION_FORBIDDEN; in Run()
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/hdi_device/ |
H A D | hdi_device_test.cpp | 38 OHOS::HDI::Nnrt::V1_0::Model* MindIR_LiteGraph_To_Model(const LiteGraph* lite_graph, in MindIR_LiteGraph_To_Model() 39 const OHOS::HDI::Nnrt::V1_0::SharedBuffer& buffer) in MindIR_LiteGraph_To_Model() 41 return new (std::nothrow) OHOS::HDI::Nnrt::V1_0::Model(); in MindIR_LiteGraph_To_Model() 44 void MindIR_Model_Destroy(OHOS::HDI::Nnrt::V1_0::Model** model) in MindIR_Model_Destroy() 97 OHOS::sptr<V1_0::MockIDevice> sp = OHOS::sptr<V1_0::MockIDevice>(new (std::nothrow) V1_0::MockIDevice()); in PrepareModel() 103 V1_0::SharedBuffer buffer {1, 1, 0, 1}; in PrepareModel() 109 OHOS::sptr<V1_0::IPreparedModel> iPreparedModel = in PrepareModel() 110 OHOS::sptr<V1_0 in PrepareModel() [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/device_registrar/ |
H A D | device_registrar_test.cpp | 48 virtual int32_t GetDeviceType(V1_0::DeviceType& deviceType) = 0; 50 virtual int32_t GetDeviceStatus(V1_0::DeviceStatus& status) = 0; 52 virtual int32_t GetSupportedOperation(const V1_0::Model& model, std::vector<bool>& ops) = 0; 62 virtual int32_t PrepareModel(const V1_0::Model& model, const V1_0::ModelConfig& config, 63 sptr<V1_0::IPreparedModel>& preparedModel) = 0; 67 virtual int32_t PrepareModelFromModelCache(const std::vector<V1_0::SharedBuffer>& modelCache, 68 const V1_0::ModelConfig& config, sptr<V1_0::IPreparedModel>& preparedModel) = 0; 70 virtual int32_t AllocateBuffer(uint32_t length, V1_0 [all...] |
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | hdi_prepared_model_v1_0.cpp | 25 V1_0::DataType TransDataType(const OH_NN_DataType& dataType) in TransDataType() 29 return V1_0::DataType::DATA_TYPE_BOOL; in TransDataType() 31 return V1_0::DataType::DATA_TYPE_INT8; in TransDataType() 33 return V1_0::DataType::DATA_TYPE_INT16; in TransDataType() 35 return V1_0::DataType::DATA_TYPE_INT32; in TransDataType() 37 return V1_0::DataType::DATA_TYPE_INT64; in TransDataType() 39 return V1_0::DataType::DATA_TYPE_UINT8; in TransDataType() 41 return V1_0::DataType::DATA_TYPE_UINT16; in TransDataType() 43 return V1_0::DataType::DATA_TYPE_UINT32; in TransDataType() 45 return V1_0 in TransDataType() [all...] |
H A D | hdi_device_v1_0.cpp | 31 OH_NN_DeviceType TransHDIDeviceV1_0Type(const V1_0::DeviceType& iDeviceType) in TransHDIDeviceV1_0Type() 34 case V1_0::DeviceType::CPU: in TransHDIDeviceV1_0Type() 36 case V1_0::DeviceType::GPU: in TransHDIDeviceV1_0Type() 38 case V1_0::DeviceType::ACCELERATOR: in TransHDIDeviceV1_0Type() 45 DeviceStatus TransHDIDeviceV1_0Status(const V1_0::DeviceStatus& iDeviceStatus) in TransHDIDeviceV1_0Status() 48 case V1_0::DeviceStatus::AVAILABLE: in TransHDIDeviceV1_0Status() 50 case V1_0::DeviceStatus::BUSY: in TransHDIDeviceV1_0Status() 52 case V1_0::DeviceStatus::OFFLINE: in TransHDIDeviceV1_0Status() 59 V1_0::PerformanceMode TransPerformanceMode(const OH_NN_PerformanceMode& mode) in TransPerformanceMode() 63 return V1_0 in TransPerformanceMode() [all...] |
H A D | lite_graph_to_hdi_model_v1_0.h | 25 void HDIModel_Destroy(OHOS::HDI::Nnrt::V1_0::Model **model); 26 OHOS::HDI::Nnrt::V1_0::Model *LiteGraph_To_HDIModel(const mindspore::lite::LiteGraph *liteGraph, 27 const OHOS::HDI::Nnrt::V1_0::SharedBuffer &buffer);
|
H A D | hdi_prepared_model_v1_0.h | 29 namespace V1_0 = OHOS::HDI::Nnrt::V1_0; 35 explicit HDIPreparedModelV1_0(OHOS::sptr<V1_0::IPreparedModel> hdiPreparedModel); 55 OHOS::sptr<V1_0::IPreparedModel> m_hdiPreparedModel {nullptr};
|
/foundation/graphic/graphic_surface/surface/include/ |
H A D | metadata_helper.h | 56 const HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType& colorSpaceType,
57 HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceInfo& colorSpaceInfo);
59 const HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceInfo& colorSpaceInfo,
60 HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType& colorSpaceType);
63 const HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceInfo& colorSpaceInfo);
65 HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceInfo& colorSpaceInfo);
68 const HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType& colorSpaceType);
70 HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType& colorSpaceType);
73 const HDI::Display::Graphic::Common::V1_0::CM_HDR_Metadata_Type& hdrMetadataType);
75 HDI::Display::Graphic::Common::V1_0 [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/hdi_prepared_model/ |
H A D | hdi_prepared_model_test.cpp | 97 OHOS::sptr<V1_0::MockIPreparedModel> sp = in Run() 98 OHOS::sptr<V1_0::MockIPreparedModel>(new (std::nothrow) V1_0::MockIPreparedModel()); in Run() 120 OHOS::sptr<V1_0::IPreparedModel> hdiPreparedModel = in HWTEST_F() 121 OHOS::sptr<V1_0::MockIPreparedModel>(new (std::nothrow) V1_0::MockIPreparedModel()); in HWTEST_F() 135 std::vector<V1_0::SharedBuffer> bufferVect = {{100, 100, 0, 100}}; in HWTEST_F() 136 OHOS::sptr<V1_0::IPreparedModel> hdiPreparedModel = in HWTEST_F() 137 OHOS::sptr<V1_0::MockIPreparedModel>(new (std::nothrow) V1_0 in HWTEST_F() [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/device_manager/ |
H A D | device_manager_test.cpp | 73 OHOS::HDI::Nnrt::V1_0::SharedBuffer tensorBuffer {-1, 0, 0, 0}; in HWTEST_F() 74 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(nullptr, tensorBuffer); in HWTEST_F() 87 OHOS::HDI::Nnrt::V1_0::SharedBuffer tensorBuffer {0, 0, 0, 0}; in HWTEST_F() 88 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 116 OHOS::HDI::Nnrt::V1_0::SharedBuffer tensorBuffer {-1, 1, 1, 1}; in HWTEST_F() 118 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 136 OHOS::HDI::Nnrt::V1_0::SharedBuffer tensorBuffer {-1, 0, 0, 0}; in HWTEST_F() 137 OHOS::HDI::Nnrt::V1_0::Model * model = LiteGraph_To_HDIModel(liteGraph.get(), tensorBuffer); in HWTEST_F() 152 OHOS::HDI::Nnrt::V1_0::SharedBuffer tensorBuffer {-1, 0, 0, 0}; in HWTEST_F() 153 OHOS::HDI::Nnrt::V1_0 in HWTEST_F() [all...] |
/foundation/multimedia/drm_framework/services/drm_service/server/include/ |
H A D | media_decrypt_module_service.h | 29 using namespace OHOS::HDI::Drm::V1_0;
34 MediaDecryptModuleService(sptr<OHOS::HDI::Drm::V1_0::IMediaDecryptModule> hdiMediaDecryptModule);
35 MediaDecryptModuleService(sptr<OHOS::HDI::Drm::V1_0::IMediaDecryptModule> hdiMediaDecryptModule,
44 void SetCryptInfo(OHOS::HDI::Drm::V1_0::CryptoInfo &cryptInfoTmp,
46 void SetDrmBufferInfo(OHOS::HDI::Drm::V1_0::DrmBuffer* drmSrcBuffer, OHOS::HDI::Drm::V1_0::DrmBuffer* drmDstBuffer,
53 sptr<OHOS::HDI::Drm::V1_0::IMediaDecryptModule> hdiMediaDecryptModule_;
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/devicemanager/interface/ |
H A D | i_audio_device_adapter.h | 23 using OHOS::HDI::DistributedAudio::Audio::V1_0::IAudioManager; 24 using OHOS::HDI::DistributedAudio::Audio::V1_0::IAudioAdapter; 25 using OHOS::HDI::DistributedAudio::Audio::V1_0::IAudioRender; 26 using OHOS::HDI::DistributedAudio::Audio::V1_0::IAudioCapture; 27 using OHOS::HDI::DistributedAudio::Audio::V1_0::IAudioCallback; 28 using OHOS::HDI::DistributedAudio::Audio::V1_0::AudioDeviceDescriptor; 29 using OHOS::HDI::DistributedAudio::Audio::V1_0::AudioSampleAttributes; 30 using OHOS::HDI::DistributedAudio::Audio::V1_0::AudioRoute; 31 using OHOS::HDI::DistributedAudio::Audio::V1_0::AudioExtParamKey;
|
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/wakeup/ |
H A D | wakeup_adapter_listener.h | 27 const OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineCallBackEvent &)>; 36 const OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineCallBackEvent &event) override; 37 void Notify(const OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineCallBackEvent &event); 40 void BackupCallBackEvent(const OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineCallBackEvent &event); 44 std::shared_ptr<OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineCallBackEvent> historyEvent_ = nullptr;
|
/foundation/multimedia/image_effect/interfaces/inner_api/native/colorspace/ |
H A D | colorspace_helper.h | 41 OHOS::HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType type); 42 IMAGE_EFFECT_EXPORT static OHOS::HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType ConvertToCMColorSpace( 45 const OHOS::HDI::Display::Graphic::Common::V1_0::CM_HDR_Metadata_Type &type); 47 OHOS::HDI::Display::Graphic::Common::V1_0::CM_HDR_Metadata_Type &type); 49 const OHOS::HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType &type); 51 OHOS::HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType &type);
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcamerahdf/ |
H A D | dcamera_hdf_operate.h | 28 using OHOS::HDI::DeviceManager::V1_0::IDeviceManager; 29 using OHOS::HDI::ServiceManager::V1_0::IServiceManager; 30 using OHOS::HDI::ServiceManager::V1_0::IServStatListener; 31 using OHOS::HDI::ServiceManager::V1_0::ServiceStatus; 32 using OHOS::HDI::ServiceManager::V1_0::ServStatListenerStub; 58 class DCameraHdfServStatListener : public OHOS::HDI::ServiceManager::V1_0::ServStatListenerStub {
|
/foundation/distributedhardware/distributed_audio/services/audiohdiproxy/include/ |
H A D | daudio_hdf_operate.h | 35 using OHOS::HDI::DeviceManager::V1_0::IDeviceManager;
36 using OHOS::HDI::ServiceManager::V1_0::IServiceManager;
37 using OHOS::HDI::ServiceManager::V1_0::IServStatListener;
38 using OHOS::HDI::ServiceManager::V1_0::ServiceStatus;
39 using OHOS::HDI::ServiceManager::V1_0::ServStatListenerStub;
60 class DAudioHdfServStatListener : public OHOS::HDI::ServiceManager::V1_0::ServStatListenerStub {
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/ |
H A D | color_utils.cpp | 194 HDI::Display::Graphic::Common::V1_0::CM_ColorSpaceType ColorUtils::ConvertToCMColor(ColorManager::ColorSpaceName name)
in ConvertToCMColor() 198 return HDI::Display::Graphic::Common::V1_0::CM_SRGB_FULL;
in ConvertToCMColor() 200 return HDI::Display::Graphic::Common::V1_0::CM_SRGB_LIMIT;
in ConvertToCMColor() 202 return HDI::Display::Graphic::Common::V1_0::CM_P3_FULL;
in ConvertToCMColor() 204 return HDI::Display::Graphic::Common::V1_0::CM_P3_LIMIT;
in ConvertToCMColor() 207 return HDI::Display::Graphic::Common::V1_0::CM_BT2020_HLG_FULL;
in ConvertToCMColor() 209 return HDI::Display::Graphic::Common::V1_0::CM_BT2020_HLG_LIMIT;
in ConvertToCMColor() 211 return HDI::Display::Graphic::Common::V1_0::CM_BT2020_PQ_FULL;
in ConvertToCMColor() 213 return HDI::Display::Graphic::Common::V1_0::CM_BT2020_PQ_LIMIT;
in ConvertToCMColor() 215 return HDI::Display::Graphic::Common::V1_0 in ConvertToCMColor() [all...] |
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/hdi_adapter/ |
H A D | headset_host_manager.h | 24 using OHOS::HDI::IntelligentVoice::Engine::V1_0::IIntellVoiceEngineAdapter; 25 using OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineAdapterDescriptor; 42 const sptr<OHOS::HDI::IntelligentVoice::Engine::V1_0::IIntellVoiceEngineManager> &GetHeadsetHostProxy1_0() const in GetHeadsetHostProxy1_0() 50 sptr<OHOS::HDI::IntelligentVoice::Engine::V1_0::IIntellVoiceEngineManager> headsetHostProxy1_0_ = nullptr;
|
H A D | i_adapter_host_manager.h | 25 using OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineAdapterDescriptor; 26 using OHOS::HDI::IntelligentVoice::Engine::V1_0::IIntellVoiceEngineCallback; 35 virtual int32_t Attach(const OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineAdapterInfo &info) = 0; 39 virtual int32_t Start(const OHOS::HDI::IntelligentVoice::Engine::V1_0::StartInfo &info) = 0; 42 virtual int32_t Read(OHOS::HDI::IntelligentVoice::Engine::V1_0::ContentType type, sptr<Ashmem> &buffer) = 0;
|
H A D | headset_adapter_host_manager.h | 28 int32_t Attach(const OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineAdapterInfo &info) override; 32 int32_t Start(const OHOS::HDI::IntelligentVoice::Engine::V1_0::StartInfo &info) override; 35 int32_t Read(OHOS::HDI::IntelligentVoice::Engine::V1_0::ContentType type, sptr<Ashmem> &buffer) override; 40 sptr<OHOS::HDI::IntelligentVoice::Engine::V1_0::IIntellVoiceEngineAdapter> headsetAdapterProxy1_0_ = nullptr;
|
/foundation/multimodalinput/input/service/infrared_emitter/include/ |
H A D | infrared_emitter_def.h | 26 namespace V1_0 { namespace 36 static sptr<OHOS::HDI::V1_0::ConsumerIr> Get(bool isStub = false); 37 static sptr<OHOS::HDI::V1_0::ConsumerIr> Get(const std::string &serviceName, bool isStub = false); 40 std::vector<OHOS::HDI::V1_0::ConsumerIrFreqRange> &range) = 0; 45 } // namespace V1_0
|
/foundation/ai/intelligent_voice_framework/tests/unittest/intell_voice_test/src/ |
H A D | engine_event_callback.cpp | 38 const OHOS::HDI::IntelligentVoice::Engine::V1_0::IntellVoiceEngineCallBackEvent &event) in OnEvent() 45 if (event.msgId == HDI::IntelligentVoice::Engine::V1_0::INTELL_VOICE_ENGINE_MSG_INIT_DONE) { in OnEvent() 46 EXPECT_EQ(event.result, HDI::IntelligentVoice::Engine::V1_0::INTELL_VOICE_ENGINE_OK); in OnEvent() 52 if (event.msgId == HDI::IntelligentVoice::Engine::V1_0::INTELL_VOICE_ENGINE_MSG_ENROLL_COMPLETE) { in OnEvent() 53 EXPECT_EQ(event.result, HDI::IntelligentVoice::Engine::V1_0::INTELL_VOICE_ENGINE_OK); in OnEvent() 64 if (event.msgId == HDI::IntelligentVoice::Engine::V1_0::INTELL_VOICE_ENGINE_MSG_COMMIT_ENROLL_COMPLETE) { in OnEvent() 65 EXPECT_EQ(event.result, HDI::IntelligentVoice::Engine::V1_0::INTELL_VOICE_ENGINE_OK); in OnEvent()
|
/foundation/ai/intelligent_voice_framework/services/intell_voice_trigger/server/connector_mgr/ |
H A D | trigger_host_manager.h | 24 using OHOS::HDI::IntelligentVoice::Trigger::V1_0::IntellVoiceTriggerAdapterDsecriptor; 36 const sptr<OHOS::HDI::IntelligentVoice::Trigger::V1_0::IIntellVoiceTriggerAdapter> &GetAdapter() const in GetAdapter() 48 sptr<OHOS::HDI::IntelligentVoice::Trigger::V1_0::IIntellVoiceTriggerManager> triggerHostProxy_ = nullptr; 51 sptr<OHOS::HDI::IntelligentVoice::Trigger::V1_0::IIntellVoiceTriggerAdapter> adapter_ = nullptr;
|
/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/drmservice_fuzzer/ |
H A D | drmservice_fuzzer.h | 107 int32_t GenerateMediaKeyRequest(const OHOS::HDI::Drm::V1_0::MediaKeyRequestInfo &mediaKeyRequestInfo, 108 OHOS::HDI::Drm::V1_0::MediaKeyRequest &mediaKeyRequest) override 153 int32_t GetContentProtectionLevel(OHOS::HDI::Drm::V1_0::ContentProtectionLevel &level) override 165 int32_t SetCallback(const sptr<OHOS::HDI::Drm::V1_0::IMediaKeySessionCallback> &sessionCallback) override 171 int32_t GetMediaDecryptModule(sptr<OHOS::HDI::Drm::V1_0::IMediaDecryptModule> &decryptModule) override 233 int32_t GetMaxContentProtectionLevel(OHOS::HDI::Drm::V1_0::ContentProtectionLevel &level) override 235 level = OHOS::HDI::Drm::V1_0::ContentProtectionLevel::HW_ENHANCED_SECURE_CRYPTO; 251 int32_t GetOemCertificateStatus(OHOS::HDI::Drm::V1_0::CertificateStatus &status) override 253 status = OHOS::HDI::Drm::V1_0::CertificateStatus::CERT_STATUS_INVALID; 257 int32_t SetCallback(const sptr<OHOS::HDI::Drm::V1_0 [all...] |