/base/security/device_auth/services/group_manager/src/broadcast_manager/ |
D | broadcast_manager.c | 69 ListenerEntry *entry = NULL; in PostOnGroupCreated() local 71 FOR_EACH_HC_VECTOR(g_listenerEntryVec, index, entry) { in PostOnGroupCreated() 72 … if ((entry != NULL) && (entry->listener != NULL) && (entry->listener->onGroupCreated != NULL)) { in PostOnGroupCreated() 73 LOGI("[Broadcaster]: PostOnGroupCreated! [AppId]: %s", entry->appId); in PostOnGroupCreated() 74 entry->listener->onGroupCreated(messageStr); in PostOnGroupCreated() 92 ListenerEntry *entry = NULL; in PostOnGroupDeleted() local 94 FOR_EACH_HC_VECTOR(g_listenerEntryVec, index, entry) { in PostOnGroupDeleted() 95 … if ((entry != NULL) && (entry->listener != NULL) && (entry->listener->onGroupDeleted != NULL)) { in PostOnGroupDeleted() 96 LOGI("[Broadcaster]: PostOnGroupDeleted! [AppId]: %s", entry->appId); in PostOnGroupDeleted() 97 entry->listener->onGroupDeleted(messageStr); in PostOnGroupDeleted() [all …]
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | log_stats.cpp | 40 static void UpdateStats(StatsEntry &entry, const StatsInfo &info) in UpdateStats() argument 44 ts_mono -= entry.monoTimeLast; in UpdateStats() 46 entry.monoTimeLast -= entry.monoTimeAuditStart; in UpdateStats() 47 float secs = entry.monoTimeLast.FloatSecs(); in UpdateStats() 51 float freq = entry.tmpLines / secs; in UpdateStats() 52 if (freq > entry.freqMax) { in UpdateStats() 53 entry.freqMax = freq; in UpdateStats() 54 entry.realTimeFreqMax = entry.realTimeLast; in UpdateStats() 56 entry.tmpLines = 0; in UpdateStats() 57 float throughput = entry.tmpLen / secs; in UpdateStats() [all …]
|
/base/powermgr/powermgr_lite/frameworks/src/ |
D | running_lock.c | 81 RunningLockEntry *entry = (RunningLockEntry *)malloc(sizeof(RunningLockEntry)); in CreateRunningLockEntry() local 82 if (entry == NULL) { in CreateRunningLockEntry() 86 (void)memset_s(entry, sizeof(RunningLockEntry), 0, sizeof(RunningLockEntry)); in CreateRunningLockEntry() 87 InitIdentity(entry); in CreateRunningLockEntry() 88 entry->lock.type = type; in CreateRunningLockEntry() 89 entry->lock.flag = flag; in CreateRunningLockEntry() 90 if(strcpy_s(entry->lock.name, sizeof(entry->lock.name), name) != EOK) { in CreateRunningLockEntry() 91 free(entry); in CreateRunningLockEntry() 94 return entry; in CreateRunningLockEntry() 97 static inline void DestroyRunningLockEntry(RunningLockEntry *entry) in DestroyRunningLockEntry() argument [all …]
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/ |
D | group_auth_data_operation.c | 27 static bool GaDeepCopyDeviceEntry(const TrustedDeviceEntry *entry, TrustedDeviceEntry *returnEntry) in GaDeepCopyDeviceEntry() argument 30 if (!StringSet(&returnEntry->groupId, entry->groupId)) { in GaDeepCopyDeviceEntry() 34 if (!StringSet(&returnEntry->udid, entry->udid)) { in GaDeepCopyDeviceEntry() 38 if (!StringSet(&returnEntry->authId, entry->authId)) { in GaDeepCopyDeviceEntry() 42 if (!StringSet(&returnEntry->serviceType, entry->serviceType)) { in GaDeepCopyDeviceEntry() 46 if (!StringSet(&returnEntry->userId, entry->userId)) { in GaDeepCopyDeviceEntry() 50 returnEntry->credential = entry->credential; in GaDeepCopyDeviceEntry() 51 returnEntry->devType = entry->devType; in GaDeepCopyDeviceEntry() 52 returnEntry->lastTm = entry->lastTm; in GaDeepCopyDeviceEntry() 53 returnEntry->source = entry->source; in GaDeepCopyDeviceEntry() [all …]
|
/base/powermgr/powermgr_lite/services/src/ |
D | running_lock_mgr.c | 35 static RunningLockEntry *DupRunningLockEntry(RunningLockEntry *entry) in DupRunningLockEntry() argument 42 if (memcpy_s(e, sizeof(RunningLockEntry), entry, sizeof(RunningLockEntry)) != EOK) { in DupRunningLockEntry() 50 static BOOL AddRunningLockEntryLocked(Vector *vec, RunningLockEntry *entry) in AddRunningLockEntryLocked() argument 52 int16_t pos = VECTOR_FindByKey(vec, (void *)&entry->identity); in AddRunningLockEntryLocked() 54 POWER_HILOGD("Already acquired: %s", entry->lock.name); in AddRunningLockEntryLocked() 57 RunningLockEntry *e = DupRunningLockEntry(entry); in AddRunningLockEntryLocked() 70 ScAcquireRunningLock(g_runningLockNames[entry->lock.type]); in AddRunningLockEntryLocked() 75 static BOOL RemoveRunningLockEntryLocked(Vector *vec, RunningLockEntry *entry) in RemoveRunningLockEntryLocked() argument 77 int16_t pos = VECTOR_FindByKey(vec, (void *)&entry->identity); in RemoveRunningLockEntryLocked() 84 … POWER_HILOGD("Remove running lock entry, name: %s, type: %d", entry->lock.name, entry->lock.type); in RemoveRunningLockEntryLocked() [all …]
|
/base/security/device_auth/services/data_manager/src/ |
D | data_manager.c | 219 bool GenerateGroupEntryFromEntry(const TrustedGroupEntry *entry, TrustedGroupEntry *returnEntry) in GenerateGroupEntryFromEntry() argument 221 if (HC_VECTOR_SIZE(&entry->managers) <= 0) { in GenerateGroupEntryFromEntry() 225 HcString entryOwner = HC_VECTOR_GET(&entry->managers, 0); in GenerateGroupEntryFromEntry() 226 if (!StringSet(&returnEntry->name, entry->name)) { in GenerateGroupEntryFromEntry() 230 if (!StringSet(&returnEntry->id, entry->id)) { in GenerateGroupEntryFromEntry() 234 if (!StringSet(&returnEntry->userId, entry->userId)) { in GenerateGroupEntryFromEntry() 238 if (!StringSet(&returnEntry->sharedUserId, entry->sharedUserId)) { in GenerateGroupEntryFromEntry() 242 returnEntry->type = entry->type; in GenerateGroupEntryFromEntry() 243 returnEntry->visibility = entry->visibility; in GenerateGroupEntryFromEntry() 244 returnEntry->expireTime = entry->expireTime; in GenerateGroupEntryFromEntry() [all …]
|
/base/powermgr/powermgr_lite/frameworks/src/small/ |
D | power_manage.c | 40 static int32_t AcquireRunningLockEntryProxy(IUnknown *iUnknown, RunningLockEntry *entry, int32_t ti… 41 static int32_t ReleaseRunningLockEntryProxy(IUnknown *iUnknown, RunningLockEntry *entry); 57 PowerManageProxyEntry *entry = (PowerManageProxyEntry *)&client[size]; in CreatClient() local 58 entry->ver = ((uint16)CLIENT_PROXY_VER | (uint16)DEFAULT_VERSION); in CreatClient() 59 entry->ref = 1; in CreatClient() 60 entry->iUnknown.QueryInterface = IUNKNOWN_QueryInterface; in CreatClient() 61 entry->iUnknown.AddRef = IUNKNOWN_AddRef; in CreatClient() 62 entry->iUnknown.Release = IUNKNOWN_Release; in CreatClient() 63 entry->iUnknown.Invoke = NULL; in CreatClient() 64 entry->iUnknown.AcquireRunningLockEntryFunc = AcquireRunningLockEntryProxy; in CreatClient() [all …]
|
D | power_screen_saver.c | 52 ScreenSaverProxyEntry *entry = (ScreenSaverProxyEntry *)&client[size]; in CreatClient() local 53 entry->ver = ((uint16)CLIENT_PROXY_VER | (uint16)DEFAULT_VERSION); in CreatClient() 54 entry->ref = 1; in CreatClient() 55 entry->iUnknown.QueryInterface = IUNKNOWN_QueryInterface; in CreatClient() 56 entry->iUnknown.AddRef = IUNKNOWN_AddRef; in CreatClient() 57 entry->iUnknown.Release = IUNKNOWN_Release; in CreatClient() 58 entry->iUnknown.Invoke = NULL; in CreatClient() 59 entry->iUnknown.SetScreenSaverStateFunc = SetScreenSaverStateProxy; in CreatClient()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
D | notification_preferences_database_test.cpp | 497 std::pair<std::string, std::string> entry; variable 498 entry.first = "ans_bundle_bundleKey_name"; 499 entry.second = "1"; 500 preferncesDB_->ParseBundlePropertyFromDisturbeDB(bundleInfo, bundleKey, entry); 513 std::pair<std::string, std::string> entry; variable 514 entry.first = "ans_bundle_bundleKey_importance"; 515 entry.second = "1"; 516 preferncesDB_->ParseBundlePropertyFromDisturbeDB(bundleInfo, bundleKey, entry); 529 std::pair<std::string, std::string> entry; variable 530 entry.first = "ans_bundle_bundleKey_showBadge"; [all …]
|
/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_database_callback.cpp | 35 for (auto entry : entryList) { in OnChange() local 36 …callback_.OnInsert(changeNotification.GetDeviceId(), entry.key.ToString(), entry.value.ToString()); in OnChange() 43 for (auto entry : entryList) { in OnChange() local 44 …callback_.OnUpdate(changeNotification.GetDeviceId(), entry.key.ToString(), entry.value.ToString()); in OnChange() 51 for (auto entry : entryList) { in OnChange() local 52 …callback_.OnDelete(changeNotification.GetDeviceId(), entry.key.ToString(), entry.value.ToString()); in OnChange()
|
/base/customization/enterprise_device_management/services/edm/src/ |
D | permission_manager.cpp | 32 auto entry = permissions_.find(permission); in AddPermission() local 33 if (entry == permissions_.end()) { in AddPermission() 53 auto entry = permissions_.find(item); in GetReqPermission() local 54 if (entry != permissions_.end()) { in GetReqPermission() 55 reqPermission.emplace_back(entry->second); in GetReqPermission() 65 auto entry = permissions_.find(item); in GetReqPermission() local 66 if (entry != permissions_.end()) { in GetReqPermission() 67 EdmPermission edmPermission(entry->second.permissionName, entry->second.adminType); in GetReqPermission()
|
D | plugin_manager.cpp | 41 for (auto entry : pluginsCode_) { in ~PluginManager() local 42 entry.second.reset(); in ~PluginManager() 43 entry.second = nullptr; in ~PluginManager() 119 struct dirent *entry; in LoadPlugin() local 120 while ((entry = readdir(dir)) != nullptr) { in LoadPlugin() 121 …if (entry->d_type == DT_REG && strcmp(entry->d_name, ".") != 0 && strcmp(entry->d_name, "..") != 0… in LoadPlugin() 122 LoadPlugin(pluginDir + entry->d_name); in LoadPlugin()
|
/base/security/device_auth/services/group_manager/src/callback_manager/ |
D | callback_manager.c | 38 CallbackEntry *entry = NULL; in UpdateCallbackIfExist() local 40 FOR_EACH_HC_VECTOR(g_callbackVec, index, entry) { in UpdateCallbackIfExist() 41 if ((entry != NULL) && (strcmp(entry->appId, appId) == 0)) { in UpdateCallbackIfExist() 42 if (memcpy_s(entry->callback, sizeof(DeviceAuthCallback), in UpdateCallbackIfExist() 81 CallbackEntry entry; in AddCallbackIfNotExist() local 82 entry.appId = copyAppId; in AddCallbackIfNotExist() 83 entry.callback = copyCallback; in AddCallbackIfNotExist() 85 if (g_callbackVec.pushBack(&g_callbackVec, &entry) == NULL) { in AddCallbackIfNotExist() 161 CallbackEntry *entry = NULL; in GetGMCallbackByAppId() local 163 FOR_EACH_HC_VECTOR(g_callbackVec, index, entry) { in GetGMCallbackByAppId() [all …]
|
/base/hiviewdfx/hiview/service/ |
D | hiview_service.cpp | 80 for (auto const &entry : curPluginMap) { in DumpPluginInfo() local 81 auto const &pluginPtr = entry.second; in DumpPluginInfo() 119 for (auto const &entry : curPluginMap) { in DumpLoadedPluginInfo() local 120 auto const &pluginName = entry.first; in DumpLoadedPluginInfo() 121 if (entry.second != nullptr) { in DumpLoadedPluginInfo() 124 (entry.second->GetType() == Plugin::PluginType::DYNAMIC) ? "True" : "False"); in DumpLoadedPluginInfo() 125 dprintf(fd, "Version:%s ", (entry.second->GetVersion().c_str())); in DumpLoadedPluginInfo() 128 …((entry.second->GetWorkLoop() == nullptr) ? "Null" : entry.second->GetWorkLoop()->GetName().c_str(… in DumpLoadedPluginInfo() 138 for (auto const &entry : curPluginMap) { in DumpPluginUsageInfo() local 139 auto pluginName = entry.first; in DumpPluginUsageInfo() [all …]
|
/base/hiviewdfx/hiview/adapter/dbstore/ |
D | doc_store.cpp | 47 void DoCallBack(int id, const Entry& entry) in DoCallBack() argument 49 if (callback_(id, entry) != 0) { in DoCallBack() 69 int DocStore::Put(const Entry &entry, const char* coll) in Put() argument 78 rc = jbl_from_json(&jbl, entry.value.c_str()); in Put() 81 rc = ejdb_put_new(dbPtr->db_, coll, jbl, const_cast<int64_t*>(&entry.id)); in Put() 101 for (auto entry = entries.begin(); entry != entries.end(); entry++) { in PutBatch() local 102 Put(*entry); in PutBatch() 107 int DocStore::Merge(const Entry &entry, const char* coll) in Merge() argument 110 if (entry.id <= 0) { in Merge() 115 if (entry.value.empty()) { in Merge() [all …]
|
/base/powermgr/powermgr_lite/frameworks/src/mini/ |
D | power_manage.c | 57 void InitIdentity(RunningLockEntry *entry) in InitIdentity() argument 59 if (entry == NULL) { in InitIdentity() 62 entry->identity.pid = 0; in InitIdentity() 63 entry->identity.token = (uint64_t)(uintptr_t)entry; in InitIdentity() 66 BOOL AcquireRunningLockEntry(RunningLockEntry *entry, int32_t timeoutMs) in AcquireRunningLockEntry() argument 71 ret = intf->AcquireRunningLockEntryFunc((IUnknown *)intf, entry, timeoutMs); in AcquireRunningLockEntry() 76 BOOL ReleaseRunningLockEntry(RunningLockEntry *entry) in ReleaseRunningLockEntry() argument 81 ret = intf->ReleaseRunningLockEntryFunc((IUnknown *)intf, entry); in ReleaseRunningLockEntry()
|
/base/inputmethod/imf/interfaces/kits/js/napi/inputmethodability/ |
D | js_keyboard_delegate_setting.cpp | 361 uv_work_t *work = GetUVwork(type, [¶, isDone](UvEntry &entry) { in OnKeyEvent() argument 362 entry.keyEventPara = { para.keyCode, para.keyStatus, para.isOnKeyEvent }; in OnKeyEvent() 363 entry.isDone = isDone; in OnKeyEvent() 372 … std::shared_ptr<UvEntry> entry(static_cast<UvEntry *>(work->data), [work](UvEntry *data) { in OnKeyEvent() local 376 auto getKeyEventProperty = [entry](napi_value *args, uint8_t argc, in OnKeyEvent() 382 … GetResultOnKeyEvent(item->env_, entry->keyEventPara.keyCode, entry->keyEventPara.keyStatus); in OnKeyEvent() 390 … bool isOnKeyEvent = JsUtils::TraverseCallback(entry->vecCopy, ARGC_ONE, getKeyEventProperty); in OnKeyEvent() 391 entry->isDone->SetValue(isOnKeyEvent); in OnKeyEvent() 401 uv_work_t *work = GetUVwork(type, [¶](UvEntry &entry) { in OnCursorUpdate() argument 402 entry.curPara.positionX = para.positionX; in OnCursorUpdate() [all …]
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_pkgfile.cpp | 31 auto entry = iter->second; in ~PkgFile() local 32 delete entry; in ~PkgFile() 44 PkgEntryPtr entry = nullptr; in AddPkgEntry() local 47 entry = new UpgradeFileEntry(this, nodeId); in AddPkgEntry() 50 entry = new ZipFileEntry(this, nodeId); in AddPkgEntry() 53 entry = new Lz4FileEntry(this, nodeId); in AddPkgEntry() 57 entry = new GZipFileEntry(this, nodeId); in AddPkgEntry() 63 pkgEntryMapId_.insert(std::pair<uint32_t, PkgEntryPtr>(nodeId, entry)); in AddPkgEntry() 64 pkgEntryMapFileName_.insert(std::pair<std::string, PkgEntryPtr>(fileName, entry)); in AddPkgEntry() 65 return entry; in AddPkgEntry() [all …]
|
/base/hiviewdfx/hiappevent/frameworks/native/ndk/ |
D | hiappevent_ndk.c | 69 ParamEntry* entry = NEW(ParamEntry); in CreateParamEntry() local 70 if (entry != NULL) { in CreateParamEntry() 71 entry->name = name; in CreateParamEntry() 72 entry->value = value; in CreateParamEntry() 74 return entry; in CreateParamEntry() 81 list->entry = NULL; in OH_HiAppEvent_CreateParamList() 94 void DestroyParamEntry(ParamEntry* entry) in DestroyParamEntry() argument 96 if (entry != NULL) { in DestroyParamEntry() 97 DestroyParamValue(entry->value); in DestroyParamEntry() 98 free(entry); in DestroyParamEntry() [all …]
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
D | event_db_helper.cpp | 123 Entry entry; in InsertDb() local 124 entry.id = 0; in InsertDb() 125 entry.value = jsonStr; in InsertDb() 126 if (docStore->Put(entry, coll.c_str()) != 0) { in InsertDb() 130 return entry.id; in InsertDb() 155 for (auto entry : entries) { in QueryPluginStatsEvent() local 156 res = entry.id; in QueryPluginStatsEvent() 158 if (!JsonParser::ParsePluginStatsEvent(event, entry.value)) { in QueryPluginStatsEvent() 159 HIVIEW_LOGE("failed to parse the database records=%{public}s", entry.value.c_str()); in QueryPluginStatsEvent() 177 for (auto entry : entries) { in QuerySysUsageEvent() local [all …]
|
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/ |
D | identical_account_group.c | 211 static int32_t GenerateDelTokenParams(const TrustedDeviceEntry *entry, CJson *delParams) in GenerateDelTokenParams() argument 213 if (AddIntToJson(delParams, FIELD_CREDENTIAL_TYPE, (int32_t)entry->credential) != HC_SUCCESS) { in GenerateDelTokenParams() 217 if (AddStringToJson(delParams, FIELD_USER_ID, StringGet(&entry->userId)) != HC_SUCCESS) { in GenerateDelTokenParams() 221 if (AddStringToJson(delParams, FIELD_DEVICE_ID, StringGet(&entry->authId)) != HC_SUCCESS) { in GenerateDelTokenParams() 228 static int32_t DelDeviceToken(int32_t osAccountId, const TrustedDeviceEntry *entry, bool isLocalDev) in DelDeviceToken() argument 235 int32_t res = GenerateDelTokenParams(entry, delParams); in DelDeviceToken() 250 TrustedDeviceEntry **entry = NULL; in DelAllTokens() local 251 FOR_EACH_HC_VECTOR(*vec, index, entry) { in DelAllTokens() 252 if ((entry == NULL) || (*entry == NULL)) { in DelAllTokens() 255 if (IsLocalDevice(StringGet(&(*entry)->udid))) { in DelAllTokens() [all …]
|
/base/powermgr/powermgr_lite/frameworks/include/ |
D | running_lock_framework.h | 27 void InitIdentity(RunningLockEntry *entry); 28 BOOL AcquireRunningLockEntry(RunningLockEntry *entry, int32_t timeoutMs); 29 BOOL ReleaseRunningLockEntry(RunningLockEntry *entry);
|
D | running_lock_entry.h | 47 static inline BOOL IsValidRunningLockEntry(RunningLockEntry *entry) in IsValidRunningLockEntry() argument 49 …return (entry != NULL) && ((entry->lock.type >= 0) && (entry->lock.type < RUNNINGLOCK_BUTT)) ? TRU… in IsValidRunningLockEntry()
|
/base/security/crypto_framework/test/fuzztest/certificate/x509crl_fuzzer/ |
D | x509crl_fuzzer.cpp | 199 HcfX509CrlEntry *entry = nullptr; in TestX509CrlEntry() local 200 x509CrlDer->getRevokedCert(x509CrlDer, serialNumber, &entry); in TestX509CrlEntry() 201 if (entry != nullptr) { in TestX509CrlEntry() 203 entry->getEncoded(entry, &entryEncoded); in TestX509CrlEntry() 208 entry->getCertIssuer(entry, &certIssuer); in TestX509CrlEntry() 213 entry->getRevocationDate(entry, &revocationDate); in TestX509CrlEntry() 217 entry->getSerialNumber(entry); in TestX509CrlEntry() 218 HcfObjDestroy(entry); in TestX509CrlEntry() 221 entry = nullptr; in TestX509CrlEntry() 223 x509CrlDer->getRevokedCert(x509CrlDer, *serialNumberPtr, &entry); in TestX509CrlEntry() [all …]
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
D | mock_single_kv_store.cpp | 52 Entry entry; in InsertDataToDoCallback() local 53 entry.key = key; in InsertDataToDoCallback() 54 entry.value = value; in InsertDataToDoCallback() 58 insertEntries.push_back(entry); in InsertDataToDoCallback() 69 Entry entry; in UpdateDataToDoCallback() local 70 entry.key = key; in UpdateDataToDoCallback() 71 entry.value = value; in UpdateDataToDoCallback() 75 updateEntries.push_back(entry); in UpdateDataToDoCallback() 88 Entry entry; in DeleteDataToDoCallback() local 89 entry.key = key; in DeleteDataToDoCallback() [all …]
|