Home
last modified time | relevance | path

Searched refs:permStateList (Results 1 – 25 of 61) sorted by relevance

123

/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dremote_token_kit_test.cpp103 .permStateList = {g_infoManagerTestState1, g_infoManagerTestState2}
117 .permStateList = {g_infoManagerTestState1, g_infoManagerTestState2}
231 std::vector<PermissionStateFull> permStateList; variable
232 permStateList.emplace_back(infoManagerTestState);
236 .permStateList = permStateList
329 std::vector<PermissionStateFull> permStateList; variable
330 permStateList.emplace_back(infoManagerTestState);
334 .permStateList = permStateList
373 std::vector<PermissionStateFull> permStateList; variable
374 permStateList.emplace_back(infoManagerTestState);
[all …]
Daccesstoken_kit_extension_test.cpp122 .permStateList = {g_infoManagerTestState1, g_infoManagerTestState2}
137 .permStateList = {g_infoManagerTestState1, g_infoManagerTestState2}
360 policy.permStateList.emplace_back(permStatAlpha); in PreparePermStateList()
361 policy.permStateList.emplace_back(permStatBeta); in PreparePermStateList()
362 policy.permStateList.emplace_back(permTestState1); in PreparePermStateList()
363 policy.permStateList.emplace_back(permTestState2); in PreparePermStateList()
364 policy.permStateList.emplace_back(permTestState3); in PreparePermStateList()
365 policy.permStateList.emplace_back(permTestState4); in PreparePermStateList()
445 policy.permStateList.emplace_back(g_grantPermissionReq); in SetUp()
446 policy.permStateList.emplace_back(g_revokePermissionReq); in SetUp()
[all …]
/base/security/access_token/frameworks/accesstoken/src/
Dhap_token_info_for_sync_parcel.cpp32 …const std::vector<PermissionStateFull>& permStateList = this->hapTokenInfoForSyncParams.permStateL… in Marshalling() local
33 uint32_t permStateListSize = permStateList.size(); in Marshalling()
38 permStateParcel.permStatFull = permStateList[i]; in Marshalling()
62 hapTokenInfoForSyncParcel->hapTokenInfoForSyncParams.permStateList.emplace_back( in Unmarshalling()
Dnative_token_info_for_sync_parcel.cpp32 …const std::vector<PermissionStateFull>& permStateList = this->nativeTokenInfoForSyncParams.permSta… in Marshalling() local
33 uint32_t permStateListSize = permStateList.size(); in Marshalling()
38 permStateParcel.permStatFull = permStateList[i]; in Marshalling()
62 nativeTokenInfoForSyncParcel->nativeTokenInfoForSyncParams.permStateList.emplace_back( in Unmarshalling()
Dhap_policy_parcel.cpp43 const std::vector<PermissionStateFull>& permStateList = this->hapPolicyParameter.permStateList; in Marshalling() local
44 uint32_t permStateListSize = permStateList.size(); in Marshalling()
49 permStateParcel.permStatFull = permStateList[i]; in Marshalling()
85 …hapPolicyParcel->hapPolicyParameter.permStateList.emplace_back(permissionStateParcel->permStatFull… in Unmarshalling()
/base/security/access_token/frameworks/test/unittest/
Daccesstoken_parcel_test.cpp141 hapPolicyParcel.hapPolicyParameter.permStateList.emplace_back(g_permStatAlpha);
142 hapPolicyParcel.hapPolicyParameter.permStateList.emplace_back(g_permStatBeta);
153 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permStateList.size(),
154 readedData->hapPolicyParameter.permStateList.size());
175 for (uint32_t i = 0; i < hapPolicyParcel.hapPolicyParameter.permStateList.size(); i++) {
176 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permStateList[i].permissionName,
177 readedData->hapPolicyParameter.permStateList[i].permissionName);
178 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permStateList[i].isGeneral,
179 readedData->hapPolicyParameter.permStateList[i].isGeneral);
180 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permStateList[i].resDeviceID,
[all …]
/base/security/access_token/test/fuzztest/access_token/setremotehaptokeninfo_fuzzer/
Dsetremotehaptokeninfo_fuzzer.cpp54 std::vector<PermissionStateFull> permStateList; in SetRemoteHapTokenInfoFuzzTest() local
55 permStateList.emplace_back(infoManagerTestState); in SetRemoteHapTokenInfoFuzzTest()
58 .permStateList = permStateList in SetRemoteHapTokenInfoFuzzTest()
/base/security/access_token/test/fuzztest/access_token_stub/setremotehaptokeninfostub_fuzzer/
Dsetremotehaptokeninfostub_fuzzer.cpp57 std::vector<PermissionStateFull> permStateList; in SetRemoteHapTokenInfoStubFuzzTest() local
58 permStateList.emplace_back(infoManagerTestState); in SetRemoteHapTokenInfoStubFuzzTest()
61 .permStateList = permStateList in SetRemoteHapTokenInfoStubFuzzTest()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Dnative_token_receptor_test.cpp275 std::vector<PermissionStateFull> permStateList = {}; variable
276 …tr<NativeTokenInfoInner> nativeToken = std::make_shared<NativeTokenInfoInner>(info, permStateList);
339 std::vector<PermissionStateFull> permStateList = {}; variable
340 …tr<NativeTokenInfoInner> nativeToken = std::make_shared<NativeTokenInfoInner>(info, permStateList);
388 std::vector<PermissionStateFull> permStateList = {}; variable
389 …tr<NativeTokenInfoInner> nativeToken = std::make_shared<NativeTokenInfoInner>(info, permStateList);
402 static void PermStateListSet(std::vector<PermissionStateFull> &permStateList) in PermStateListSet() argument
427 permStateList.emplace_back(infoManagerTestState1); in PermStateListSet()
428 permStateList.emplace_back(infoManagerTestState2); in PermStateListSet()
429 permStateList.emplace_back(infoManagerTestState3); in PermStateListSet()
[all …]
Daccesstoken_info_manager_test.cpp111 .permStateList = {g_infoManagerTestState1, g_infoManagerTestState2}
845 std::vector<PermissionStateFull> permStateList; in SetRemoteHapTokenInfoTest() local
846 permStateList.emplace_back(g_infoManagerTestState1); in SetRemoteHapTokenInfoTest()
849 .permStateList = permStateList in SetRemoteHapTokenInfoTest()
1716 std::vector<PermissionStateFull> permStateList; variable
1717 permStateList.emplace_back(perm);
1720 permStateList);
1743 std::vector<PermissionStateFull> permStateList; variable
1744 permStateList.emplace_back(perm);
1747 permStateList);
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Ddlp_permission_set_manager.cpp73 std::vector<PermissionStateFull>& permStateList) in UpdatePermStateWithDlpInfo() argument
76 for (auto iter = permStateList.begin(); iter != permStateList.end(); iter++) { in UpdatePermStateWithDlpInfo()
Dpermission_policy_set.cpp42 AccessTokenID tokenId, const std::vector<PermissionStateFull>& permStateList) in BuildPermissionPolicySet() argument
45 PermissionValidator::FilterInvalidPermissionState(permStateList, policySet->permStateList_); in BuildPermissionPolicySet()
60 void PermissionPolicySet::Update(const std::vector<PermissionStateFull>& permStateList) in Update() argument
63 PermissionValidator::FilterInvalidPermissionState(permStateList, permStateFilterList); in Update()
105 void PermissionPolicySet::MergePermissionStateFull(std::vector<PermissionStateFull>& permStateList, in MergePermissionStateFull() argument
111 for (auto iter = permStateList.begin(); iter != permStateList.end(); iter++) { in MergePermissionStateFull()
119 permStateList.emplace_back(state); in MergePermissionStateFull()
491 info.append(R"( "permStateList": [)"); in ToString()
528 info.append(R"( "permStateList": [)"); in PermStateToString()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Dhap_token_info.h85 std::vector<PermissionStateFull> permStateList; variable
125 std::vector<PermissionStateFull> permStateList; variable
Dnative_token_info.h81 std::vector<PermissionStateFull> permStateList; variable
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
Dpermission_policy_set.h39 const std::vector<PermissionStateFull>& permStateList);
43 void Update(const std::vector<PermissionStateFull>& permStateList);
64 static void MergePermissionStateFull(std::vector<PermissionStateFull>& permStateList,
Ddlp_permission_set_manager.h34 …t32_t UpdatePermStateWithDlpInfo(int32_t dlpType, std::vector<PermissionStateFull>& permStateList);
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dnative_token_receptor.cpp45 const nlohmann::json& j, std::vector<PermissionStateFull>& permStateList) in NativeReqPermsGet() argument
66 permStateList.push_back(permState); in NativeReqPermsGet()
153 std::vector<PermissionStateFull> permStateList; in from_json() local
154 if (NativeReqPermsGet(j, permStateList) != RET_SUCCESS) { in from_json()
158 p = std::make_shared<NativeTokenInfoInner>(native, permStateList); in from_json()
Dhap_token_info_inner.cpp64 permPolicySet_ = PermissionPolicySet::BuildPermissionPolicySet(id, policy.permStateList); in HapTokenInfoInner()
68 …const HapTokenInfo &info, const std::vector<PermissionStateFull>& permStateList) : isRemote_(false) in HapTokenInfoInner() argument
72 permPolicySet_ = PermissionPolicySet::BuildPermissionPolicySet(id, permStateList); in HapTokenInfoInner()
94 policy.permStateList); in Update()
98 permPolicySet_->Update(policy.permStateList); in Update()
Dnative_token_info_inner.cpp41 const std::vector<PermissionStateFull>& permStateList) : isRemote_(false) in NativeTokenInfoInner() argument
45 permStateList); in NativeTokenInfoInner()
56 const std::vector<PermissionStateFull>& permStateList) in Init() argument
76 permStateList); in Init()
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Dnative_token_info_inner.h43 const std::vector<PermissionStateFull>& permStateList);
48 const std::vector<PermissionStateFull>& permStateList);
/base/security/access_token/services/tokensyncmanager/src/command/
Dbase_remote_command.cpp104 for (const auto& permState : tokenInfo.permStateList) { in ToNativeTokenInfoJson()
150 for (const auto& permState : tokenInfo.permStateList) { in ToHapTokenInfosJson()
197 std::vector<PermissionStateFull>& permStateList) in FromPermStateListJson() argument
236 permStateList.emplace_back(permission); in FromPermStateListJson()
249 FromPermStateListJson(hapTokenJson, hapTokenInfo.permStateList); in FromHapTokenInfoJson()
282 FromPermStateListJson(nativeTokenJson, nativeTokenInfo.permStateList); in FromNativeTokenInfoJson()
/base/security/access_token/services/tokensyncmanager/include/command/
Dbase_remote_command.h53 std::vector<PermissionStateFull>& permStateList);
/base/security/access_token/test/fuzztest/access_token/allochaptoken_fuzzer/
Dallochaptoken_fuzzer.cpp64 .permStateList = {TestState} in AllocHapTokenFuzzTest()
/base/security/access_token/test/fuzztest/access_token/updatehaptoken_fuzzer/
Dupdatehaptoken_fuzzer.cpp61 .permStateList = {TestState} in UpdateHapTokenFuzzTest()
/base/security/access_token/test/fuzztest/access_token_stub/allochaptokenstub_fuzzer/
Dallochaptokenstub_fuzzer.cpp63 .permStateList = {TestState}}; in AllocHapTokenStubFuzzTest()

123