/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_data_cloud_sync.c | 565 NodeInfo cacheInfo = { 0 }; in HandleDBUpdateInternal() local 661 NodeInfo cacheInfo = { 0 }; in HandleDBDeleteChangeInternal() local 702 NodeInfo cacheInfo = { 0 }; in LnnDBDataAddChangeSyncToCache() local 729 …"" PRIu64, anonyUdid, cacheInfo.stateVersion, cacheInfo.localStateVersion, cacheInfo.updateTimesta… in LnnDBDataAddChangeSyncToCache() 773 …cacheInfo->wifiVersion, cacheInfo->bleVersion, AnonymizeWrapper(anonyAccountId), cacheInfo->suppor… in PrintSyncNodeInfo() 774 …cacheInfo->feature, cacheInfo->connSubFeature, cacheInfo->updateTimestamp, anonyP2pMac, cacheInfo-… in PrintSyncNodeInfo() 775 …anonyDeviceName, cacheInfo->authCapacity, cacheInfo->heartbeatCapacity, cacheInfo->deviceInfo.osTy… in PrintSyncNodeInfo() 776 …cacheInfo->deviceInfo.osVersion, cacheInfo->isBleP2p, anonyMacAddr, cacheInfo->deviceInfo.deviceTy… in PrintSyncNodeInfo() 778 *cacheInfo->cipherInfo.key, *cacheInfo->cipherInfo.iv, *cacheInfo->rpaInfo.peerIrk, in PrintSyncNodeInfo() 779 *cacheInfo->rpaInfo.publicAddress, *cacheInfo->remotePtk, anonyDeviceVersion); in PrintSyncNodeInfo() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_data_cloud_sync_mock_test.cpp | 72 NodeInfo cacheInfo; variable 73 (void)memset_s(&cacheInfo, sizeof(NodeInfo), 0, sizeof(NodeInfo)); 103 NodeInfo cacheInfo; variable 132 NodeInfo cacheInfo; variable 283 NodeInfo cacheInfo; variable 369 NodeInfo cacheInfo; variable 392 NodeInfo cacheInfo; variable 430 NodeInfo cacheInfo; variable 465 NodeInfo cacheInfo; variable 535 NodeInfo cacheInfo = { .accountId = 12345, }; variable [all …]
|
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | nncompiled_cache.cpp | 93 NNCompiledCacheInfo cacheInfo; in Restore() local 94 OH_NN_ReturnCode ret = CheckCacheInfo(cacheInfo, cacheInfoPath); in Restore() 100 if (static_cast<int64_t>(version) > cacheInfo.version) { in Restore() 105 if (static_cast<int64_t>(version) < cacheInfo.version) { in Restore() 111 for (uint32_t i = 0; i < cacheInfo.fileNumber; ++i) { in Restore() 126 cacheInfo.modelCheckSum[i]) { in Restore() 169 std::unique_ptr<int64_t[]> cacheInfo = CreateUniquePtr<int64_t[]>(cacheSize); in GenerateCacheFiles() local 170 if (cacheInfo == nullptr) { in GenerateCacheFiles() 175 OH_NN_ReturnCode ret = GenerateCacheModel(caches, cacheInfo, cacheDir, version); in GenerateCacheFiles() 182 ret = WriteCacheInfo(infoCharNumber, cacheInfo, cacheDir); in GenerateCacheFiles() [all …]
|
H A D | nncompiled_cache.h | 55 std::unique_ptr<int64_t[]>& cacheInfo, 64 std::unique_ptr<int64_t[]>& cacheInfo,
|
H A D | nncompiler.cpp | 464 … std::string cacheInfo = cachePath + "/" + m_extensionConfig.modelName + "cache_info.nncache"; in OnlineBuild() local 465 if (std::filesystem::exists(cacheInfo)) { in OnlineBuild() 466 std::filesystem::remove_all(cacheInfo); in OnlineBuild() 673 std::unique_ptr<int64_t[]> cacheInfo = CreateUniquePtr<int64_t[]>(cacheSize); in RestoreFromCacheFile() local 674 if (cacheInfo == nullptr) { in RestoreFromCacheFile() 679 auto cacheInfoPtr = cacheInfo.get(); in RestoreFromCacheFile() 690 ret = compiledCache.WriteCacheInfo(infoCharNumber, cacheInfo, m_cachePath); in RestoreFromCacheFile()
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | wrapper_decoder.cpp | 330 ifa_cacheinfo *cacheInfo = nullptr; in InterpreteAddressMsg() local 359 if (IsDataEmpty(cacheInfo, "IFA_CACHEINFO", rtMsgType) && in InterpreteAddressMsg() 360 !IsPayloadValidated(rtAttr, sizeof(*cacheInfo))) { in InterpreteAddressMsg() 363 cacheInfo = reinterpret_cast<ifa_cacheinfo *>(RTA_DATA(rtAttr)); in InterpreteAddressMsg() 378 return SaveAddressMsg(addresses, addrMsg, std::to_string(flags), cacheInfo, interfaceName); in InterpreteAddressMsg() 418 const ifa_cacheinfo *cacheInfo, const std::string interfaceName) in SaveAddressMsg() argument 431 if (cacheInfo != nullptr) { in SaveAddressMsg() 432 …message_->PushMessage(NetsysEventMessage::Type::PREFERRED, std::to_string(cacheInfo->ifa_prefered)… in SaveAddressMsg() 433 … message_->PushMessage(NetsysEventMessage::Type::VALID, std::to_string(cacheInfo->ifa_valid)); in SaveAddressMsg() 434 message_->PushMessage(NetsysEventMessage::Type::CSTAMP, std::to_string(cacheInfo->cstamp)); in SaveAddressMsg() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_common.c | 475 NodeInfo cacheInfo; in GetPeerUdidByNetworkId() local 476 (void)memset_s(&cacheInfo, sizeof(NodeInfo), 0, sizeof(NodeInfo)); in GetPeerUdidByNetworkId() 477 if (LnnRetrieveDeviceInfoByNetworkId(networkId, &cacheInfo) == SOFTBUS_OK && in GetPeerUdidByNetworkId() 478 cacheInfo.deviceInfo.deviceUdid[0] != '\0') { in GetPeerUdidByNetworkId() 479 if (strcpy_s(udid, len, cacheInfo.deviceInfo.deviceUdid) != EOK) { in GetPeerUdidByNetworkId() 495 NodeInfo cacheInfo; in GetIsExchangeUdidByNetworkId() local 496 (void)memset_s(&cacheInfo, sizeof(NodeInfo), 0, sizeof(NodeInfo)); in GetIsExchangeUdidByNetworkId() 497 if (LnnRetrieveDeviceInfoByNetworkId(networkId, &cacheInfo) == SOFTBUS_OK) { in GetIsExchangeUdidByNetworkId() 498 *isExchangeUdid = cacheInfo.isAuthExchangeUdid; in GetIsExchangeUdidByNetworkId()
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_compiled_cache/ |
H A D | nn_compiled_cache_test.cpp | 493 std::unique_ptr<int64_t[]> cacheInfo = std::make_unique<int64_t[]>(cacheSize); variable 496 OH_NN_ReturnCode ret = nncompiledCache.WriteCacheInfo(cacheSize, cacheInfo, cacheDir); 511 std::unique_ptr<int64_t[]> cacheInfo = std::make_unique<int64_t[]>(cacheSize); variable 514 OH_NN_ReturnCode ret = nncompiledCache.WriteCacheInfo(cacheSize, cacheInfo, cacheDir);
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/wrapper/ |
H A D | wrapper_decoder.h | 62 const ifa_cacheinfo *cacheInfo, const std::string ifname);
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/compilation/ |
H A D | compilation_test.cpp | 111 uint64_t cacheInfo[7] = {}; in WriteFile() local 112 auto cacheInfoPtr = cacheInfo; in WriteFile() 120 inFile.write(reinterpret_cast<const char*>(cacheInfo), writeSize * sizeof(uint64_t)); in WriteFile() 1190 uint64_t cacheInfo[7] = {}; variable 1191 auto cacheInfoPtr = cacheInfo; 1200 onFile.write(reinterpret_cast<const char*>(cacheInfo), 7 * sizeof(uint64_t));
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/compilation/ |
H A D | compilation_test.cpp | 111 uint64_t cacheInfo[7] = {}; in WriteFile() local 112 auto cacheInfoPtr = cacheInfo; in WriteFile() 120 inFile.write(reinterpret_cast<const char*>(cacheInfo), writeSize * sizeof(uint64_t)); in WriteFile() 1190 uint64_t cacheInfo[7] = {}; variable 1191 auto cacheInfoPtr = cacheInfo; 1200 onFile.write(reinterpret_cast<const char*>(cacheInfo), 7 * sizeof(uint64_t));
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/ |
H A D | lnn_distributed_net_ledger_manager.c | 1113 NodeInfo cacheInfo; in LnnSetDlPtk() local 1114 (void)memset_s(&cacheInfo, sizeof(NodeInfo), 0, sizeof(NodeInfo)); in LnnSetDlPtk() 1115 if (LnnRetrieveDeviceInfo(udidHash, &cacheInfo) != SOFTBUS_OK) { in LnnSetDlPtk() 1119 if (memcmp(cacheInfo.remotePtk, remotePtk, PTK_DEFAULT_LEN) == 0) { in LnnSetDlPtk() 1123 if (memcpy_s(cacheInfo.remotePtk, PTK_DEFAULT_LEN, remotePtk, PTK_DEFAULT_LEN) != EOK) { in LnnSetDlPtk() 1127 (void)LnnSaveRemoteDeviceInfo(&cacheInfo); in LnnSetDlPtk()
|
/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_decoder.cpp | 1296 FrameCacheInfo cacheInfo = {0, 0, 0, 0}; in HeapMemAlloc() local 1301 return cacheInfo; in HeapMemAlloc() 1303 cacheInfo.width = width; in HeapMemAlloc() 1304 cacheInfo.height = height; in HeapMemAlloc() 1305 cacheInfo.rowStride = rowStride; in HeapMemAlloc() 1306 cacheInfo.byteCount = rowStride * static_cast<uint64_t>(cacheInfo.height); in HeapMemAlloc() 1307 return cacheInfo; in HeapMemAlloc()
|
/ohos5.0/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_wrapper_test/ |
H A D | wrapper_decoder_test.cpp | 360 ifa_cacheinfo *cacheInfo = nullptr; variable 361 ret = decoder->SaveAddressMsg(testString, addrMsg, testString, cacheInfo, testString);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_render_node_drawable.cpp | 451 for (const auto& [id, cacheInfo] : drawingCacheInfos_) { in DrawDfxForCacheInfo() 452 std::string extraInfo = ", updateTimes:" + std::to_string(cacheInfo.second); in DrawDfxForCacheInfo() 456 RSUniRenderUtil::DrawRectForDfx(canvas, cacheInfo.first, color, alpha, extraInfo); in DrawDfxForCacheInfo()
|
/ohos5.0/base/inputmethod/imf/services/src/ |
H A D | peruser_session.cpp | 78 auto cacheInfo = GetClientInfo(inputClient); in AddClientInfo() local 79 if (cacheInfo != nullptr) { in AddClientInfo() 81 if (cacheInfo->uiExtensionTokenId == IMF_INVALID_TOKENID && in AddClientInfo()
|