/base/global/i18n/frameworks/intl/src/ |
D | i18n_break_iterator.cpp | 27 iter = icu::BreakIterator::createLineInstance(localeTag.c_str(), status); in I18nBreakIterator() 29 if (iter != nullptr) { in I18nBreakIterator() 30 delete iter; in I18nBreakIterator() 32 iter = nullptr; in I18nBreakIterator() 38 if (iter != nullptr) { in ~I18nBreakIterator() 39 delete iter; in ~I18nBreakIterator() 45 if (iter != nullptr) { in Current() 46 return iter->current(); in Current() 53 if (iter != nullptr) { in First() 54 return iter->first(); in First() [all …]
|
/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
D | app_state_observer.cpp | 38 for (auto iter = foregrandProcList_.begin(); iter != foregrandProcList_.end(); ++iter) { in IsProcessForeground() local 39 if (pid == iter->pid) { in IsProcessForeground() 43 if ((iter->pid == -1) && (uid == iter->uid)) { in IsProcessForeground() 44 iter->pid = pid; in IsProcessForeground() 54 for (auto iter = foregrandProcList_.begin(); iter != foregrandProcList_.end(); ++iter) { in AddProcessToForegroundSet() local 56 if (iter->uid == data.uid) { in AddProcessToForegroundSet() 60 } else if (pid == iter->pid) { in AddProcessToForegroundSet() 91 for (auto iter = foregrandProcList_.begin(); iter != foregrandProcList_.end(); ++iter) { in RemoveProcessFromForegroundSet() local 92 if (processData.pid == iter->pid) { in RemoveProcessFromForegroundSet() 93 foregrandProcList_.erase(iter); in RemoveProcessFromForegroundSet() [all …]
|
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
D | sandbox_json_manager.cpp | 62 for (auto iter = infoVec_.begin(); iter != infoVec_.end(); ++iter) { in HasRetentionSandboxInfo() local 63 if (iter->bundleName == bundleName && iter->userId == userId) { in HasRetentionSandboxInfo() 83 for (auto iter = infoVec_.begin(); iter != infoVec_.end(); ++iter) { in CanUninstall() local 84 if (iter->tokenId == tokenId) { in CanUninstall() 85 if (iter->docUriSet.empty()) { in CanUninstall() 97 for (auto iter = infoVec_.begin(); iter != infoVec_.end(); ++iter) { in DelSandboxInfo() local 98 if (iter->tokenId == tokenId) { in DelSandboxInfo() 99 if (iter->docUriSet.empty()) { in DelSandboxInfo() 100 infoVec_.erase(iter); in DelSandboxInfo() 179 for (auto iter = infoVec_.begin(); iter != infoVec_.end(); ++iter) { in UpdateRetentionState() local [all …]
|
D | app_state_observer.cpp | 57 for (auto iter = sandboxInfo_.begin(); iter != sandboxInfo_.end();) { in UninstallAllDlpSandboxForUser() local 58 auto& appInfo = iter->second; in UninstallAllDlpSandboxForUser() 60 ++iter; in UninstallAllDlpSandboxForUser() 67 sandboxInfo_.erase(iter++); in UninstallAllDlpSandboxForUser() 78 for (const auto& iter : userIdList_) { in UninstallAllDlpSandbox() local 79 UninstallAllDlpSandboxForUser(iter); in UninstallAllDlpSandbox() 107 auto iter = userIdList_.find(userId); in EraseUserId() local 108 if (iter != userIdList_.end()) { in EraseUserId() 127 auto iter = sandboxInfo_.find(uid); in GetSandboxInfo() local 128 if (iter != sandboxInfo_.end()) { in GetSandboxInfo() [all …]
|
D | visit_record_json_manager.cpp | 55 for (auto iter = infoList_.begin(); iter != infoList_.end(); ++iter) { in AddVisitRecord() local 56 if (iter->bundleName == bundleName && iter->userId == userId && iter->docUri == docUri) { in AddVisitRecord() 57 infoList_.erase(iter); in AddVisitRecord() 87 for (auto iter = infoList_.begin(); iter != infoList_.end();) { in GetVisitRecordList() local 88 if (iter->bundleName == bundleName && iter->userId == userId) { in GetVisitRecordList() 90 info.docUri = iter->docUri; in GetVisitRecordList() 91 info.visitTimestamp = iter->timestamp; in GetVisitRecordList() 93 iter = infoList_.erase(iter); in GetVisitRecordList() 96 ++iter; in GetVisitRecordList() 147 for (auto iter = infoList_.begin(); iter != infoList_.end(); ++iter) { in ToJson() local [all …]
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | dlp_permission_set_manager.cpp | 49 for (auto iter = dlpPermInfos.begin(); iter != dlpPermInfos.end(); iter++) { in ProcessDlpPermInfos() local 50 auto it = dlpPermissionModeMap_.find(iter->permissionName); in ProcessDlpPermInfos() 54 iter->permissionName.c_str(), iter->dlpMode); in ProcessDlpPermInfos() 57 dlpPermissionModeMap_[iter->permissionName] = iter->dlpMode; in ProcessDlpPermInfos() 76 for (auto iter = permStateList.begin(); iter != permStateList.end(); iter++) { in UpdatePermStateWithDlpInfo() local 77 if (iter->grantStatus[0] == PERMISSION_DENIED) { in UpdatePermStateWithDlpInfo() 80 int32_t dlpMode = GetPermDlpMode(iter->permissionName); in UpdatePermStateWithDlpInfo() 83 iter->grantStatus[0] = PERMISSION_DENIED; in UpdatePermStateWithDlpInfo()
|
D | permission_policy_set.cpp | 68 auto iter = std::find_if(permStateList_.begin(), permStateList_.end(), in Update() local 72 if (iter != permStateList_.end()) { in Update() 73 UpdatePermStateFull(*iter, permStateNew); in Update() 111 for (auto iter = permStateList.begin(); iter != permStateList.end(); iter++) { in MergePermissionStateFull() local 112 if (state.permissionName == iter->permissionName) { in MergePermissionStateFull() 113 iter->resDeviceID.emplace_back(state.resDeviceID[0]); in MergePermissionStateFull() 114 iter->grantStatus.emplace_back(state.grantStatus[0]); in MergePermissionStateFull() 115 iter->grantFlags.emplace_back(state.grantFlags[0]); in MergePermissionStateFull() 233 auto iter = std::find_if(permStateList_.begin(), permStateList_.end(), in UpdatePermStateList() local 237 if (iter != permStateList_.end()) { in UpdatePermStateList() [all …]
|
D | permission_grant_event.cpp | 54 for (auto iter = permGrantEventList_.begin(); iter != permGrantEventList_.end();) { in NotifyPermGrantStoreResult() local 55 if (timestamp >= iter->timeStamp) { in NotifyPermGrantStoreResult() 59 "CALLER_TOKENID", iter->tokenID, "PERMISSION_NAME", iter->permissionName); in NotifyPermGrantStoreResult() 61 iter = permGrantEventList_.erase(iter); in NotifyPermGrantStoreResult() 63 iter++; in NotifyPermGrantStoreResult()
|
/base/update/updateservice/frameworks/js/napi/base/src/ |
D | session_manager.cpp | 86 auto iter = sessions_.find(sessionId); in GetNextSessionId() local 87 if (iter == sessions_.end()) { in GetNextSessionId() 90 iter++; in GetNextSessionId() 91 if (iter == sessions_.end()) { in GetNextSessionId() 94 sessionId = iter->second->GetSessionId(); in GetNextSessionId() 109 auto iter = sessions_.find(currSessId); in ProcessUnsubscribe() local 110 if (iter == sessions_.end()) { in ProcessUnsubscribe() 115 UpdateListener *listener = static_cast<UpdateListener *>(iter->second.get()); in ProcessUnsubscribe() 137 for (auto iter = sessions_.begin(); iter != sessions_.end();) { in Unsubscribe() local 138 if (iter->second == nullptr) { in Unsubscribe() [all …]
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/src/ |
D | dlp_link_manager.cpp | 64 for (auto iter = g_DlpLinkFileNameMap_.begin(); iter != g_DlpLinkFileNameMap_.end(); iter++) { in AddDlpLinkFile() local 65 DlpLinkFile* linkFileNode = iter->second; in AddDlpLinkFile() 92 for (auto iter = g_DlpLinkFileNameMap_.begin(); iter != g_DlpLinkFileNameMap_.end(); iter++) { in StopDlpLinkFile() local 93 DlpLinkFile* node = iter->second; in StopDlpLinkFile() 117 for (auto iter = g_DlpLinkFileNameMap_.begin(); iter != g_DlpLinkFileNameMap_.end(); iter++) { in RestartDlpLinkFile() local 118 DlpLinkFile* node = iter->second; in RestartDlpLinkFile() 146 for (auto iter = g_DlpLinkFileNameMap_.begin(); iter != g_DlpLinkFileNameMap_.end(); iter++) { in ReplaceDlpLinkFile() local 147 if (dlpLinkName == iter->first) { in ReplaceDlpLinkFile() 148 DlpLinkFile *node = iter->second; in ReplaceDlpLinkFile() 170 for (auto iter = g_DlpLinkFileNameMap_.begin(); iter != g_DlpLinkFileNameMap_.end(); iter++) { in DeleteDlpLinkFile() local [all …]
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_storage_file_lock.c | 64 HksStorageFileLock *iter = g_lockListFirst; in ClearLockList() local 66 while (iter != NULL) { in ClearLockList() 67 temp = iter->next; in ClearLockList() 68 FreeFileLock(iter); in ClearLockList() 69 iter = temp; in ClearLockList() 78 HksStorageFileLock *iter = g_lockListFirst; in FindFileLock() local 79 while (iter != NULL) { in FindFileLock() 80 if (strcmp(path, iter->path) == 0) { in FindFileLock() 81 return iter; in FindFileLock() 83 iter = iter->next; in FindFileLock() [all …]
|
/base/powermgr/battery_statistics/services/native/src/entities/ |
D | user_entity.cpp | 38 auto iter = userPowerMap_.find(uidOrUserId); in GetEntityPowerMah() local 39 if (iter != userPowerMap_.end()) { in GetEntityPowerMah() 40 power = iter->second; in GetEntityPowerMah() 52 auto iter = userPowerMap_.find(userId); in AggregateUserPowerMah() local 53 if (iter != userPowerMap_.end()) { in AggregateUserPowerMah() 54 iter->second += power; in AggregateUserPowerMah() 66 for (auto& iter : userPowerMap_) { in Calculate() local 69 statsInfo->SetUserId(iter.first); in Calculate() 70 statsInfo->SetPower(iter.second); in Calculate() 78 for (auto& iter : userPowerMap_) { in Reset() local [all …]
|
D | flashlight_entity.cpp | 41 auto iter = flashlightTimerMap_.find(uid); in GetActiveTimeMs() local 42 if (iter != flashlightTimerMap_.end()) { in GetActiveTimeMs() 43 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs() 57 auto iter = flashlightPowerMap_.find(uid); in Calculate() local 58 if (iter != flashlightPowerMap_.end()) { in Calculate() 61 iter->second = flashlightOnPowerMah; in Calculate() 72 auto iter = flashlightPowerMap_.find(uidOrUserId); in GetEntityPowerMah() local 73 if (iter != flashlightPowerMap_.end()) { in GetEntityPowerMah() 74 power = iter->second; in GetEntityPowerMah() 122 for (auto& iter : flashlightPowerMap_) { in Reset() local [all …]
|
D | wakelock_entity.cpp | 41 auto iter = wakelockTimerMap_.find(uid); in GetActiveTimeMs() local 42 if (iter != wakelockTimerMap_.end()) { in GetActiveTimeMs() 43 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs() 57 auto iter = wakelockPowerMap_.find(uid); in Calculate() local 58 if (iter != wakelockPowerMap_.end()) { in Calculate() 61 iter->second = wakelockOnPowerMah; in Calculate() 72 auto iter = wakelockPowerMap_.find(uidOrUserId); in GetEntityPowerMah() local 73 if (iter != wakelockPowerMap_.end()) { in GetEntityPowerMah() 74 power = iter->second; in GetEntityPowerMah() 122 for (auto& iter : wakelockPowerMap_) { in Reset() local [all …]
|
D | gnss_entity.cpp | 41 auto iter = gnssTimerMap_.find(uid); in GetActiveTimeMs() local 42 if (iter != gnssTimerMap_.end()) { in GetActiveTimeMs() 43 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs() 56 auto iter = gnssPowerMap_.find(uid); in Calculate() local 57 if (iter != gnssPowerMap_.end()) { in Calculate() 60 iter->second = gnssOnPowerMah; in Calculate() 71 auto iter = gnssPowerMap_.find(uidOrUserId); in GetEntityPowerMah() local 72 if (iter != gnssPowerMap_.end()) { in GetEntityPowerMah() 73 power = iter->second; in GetEntityPowerMah() 121 for (auto& iter : gnssPowerMap_) { in Reset() local [all …]
|
D | audio_entity.cpp | 39 auto iter = audioTimerMap_.find(uid); in GetActiveTimeMs() local 40 if (iter != audioTimerMap_.end()) { in GetActiveTimeMs() 41 activeTimeMs = iter->second->GetRunningTimeMs(); in GetActiveTimeMs() 60 auto iter = audioPowerMap_.find(uid); in Calculate() local 61 if (iter != audioPowerMap_.end()) { in Calculate() 64 iter->second = audioOnPowerMah; in Calculate() 75 auto iter = audioPowerMap_.find(uidOrUserId); in GetEntityPowerMah() local 76 if (iter != audioPowerMap_.end()) { in GetEntityPowerMah() 77 power = iter->second; in GetEntityPowerMah() 132 for (auto& iter : audioPowerMap_) { in Reset() local [all …]
|
/base/powermgr/thermal_manager/test/unittest/src/ |
D | thermal_action_hub_test.cpp | 75 for (auto iter : actionCbMap) { in OnThermalActionChanged() local 76 if (iter.first == "cpu_big") { in OnThermalActionChanged() 77 EXPECT_EQ(iter.second, cpuBigFreq); in OnThermalActionChanged() 80 GTEST_LOG_(INFO) << "actionName: " << iter.first << " actionValue: " << iter.second; in OnThermalActionChanged() 92 for (auto iter : actionCbMap) { in OnThermalActionChanged() local 93 if (iter.first == "lcd") { in OnThermalActionChanged() 95 EXPECT_EQ(std::to_string(iter.second).substr(0, 3), lcd); in OnThermalActionChanged() 98 GTEST_LOG_(INFO) << "actionName: " << iter.first << " actionValue: " << iter.second; in OnThermalActionChanged() 112 for (auto iter : actionCbMap) { in OnThermalActionChanged() local 113 if (iter.first == "cpu_med") { in OnThermalActionChanged() [all …]
|
/base/notification/distributed_notification_service/services/ans/src/ |
D | notification_preferences_info.cpp | 93 auto iter = slots_.find(type); in GetSlot() local 94 if (iter != slots_.end()) { in GetSlot() 95 slot = iter->second; in GetSlot() 106 [&slots](std::map<NotificationConstant::SlotType, sptr<NotificationSlot>>::reference iter) { in GetAllSlots() argument 107 slots.emplace_back(iter.second); in GetAllSlots() 119 auto iter = slots_.find(type); in IsExsitSlot() local 120 return (iter != slots_.end()); in IsExsitSlot() 125 auto iter = slots_.find(type); in RemoveSlot() local 126 if (iter != slots_.end()) { in RemoveSlot() 127 slots_.erase(iter); in RemoveSlot() [all …]
|
/base/powermgr/thermal_manager/services/native/src/thermal_action/ |
D | thermal_action_manager.cpp | 43 for (auto& iter : protocolList) { in Init() local 45 std::string combinedActionName = str.append("_").append(iter.c_str()); in Init() 46 InsertActionMap(combinedActionName, iter, item->strict, item->enableEvent); in Init() 110 for (auto iter : actionValueList) { in CreateActionMockFile() local 112 … ret = snprintf_s(fileBuf, MAX_PATH, sizeof(fileBuf) - ARG_1, configDir.c_str(), iter.c_str()); in CreateActionMockFile() 119 for (auto iter : stateValueList) { in CreateActionMockFile() local 121 …= snprintf_s(stateFileBuf, MAX_PATH, sizeof(stateFileBuf) - ARG_1, stateDir.c_str(), iter.c_str()); in CreateActionMockFile() 132 for (auto iter = vActionItem_.begin(); iter != vActionItem_.end(); ++iter) { in DumpAction() local 134 result.append(iter->name); in DumpAction() 135 if (!iter->params.empty()) { in DumpAction() [all …]
|
/base/customization/enterprise_device_management/services/edm/src/ |
D | policy_manager.cpp | 40 auto iter = policyAdmins_.find(policyName); in GetAdminByPolicyName() local 41 if (iter != policyAdmins_.end()) { in GetAdminByPolicyName() 42 adminValueItems = iter->second; in GetAdminByPolicyName() 50 auto iter = adminPolicies_.find(adminName); in GetAllPolicyByAdmin() local 51 if (iter != adminPolicies_.end()) { in GetAllPolicyByAdmin() 52 allAdminPolicy = iter->second; in GetAllPolicyByAdmin() 61 auto iter = adminPolicies_.find(adminName); in GetAdminPolicy() local 62 if (iter != adminPolicies_.end()) { in GetAdminPolicy() 63 PolicyItemsMap &policyItem = iter->second; in GetAdminPolicy() 96 auto iter = policyAdmins_.find(policyName); in SetAdminList() local [all …]
|
/base/location/frameworks/js/napi/include/ |
D | callback_manager.h | 52 auto iter = callbackMap_.find(env); in DeleteCallbackByEnv() local 53 if (iter == callbackMap_.end()) { in DeleteCallbackByEnv() 56 iter->second.clear(); in DeleteCallbackByEnv() 57 callbackMap_.erase(iter); in DeleteCallbackByEnv() 64 auto iter = callbackMap_.find(env); in IsCallbackInMap() local 65 if (iter == callbackMap_.end()) { in IsCallbackInMap() 68 for (auto innerIter = iter->second.begin(); innerIter != iter->second.end(); innerIter++) { in IsCallbackInMap() 81 auto iter = callbackMap_.find(env); in AddCallback() local 82 if (iter == callbackMap_.end()) { in AddCallback() 88 iter->second.insert(std::make_pair(handlerRef, callback)); in AddCallback() [all …]
|
/base/powermgr/thermal_manager/services/native/src/thermal_policy/ |
D | thermal_policy.cpp | 101 for (auto iter = clusterLevelMap_.begin(); iter != clusterLevelMap_.end(); iter++) { in WriteLevel() local 102 levelList.push_back(iter->second); in WriteLevel() 214 for (auto iter = actionMap.begin(); iter != actionMap.end(); iter++) { in ActionExecution() local 215 iter->second->Execute(); in ActionExecution() 235 for (auto iter = clusterLevelMap_.begin(); iter != clusterLevelMap_.end(); ++iter) { in DumpLevel() local 237 result.append(iter->first); in DumpLevel() 240 result.append(std::to_string(iter->second)); in DumpLevel() 247 for (auto iter = policyActionList.begin(); iter != policyActionList.end(); ++iter) { in PrintPolicyAction() local 249 result.append(iter->actionName); in PrintPolicyAction() 252 result.append(iter->actionValue); in PrintPolicyAction() [all …]
|
/base/notification/common_event_service/services/src/ |
D | publish_manager.cpp | 38 auto iter = floodAttackAppStatistics_.find(appUid); in CheckIsFloodAttack() local 39 if (iter == floodAttackAppStatistics_.end()) { in CheckIsFloodAttack() 44 auto iterVec = iter->second.begin(); in CheckIsFloodAttack() 45 while (iterVec != iter->second.end()) { in CheckIsFloodAttack() 47 iterVec = iter->second.erase(iterVec); in CheckIsFloodAttack() 52 if (iter->second.size() + 1 > FLOOD_ATTACK_NUMBER_MAX) { in CheckIsFloodAttack() 56 iter->second.emplace_back(now); in CheckIsFloodAttack()
|
/base/security/device_auth/test/unittest/tdd_framework/tdd_helper/memory_monitor/src/ |
D | memory_monitor.cpp | 66 map<void *, MemoryBlock>::iterator iter = gMemoryMap.find(addr); in HcMonitorMalloc() local 67 if (iter != gMemoryMap.end()) { in HcMonitorMalloc() 101 map<void *, MemoryBlock>::iterator iter = gMemoryMap.find(addr); in HcMonitorFree() local 102 if (iter != gMemoryMap.end()) { in HcMonitorFree() 103 g_mallocCount -= GetRealMallocSize(iter->second.size); in HcMonitorFree() 104 gMemoryMap.erase(iter); in HcMonitorFree() 120 …for (map<void *, MemoryBlock>::iterator iter = gMemoryMap.begin(); iter != gMemoryMap.end(); ++ite… in ReportMonitor() local 123 iter->second.id, iter->second.size, iter->second.realSize, iter->second.str.c_str()); in ReportMonitor()
|
/base/update/updateservice/services/utils/src/ |
D | dupdate_net_manager.cpp | 67 for (auto iter = netChangeCallbackMap_.begin(); iter != netChangeCallbackMap_.end();) { in UnregisterCallback() local 68 if (iter->first == callbackType) { in UnregisterCallback() 69 iter = netChangeCallbackMap_.erase(iter); in UnregisterCallback() 72 iter++; in UnregisterCallback() 98 for (auto iter = netChangeCallbackMap_.begin(); iter != netChangeCallbackMap_.end();) { in OnNetChange() local 99 NetChangeCallback netChangeCallback = iter->second; in OnNetChange() 103 iter++; in OnNetChange()
|