Home
last modified time | relevance | path

Searched refs:tokenInfo (Results 1 - 25 of 32) sorted by relevance

12

/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/system/
H A Ddfsu_access_token_helper_test.cpp21 #include "tokenInfo.h"
67 TokenInfo tokenInfo; in HWTEST_F() local
68 tokenInfo.SetTokenId(0); in HWTEST_F()
71 tokenInfo.SetTokenId(2); in HWTEST_F()
74 tokenInfo.SetTokenId(3); in HWTEST_F()
176 TokenInfo tokenInfo; in HWTEST_F() local
177 tokenInfo.SetTokenId(1); in HWTEST_F()
180 tokenInfo.SetTokenId(0); in HWTEST_F()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Ddirectory_manager_test.cpp101 HapTokenInfo tokenInfo; in HWTEST_F() local
102 AccessTokenKit::GetHapTokenInfo(metaData.tokenId, tokenInfo); in HWTEST_F()
103 metaData.appId = tokenInfo.appID; in HWTEST_F()
168 HapTokenInfo tokenInfo; in HWTEST_F() local
169 AccessTokenKit::GetHapTokenInfo(metaData.tokenId, tokenInfo); in HWTEST_F()
170 metaData.appId = tokenInfo.appID; in HWTEST_F()
192 HapTokenInfo tokenInfo; in HWTEST_F() local
193 AccessTokenKit::GetHapTokenInfo(metaData.tokenId, tokenInfo); in HWTEST_F()
194 metaData.appId = tokenInfo.appID; in HWTEST_F()
H A Dmeta_data_test.cpp63 HapTokenInfo tokenInfo; in GetInstIndex() local
64 tokenInfo.instIndex = -1; in GetInstIndex()
65 int errCode = AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo); in GetInstIndex()
69 return tokenInfo.instIndex; in GetInstIndex()
/foundation/distributedhardware/device_manager/services/service/src/permission/standard/
H A Dpermission_manager.cpp128 HapTokenInfo tokenInfo; in GetCallerProcessName() local
129 if (AccessTokenKit::GetHapTokenInfo(tokenCaller, tokenInfo) != EOK) { in GetCallerProcessName()
133 processName = std::move(tokenInfo.bundleName); in GetCallerProcessName()
140 NativeTokenInfo tokenInfo; in GetCallerProcessName() local
141 if (AccessTokenKit::GetNativeTokenInfo(tokenCaller, tokenInfo) != EOK) { in GetCallerProcessName()
145 processName = std::move(tokenInfo.processName); in GetCallerProcessName()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/strategies/general/
H A Dload_config_common_strategy.cpp46 Security::AccessToken::HapTokenInfo tokenInfo; in operator ()() local
47 auto result = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(context->callerTokenId, tokenInfo); in operator ()()
52 context->callerBundleName = tokenInfo.bundleName; in operator ()()
/foundation/distributeddatamgr/data_share/frameworks/native/permission/src/
H A Ddata_share_called_config.cpp46 HapTokenInfo tokenInfo; in GetUserByToken() local
47 auto result = AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo); in GetUserByToken()
53 return tokenInfo.userID; in GetUserByToken()
/foundation/distributeddatamgr/relational_store/frameworks/native/dfx/src/
H A Drdb_radar_reporter.cpp96 NativeTokenInfo tokenInfo; in GetHostPkgInfo() local
97 if (AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) == 0) { in GetHostPkgInfo()
98 hostPkg_ = tokenInfo.processName; in GetHostPkgInfo()
H A Drdb_fault_hiview_reporter.cpp233 NativeTokenInfo tokenInfo; in GetBundleName() local
234 if (AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) == 0) { in GetBundleName()
235 return tokenInfo.processName; in GetBundleName()
/foundation/filemanagement/dfs_service/utils/system/src/
H A Ddfsu_access_token_helper.cpp89 NativeTokenInfo tokenInfo; in GetBundleNameByToken() local
90 if (AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) != 0) { in GetBundleNameByToken()
94 bundleName = tokenInfo.processName; in GetBundleNameByToken()
/foundation/filemanagement/file_api/interfaces/kits/native/remote_uri/
H A Dremote_uri.cpp65 Security::AccessToken::HapTokenInfo tokenInfo = Security::AccessToken::HapTokenInfo(); in GetCallingPkgName() local
66 Security::AccessToken::AccessTokenKit::GetHapTokenInfo(pid, tokenInfo); in GetCallingPkgName()
67 return tokenInfo.bundleName; in GetCallingPkgName()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/udmf/preprocess/
H A Dpreprocess_utils.cpp94 Security::AccessToken::HapTokenInfo tokenInfo; in GetHapUidByToken() local
95 auto result = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo); in GetHapUidByToken()
100 return tokenInfo.userID; in GetHapUidByToken()
248 HapTokenInfo tokenInfo; in GetInstIndex() local
249 int errCode = AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo); in GetInstIndex()
254 instIndex = tokenInfo.instIndex; in GetInstIndex()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/checker/
H A Dbundle_checker.cpp122 HapTokenInfo tokenInfo; in IsValid() local
123 if (AccessTokenKit::GetHapTokenInfo(info.tokenId, tokenInfo) != RET_SUCCESS) { in IsValid()
127 return tokenInfo.bundleName == info.bundleName; in IsValid()
/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/
H A Dpreferences_dfx_adapter.cpp63 Security::AccessToken::NativeTokenInfo tokenInfo; in GetModuleName() local
64 if (Security::AccessToken::AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) == 0) { in GetModuleName()
65 moduleName = tokenInfo.processName; in GetModuleName()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/ipc_security/
H A Drs_ipc_interface_code_access_verifier_base.cpp221 Security::AccessToken::NativeTokenInfo tokenInfo; in IsStylusServiceCalling() local
222 int32_t ret = Security::AccessToken::AccessTokenKit::GetNativeTokenInfo(GetTokenID(), tokenInfo); in IsStylusServiceCalling()
224 bool isStylusServiceProcessName = (tokenInfo.processName == STYLUS_SERVICE_PROCESS_NAME); in IsStylusServiceCalling()
/foundation/communication/dsoftbus/core/common/security/permission/standard/
H A Daccess_control.cpp239 NativeTokenInfo tokenInfo; in TransGetTokenInfo() local
240 int32_t ret = AccessTokenKit::GetNativeTokenInfo(callingId, tokenInfo); in TransGetTokenInfo()
245 if (strncpy_s(tokenName, nameLen, tokenInfo.processName.c_str(), nameLen - 1) != EOK) { in TransGetTokenInfo()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/account/src/
H A Daccount_delegate_normal_impl.cpp60 HapTokenInfo tokenInfo; in GetUserByToken() local
61 auto result = AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo); in GetUserByToken()
66 return tokenInfo.userID; in GetUserByToken()
/foundation/communication/ipc/example/rust_test/service/src/
H A Daccess_token.rs34 fn GetAccessTokenId(tokenInfo: *mut TokenInfoParams) -> u64; in GetAccessTokenId()
/foundation/multimodalinput/input/intention/drag/server/src/
H A Ddrag_server.cpp471 Security::AccessToken::NativeTokenInfo tokenInfo; in GetPackageName() local
472 if (Security::AccessToken::AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) != 0) { in GetPackageName()
475 packageName = tokenInfo.processName; in GetPackageName()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/
H A Dobject_service_impl.cpp118 Security::AccessToken::HapTokenInfo tokenInfo; in IsContinue() local
119 auto status = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, tokenInfo); in IsContinue()
124 result = ObjectDmsHandler::GetInstance().IsContinue(tokenInfo.bundleName); in IsContinue()
/foundation/filemanagement/storage_service/services/storage_manager/storage/src/
H A Dstorage_status_service.cpp165 Security::AccessToken::HapTokenInfo tokenInfo = Security::AccessToken::HapTokenInfo(); in GetCallingPkgName() local
166 Security::AccessToken::AccessTokenKit::GetHapTokenInfo(pid, tokenInfo); in GetCallingPkgName()
167 return tokenInfo.bundleName; in GetCallingPkgName()
/foundation/ability/idl_tool/test/rust/moduletest/server/src/
H A Dmain.rs64 fn GetAccessTokenId(tokenInfo: *mut TokenInfoParams) -> u64; in GetAccessTokenId()
/foundation/ability/idl_tool/test/rust/moduletest/client/src/
H A Dmain.rs40 fn GetAccessTokenId(tokenInfo: *mut TokenInfoParams) -> u64; in GetAccessTokenId()
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_core.cpp817 AccessToken::HapTokenInfo tokenInfo = AccessToken::HapTokenInfo(); in OnAppGroupChanged() local
818 bundleGroupHandler_->PostTask([bundleActiveCore, callbackInfo, tokenInfo]() { in OnAppGroupChanged()
819 bundleActiveCore->NotifOberserverGroupChanged(callbackInfo, tokenInfo); in OnAppGroupChanged()
824 AccessToken::HapTokenInfo tokenInfo) in NotifOberserverGroupChanged()
839 AccessToken::AccessTokenKit::GetHapTokenInfo(item.first, tokenInfo); in NotifOberserverGroupChanged()
840 if (tokenInfo.userID == callbackInfo.GetUserId()) { in NotifOberserverGroupChanged()
823 NotifOberserverGroupChanged(const AppGroupCallbackInfo& callbackInfo, AccessToken::HapTokenInfo tokenInfo) NotifOberserverGroupChanged() argument
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_core.h250 void NotifOberserverGroupChanged(const AppGroupCallbackInfo& callbackInfo, AccessToken::HapTokenInfo tokenInfo);
/foundation/multimodalinput/input/intention/cooperate/plugin/src/
H A Dstate_machine.cpp557 Security::AccessToken::NativeTokenInfo tokenInfo; in GetPackageName() local
558 if (Security::AccessToken::AccessTokenKit::GetNativeTokenInfo(tokenId, tokenInfo) != RET_OK) { in GetPackageName()
561 bundleName = tokenInfo.processName; in GetPackageName()

Completed in 17 milliseconds

12