/ohos5.0/foundation/ai/ai_engine/services/server/plugin_manager/source/ |
H A D | plugin_manager.cpp | 27 HILOGI("[PluginManager]Get plugin for server, aid=%s, version=%lld.", aid.c_str(), version); in GetPlugin() 28 PluginKey pluginKey(aid, version); in GetPlugin() 40 return LoadPlugin(aid, version, plugin); in GetPlugin() 65 void PluginManager::DelPluginByAID(const std::string &aid) in DelPluginByAID() argument 70 if (aid == iter->first.aid) { in DelPluginByAID() 82 auto pluginPtr = std::make_shared<Plugin>(Plugin(aid, version)); in LoadPlugin() 92 PluginKey pluginKey(aid, version); in LoadPlugin() 95 HILOGI("[PluginManager]End to load plugin: aid=%s, version=%lld.", aid.c_str(), version); in LoadPlugin() 99 void PluginManager::UnloadPlugin(const std::string &aid, long long version) in UnloadPlugin() argument 101 PluginKey pluginKey(aid, version); in UnloadPlugin() [all …]
|
H A D | plugin.cpp | 32 HandleGuard(const std::string &aid, void *handle) : aid_(aid), handle_(handle) in HandleGuard() argument 53 Plugin::Plugin(const std::string &aid, long long version) in Plugin() argument 54 : pluginAlgorithm_(nullptr), aid_(aid), version_(version), handle_(nullptr) in Plugin()
|
H A D | plugin_label.cpp | 56 int PluginLabel::GetLibPath(const std::string &aid, long long &version, std::string &libPath) in GetLibPath() argument 59 std::string label = aid + PLUS + std::to_string(version); in GetLibPath() 78 HILOGI("[PluginLabel]Succeed to get lib path of %s.", aid.c_str()); in GetLibPath()
|
/ohos5.0/foundation/ai/ai_engine/services/server/plugin_manager/include/ |
H A D | plugin_manager.h | 33 std::string aid; member 36 PluginKey(const std::string &aid, long long version) in PluginKey() 37 : aid(aid), version(version) in PluginKey() 43 if (aid < another.aid) { 46 if (aid == another.aid && version < another.version) { 62 …int GetPlugin(const std::string &aid, long long version, std::shared_ptr<Plugin> &plugin) override; 63 void UnloadPlugin(const std::string &aid, long long version) override; 69 void DelPluginByAID(const std::string &aid); 70 int LoadPlugin(const std::string &aid, long long version, std::shared_ptr<Plugin> &plugin);
|
/ohos5.0/foundation/ai/ai_engine/services/server/server_executor/include/ |
H A D | engine_manager.h | 34 std::string aid; member 37 EngineKey(const std::string &aid, long long version) : aid(aid), version(version) in EngineKey() 43 if (aid < another.aid) { 46 if (aid == another.aid && version < another.version) {
|
/ohos5.0/drivers/peripheral/secure_element/test/unittest/se_impl_test/ |
H A D | se_impl_test.cpp | 107 std::vector<uint8_t> aid; variable 113 int ret = seImpl->openLogicalChannel(aid, p2, response, channelNumber, status); 124 std::vector<uint8_t> aid = {0x001, 0x002, 0x003}; variable 130 int ret = seImpl->openLogicalChannel(aid, p2, response, channelNumber, status); 141 const std::vector<uint8_t> aid; variable 146 int ret = seImpl->openBasicChannel(aid, p2, response, status); 157 const std::vector<uint8_t> aid = {0x001, 0x002, 0x003}; variable 162 int ret = seImpl->openBasicChannel(aid, p2, response, status);
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/ril/ |
H A D | _sim_authentication_request_info_v10.md | 21 | String [aid](#aid) | 应用标识 | 28 ### aid subsection 31 String SimAuthenticationRequestInfo::aid
|
H A D | _sim_authentication_request_info_v11.md | 21 | String [aid](#aid) | 应用标识 | 28 ### aid subsection 31 String SimAuthenticationRequestInfo::aid
|
H A D | _sim_io_request_info_v10.md | 29 | String [aid](#aid) | 应用标识 | 35 ### aid subsection 38 String SimIoRequestInfo::aid
|
H A D | _sim_io_request_info_v11.md | 29 | String [aid](#aid) | 应用标识 | 35 ### aid subsection 38 String SimIoRequestInfo::aid
|
/ohos5.0/foundation/communication/nfc/services/src/card_emulation/ |
H A D | ce_service.cpp | 136 std::string aid = entry.aid; in InitConfigAidRouting() local 142 aid.c_str(), aidInfo, route, power); in InitConfigAidRouting() 195 aidEntry.aid = aidInfo.value; in BuildAidEntries() 203 for (const std::string &aid : dynamicAids_) { in BuildAidEntries() local 205 aidEntry.aid = aid; in BuildAidEntries() 209 aidEntries[aid] = aidEntry; in BuildAidEntries() 222 for (const std::string &aid : dynamicAids_) { in IsDynamicAid() local 223 if (aid == targetAid) { in IsDynamicAid() 395 if (aid.empty()) { in SearchElementByAid() 407 ExternalDepsProxy::GetInstance().GetHceAppsByAid(aid, hceApps); in SearchElementByAid() [all …]
|
H A D | ce_service.h | 40 std::string aid; member 46 …return aid == other.aid && route == other.route && aidInfo == other.aidInfo && power == other.powe… 81 void SearchElementByAid(const std::string &aid, ElementName &aidElement); 92 bool IsDynamicAid(const std::string &aid); 93 bool IsPaymentAid(const std::string &aid, const AppDataParser::HceAppAidInfo &hceApp);
|
H A D | host_card_emulation_manager.cpp | 81 std::string aid = ParseSelectAid(data); in OnHostCardEmulationDataNfcA() local 82 …InfoLog("onHostCardEmulationDataNfcA: selectAid = %{public}s, state %{public}d", aid.c_str(), hceS… in OnHostCardEmulationDataNfcA() 88 ceService_.lock()->SearchElementByAid(aid, aidElement); in OnHostCardEmulationDataNfcA() 97 HandleDataOnW4Select(aid, aidElement, data); in OnHostCardEmulationDataNfcA() 105 HandleDataOnDataTransfer(aid, aidElement, data); in OnHostCardEmulationDataNfcA() 163 void HostCardEmulationManager::HandleDataOnW4Select(const std::string& aid, ElementName& aidElement, in HandleDataOnW4Select() argument 167 if (!aid.empty()) { in HandleDataOnW4Select() 194 void HostCardEmulationManager::HandleDataOnDataTransfer(const std::string& aid, ElementName& aidEle… in HandleDataOnDataTransfer() argument 198 if (!aid.empty()) { in HandleDataOnDataTransfer()
|
/ohos5.0/foundation/ai/ai_engine/test/function/plugin_manager/ |
H A D | plugin_manager_test.cpp | 50 static void TestPluginManager(std::string aid, bool isExceptedLoadPluginSuccess) in TestPluginManager() argument 57 pluginManager->GetPlugin(aid, version, plugin); in TestPluginManager() 66 pluginManager->UnloadPlugin(aid, version); in TestPluginManager() 71 static void TestPluginManagerUnloadPlugin(std::string aid) in TestPluginManagerUnloadPlugin() argument 77 ASSERT_NO_THROW(pluginManager2->UnloadPlugin(aid, version)) << "UnloadPlugin test failed."; in TestPluginManagerUnloadPlugin()
|
/ohos5.0/drivers/peripheral/secure_element/vendor_sim_adaptor/ |
H A D | se_vendor_adaptions.cpp | 146 …const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t>& response, uint32_t *channelNum,… in VendorSimSecureElementOpenLogicalChannel() argument 149 uint32_t aidLen = aid.size(); in VendorSimSecureElementOpenLogicalChannel() 160 arrAid[i] = aid[i]; in VendorSimSecureElementOpenLogicalChannel() 179 uint8_t *aid, uint32_t len, uint8_t *rsp, uint32_t *rspLen, int *status) in VendorSimSecureElementOpenBasicChannel() argument 181 …SIM_FUNCTION_INVOKE_RETURN(vendorSimSecureElementOpenBasicChannelFunc_, aid, len, rsp, rspLen, sta… in VendorSimSecureElementOpenBasicChannel() 242 int32_t SimSeVendorAdaptions::openLogicalChannel(const std::vector<uint8_t>& aid, uint8_t p2, in openLogicalChannel() argument 247 if (aid.empty()) { in openLogicalChannel() 255 …int ret = VendorSimSecureElementOpenLogicalChannel(aid, p2, response, &channelCreated, &tmpStatus); in openLogicalChannel() 286 int32_t SimSeVendorAdaptions::openBasicChannel(const std::vector<uint8_t>& aid, uint8_t p2, in openBasicChannel() argument 291 if (aid.empty()) { in openBasicChannel() [all …]
|
H A D | se_vendor_adaptions.h | 54 …int32_t openLogicalChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t>& resp… 57 …int32_t openBasicChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t>& respon… 106 …using VendorSimSecureElementOpenLogicalChannelT = int (*)(uint8_t *aid, uint32_t len, uint8_t p2, … 108 … using VendorSimSecureElementOpenBasicChannelT = int (*)(uint8_t *aid, uint32_t len, uint8_t *rsp, 137 int VendorSimSecureElementOpenLogicalChannel(const std::vector<uint8_t>& aid, uint8_t p2, 139 …int VendorSimSecureElementOpenBasicChannel(uint8_t *aid, uint32_t len, uint8_t *rsp, uint32_t *rsp…
|
/ohos5.0/foundation/ai/ai_engine/services/server/server_executor/source/ |
H A D | engine_manager.cpp | 60 std::string aid = GetAlgorithmIdByType(algoInfo.algorithmType); in StartEngine() local 61 if (aid == ALGORITHM_ID_INVALID) { in StartEngine() 65 EngineKey engineKey(aid, algoInfo.algorithmVersion); in StartEngine() 121 const std::string aid = plugin->GetAid(); in StopEngine() local 123 pluginManager->UnloadPlugin(aid, version); in StopEngine() 124 EngineKey engineKey(aid, version); in StopEngine() 194 int retCode = pluginManager->GetPlugin(engineKey.aid, engineKey.version, plugin); in CreateEngine() 197 engineKey.aid.c_str(), engineKey.version); in CreateEngine()
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/secureelement/ |
H A D | interface_i_secure_element_interface.md | 23 | [openLogicalChannel](#openlogicalchannel) ([in] List< unsigned char > aid, [in] unsigned ch… 24 | [openBasicChannel](#openbasicchannel) ([in] List< unsigned char > aid, [in] unsigned char p… 114 ISecureElementInterface::openBasicChannel ([in] List< unsigned char > aid, [in] unsigned char p2, [… 127 | aid | 要在此通道上选择的应用的AID的byte数组。 | 136 ISecureElementInterface::openLogicalChannel ([in] List< unsigned char > aid, [in] unsigned char p2,… 149 | aid | 要在此通道上选择的应用的AID的byte数组。 |
|
/ohos5.0/drivers/peripheral/secure_element/hdi_service/ |
H A D | se_impl.cpp | 58 int32_t SeImpl::openLogicalChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t… in openLogicalChannel() argument 61 return adaptor_.openLogicalChannel(aid, p2, response, channelNumber, status); in openLogicalChannel() 64 int32_t SeImpl::openBasicChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t>&… in openBasicChannel() argument 67 return adaptor_.openBasicChannel(aid, p2, response, status); in openBasicChannel()
|
/ohos5.0/drivers/peripheral/secure_element/test/unittest/mock/ |
H A D | mock.cpp | 57 int SecureElementCaProxy::VendorSecureElementCaOpenLogicalChannel(uint8_t *aid, uint32_t len, uint8… in VendorSecureElementCaOpenLogicalChannel() argument 64 return p->VendorSecureElementCaOpenLogicalChannel(aid, len, p2, rsp, rspLen, channelNum); in VendorSecureElementCaOpenLogicalChannel() 67 int SecureElementCaProxy::VendorSecureElementCaOpenBasicChannel(uint8_t *aid, uint32_t len, uint8_t… in VendorSecureElementCaOpenBasicChannel() argument 74 return p->VendorSecureElementCaOpenBasicChannel(aid, len, rsp, rspLen); in VendorSecureElementCaOpenBasicChannel()
|
/ohos5.0/drivers/peripheral/secure_element/sim_hdi_service/ |
H A D | secure_element_interface_service.cpp | 48 int32_t SecureElementInterfaceService::openLogicalChannel(const std::vector<uint8_t>& aid, uint8_t … in openLogicalChannel() argument 52 return adaptor_.openLogicalChannel(aid, p2, response, channelNumber, status); in openLogicalChannel() 55 int32_t SecureElementInterfaceService::openBasicChannel(const std::vector<uint8_t>& aid, uint8_t p2, in openBasicChannel() argument 58 return adaptor_.openBasicChannel(aid, p2, response, status); in openBasicChannel()
|
/ohos5.0/drivers/peripheral/secure_element/vendor_adaptor/ |
H A D | se_vendor_adaptions.cpp | 115 int32_t SeVendorAdaptions::openLogicalChannel(const std::vector<uint8_t>& aid, uint8_t p2, in openLogicalChannel() argument 120 if (aid.empty()) { in openLogicalChannel() 130 (uint8_t *)&aid[0], aid.size(), p2, res, &resLen, &channelCreated); in openLogicalChannel() 164 int32_t SeVendorAdaptions::openBasicChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vecto… in openBasicChannel() argument 169 if (aid.empty()) { in openBasicChannel() 178 (uint8_t *)&aid[0], aid.size(), res, &resLen); in openBasicChannel()
|
/ohos5.0/drivers/peripheral/secure_element/secure_element_ca_proxy/ |
H A D | secure_element_ca_proxy.cpp | 118 …uint8_t *aid, uint32_t len, uint8_t p2, uint8_t *rsp, uint32_t *rspLen, uint32_t *channelNum) const in VendorSecureElementCaOpenLogicalChannel() argument 120 …CA_FUNCTION_INVOKE_RETURN(vendorSecureElementCaOpenLogicalChannelFunc_, aid, len, p2, rsp, rspLen,… in VendorSecureElementCaOpenLogicalChannel() 124 uint8_t *aid, uint32_t len, uint8_t *rsp, uint32_t *rspLen) const in VendorSecureElementCaOpenBasicChannel() argument 126 CA_FUNCTION_INVOKE_RETURN(vendorSecureElementCaOpenBasicChannelFunc_, aid, len, rsp, rspLen); in VendorSecureElementCaOpenBasicChannel()
|
H A D | secure_element_ca_proxy.h | 54 …uint8_t *aid, uint32_t len, uint8_t p2, uint8_t *rsp, uint32_t *rspLen, uint32_t *channelNum) cons… 55 …int VendorSecureElementCaOpenBasicChannel(uint8_t *aid, uint32_t len, uint8_t *rsp, uint32_t *rspL… 97 …using VendorSecureElementCaOpenLogicalChannelT = int (*)(uint8_t *aid, uint32_t len, uint8_t p2, u… 99 …using VendorSecureElementCaOpenBasicChannelT = int (*)(uint8_t *aid, uint32_t len, uint8_t *rsp, u…
|
/ohos5.0/drivers/peripheral/secure_element/test/unittest/se_vendor_adaptions_mock_test/ |
H A D | se_vendor_adaptions_mock_test.cpp | 87 std::vector<uint8_t> aid = {0x001, 0x002, 0x003}; variable 95 int ret = seVendorAdaptions->openLogicalChannel(aid, p2, response, channelNumber, status); 108 const std::vector<uint8_t> aid = {0x001, 0x002, 0x003}; variable 113 int ret = seVendorAdaptions->openBasicChannel(aid, p2, response, status);
|