/base/startup/init/services/param/manager/ |
H A D | param_persist.c | 40 PARAM_WORKSPACE_CHECK(paramSpace, return 0, "Invalid space");
in GetPersistCommitId() 41 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC);
in GetPersistCommitId() local 42 if (space == NULL) {
in GetPersistCommitId() 45 PARAMSPACE_AREA_RD_LOCK(space);
in GetPersistCommitId() 46 long long globalCommitId = ATOMIC_UINT64_LOAD_EXPLICIT(&space->area->commitPersistId, MEMORY_ORDER_ACQUIRE);
in GetPersistCommitId() 47 PARAMSPACE_AREA_RW_UNLOCK(space);
in GetPersistCommitId() 55 PARAM_WORKSPACE_CHECK(paramSpace, return, "Invalid space");
in UpdatePersistCommitId() 56 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC);
in UpdatePersistCommitId() local 57 if (space == NULL) {
in UpdatePersistCommitId() 60 PARAMSPACE_AREA_RW_LOCK(space);
in UpdatePersistCommitId() [all...] |
H A D | param_manager.c | 36 PARAM_WORKSPACE_CHECK(paramSpace, return NULL, "Invalid space");
in SystemCheckMatchParamWait() 90 PARAM_WORKSPACE_CHECK(paramSpace, return -1, "Invalid space");
in SystemTraversalParameter() 164 PARAM_DUMP(" space index : %d \n", workSpace->spaceIndex);
in HashNodeTraverseForDump() 165 PARAM_DUMP(" space size : %d \n", workSpace->spaceSize);
in HashNodeTraverseForDump() 193 PARAM_WORKSPACE_CHECK(paramSpace, return, "Invalid space");
in SystemDumpParameters() 243 PARAM_WORKSPACE_CHECK(paramSpace, return -1, "Invalid space");
in SysCheckParamExist() 254 PARAM_LOGV("SysCheckParamExist name %s in space %s", name, workSpace->fileName);
in SysCheckParamExist() 272 PARAM_WORKSPACE_CHECK(paramSpace, return -1, "Invalid space");
in GetParamSecurityAuditData() 275 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC);
in GetParamSecurityAuditData() local 276 PARAM_CHECK(space ! in GetParamSecurityAuditData() 437 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); AddParam() local 470 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); UpdateParam() local 551 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); GetParamValueType() local [all...] |
/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | number_data.cpp | 152 int space = 0; // 0 = 0020, 1 = c2a0
in ParsePercentPattern() local 160 space = 1;
in ParsePercentPattern() 168 space = 1;
in ParsePercentPattern() 171 ParseOtherPerPattern(pattern, len, perSignPos, space, hasSpace);
in ParsePercentPattern() 189 const int space, const int hasSpace)
in ParseOtherPerPattern() 199 if ((hasSpace > 0) && (space == 0)) {
in ParseOtherPerPattern() 201 } else if ((hasSpace > 0) && (space == 1)) {
in ParseOtherPerPattern() 209 if ((hasSpace > 0) && (space == 0)) {
in ParseOtherPerPattern() 211 } else if ((hasSpace > 0) && (space == 1)) {
in ParseOtherPerPattern() 188 ParseOtherPerPattern(const char *pattern, const int len, const int perSignPos, const int space, const int hasSpace) ParseOtherPerPattern() argument
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
H A D | smaps_memory_info.cpp | 98 string space = " "; in InsertSmapsTitle() local 99 StringUtils::GetInstance().SetWidth(LINE_WIDTH, BLANK, true, space); in InsertSmapsTitle() 100 line1.push_back(space); in InsertSmapsTitle() 123 string space = " "; in BuildSmapsInfo() local 124 StringUtils::GetInstance().SetWidth(LINE_WIDTH, BLANK, false, space); in BuildSmapsInfo() 125 value = space + value; in BuildSmapsInfo() 159 string space = " "; in BuildSmapsResult() local 160 StringUtils::GetInstance().SetWidth(LINE_START_VAL_WIDTH, BLANK, false, space); in BuildSmapsResult() 161 value = space + value; in BuildSmapsResult()
|
H A D | memory_util.cpp | 200 string space = " "; in SetMemTotalValue() local 201 StringUtils::GetInstance().SetWidth(LINE_WIDTH_, BLANK_, false, space); in SetMemTotalValue()
|
H A D | memory_info.cpp | 103 string space = " "; in insertMemoryTitle() local 104 StringUtils::GetInstance().SetWidth(LINE_WIDTH_, BLANK_, false, space); in insertMemoryTitle() 113 line1.push_back(space); in insertMemoryTitle() 114 line2.push_back(space); in insertMemoryTitle() 115 line3.push_back(space); in insertMemoryTitle() 116 line4.push_back(space); in insertMemoryTitle()
|
/base/msdp/device_status/utils/common/src/ |
H A D | util.cpp | 159 char space[1024] { 0 }; in StringPrintf() 164 int32_t ret = vsnprintf_s(space, sizeof(space), sizeof(space) - 1, format, ap); in StringPrintf() 165 if (ret >= RET_OK && static_cast<size_t>(ret) < sizeof(space)) { in StringPrintf() 166 result = space; in StringPrintf()
|
/base/startup/init/services/param/adapter/ |
H A D | param_selinux.c | 196 WorkSpace *space = paramWorkspace->workSpace[WORKSPACE_INDEX_DAC];
in HandleSelinuxLabelForPermission() local 197 PARAM_CHECK(space != NULL && space->area != NULL, return, "Failed to get dac space %s", paramNode->paraName);
in HandleSelinuxLabelForPermission() 199 (void)FindTrieNode(space, paramNode->paraName, strlen(paramNode->paraName), &index);
in HandleSelinuxLabelForPermission() 200 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, index);
in HandleSelinuxLabelForPermission()
|
/base/global/i18n/frameworks/intl/entity_recognition/phone_number_recognition/src/ |
H A D | phone_number_matched.cpp | 189 UChar32 space = ' '; in AddPhoneNumber() local 192 if ((uNumber.indexOf(space) == -1 && uNumber.indexOf(slash) == -1) || in AddPhoneNumber() 230 UChar32 space = ' '; in FindNumbers() local 232 if (uNumber.indexOf(space, searchStart) == -1 && uNumber.indexOf(slash, searchStart) == -1) { in FindNumbers() 235 while (uNumber.indexOf(space, searchStart) != -1 || uNumber.indexOf(slash, searchStart) != -1) { in FindNumbers() 237 int indexSpace = uNumber.indexOf(space, searchStart); in FindNumbers()
|
/base/startup/init/test/unittest/param/ |
H A D | param_unittest.cpp | 465 WorkSpace *space = GetWorkSpace(GetWorkSpaceIndex("test.workspace.1")); in HWTEST_F() local 466 EXPECT_NE(space, nullptr); in HWTEST_F() 556 WorkSpace *space = GetWorkSpaceByName("test.workspace.1"); in HWTEST_F() local 557 ASSERT_NE(space, nullptr); in HWTEST_F() 560 node = FindTrieNode(space, nullptr, 0, nullptr); in HWTEST_F() 562 node = FindTrieNode(space, "111111", 0, nullptr); in HWTEST_F() 564 node = FindTrieNode(space, "find.test.111111", strlen("find.test.111111"), nullptr); in HWTEST_F()
|
/base/startup/init/services/param/base/ |
H A D | param_base.c | 205 // alloc space size memory from dac
in InitParamWorkSpace() 207 PARAM_CHECK(ret == 0, return -1, "Failed to alloc space size");
in InitParamWorkSpace() 325 WorkSpace **space = (WorkSpace **)calloc(sizeof(WorkSpace *),
in CheckAndExtendSpace() local 327 PARAM_CHECK(space != NULL, return -1, "Failed to realloc memory for %s", name);
in CheckAndExtendSpace() 328 int ret = PARAM_MEMCPY(space, sizeof(WorkSpace *) * paramSpace->maxSpaceCount,
in CheckAndExtendSpace() 330 PARAM_CHECK(ret == 0, free(space);
in CheckAndExtendSpace() 334 paramSpace->workSpace = space;
in CheckAndExtendSpace() 406 static int CheckUserInGroup(WorkSpace *space, const ParamSecurityNode *node, uid_t uid)
451 WorkSpace *space = g_paramWorkSpace.workSpace[WORKSPACE_INDEX_DAC];
452 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, labelInde [all...] |
H A D | param_trie.c | 75 "Failed to allocate currOffset %d, dataSize %d space %s",
in AllocateParamTrieNode() 155 "Failed to allocate key '%s' in space '%s'", key, workSpace->fileName);
in AddToSubTrie() 164 "Failed to allocate key '%s' in space '%s'", key, workSpace->fileName);
in AddToSubTrie() 192 "Failed to allocate key '%s' in space '%s'", key, workSpace->fileName);
in AddTrieNode() 350 WorkSpace *space = GetWorkSpace(index);
in GetParamNode() local 351 ParamTrieNode *entry = FindTrieNode(space, name, strlen(name), &labelIndex);
in GetParamNode() 355 return (ParamNode *)GetTrieNode(space, entry->dataIndex);
in GetParamNode()
|
/base/startup/init/services/param/include/ |
H A D | param_manager.h | 65 #define PARAM_WORKSPACE_CHECK(space, exper, ...) \
66 if (((*space).flags & WORKSPACE_FLAGS_INIT) != WORKSPACE_FLAGS_INIT) { \
|
/base/global/i18n_lite/frameworks/i18n/include/ |
H A D | number_data.h | 84 const int space, const int hasSpace);
|
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | sample_stack_printer.cpp | 175 std::string space(indent * back->level, ' ');
in Print() 178 ret << space << back->count << " " << DfxFrameFormatter::GetFrameStr(back->current);
in Print()
|
/base/startup/init/services/param/trigger/ |
H A D | trigger_manager.c | 412 PARAM_CHECK(workSpace != NULL, return -1, "Invalid space");
in CheckBootMatch_() 420 PARAM_CHECK(workSpace != NULL, return -1, "Invalid space");
in CheckParamMatch_() 757 TriggerWorkSpace *space = GetTriggerWorkSpace();
in GetTriggerCache() local 758 if (space == NULL) {
in GetTriggerCache() 762 *size = sizeof(space->cache) / sizeof(space->cache[0]);
in GetTriggerCache() 764 return space->cache;
in GetTriggerCache()
|