Home
last modified time | relevance | path

Searched refs:tokenIdStr (Results 1 - 5 of 5) sorted by relevance

/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/src/
H A Dmock_bundle_mgr_helper.cpp49 auto tokenIdStr = bundleName.substr(bundleName.size() - TOKENID_LENGTH, TOKENID_LENGTH); in GetSandboxBundleInfo() local
50 if (!IsDigitString(tokenIdStr)) { in GetSandboxBundleInfo()
53 uint32_t tokenId = std::stoi(tokenIdStr); in GetSandboxBundleInfo()
64 auto tokenIdStr = bundleName.substr(bundleName.size() - TOKENID_LENGTH, TOKENID_LENGTH); in GetBundleInfo() local
65 if (!IsDigitString(tokenIdStr)) { in GetBundleInfo()
68 uint32_t tokenId = std::stoi(tokenIdStr); in GetBundleInfo()
91 auto tokenIdStr = bundleName.substr(bundleName.size() - TOKENID_LENGTH, TOKENID_LENGTH); in GetCloneBundleInfo() local
92 if (!IsDigitString(tokenIdStr)) { in GetCloneBundleInfo()
95 uint32_t tokenId = std::stoi(tokenIdStr); in GetCloneBundleInfo()
/foundation/communication/dsoftbus/core/common/security/permission/standard/
H A Daccess_control.cpp57 std::string tokenIdStr = std::to_string(callingTokenId); in TransCheckAccessControl() local
58 parms.insert({{"tokenId", tokenIdStr}, {"trustDeviceId", deviceId}, {"status", active}}); in TransCheckAccessControl()
/foundation/communication/ipc/ipc/native/src/mock/source/
H A Ddbinder_databus_invoker.cpp960 std::string tokenIdStr; in SetCallingIdentity() local
961 if (!ProcessSkeleton::GetSubStr(identity, tokenIdStr, 0, ACCESS_TOKEN_MAX_LEN) || in SetCallingIdentity()
962 !ProcessSkeleton::IsNumStr(tokenIdStr)) { in SetCallingIdentity()
982 uint64_t tokenId = std::stoull(tokenIdStr.c_str()); in SetCallingIdentity()
H A Dbinder_invoker.cpp1663 std::string tokenIdStr; in SetCallingIdentity() local
1664 if (!ProcessSkeleton::GetSubStr(identity, tokenIdStr, pos + 1, ACCESS_TOKEN_MAX_LEN) || in SetCallingIdentity()
1665 !ProcessSkeleton::IsNumStr(tokenIdStr)) { in SetCallingIdentity()
1687 callerTokenID_ = std::stoull(tokenIdStr.c_str()); in SetCallingIdentity()
/foundation/distributedhardware/device_manager/services/service/src/
H A Ddevice_manager_service.cpp1903 std::string tokenIdStr = std::to_string(relationShipMsg.tokenId); in HandleDeviceTrustedChange() local
1906 GetAnonyString(relationShipMsg.accountId).c_str(), GetAnonyString(tokenIdStr).c_str(), in HandleDeviceTrustedChange()

Completed in 9 milliseconds