Home
last modified time | relevance | path

Searched refs:entry (Results 1 – 25 of 132) sorted by relevance

123456

/base/hiviewdfx/hilog/services/hilogd/
Dlog_stats.cpp40 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/
Drunning_lock.c81 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_manager/src/broadcast_manager/
Dbroadcast_manager.c69 ListenerEntry *entry = NULL; in PostOnGroupCreated() local
71 FOR_EACH_HC_VECTOR(g_listenerEntryVec, index, entry) { in PostOnGroupCreated()
72 if (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->listener->onGroupDeleted != NULL) { in PostOnGroupDeleted()
96 LOGI("[Broadcaster]: PostOnGroupDeleted! [AppId]: %s", entry->appId); in PostOnGroupDeleted()
97 entry->listener->onGroupDeleted(messageStr); in PostOnGroupDeleted()
[all …]
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_data_operation.c26 static bool GaDeepCopyDeviceEntry(const TrustedDeviceEntry *entry, TrustedDeviceEntry *returnEntry) in GaDeepCopyDeviceEntry() argument
29 if (!StringSet(&returnEntry->groupId, entry->groupId)) { in GaDeepCopyDeviceEntry()
33 if (!StringSet(&returnEntry->udid, entry->udid)) { in GaDeepCopyDeviceEntry()
37 if (!StringSet(&returnEntry->authId, entry->authId)) { in GaDeepCopyDeviceEntry()
41 if (!StringSet(&returnEntry->serviceType, entry->serviceType)) { in GaDeepCopyDeviceEntry()
45 if (!StringSet(&returnEntry->userId, entry->userId)) { in GaDeepCopyDeviceEntry()
49 returnEntry->credential = entry->credential; in GaDeepCopyDeviceEntry()
50 returnEntry->devType = entry->devType; in GaDeepCopyDeviceEntry()
51 returnEntry->lastTm = entry->lastTm; in GaDeepCopyDeviceEntry()
52 returnEntry->source = entry->source; in GaDeepCopyDeviceEntry()
[all …]
/base/powermgr/powermgr_lite/services/src/
Drunning_lock_mgr.c35 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/
Ddata_manager.c221 bool GenerateGroupEntryFromEntry(const TrustedGroupEntry *entry, TrustedGroupEntry *returnEntry) in GenerateGroupEntryFromEntry() argument
223 if (HC_VECTOR_SIZE(&entry->managers) <= 0) { in GenerateGroupEntryFromEntry()
227 HcString entryOwner = HC_VECTOR_GET(&entry->managers, 0); in GenerateGroupEntryFromEntry()
228 if (!StringSet(&returnEntry->name, entry->name)) { in GenerateGroupEntryFromEntry()
232 if (!StringSet(&returnEntry->id, entry->id)) { in GenerateGroupEntryFromEntry()
236 if (!StringSet(&returnEntry->userId, entry->userId)) { in GenerateGroupEntryFromEntry()
240 if (!StringSet(&returnEntry->sharedUserId, entry->sharedUserId)) { in GenerateGroupEntryFromEntry()
244 returnEntry->type = entry->type; in GenerateGroupEntryFromEntry()
245 returnEntry->visibility = entry->visibility; in GenerateGroupEntryFromEntry()
246 returnEntry->expireTime = entry->expireTime; in GenerateGroupEntryFromEntry()
[all …]
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Daccount_related_group_auth_dir_test.cpp282 TrustedGroupEntry *entry = CreateGroupEntry(); variable
283 if (entry == nullptr) {
288 DestroyGroupEntry(entry);
293 DestroyGroupEntry(entry);
298 …(void)GetAccountRelatedGroupAuth()->fillDeviceAuthInfo(0, entry, localAuthInfo, paramsData); // Fo…
302 DestroyGroupEntry(entry);
309 TrustedGroupEntry *entry = CreateGroupEntry(); variable
310 if (entry == nullptr) {
315 DestroyGroupEntry(entry);
320 DestroyGroupEntry(entry);
[all …]
/base/powermgr/powermgr_lite/frameworks/src/small/
Dpower_manage.c40 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 …]
Dpower_screen_saver.c52 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/startup/init/services/param/base/
Dparam_base.h46 static inline uint32_t ReadCommitId(ParamNode *entry) in ReadCommitId() argument
48 uint32_t commitId = ATOMIC_LOAD_EXPLICIT(&entry->commitId, MEMORY_ORDER_ACQUIRE); in ReadCommitId()
50 futex_wait(&entry->commitId, commitId); in ReadCommitId()
51 commitId = ATOMIC_LOAD_EXPLICIT(&entry->commitId, MEMORY_ORDER_ACQUIRE); in ReadCommitId()
56 static inline int ReadParamValue_(ParamNode *entry, uint32_t *commitId, char *value, uint32_t *leng… in ReadParamValue_() argument
61 … int ret = PARAM_MEMCPY(value, *length, entry->data + entry->keyLength + 1, entry->valueLength); in ReadParamValue_()
63 value[entry->valueLength] = '\0'; in ReadParamValue_()
64 *length = entry->valueLength; in ReadParamValue_()
65 id = ReadCommitId(entry); in ReadParamValue_()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dnotification_preferences_database_test.cpp472 std::pair<std::string, std::string> entry; variable
473 entry.first = "ans_bundle_bundleKey_name";
474 entry.second = "1";
476 preferncesDB_->ParseBundlePropertyFromDisturbeDB(bundleInfo, bundleKey, entry);
489 std::pair<std::string, std::string> entry; variable
490 entry.first = "ans_bundle_bundleKey_importance";
491 entry.second = "1";
493 preferncesDB_->ParseBundlePropertyFromDisturbeDB(bundleInfo, bundleKey, entry);
506 std::pair<std::string, std::string> entry; variable
507 entry.first = "ans_bundle_bundleKey_showBadge";
[all …]
/base/notification/distributed_notification_service/services/distributed/src/
Ddistributed_database_callback.cpp35 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/
Dpermission_manager.cpp39 auto entry = permissions_.find(permission); in AddPermission() local
40 if (entry == permissions_.end()) { in AddPermission()
45 } else if (entry->second.adminType != static_cast<AdminType>(permissionType)) { in AddPermission()
64 auto entry = permissions_.find(item); in GetReqPermission() local
65 if (entry != permissions_.end()) { in GetReqPermission()
66 reqPermission.emplace_back(entry->second); in GetReqPermission()
76 auto entry = permissions_.find(item); in GetReqPermission() local
77 if (entry != permissions_.end()) { in GetReqPermission()
78 EdmPermission edmPermission(entry->second.permissionName, entry->second.adminType); in GetReqPermission()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
Djs_keyboard_delegate_setting.cpp292 uv_work_t *work = GetUVwork(type, [keyEvent, isDone](UvEntry &entry) { in OnKeyEvent() argument
293 entry.pullKeyEventPara = keyEvent; in OnKeyEvent()
294 entry.isDone = isDone; in OnKeyEvent()
305 … std::shared_ptr<UvEntry> entry(static_cast<UvEntry *>(work->data), [work](UvEntry *data) { in OnKeyEvent() local
309 … auto getKeyEventProperty = [entry](napi_env env, napi_value *args, uint8_t argc) -> bool { in OnKeyEvent()
317 … result = MMI::KeyEventNapi::CreateKeyEvent(env, entry->pullKeyEventPara, keyEventObject); in OnKeyEvent()
325 JsCallbackHandler::Traverse(entry->vecCopy, { 1, getKeyEventProperty }, isConsumed); in OnKeyEvent()
326 entry->isDone->SetValue(isConsumed); in OnKeyEvent()
341 uv_work_t *work = GetUVwork(type, [&para, isDone](UvEntry &entry) { in OnKeyEvent() argument
342 entry.keyEventPara = { para.keyCode, para.keyStatus, para.isOnKeyEvent }; in OnKeyEvent()
[all …]
/base/security/device_auth/services/group_manager/src/callback_manager/
Dcallback_manager.c38 CallbackEntry *entry = NULL; in UpdateCallbackIfExist() local
40 FOR_EACH_HC_VECTOR(g_callbackVec, index, entry) { in UpdateCallbackIfExist()
41 if (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/powermgr/powermgr_lite/frameworks/src/mini/
Dpower_manage.c57 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/update/updater/services/package/pkg_package/
Dpkg_pkgfile.cpp32 auto entry = iter->second; in ~PkgFileImpl() local
33 delete entry; in ~PkgFileImpl()
45 PkgEntryPtr entry = nullptr; in AddPkgEntry() local
48 entry = new UpgradeFileEntry(this, nodeId); in AddPkgEntry()
51 entry = new ZipFileEntry(this, nodeId); in AddPkgEntry()
54 entry = new Lz4FileEntry(this, nodeId); in AddPkgEntry()
58 entry = new GZipFileEntry(this, nodeId); in AddPkgEntry()
64 pkgEntryMapId_.insert(std::pair<uint32_t, PkgEntryPtr>(nodeId, entry)); in AddPkgEntry()
65 pkgEntryMapFileName_.insert(std::pair<std::string, PkgEntryPtr>(fileName, entry)); in AddPkgEntry()
66 return entry; in AddPkgEntry()
[all …]
/base/hiviewdfx/hiview/service/
Dhiview_service.cpp82 for (auto const &entry : curPluginMap) { in DumpPluginInfo() local
83 auto const &pluginPtr = entry.second; in DumpPluginInfo()
121 for (auto const &entry : curPluginMap) { in DumpLoadedPluginInfo() local
122 auto const &pluginName = entry.first; in DumpLoadedPluginInfo()
123 if (entry.second != nullptr) { in DumpLoadedPluginInfo()
126 (entry.second->GetType() == Plugin::PluginType::DYNAMIC) ? "True" : "False"); in DumpLoadedPluginInfo()
127 dprintf(fd, "Version:%s ", (entry.second->GetVersion().c_str())); in DumpLoadedPluginInfo()
130 …((entry.second->GetWorkLoop() == nullptr) ? "Null" : entry.second->GetWorkLoop()->GetName().c_str(… in DumpLoadedPluginInfo()
140 for (auto const &entry : curPluginMap) { in DumpPluginUsageInfo() local
141 auto pluginName = entry.first; in DumpPluginUsageInfo()
[all …]
/base/hiviewdfx/hiappevent/frameworks/native/ndk/
Dhiappevent_ndk.c69 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/startup/init/services/param/manager/
Dparam_manager.c74 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, current->dataIndex); in ProcessParamTraversal() local
75 if (entry == NULL) { in ProcessParamTraversal()
78 …if ((strcmp("#", context->prefix) != 0) && (strncmp(entry->data, context->prefix, strlen(context->… in ProcessParamTraversal()
138 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, current->dataIndex); in DumpTrieDataNodeTraversal() local
139 if (entry != NULL) { in DumpTrieDataNodeTraversal()
141 entry->commitId, entry->keyLength, entry->valueLength, entry->data); in DumpTrieDataNodeTraversal()
400 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, node->dataIndex); in AddParam() local
401 if (entry == NULL) { in AddParam()
423 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, *dataIndex); in UpdateParam() local
424 …PARAM_CHECK(entry != NULL, return PARAM_CODE_REACHED_MAX, "Failed to update param value %s %u", na… in UpdateParam()
[all …]
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
Djs_get_input_method_controller.cpp695 uv_work_t *work = GetUVwork("selectByRange", [start, end](UvEntry &entry) { in OnSelectByRange() argument
696 entry.start = start; in OnSelectByRange()
697 entry.end = end; in OnSelectByRange()
706 … std::shared_ptr<UvEntry> entry(static_cast<UvEntry *>(work->data), [work](UvEntry *data) { in OnSelectByRange() local
710 if (entry == nullptr) { in OnSelectByRange()
714 auto getProperty = [entry](napi_env env, napi_value *args, uint8_t argc) -> bool { in OnSelectByRange()
718 napi_value range = CreateSelectRange(env, entry->start, entry->end); in OnSelectByRange()
728 JsCallbackHandler::Traverse(entry->vecCopy, { 1, getProperty }); in OnSelectByRange()
737 uv_work_t *work = GetUVwork(type, [direction](UvEntry &entry) { entry.direction = direction; }); in OnSelectByMovement() argument
745 … std::shared_ptr<UvEntry> entry(static_cast<UvEntry *>(work->data), [work](UvEntry *data) { in OnSelectByMovement() local
[all …]
/base/startup/init/test/unittest/param/
Datomic_unittest.cpp70 static inline uint32_t TestReadCommitId(AtomicTestData *entry) in TestReadCommitId() argument
72 uint32_t commitId = ATOMIC_LOAD_EXPLICIT(&entry->commitId, MEMORY_ORDER_ACQUIRE); in TestReadCommitId()
74 futex_wait(&entry->commitId, commitId); in TestReadCommitId()
75 commitId = ATOMIC_LOAD_EXPLICIT(&entry->commitId, MEMORY_ORDER_ACQUIRE); in TestReadCommitId()
80 static inline int TestReadParamValue(AtomicTestData *entry, uint32_t *commitId) in TestReadParamValue() argument
86 data = entry->data; in TestReadParamValue()
87 id = TestReadCommitId(entry); in TestReadParamValue()
/base/powermgr/powermgr_lite/frameworks/include/
Drunning_lock_framework.h27 void InitIdentity(RunningLockEntry *entry);
28 BOOL AcquireRunningLockEntry(RunningLockEntry *entry, int32_t timeoutMs);
29 BOOL ReleaseRunningLockEntry(RunningLockEntry *entry);
Drunning_lock_entry.h47 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/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_single_kv_store.cpp52 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 …]

123456