Home
last modified time | relevance | path

Searched refs:accountSize (Results 1 - 4 of 4) sorted by relevance

/base/account/os_account/interfaces/kits/capi/osaccount/src/
H A Dos_account.cpp36 size_t accountSize = accountName.size(); in OH_OsAccount_GetName() local
37 if (buffer_size <= accountSize) { in OH_OsAccount_GetName()
39 "Buffer size(%{public}zu) is less than length of account name(%{public}zu).", buffer_size, accountSize); in OH_OsAccount_GetName()
42 err = strncpy_s(buffer, buffer_size, accountName.c_str(), accountSize); in OH_OsAccount_GetName()
47 buffer[accountSize] = '\0'; in OH_OsAccount_GetName()
/base/security/device_auth/services/frameworks/src/os_account_adapter/
H A Dos_account_adapter.cpp231 uint32_t accountSize = osAccountInfos.size(); in GetAllOsAccountIds() local
232 if ((res != OHOS::ERR_OK) || (accountSize <= 0)) { in GetAllOsAccountIds()
236 *osAccountIds = (int32_t *)HcMalloc(accountSize * sizeof(int32_t), 0); in GetAllOsAccountIds()
241 for (uint32_t index = 0; index < accountSize; index++) { in GetAllOsAccountIds()
244 *size = accountSize; in GetAllOsAccountIds()
/base/security/dlp_permission_service/frameworks/common/src/
H A Dpermission_policy.cpp50 uint32_t accountSize = account.size(); in CheckAccount() local
51 if (accountSize == 0 || accountSize > MAX_ACCOUNT_SIZE) { in CheckAccount()
52 DLP_LOG_ERROR(LABEL, "Account len invalid, len=%{public}u", accountSize); in CheckAccount()
/base/account/os_account/frameworks/osaccount/core/src/
H A Dos_account_proxy.cpp1449 int32_t accountSize; in ReadOsAccountInfo() local
1450 if (!data.ReadInt32(accountSize)) { in ReadOsAccountInfo()
1451 ACCOUNT_LOGE("Failed to read accountSize"); in ReadOsAccountInfo()
1454 auto readRawData = data.ReadRawData(accountSize); in ReadOsAccountInfo()
1456 ACCOUNT_LOGE("Failed to read accountData accountSize = %{public}d", accountSize); in ReadOsAccountInfo()
1460 std::string accountJson = std::string(accountData, accountSize - 1); in ReadOsAccountInfo()

Completed in 4 milliseconds