Home
last modified time | relevance | path

Searched refs:hapTokenInfo (Results 1 - 16 of 16) sorted by relevance

/foundation/ability/form_fwk/test/unittest/fms_form_mgr_service_test/
H A Dmock_accesstoken_kit.cpp27 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 Dhost_card_emulation_manager.cpp303 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 Dce_service.cpp663 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 Dpermission_helper.cpp120 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 Dpermission_utils.cpp113 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 Dhce_session_stub.cpp203 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 Dudmf_utils.cpp72 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 Dwifi_permission_utils.cpp194 HapTokenInfo hapTokenInfo;
195 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo) != AccessTokenKitRet::RET_SUCCESS) {
/foundation/communication/dsoftbus/core/common/security/permission/standard/
H A Daccess_control.cpp251 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 Ddaemon.cpp473 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 Ddaemon.h108 HapTokenInfo &hapTokenInfo,
/foundation/multimedia/audio_framework/services/audio_policy/server/src/
H A Daudio_policy_server.cpp2053 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 Dservice.cpp231 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 Drdb_service_impl.cpp675 HapTokenInfo hapTokenInfo;
676 AccessTokenKit::GetHapTokenInfo(tokenId, hapTokenInfo);
677 tmpParam.bundleName_ = hapTokenInfo.bundleName;
/foundation/ability/form_fwk/services/src/
H A Dform_mgr_adapter.cpp895 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 Dpasteboard_service.cpp465 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()

Completed in 25 milliseconds