Searched refs:tokenIdStr (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/src/ |
H A D | mock_bundle_mgr_helper.cpp | 49 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()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/security/permission/standard/ |
H A D | access_control.cpp | 57 std::string tokenIdStr = std::to_string(callingTokenId); in TransCheckAccessControl() local 58 parms.insert({{"tokenId", tokenIdStr}, {"trustDeviceId", deviceId}, {"status", active}}); in TransCheckAccessControl()
|
/ohos5.0/base/useriam/user_auth_framework/services/ipc/src/ |
H A D | user_auth_service.cpp | 129 auto tokenIdStr = std::to_string(remoteAuthParam->collectorTokenId.value_or(0)); in GetAuthParamStr() local 130 if (tokenIdStr.size() > tokenIdMinLen) { in GetAuthParamStr() 131 …tokenIdStr = std::string(1, tokenIdStr[0]) + "****" + std::string(1, tokenIdStr[tokenIdStr.size() … in GetAuthParamStr() 133 tokenIdStr = ""; in GetAuthParamStr() 137 … " collectorNetworkId:" << collectorNetworkIdStr << "****" << " collectorTokenId:" << tokenIdStr; in GetAuthParamStr()
|
/ohos5.0/base/usb/usb_manager/services/native/src/ |
H A D | usb_right_manager.cpp | 187 bool UsbRightManager::AddDeviceRight(const std::string &deviceName, const std::string &tokenIdStr) in AddDeviceRight() argument 189 if (!IsAllDigits(tokenIdStr)) { in AddDeviceRight() 194 uint32_t tokenId = stoul(tokenIdStr); in AddDeviceRight() 223 …ret = helper->AddOrUpdateRightRecord(uid, deviceName, hapTokenInfoRes.bundleName, tokenIdStr, info… in AddDeviceRight()
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/mock/source/ |
H A D | dbinder_databus_invoker.cpp | 954 std::string tokenIdStr; in SetCallingIdentity() local 955 if (!ProcessSkeleton::GetSubStr(identity, tokenIdStr, 0, ACCESS_TOKEN_MAX_LEN) || in SetCallingIdentity() 956 !ProcessSkeleton::IsNumStr(tokenIdStr)) { in SetCallingIdentity() 976 uint64_t tokenId = std::stoull(tokenIdStr.c_str()); in SetCallingIdentity()
|
H A D | binder_invoker.cpp | 1662 std::string tokenIdStr; in SetCallingIdentity() local 1663 if (!ProcessSkeleton::GetSubStr(identity, tokenIdStr, pos + 1, ACCESS_TOKEN_MAX_LEN) || in SetCallingIdentity() 1664 !ProcessSkeleton::IsNumStr(tokenIdStr)) { in SetCallingIdentity() 1686 callerTokenID_ = std::stoull(tokenIdStr.c_str()); in SetCallingIdentity()
|
/ohos5.0/base/usb/usb_manager/services/native/include/ |
H A D | usb_right_manager.h | 46 bool AddDeviceRight(const std::string &deviceName, const std::string &tokenIdStr);
|
/ohos5.0/base/security/access_token/services/privacymanager/test/unittest/ |
H A D | privacy_manager_service_test.cpp | 187 std::string tokenIdStr = std::to_string(tokenId); variable 188 args.emplace_back(Str8ToStr16(tokenIdStr));
|