/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_test_file_operator.c | 61 uint32_t nameLen = HKS_MAX_FILE_NAME_LEN; in GetFullFileName() local 62 char *tmpFileName = (char *)HksTestMalloc(nameLen); in GetFullFileName() 66 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName() 68 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
|
/base/startup/init/test/fuzztest/systemtraversalparameter_fuzzer/ |
D | systemtraversalparameter_fuzzer.cpp | 28 unsigned int nameLen = nameAndValue->size; in FakeShowParam() local 30 SystemGetParameterName(handle, name, nameLen); in FakeShowParam()
|
/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
D | contexts_trie.c | 44 uint32_t nameLen = (uint32_t)strlen(name); in AddGroupNode() local 45 ParamHashNode *groupNode = GetGroupNode(root, name, nameLen); in AddGroupNode() 54 groupNode->nameLen = nameLen; in AddGroupNode() 55 groupNode->name = (char *)calloc(1, nameLen + 1); in AddGroupNode() 60 memcpy(groupNode->name, name, nameLen + 1); in AddGroupNode() 81 uint32_t nameLen = (uint32_t)strlen(element); in InsertElementToTrie() local 82 ParamHashNode *childNode = GetGroupNode(root, element, nameLen); in InsertElementToTrie()
|
D | selinux_map.c | 40 return strncmp(groupNode1->name, key, groupNode1->nameLen); in GroupNodeKeyCompare() 46 return GenerateHashCode(groupNode->name, groupNode->nameLen); in GroupNodeGetNodeHashCode()
|
/base/security/huks/test/unittest/huks_lite_test/common/ |
D | hks_test_file_operator.c | 70 uint32_t nameLen = HKS_MAX_FILE_NAME_LEN; in GetFullFileName() local 71 char *tmpFileName = (char *)HksTestMalloc(nameLen); in GetFullFileName() 75 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName() 77 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
|
/base/security/huks/utils/file_operator/ |
D | hks_file_operator_lite.c | 78 uint32_t nameLen = HKS_MAX_FILE_NAME_LEN; in GetFullFileName() local 79 char *tmpFileName = (char *)HksMalloc(nameLen); in GetFullFileName() 81 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName() 83 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
|
D | hks_file_operator.c | 62 uint32_t nameLen = HKS_MAX_FILE_NAME_LEN; in GetFullFileName() local 63 char *tmpFileName = (char *)HksMalloc(nameLen); in GetFullFileName() 65 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName() 67 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
|
/base/security/selinux_adapter/interfaces/policycoreutils/include/ |
D | selinux_map.h | 52 uint32_t nameLen; member
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | global_utils.c | 459 idItem->nameLen = (uint16_t)ConvertUint8ArrayToUint32(lengthCache, VALUE_LENGTH_OFFSET); in GetIdItem() 460 if (idItem->nameLen == 0 || idItem->nameLen > MAX_ITEM_LENGTH) { in GetIdItem() 466 idItem->name = (char *)malloc(idItem->nameLen); in GetIdItem() 472 (void)memset_s(idItem->name, idItem->nameLen, 0, idItem->nameLen); in GetIdItem() 473 (void)read(file, idItem->name, idItem->nameLen); in GetIdItem()
|
/base/startup/init/services/param/adapter/ |
D | param_dac.c | 86 uint32_t nameLen = groupName - value; in GetParamDacData() local 88 name[nameLen] = '\0'; in GetParamDacData() 90 nameLen = mode - groupName - 1; in GetParamDacData() 92 name[nameLen] = '\0'; in GetParamDacData()
|
/base/startup/init/services/init/ |
D | init_group_manager.c | 236 uint32_t nameLen = (uint32_t)strlen(name); in AddGroupNode() local 237 groupNode = (InitGroupNode *)calloc(1, sizeof(InitGroupNode) + nameLen + 1); in AddGroupNode() 239 int ret = memcpy_s(groupNode->name, nameLen + 1, name, nameLen + 1); in AddGroupNode()
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_file_operator.c | 56 uint32_t nameLen = CM_MAX_FILE_NAME_LEN; in GetFullFileName() local 57 char *tmpFileName = (char *)CMMalloc(nameLen); in GetFullFileName() 61 (void)memset_s(tmpFileName, nameLen, 0, nameLen); in GetFullFileName() 63 int32_t ret = GetFileName(path, fileName, tmpFileName, nameLen); in GetFullFileName()
|
/base/powermgr/power_manager/frameworks/napi/runninglock/ |
D | runninglock_interface.h | 35 size_t nameLen = 0; member
|
/base/startup/init/services/param/base/ |
D | param_base.c | 570 uint32_t nameLen = strlen(name); in CachedParameterCreate() local 571 PARAM_CHECK(nameLen < PARAM_NAME_LEN_MAX, return NULL, "Invalid name %s", name); in CachedParameterCreate() 586 sizeof(CachedParameter) + PARAM_ALIGN(nameLen) + 1 + PARAM_VALUE_LEN_MAX); in CachedParameterCreate() 588 ret = PARAM_STRCPY(param->data, nameLen + 1, name); in CachedParameterCreate() 593 param->nameLen = nameLen; in CachedParameterCreate() 594 param->paramValue = ¶m->data[PARAM_ALIGN(nameLen) + 1]; in CachedParameterCreate() 622 ParamTrieNode *node = BaseFindTrieNode(param->workspace, param->data, param->nameLen, NULL); in CachedParameterCheck()
|
/base/startup/init/interfaces/innerkits/include/fs_manager/ |
D | fs_manager.h | 87 …BlockDeviceByMountPoint(const char *mountPoint, const Fstab *fstab, char *deviceName, int nameLen);
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | global_utils.h | 94 uint16_t nameLen; member
|
/base/startup/init/services/param/include/ |
D | param_common.h | 129 uint32_t nameLen; member
|
/base/startup/init/services/begetctl/shell/ |
D | shell_bas.c | 512 size_t nameLen = strlen(cmdInfo->name) + 1; in BShellEnvRegisterCmd() local 513 BShellCommand *cmd = (BShellCommand *)calloc(1, sizeof(BShellCommand) + nameLen); in BShellEnvRegisterCmd() 519 ret = strcpy_s(cmd->name, nameLen, cmdInfo->name); in BShellEnvRegisterCmd() 532 if (cmdInfo->multikey != NULL && strlen(cmdInfo->multikey) > nameLen) { in BShellEnvRegisterCmd() 675 size_t nameLen = strlen(name) + 1; in BShellEnvSetParam() local 676 param = (BShellParam *)calloc(1, sizeof(BShellParam) + nameLen); in BShellEnvSetParam() 679 ret = strcpy_s(param->name, nameLen, name); in BShellEnvSetParam()
|
/base/powermgr/power_manager/frameworks/native/ |
D | power_mgr_client.cpp | 200 …uint32_t nameLen = (name.size() > RunningLock::MAX_NAME_LEN) ? RunningLock::MAX_NAME_LEN : name.si… in CreateRunningLock() local 201 …tr<RunningLock> runningLock = std::make_shared<RunningLock>(proxy_, name.substr(0, nameLen), type); in CreateRunningLock()
|
/base/update/updater/services/ptable_parse/ |
D | ptable.cpp | 449 std::string &name, const uint32_t nameLen) in ParsePartitionName() argument 451 if (data == nullptr || dataLen == 0 || nameLen == 0) { in ParsePartitionName() 463 …for (uint32_t n = 0; n < nameLen && n < (MAX_GPT_NAME_SIZE / 2) && utf16Name[n * 2] != '\0'; n++) { in ParsePartitionName()
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_zipfile.cpp | 293 size_t nameLen = 0; in PackStream() local 296 }, nameLen); in PackStream() 298 size_t headerLen = nameLen + sizeof(LocalFileHeader); in PackStream() 322 ret = EncodeLocalFileHeader(buff.data(), sizeof(LocalFileHeader), hasDataDesc, nameLen); in PackStream() 408 size_t nameLen) in EncodeLocalFileHeader() argument 428 header->nameSize = nameLen; in EncodeLocalFileHeader()
|
/base/security/selinux_adapter/test/unittest/parameter_static/ |
D | unit_test.cpp | 51 tmp->nameLen = name.size(); in GenerateParamHashNode()
|
/base/startup/init/services/param/manager/ |
D | param_manager.c | 593 size_t nameLen = strlen(name); in CheckParamName() local 594 if (nameLen >= PARAM_NAME_LEN_MAX) { in CheckParamName() 601 if (nameLen < 1 || name[0] == '.' || (!info && name[nameLen - 1] == '.')) { in CheckParamName() 608 for (size_t i = 0; i < nameLen; i++) { in CheckParamName()
|
/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
D | x509_certificate_openssl.c | 768 uint32_t nameLen = strlen(str) + 1; in DeepCopyAlternativeNames() local 769 outName->data[i].data = (uint8_t *)HcfMalloc(nameLen, 0); in DeepCopyAlternativeNames() 774 (void)memcpy_s(outName->data[i].data, nameLen, str, nameLen); in DeepCopyAlternativeNames() 775 outName->data[i].size = nameLen; in DeepCopyAlternativeNames()
|
/base/startup/init/test/unittest/init/ |
D | group_unittest.cpp | 53 size_t nameLen = strlen(testNode->name); in TestHashNodeFunction() local 54 for (size_t i = 0; i < nameLen; i++) { in TestHashNodeFunction()
|