/foundation/ability/form_fwk/test/unittest/fms_form_mgr_service_test/ |
H A D | mock_accesstoken_kit.cpp | 27 int AccessTokenKit::GetHapTokenInfo(AccessTokenID tokenID, HapTokenInfo &hapTokenInfo) in GetHapTokenInfo() argument 30 hapTokenInfo.bundleName = MockFormParams::bundleName; in GetHapTokenInfo() 31 hapTokenInfo.userID = MockFormParams::userId; in GetHapTokenInfo() 32 hapTokenInfo.instIndex = MockFormParams::instIndex; in GetHapTokenInfo()
|
/foundation/communication/nfc/services/src/card_emulation/ |
H A D | host_card_emulation_manager.cpp | 303 Security::AccessToken::HapTokenInfo hapTokenInfo; in RegHceCmdCallback() local 304 int result = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(callerToken, hapTokenInfo); in RegHceCmdCallback() 310 if (hapTokenInfo.bundleName.empty()) { in RegHceCmdCallback() 319 if (bundleNameToHceCmdRegData_.find(hapTokenInfo.bundleName) != bundleNameToHceCmdRegData_.end()) { in RegHceCmdCallback() 320 InfoLog("override the register data for %{public}s", hapTokenInfo.bundleName.c_str()); in RegHceCmdCallback() 322 bundleNameToHceCmdRegData_[hapTokenInfo.bundleName] = regData; in RegHceCmdCallback() 348 Security::AccessToken::HapTokenInfo hapTokenInfo; in IsCorrespondentService() local 349 int result = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(callerToken, hapTokenInfo); in IsCorrespondentService() 362 if (!hapTokenInfo.bundleName.empty() && in IsCorrespondentService() 363 hapTokenInfo in IsCorrespondentService() 461 Security::AccessToken::HapTokenInfo hapTokenInfo; EraseHceCmdCallback() local [all...] |
H A D | ce_service.cpp | 663 Security::AccessToken::HapTokenInfo hapTokenInfo; in HandleWhenRemoteDie() local 664 int result = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(callerToken, hapTokenInfo); in HandleWhenRemoteDie() 670 if (hapTokenInfo.bundleName.empty()) { in HandleWhenRemoteDie() 675 bool isForegroud = hapTokenInfo.bundleName == foregroundElement_.GetBundleName(); in HandleWhenRemoteDie()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/permission/ |
H A D | permission_helper.cpp | 120 HapTokenInfo hapTokenInfo; in VerifyAccessBluetoothPermission() local 122 if (Security::AccessToken::AccessTokenKit::GetHapTokenInfo(callerToken, hapTokenInfo) == RET_SUCCESS) { in VerifyAccessBluetoothPermission() 124 (hapTokenInfo.bundleName == "com.ohos.settings" || hapTokenInfo.bundleName == "com.ohos.systemui")) { in VerifyAccessBluetoothPermission()
|
H A D | permission_utils.cpp | 113 HapTokenInfo hapTokenInfo; in GetApiVersion() local 114 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo) != AccessTokenKitRet::RET_SUCCESS) { in GetApiVersion() 117 return hapTokenInfo.apiVersion; in GetApiVersion()
|
/foundation/communication/nfc/services/src/ipc/card_emulation/ |
H A D | hce_session_stub.cpp | 203 Security::AccessToken::HapTokenInfo hapTokenInfo; in StartHceInner() local 205 int result = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(callerToken, hapTokenInfo); in StartHceInner() 211 if (hapTokenInfo.bundleName.empty()) { in StartHceInner() 217 if (hapTokenInfo.bundleName != element.GetBundleName()) { in StartHceInner() 264 Security::AccessToken::HapTokenInfo hapTokenInfo; in StopHce() local 266 int result = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(callerToken, hapTokenInfo); in StopHce() 272 if (hapTokenInfo.bundleName.empty()) { in StopHce() 276 if (hapTokenInfo.bundleName != element.GetBundleName()) { in StopHce()
|
/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | udmf_utils.cpp | 72 Security::AccessToken::HapTokenInfo hapTokenInfo; in GetSdkVersionByToken() local 73 auto ret = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo); in GetSdkVersionByToken() 77 return std::to_string(hapTokenInfo.apiVersion); in GetSdkVersionByToken()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_permission_utils.cpp | 194 HapTokenInfo hapTokenInfo; 195 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo) != AccessTokenKitRet::RET_SUCCESS) {
|
/foundation/communication/dsoftbus/core/common/security/permission/standard/ |
H A D | access_control.cpp | 251 HapTokenInfo hapTokenInfo; in TransGetTokenInfo() local 252 int32_t ret = AccessTokenKit::GetHapTokenInfo(callingId, hapTokenInfo); in TransGetTokenInfo() 257 if (strncpy_s(tokenName, nameLen, hapTokenInfo.bundleName.c_str(), nameLen - 1) != EOK) { in TransGetTokenInfo()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | daemon.cpp | 473 HapTokenInfo hapTokenInfo; in GetRealPath() local 474 int result = AccessTokenKit::GetHapTokenInfo(IPCSkeleton::GetCallingTokenID(), hapTokenInfo); in GetRealPath() 483 ret = SandboxHelper::GetPhysicalPath(dstUri, std::to_string(hapTokenInfo.userID), physicalPath); in GetRealPath() 490 std::to_string(hapTokenInfo.userID).c_str()); in GetRealPath() 492 ret = CheckCopyRule(physicalPath, dstUri, hapTokenInfo, isSrcFile, info); in GetRealPath() 505 HapTokenInfo &hapTokenInfo, in CheckCopyRule() 540 physicalPath = "/data/service/el2/" + to_string(hapTokenInfo.userID) + "/hmdfs/account/data/" + bundleName + in CheckCopyRule() 503 CheckCopyRule(std::string &physicalPath, const std::string &dstUri, HapTokenInfo &hapTokenInfo, const bool &isSrcFile, HmdfsInfo &info) CheckCopyRule() argument
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/ |
H A D | daemon.h | 108 HapTokenInfo &hapTokenInfo,
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/ |
H A D | audio_policy_server.cpp | 2053 Security::AccessToken::HapTokenInfo hapTokenInfo; 2054 int32_t res = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(result.tokenID, hapTokenInfo); 2060 int32_t appUid = getUidByBundleName(hapTokenInfo.bundleName, hapTokenInfo.userID);
|
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/ |
H A D | service.cpp | 231 Security::AccessToken::HapTokenInfo hapTokenInfo; in VerifyCallerAndGetCallerName() local 232 if (Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenCaller, hapTokenInfo) != 0) { in VerifyCallerAndGetCallerName() 236 std::string bundleNameIndexInfo = BJsonUtil::BuildBundleNameIndexInfo(hapTokenInfo.bundleName, in VerifyCallerAndGetCallerName() 237 hapTokenInfo.instIndex); in VerifyCallerAndGetCallerName()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/ |
H A D | rdb_service_impl.cpp | 675 HapTokenInfo hapTokenInfo; 676 AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo); 677 tmpParam.bundleName_ = hapTokenInfo.bundleName;
|
/foundation/ability/form_fwk/services/src/ |
H A D | form_mgr_adapter.cpp | 895 Security::AccessToken::HapTokenInfo hapTokenInfo; in HasFormVisible() local 896 int ret = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo); in HasFormVisible() 902 std::string bundleName = hapTokenInfo.bundleName; in HasFormVisible() 903 int32_t userId = hapTokenInfo.userID; in HasFormVisible() 905 hapTokenInfo.instIndex); in HasFormVisible() 907 if (hapTokenInfo.instIndex != 0) { in HasFormVisible()
|
/foundation/distributeddatamgr/pasteboard/services/core/src/ |
H A D | pasteboard_service.cpp | 465 HapTokenInfo hapTokenInfo; in GetSdkVersion() local 466 auto ret = AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo); in GetSdkVersion() 472 PASTEBOARD_HILOGD(PASTEBOARD_MODULE_SERVICE, "ver:%{public}d.", hapTokenInfo.apiVersion); in GetSdkVersion() 473 return hapTokenInfo.apiVersion; in GetSdkVersion()
|