Searched refs:hapPolicyParcel (Results 1 – 6 of 6) sorted by relevance
/base/security/access_token/frameworks/accesstoken/src/ |
D | hap_policy_parcel.cpp | 58 auto* hapPolicyParcel = new (std::nothrow) HapPolicyParcel(); in Unmarshalling() local 59 if (hapPolicyParcel == nullptr) { in Unmarshalling() 64 RELEASE_IF_FALSE(in.ReadInt32(apl), hapPolicyParcel); in Unmarshalling() 65 hapPolicyParcel->hapPolicyParameter.apl = ATokenAplEnum(apl); in Unmarshalling() 67 hapPolicyParcel->hapPolicyParameter.domain = in.ReadString(); in Unmarshalling() 70 RELEASE_IF_FALSE(in.ReadUint32(permListSize), hapPolicyParcel); in Unmarshalling() 71 RELEASE_IF_FALSE((permListSize <= MAX_PERMLIST_SIZE), hapPolicyParcel); in Unmarshalling() 75 RELEASE_IF_FALSE(permDefParcel != nullptr, hapPolicyParcel); in Unmarshalling() 76 hapPolicyParcel->hapPolicyParameter.permList.emplace_back(permDefParcel->permissionDef); in Unmarshalling() 80 RELEASE_IF_FALSE(in.ReadUint32(permStateListSize), hapPolicyParcel); in Unmarshalling() [all …]
|
/base/security/access_token/frameworks/test/unittest/ |
D | accesstoken_parcel_test.cpp | 135 HapPolicyParcel hapPolicyParcel; variable 137 hapPolicyParcel.hapPolicyParameter.apl = ATokenAplEnum::APL_NORMAL; 138 hapPolicyParcel.hapPolicyParameter.domain = "test.domain"; 139 hapPolicyParcel.hapPolicyParameter.permList.emplace_back(g_permDefAlpha); 140 hapPolicyParcel.hapPolicyParameter.permList.emplace_back(g_permDefBeta); 141 hapPolicyParcel.hapPolicyParameter.permStateList.emplace_back(g_permStatAlpha); 142 hapPolicyParcel.hapPolicyParameter.permStateList.emplace_back(g_permStatBeta); 145 EXPECT_EQ(true, hapPolicyParcel.Marshalling(parcel)); 150 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.apl, readedData->hapPolicyParameter.apl); 151 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.domain, readedData->hapPolicyParameter.domain); [all …]
|
/base/security/access_token/test/fuzztest/access_token_stub/allochaptokenstub_fuzzer/ |
D | allochaptokenstub_fuzzer.cpp | 66 HapPolicyParcel hapPolicyParcel; in AllocHapTokenStubFuzzTest() local 68 hapPolicyParcel.hapPolicyParameter = TestPolicyPrams; in AllocHapTokenStubFuzzTest() 75 if (!datas.WriteParcelable(&hapPolicyParcel)) { in AllocHapTokenStubFuzzTest()
|
/base/security/access_token/test/fuzztest/access_token_stub/updatehaptokenstub_fuzzer/ |
D | updatehaptokenstub_fuzzer.cpp | 55 HapPolicyParcel hapPolicyParcel; in UpdateHapTokenStubFuzzTest() local 56 hapPolicyParcel.hapPolicyParameter = policy; in UpdateHapTokenStubFuzzTest() 71 if (!datas.WriteParcelable(&hapPolicyParcel)) { in UpdateHapTokenStubFuzzTest()
|
/base/security/access_token/interfaces/innerkits/accesstoken/src/ |
D | accesstoken_manager_client.cpp | 267 HapPolicyParcel hapPolicyParcel; in AllocHapToken() local 269 hapPolicyParcel.hapPolicyParameter = policy; in AllocHapToken() 271 return proxy->AllocHapToken(hapInfoParcel, hapPolicyParcel); in AllocHapToken() 335 HapPolicyParcel hapPolicyParcel; in UpdateHapToken() local 336 hapPolicyParcel.hapPolicyParameter = policy; in UpdateHapToken() 337 return proxy->UpdateHapToken(tokenIdEx, isSystemApp, appIDDesc, apiVersion, hapPolicyParcel); in UpdateHapToken()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/ |
D | accesstoken_manager_stub.cpp | 282 sptr<HapPolicyParcel> hapPolicyParcel = data.ReadParcelable<HapPolicyParcel>(); in AllocHapTokenInner() local 283 if (hapInfoParcel == nullptr || hapPolicyParcel == nullptr) { in AllocHapTokenInner() 288 res = this->AllocHapToken(*hapInfoParcel, *hapPolicyParcel); in AllocHapTokenInner()
|