Home
last modified time | relevance | path

Searched refs:space (Results 1 – 23 of 23) sorted by relevance

/base/startup/init/services/param/manager/
Dparam_persist.c41 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_ORDE… in GetPersistCommitId()
47 PARAMSPACE_AREA_RW_UNLOCK(space); in GetPersistCommitId()
56 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); in UpdatePersistCommitId() local
57 if (space == NULL) { in UpdatePersistCommitId()
60 PARAMSPACE_AREA_RW_LOCK(space); in UpdatePersistCommitId()
61 ATOMIC_SYNC_ADD_AND_FETCH(&space->area->commitPersistId, 1, MEMORY_ORDER_RELEASE); in UpdatePersistCommitId()
62 PARAMSPACE_AREA_RW_UNLOCK(space); in UpdatePersistCommitId()
Dparam_manager.c248 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); in GetParamSecurityAuditData() local
249 PARAM_CHECK(space != NULL, return -1, "Invalid workSpace"); in GetParamSecurityAuditData()
250 FindTrieNode(space, name, strlen(name), &labelIndex); in GetParamSecurityAuditData()
251 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, labelIndex); in GetParamSecurityAuditData()
408 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); in AddParam() local
409 if (space != NULL && space != workSpace) { // dac commit is global commit in AddParam()
410 ATOMIC_SYNC_ADD_AND_FETCH(&space->area->commitId, 1, MEMORY_ORDER_RELEASE); in AddParam()
439 WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC); in UpdateParam() local
440 if (space != NULL && space != workSpace) { // dac commit is global commit in UpdateParam()
441 ATOMIC_SYNC_ADD_AND_FETCH(&space->area->commitId, 1, MEMORY_ORDER_RELEASE); in UpdateParam()
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Dnumber_data.cpp152 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() argument
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()
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dsmaps_memory_info.cpp97 string space = " "; in InsertSmapsTitle() local
98 StringUtils::GetInstance().SetWidth(LINE_WIDTH, BLANK, true, space); in InsertSmapsTitle()
99 line1.push_back(space); in InsertSmapsTitle()
122 string space = " "; in BuildSmapsInfo() local
123 StringUtils::GetInstance().SetWidth(LINE_WIDTH, BLANK, false, space); in BuildSmapsInfo()
124 value = space + value; in BuildSmapsInfo()
154 string space = " "; in BuildSmapsResult() local
155 StringUtils::GetInstance().SetWidth(LINE_START_VAL_WIDTH, BLANK, false, space); in BuildSmapsResult()
156 value = space + value; in BuildSmapsResult()
Dmemory_util.cpp191 string space = " "; in SetMemTotalValue() local
192 StringUtils::GetInstance().SetWidth(LINE_WIDTH_, BLANK_, false, space); in SetMemTotalValue()
Dmemory_info.cpp100 string space = " "; in insertMemoryTitle() local
101 StringUtils::GetInstance().SetWidth(LINE_WIDTH_, BLANK_, false, space); in insertMemoryTitle()
110 line1.push_back(space); in insertMemoryTitle()
111 line2.push_back(space); in insertMemoryTitle()
112 line3.push_back(space); in insertMemoryTitle()
113 line4.push_back(space); in insertMemoryTitle()
/base/msdp/device_status/utils/common/src/
Dutil.cpp142 char space[1024] { 0 }; in StringPrintf() local
147 int32_t ret = vsnprintf_s(space, sizeof(space), sizeof(space) - 1, format, ap); in StringPrintf()
148 if (ret >= RET_OK && (size_t)ret < sizeof(space)) { in StringPrintf()
149 result = space; in StringPrintf()
/base/startup/init/services/param/adapter/
Dparam_selinux.c222 WorkSpace *space = paramWorkspace->workSpace[WORKSPACE_INDEX_DAC]; in HandleSelinuxLabelForPermission() local
223 …PARAM_CHECK(space != NULL && space->area != NULL, return, "Failed to get dac space %s", paramNode-… in HandleSelinuxLabelForPermission()
225 (void)FindTrieNode(space, paramNode->paraName, strlen(paramNode->paraName), &index); in HandleSelinuxLabelForPermission()
226 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, index); in HandleSelinuxLabelForPermission()
/base/startup/init/services/param/include/
Dparam_manager.h58 #define PARAM_WORKSPACE_CHECK(space, exper, ...) \ argument
59 if (((*space).flags & WORKSPACE_FLAGS_INIT) != WORKSPACE_FLAGS_INIT) { \
/base/startup/init/services/param/base/
Dparam_base.c279 WorkSpace **space = (WorkSpace **)calloc(sizeof(WorkSpace *), in CheckAndExtendSpace() local
281 PARAM_CHECK(space != NULL, return -1, "Failed to realloc memory for %s", name); in CheckAndExtendSpace()
282 int ret = PARAM_MEMCPY(space, sizeof(WorkSpace *) * paramSpace->maxLabelIndex, in CheckAndExtendSpace()
284 PARAM_CHECK(ret == 0, free(space); in CheckAndExtendSpace()
288 paramSpace->workSpace = space; in CheckAndExtendSpace()
368 static int CheckUserInGroup(WorkSpace *space, gid_t groupId, uid_t uid) in CheckUserInGroup() argument
415 WorkSpace *space = g_paramWorkSpace.workSpace[WORKSPACE_INDEX_DAC]; in DacCheckParamPermission() local
416 ParamSecurityNode *node = (ParamSecurityNode *)GetTrieNode(space, labelIndex->dacLabelIndex); in DacCheckParamPermission()
440 if (CheckUserInGroup(space, node->gid, srcLabel->cred.uid) == 0) { in DacCheckParamPermission()
Dparam_trie.c334 WorkSpace *space = GetWorkSpace(index); in GetParamNode() local
335 ParamTrieNode *entry = FindTrieNode(space, name, strlen(name), &labelIndex); in GetParamNode()
339 return (ParamNode *)GetTrieNode(space, entry->dataIndex); in GetParamNode()
/base/startup/init/test/unittest/param/
Dparam_unittest.cpp448 WorkSpace *space = GetWorkSpace(GetWorkSpaceIndex("test.workspace.1")); variable
449 EXPECT_NE(space, nullptr);
539 WorkSpace *space = GetWorkSpaceByName("test.workspace.1"); variable
540 ASSERT_NE(space, nullptr);
543 node = FindTrieNode(space, nullptr, 0, nullptr);
545 node = FindTrieNode(space, "111111", 0, nullptr);
547 node = FindTrieNode(space, "find.test.111111", strlen("find.test.111111"), nullptr);
/base/global/i18n_lite/frameworks/i18n/include/
Dnumber_data.h84 const int space, const int hasSpace);
/base/hiviewdfx/hilog/
DREADME.md21 User-space processes write logs to the ring buffer of hilogd through the log API. hilogd sends logs…
25 - **hilogd**: log service in the user space
28 2. User-space processes call the log APIs to transfer the formatted log content to hilogd and stor…
/base/inputmethod/imf/services/dialog/entry/src/main/ets/pages/
Dindex.ets46 List({ space: 1, initialIndex: 0 }) {
/base/startup/init/services/param/trigger/
Dtrigger_manager.c755 TriggerWorkSpace *space = GetTriggerWorkSpace(); in GetTriggerCache() local
756 if (space == NULL) { in GetTriggerCache()
760 *size = sizeof(space->cache) / sizeof(space->cache[0]); in GetTriggerCache()
762 return space->cache; in GetTriggerCache()
/base/update/updateservice/services/core/ability/utils/src/
Dfile_utils.cpp57 const std::filesystem::space_info spaceInfo = std::filesystem::space(filePath, errorCode); in IsSpaceEnough()
/base/startup/init/
DREADME.md11 The init module starts system service processes from the time the kernel loads the first user-space
123 …ently\). The command name and parameters \(128 bytes or less\) must be separated by only one space.
141 …="b1111653719537"></a>mkdir</strong> and the target folder must be separated by only one space.</p>
150 …i667944825318"></a><a name="i667944825318"></a>target</em> must be separated by only one space.</p>
159 …="i56935885316"></a><a name="i56935885316"></a>target</em> must be separated by only one space.</p>
168 …0"></a>Mounts devices. Every two parameters must be separated by only one space. Currently, suppor…
/base/security/selinux_adapter/
DREADME-en.md5 …odule in the history of Linux with a set of kernel modifications and user-space tools supporting m…
/base/usb/usb_manager/frameworks/dialog/functionswitch_ui/usb_function_dialog/src/main/ets/pages/
DIndex.ets48 Row({ space: 5 }){
/base/hiviewdfx/hilog_lite/
DREADME.md280 …- When the log API is called in the user space, the formatted log content is written into the dr…
282 2. hilogcatd: storage for logs in user space
283 …- This is a user-space process. It periodically reads the log content from the ringbuffer and st…
/base/hiviewdfx/faultloggerd/
DREADME.md39 …horized access to valid storage addresses (for example, access to storage space that is read only …
/base/hiviewdfx/hiappevent/
DREADME.md102 …ize is exceeded, the oldest event logging files in the directory will be deleted to free up space.|