Home
last modified time | relevance | path

Searched refs:policyParcel (Results 1 – 17 of 17) sorted by relevance

/base/security/dlp_permission_service/frameworks/dlp_permission/src/
Ddlp_policy_parcel.cpp114 static bool ReadParcel(Parcel& in, DlpPolicyParcel* policyParcel) in ReadParcel() argument
131 policyParcel->policyParams_.authUsers_.emplace_back(authUserInfoParcel->authUserInfo_); in ReadParcel()
133 if (!(in.ReadBool(policyParcel->policyParams_.supportEveryone_))) { in ReadParcel()
142 policyParcel->policyParams_.everyonePerm_ = static_cast<DLPFileAccess>(perm); in ReadParcel()
143 if (!(in.ReadString(policyParcel->policyParams_.ownerAccount_))) { in ReadParcel()
147 if (!(in.ReadString(policyParcel->policyParams_.ownerAccountId_))) { in ReadParcel()
156 policyParcel->policyParams_.ownerAccountType_ = static_cast<DlpAccountType>(res); in ReadParcel()
157 return ReadAesParam(policyParcel->policyParams_, in); in ReadParcel()
162 DlpPolicyParcel* policyParcel = new (std::nothrow) DlpPolicyParcel(); in Unmarshalling() local
163 if (policyParcel == nullptr) { in Unmarshalling()
[all …]
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_main/
Ddlp_permission_async_proxy.cpp78 DlpPolicyParcel policyParcel; in OnParseDlpCertificate() local
79 policyParcel.policyParams_.CopyPermissionPolicy(policy); in OnParseDlpCertificate()
80 if (!data.WriteParcelable(&policyParcel)) { in OnParseDlpCertificate()
Ddlp_permission_service.cpp140 const sptr<DlpPolicyParcel>& policyParcel, sptr<IDlpPermissionCallback>& callback) in GenerateDlpCertificate() argument
147 if (!policyParcel->policyParams_.IsValid()) { in GenerateDlpCertificate()
152 …int32_t res = DlpPermissionSerializer::GetInstance().SerializeDlpPermission(policyParcel->policyPa… in GenerateDlpCertificate()
158 jsonObj.dump(), policyParcel->policyParams_.ownerAccount_, in GenerateDlpCertificate()
159 policyParcel->policyParams_.ownerAccountType_, callback); in GenerateDlpCertificate()
Ddlp_permission_service.h54 const sptr<DlpPolicyParcel>& policyParcel, sptr<IDlpPermissionCallback>& callback) override;
Ddlp_permission_stub.cpp98 sptr<DlpPolicyParcel> policyParcel = data.ReadParcelable<DlpPolicyParcel>(); in GenerateDlpCertificateInner() local
99 if (policyParcel == nullptr) { in GenerateDlpCertificateInner()
116 int32_t res = this->GenerateDlpCertificate(policyParcel, callback); in GenerateDlpCertificateInner()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/src/
Ddlp_permission_async_stub.cpp109 sptr<DlpPolicyParcel> policyParcel = data.ReadParcelable<DlpPolicyParcel>(); in OnParseDlpCertificateStub() local
110 if (policyParcel == nullptr) { in OnParseDlpCertificateStub()
122 this->OnParseDlpCertificate(result, policyParcel->policyParams_, cert); in OnParseDlpCertificateStub()
Ddlp_permission_client.cpp82 sptr<DlpPolicyParcel> policyParcel = new (std::nothrow) DlpPolicyParcel(); in GenerateDlpCertificate() local
83 if (policyParcel == nullptr) { in GenerateDlpCertificate()
87 policyParcel->policyParams_.CopyPermissionPolicy(policy); in GenerateDlpCertificate()
95 return proxy->GenerateDlpCertificate(policyParcel, asyncStub); in GenerateDlpCertificate()
Ddlp_permission_proxy.cpp39 const sptr<DlpPolicyParcel>& policyParcel, sptr<IDlpPermissionCallback>& callback) in GenerateDlpCertificate() argument
47 if (!data.WriteParcelable(policyParcel)) { in GenerateDlpCertificate()
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
Ddlp_permission_service_test.cpp559 sptr<DlpPolicyParcel> policyParcel = new (std::nothrow) DlpPolicyParcel(); variable
560 ASSERT_TRUE(!(policyParcel == nullptr));
571 res = data.WriteParcelable(policyParcel);
581 res = stub->GenerateDlpCertificate(policyParcel, callback2);
585 res = stub->GenerateDlpCertificate(policyParcel, callback3);
801 sptr<DlpPolicyParcel> policyParcel = new (std::nothrow) DlpPolicyParcel(); variable
806 int32_t res = dlpPermissionService_->GenerateDlpCertificate(policyParcel, callback);
817 policyParcel->policyParams_ = policy;
818 res = dlpPermissionService_->GenerateDlpCertificate(policyParcel, callback);
831 sptr<DlpPolicyParcel> policyParcel = new (std::nothrow) DlpPolicyParcel(); variable
[all …]
/base/security/access_token/frameworks/accesstoken/include/
Di_accesstoken_manager.h58 …cessTokenIDEx AllocHapToken(const HapInfoParcel& hapInfo, const HapPolicyParcel& policyParcel) = 0;
67 int32_t apiVersion, const HapPolicyParcel& policyParcel) = 0;
/base/security/access_token/interfaces/innerkits/accesstoken/src/
Daccesstoken_manager_proxy.h57 …AccessTokenIDEx AllocHapToken(const HapInfoParcel& hapInfo, const HapPolicyParcel& policyParcel) o…
60 const HapPolicyParcel& policyParcel) override;
Daccesstoken_manager_proxy.cpp394 const HapInfoParcel& hapInfo, const HapPolicyParcel& policyParcel) in AllocHapToken() argument
404 if (!data.WriteParcelable(&policyParcel)) { in AllocHapToken()
621 …isSystemApp, const std::string& appIDDesc, int32_t apiVersion, const HapPolicyParcel& policyParcel) in UpdateHapToken() argument
638 if (!data.WriteParcelable(&policyParcel)) { in UpdateHapToken()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/include/
Ddlp_permission_proxy.h34 const sptr<DlpPolicyParcel>& policyParcel, sptr<IDlpPermissionCallback>& callback) override;
/base/security/dlp_permission_service/frameworks/dlp_permission/include/
Di_dlp_permission_service.h39 const sptr<DlpPolicyParcel>& policyParcel, sptr<IDlpPermissionCallback>& callback) = 0;
/base/security/access_token/services/accesstokenmanager/main/cpp/include/service/
Daccesstoken_manager_service.h63 … const std::string& appIDDesc, int32_t apiVersion, const HapPolicyParcel& policyParcel) override;
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/
Daccesstoken_manager_service.cpp314 …isSystemApp, const std::string& appIDDesc, int32_t apiVersion, const HapPolicyParcel& policyParcel) in UpdateHapToken() argument
319 policyParcel.hapPolicyParameter); in UpdateHapToken()
Daccesstoken_manager_stub.cpp352 sptr<HapPolicyParcel> policyParcel = data.ReadParcelable<HapPolicyParcel>(); in UpdateHapTokenInner() local
353 if (policyParcel == nullptr) { in UpdateHapTokenInner()
358 …nt32_t result = this->UpdateHapToken(tokenIdEx, isSystemApp, appIDDesc, apiVersion, *policyParcel); in UpdateHapTokenInner()