Home
last modified time | relevance | path

Searched refs:hapInfo (Results 1 – 19 of 19) sorted by relevance

/base/theme/screenlock_mgr/utils/src/
Dscreenlock_appinfo.cpp28 HapTokenInfo hapInfo; in GetAppInfoByToken() local
29 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != 0) { in GetAppInfoByToken()
33 appInfo.bundleName = hapInfo.bundleName; in GetAppInfoByToken()
34 appInfo.appId = hapInfo.appID; in GetAppInfoByToken()
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/bms/include/
Dhks_bms_api_wrap.h25 int32_t HksGetHapInfo(const struct HksProcessInfo *processInfo, struct HksBlob *hapInfo);
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dhap_restorecon.cpp146 static std::string GetHapContextKey(struct SehapInfo *hapInfo) in GetHapContextKey() argument
150 if (hapInfo->debuggable) { in GetHapContextKey()
151 keyPara = hapInfo->apl + "." + DEBUGGABLE; in GetHapContextKey()
152 } else if (!hapInfo->name.empty()) { in GetHapContextKey()
153 keyPara = hapInfo->apl + "." + hapInfo->name; in GetHapContextKey()
155 keyPara = hapInfo->apl; in GetHapContextKey()
/base/sensors/sensor/services/src/
Dsensor_manager.cpp193 HapTokenInfo hapInfo; in GetPackageName() local
194 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != 0) { in GetPackageName()
198 packageName = hapInfo.bundleName; in GetPackageName()
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/bms/src/
Dhks_bms_api_wrap.cpp96 int32_t HksGetHapInfo(const struct HksProcessInfo *processInfo, struct HksBlob *hapInfo) in HksGetHapInfo() argument
99 HKS_IF_NULL_LOGE_RETURN(hapInfo, HKS_ERROR_NULL_POINTER, "hapInfo is nullptr.") in HksGetHapInfo()
124 int32_t ret = ConvertCallerInfoToJson(bundleInfo.appId, hapTokenInfo.bundleName, hapInfo, true); in HksGetHapInfo()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Daccesstoken_kit_test.h57 …AccessTokenID AllocTestToken(const HapInfoParams& hapInfo, const HapPolicyParams& hapPolicy) const;
Daccesstoken_kit_test.cpp290 const HapInfoParams& hapInfo, const HapPolicyParams& hapPolicy) const in AllocTestToken() argument
293 tokenIdEx = AccessTokenKit::AllocHapToken(hapInfo, hapPolicy); in AllocTestToken()
596 HapTokenInfo hapInfo; variable
597 int ret = AccessTokenKit::GetHapTokenInfo(tokenID, hapInfo);
601 .apl = hapInfo.apl,
606 info.appIDDesc = hapInfo.appID;
1184 HapTokenInfo hapInfo; variable
1185 ret = AccessTokenKit::GetHapTokenInfo(tokenID, hapInfo);
1197 .apl = hapInfo.apl,
1203 info.appIDDesc = hapInfo.appID;
[all …]
/base/msdp/device_status/services/native/src/
Ddevicestatus_manager.cpp290 HapTokenInfo hapInfo; in GetPackageName() local
291 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != 0) { in GetPackageName()
295 packageName = hapInfo.bundleName; in GetPackageName()
Ddevicestatus_dumper.cpp356 Security::AccessToken::HapTokenInfo hapInfo; in GetPackageName() local
357 … if (Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != RET_OK) { in GetPackageName()
361 packageName = hapInfo.bundleName; in GetPackageName()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Daccesstoken_info_manager.cpp1045 std::shared_ptr<HapTokenInfoInner>& hapInfo = iter->second; in StoreAllTokenInfo() local
1046 hapInfo->StoreHapInfo(hapInfoValues); in StoreAllTokenInfo()
1047 hapInfo->StorePermissionPolicy(permStateValues); in StoreAllTokenInfo()
1048 if (hapInfo->permUpdateTimestamp_ > lastestUpdateStamp) { in StoreAllTokenInfo()
1049 lastestUpdateStamp = hapInfo->permUpdateTimestamp_; in StoreAllTokenInfo()
1102 std::shared_ptr<HapTokenInfoInner> hapInfo = GetHapTokenInfoInner(tokenID); in ModifyHapPermStateFromDb() local
1103 if (hapInfo == nullptr) { in ModifyHapPermStateFromDb()
1107 hapInfo->StorePermissionPolicy(permStateValues); in ModifyHapPermStateFromDb()
1128 std::shared_ptr<HapTokenInfoInner> hapInfo = GetHapTokenInfoInner(tokenID); in AddHapTokenInfoToDb() local
1129 if (hapInfo == nullptr) { in AddHapTokenInfoToDb()
[all …]
/base/security/code_signature/utils/src/
Dcode_sign_block.cpp145 auto hapInfo = GetHapSignInfo(); in ParseHapSignInfo() local
146 signMap_.emplace(path, reinterpret_cast<uintptr_t>(&hapInfo->signInfo)); in ParseHapSignInfo()
/base/msdp/device_status/intention/drag/server/src/
Ddrag_server.cpp413 Security::AccessToken::HapTokenInfo hapInfo; in GetPackageName() local
414 if (Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != 0) { in GetPackageName()
417 packageName = hapInfo.bundleName; in GetPackageName()
/base/msdp/device_status/intention/cooperate/plugin/src/
Dstate_machine.cpp387 Security::AccessToken::HapTokenInfo hapInfo; in GetPackageName() local
388 … if (Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != RET_OK) { in GetPackageName()
391 bundleName = hapInfo.bundleName; in GetPackageName()
/base/security/access_token/frameworks/accesstoken/include/
Di_accesstoken_manager.h69 …virtual AccessTokenIDEx AllocHapToken(const HapInfoParcel& hapInfo, const HapPolicyParcel& policyP…
/base/security/access_token/interfaces/innerkits/accesstoken/src/
Daccesstoken_manager_proxy.h69 …AccessTokenIDEx AllocHapToken(const HapInfoParcel& hapInfo, const HapPolicyParcel& policyParcel) o…
Daccesstoken_manager_proxy.cpp534 const HapInfoParcel& hapInfo, const HapPolicyParcel& policyParcel) in AllocHapToken() argument
543 if (!data.WriteParcelable(&hapInfo)) { in AllocHapToken()
/base/sensors/miscdevice/services/miscdevice_service/src/
Dmiscdevice_service.cpp445 HapTokenInfo hapInfo; in GetPackageName() local
446 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != 0) { in GetPackageName()
450 packageName = hapInfo.bundleName; in GetPackageName()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp520 HapTokenInfo hapInfo; variable
521 … AccessTokenInfoManager::GetInstance().GetHapTokenInfo(tokenIdEx.tokenIdExStruct.tokenID, hapInfo);
528 … AccessTokenInfoManager::GetInstance().GetHapTokenInfo(tokenIdEx.tokenIdExStruct.tokenID, hapInfo);
2234 UpdateHapInfoParams hapInfo; variable
2235 hapInfo.apiVersion = DEFAULT_API_VERSION;
2236 hapInfo.isSystemApp = false;
2237 hap->Update(hapInfo, policy.permStateList, policy.apl); // permPolicySet_ is null
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_manager.cpp847 HapTokenInfo hapInfo; in GetApiVersionByTokenId() local
848 int ret = AccessTokenInfoManager::GetInstance().GetHapTokenInfo(tokenID, hapInfo); in GetApiVersionByTokenId()
854 apiVersion = hapInfo.apiVersion; in GetApiVersionByTokenId()