Home
last modified time | relevance | path

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

123

/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dremote_token_kit_test.cpp102 .permStateList = {g_infoManagerTestState1, g_infoManagerTestState2}
116 .permStateList = {g_infoManagerTestState1, g_infoManagerTestState2}
230 std::vector<PermissionStateFull> permStateList; variable
231 permStateList.emplace_back(infoManagerTestState);
235 .permStateList = permStateList
298 std::vector<PermissionStateFull> permStateList; variable
299 permStateList.emplace_back(infoManagerTestState);
303 .permStateList = permStateList
366 std::vector<PermissionStateFull> permStateList; variable
367 permStateList.emplace_back(infoManagerTestState);
[all …]
/base/security/access_token/frameworks/accesstoken/src/
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_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()
Dhap_policy_parcel.cpp43 const std::vector<PermissionStateFull>& permStateList = this->hapPolicyParameter.permStateList; in Marshalling() local
44 int32_t permStateListSize = static_cast<int32_t>(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.cpp139 hapPolicyParcel.hapPolicyParameter.permStateList.emplace_back(g_permStatAlpha);
140 hapPolicyParcel.hapPolicyParameter.permStateList.emplace_back(g_permStatBeta);
151 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permStateList.size(),
152 readedData->hapPolicyParameter.permStateList.size());
173 for (uint32_t i = 0; i < hapPolicyParcel.hapPolicyParameter.permStateList.size(); i++) {
174 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permStateList[i].permissionName,
175 readedData->hapPolicyParameter.permStateList[i].permissionName);
176 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permStateList[i].isGeneral,
177 readedData->hapPolicyParameter.permStateList[i].isGeneral);
178 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permStateList[i].resDeviceID,
[all …]
/base/security/access_token/test/fuzztest/access_token/setremotehaptokeninfo_fuzzer/
Dsetremotehaptokeninfo_fuzzer.cpp55 std::vector<PermissionStateFull> permStateList; in SetRemoteHapTokenInfoFuzzTest() local
56 permStateList.emplace_back(infoManagerTestState); in SetRemoteHapTokenInfoFuzzTest()
59 .permStateList = permStateList in SetRemoteHapTokenInfoFuzzTest()
/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.cpp40 AccessTokenID tokenId, const std::vector<PermissionStateFull>& permStateList) in BuildPermissionPolicySet() argument
44 PermissionValidator::FilterInvalidPermissionState(permStateList, policySet->permStateList_); in BuildPermissionPolicySet()
59 void PermissionPolicySet::Update(const std::vector<PermissionStateFull>& permStateList) in Update() argument
62 PermissionValidator::FilterInvalidPermissionState(permStateList, permStateFilterList); in Update()
103 void PermissionPolicySet::MergePermissionStateFull(std::vector<PermissionStateFull>& permStateList, in MergePermissionStateFull() argument
106 for (auto iter = permStateList.begin(); iter != permStateList.end(); iter++) { in MergePermissionStateFull()
114 permStateList.emplace_back(state); in MergePermissionStateFull()
318 info.append(R"( "permStateList": [)"); in ToString()
355 info.append(R"( "permStateList": [)"); in PermStateToString()
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
Dpermission_policy_set.h38 const std::vector<PermissionStateFull>& permStateList);
42 void Update(const std::vector<PermissionStateFull>& permStateList);
57 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/interfaces/innerkits/accesstoken/include/
Dhap_token_info.h43 std::vector<PermissionStateFull> permStateList; variable
64 std::vector<PermissionStateFull> permStateList; variable
Dnative_token_info.h41 std::vector<PermissionStateFull> permStateList; variable
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Dnative_token_receptor_test.cpp274 std::vector<PermissionStateFull> permStateList = {}; variable
275 …tr<NativeTokenInfoInner> nativeToken = std::make_shared<NativeTokenInfoInner>(info, permStateList);
338 std::vector<PermissionStateFull> permStateList = {}; variable
339 …tr<NativeTokenInfoInner> nativeToken = std::make_shared<NativeTokenInfoInner>(info, permStateList);
387 std::vector<PermissionStateFull> permStateList = {}; variable
388 …tr<NativeTokenInfoInner> nativeToken = std::make_shared<NativeTokenInfoInner>(info, permStateList);
453 std::vector<PermissionStateFull> permStateList = { variable
455 …<NativeTokenInfoInner> nativeToken1 = std::make_shared<NativeTokenInfoInner>(info1, permStateList);
469 …<NativeTokenInfoInner> nativeToken2 = std::make_shared<NativeTokenInfoInner>(info2, permStateList);
557 std::vector<PermissionStateFull> permStateList = {}; variable
[all …]
Daccesstoken_info_manager_test.cpp114 .permStateList = {g_infoManagerTestState1, g_infoManagerTestState2}
819 std::vector<PermissionStateFull> permStateList; in SetRemoteHapTokenInfoTest() local
820 permStateList.emplace_back(g_infoManagerTestState1); in SetRemoteHapTokenInfoTest()
823 .permStateList = permStateList in SetRemoteHapTokenInfoTest()
948 .permStateList = {g_infoManagerTestStateA, g_infoManagerTestStateB,
1002 .permStateList = {g_infoManagerTestStateA, g_infoManagerTestStateB,
1056 .permStateList = {g_infoManagerTestStateA, g_infoManagerTestStateB,
1134 .permStateList = {g_infoManagerTestStateA, g_infoManagerTestStateB,
1192 .permStateList = {g_infoManagerTestStateA, g_infoManagerTestStateB,
1249 .permStateList = {g_infoManagerTestStateA, g_infoManagerTestStateB,
[all …]
/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()
142 std::vector<PermissionStateFull> permStateList; in from_json() local
143 if (NativeReqPermsGet(j, permStateList) != RET_SUCCESS) { in from_json()
147 p = std::make_shared<NativeTokenInfoInner>(native, permStateList); in from_json()
Dhap_token_info_inner.cpp59 permPolicySet_ = PermissionPolicySet::BuildPermissionPolicySet(id, policy.permStateList); in HapTokenInfoInner()
63 …const HapTokenInfo &info, const std::vector<PermissionStateFull>& permStateList) : isRemote_(false) in HapTokenInfoInner() argument
67 permPolicySet_ = PermissionPolicySet::BuildPermissionPolicySet(id, permStateList); in HapTokenInfoInner()
83 policy.permStateList); in Update()
87 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()
57 const std::vector<PermissionStateFull>& permStateList) in Init() argument
77 permStateList); in Init()
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Dnative_token_info_inner.h37 const std::vector<PermissionStateFull>& permStateList);
43 const std::vector<PermissionStateFull>& permStateList);
Dhap_token_info_inner.h38 const std::vector<PermissionStateFull>& permStateList);
/base/security/access_token/services/tokensyncmanager/src/command/
Dbase_remote_command.cpp84 for (const auto& permState : tokenInfo.permStateList) { in ToNativeTokenInfoJson()
130 for (const auto& permState : tokenInfo.permStateList) { in ToHapTokenInfosJson()
191 std::vector<PermissionStateFull>& permStateList) in FromPermStateListJson() argument
230 permStateList.emplace_back(permission); in FromPermStateListJson()
243 FromPermStateListJson(hapTokenJson, hapTokenInfo.permStateList); in FromHapTokenInfoJson()
276 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/updatehaptoken_fuzzer/
Dupdatehaptoken_fuzzer.cpp58 .permStateList = {TestState} in UpdateHapTokenFuzzTest()
/base/security/access_token/test/fuzztest/access_token/allochaptoken_fuzzer/
Dallochaptoken_fuzzer.cpp64 .permStateList = {TestState} in AllocHapTokenFuzzTest()
/base/security/access_token/services/privacymanager/test/unittest/
Dprivacy_manager_service_test.cpp52 .permStateList = {g_testState}
66 .permStateList = {g_testState}
/base/telephony/core_service/services/network_search/test/
Dtest.h117 .permStateList = { testNetPermLocation, testNetGetTelephonyState, testNetSetTelephonyState,

123