/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
D | remote_token_kit_test.cpp | 103 .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 …]
|
D | accesstoken_kit_extension_test.cpp | 122 .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/ |
D | hap_token_info_for_sync_parcel.cpp | 32 …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()
|
D | native_token_info_for_sync_parcel.cpp | 32 …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()
|
D | hap_policy_parcel.cpp | 43 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/ |
D | accesstoken_parcel_test.cpp | 141 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/ |
D | setremotehaptokeninfo_fuzzer.cpp | 54 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/ |
D | setremotehaptokeninfostub_fuzzer.cpp | 57 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/ |
D | native_token_receptor_test.cpp | 275 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 …]
|
D | accesstoken_info_manager_test.cpp | 111 .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/ |
D | dlp_permission_set_manager.cpp | 73 std::vector<PermissionStateFull>& permStateList) in UpdatePermStateWithDlpInfo() argument 76 for (auto iter = permStateList.begin(); iter != permStateList.end(); iter++) { in UpdatePermStateWithDlpInfo()
|
D | permission_policy_set.cpp | 42 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/ |
D | hap_token_info.h | 85 std::vector<PermissionStateFull> permStateList; variable 125 std::vector<PermissionStateFull> permStateList; variable
|
D | native_token_info.h | 81 std::vector<PermissionStateFull> permStateList; variable
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/ |
D | permission_policy_set.h | 39 const std::vector<PermissionStateFull>& permStateList); 43 void Update(const std::vector<PermissionStateFull>& permStateList); 64 static void MergePermissionStateFull(std::vector<PermissionStateFull>& permStateList,
|
D | dlp_permission_set_manager.h | 34 …t32_t UpdatePermStateWithDlpInfo(int32_t dlpType, std::vector<PermissionStateFull>& permStateList);
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/ |
D | native_token_receptor.cpp | 45 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()
|
D | hap_token_info_inner.cpp | 64 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()
|
D | native_token_info_inner.cpp | 41 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/ |
D | native_token_info_inner.h | 43 const std::vector<PermissionStateFull>& permStateList); 48 const std::vector<PermissionStateFull>& permStateList);
|
/base/security/access_token/services/tokensyncmanager/src/command/ |
D | base_remote_command.cpp | 104 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/ |
D | base_remote_command.h | 53 std::vector<PermissionStateFull>& permStateList);
|
/base/security/access_token/test/fuzztest/access_token/allochaptoken_fuzzer/ |
D | allochaptoken_fuzzer.cpp | 64 .permStateList = {TestState} in AllocHapTokenFuzzTest()
|
/base/security/access_token/test/fuzztest/access_token/updatehaptoken_fuzzer/ |
D | updatehaptoken_fuzzer.cpp | 61 .permStateList = {TestState} in UpdateHapTokenFuzzTest()
|
/base/security/access_token/test/fuzztest/access_token_stub/allochaptokenstub_fuzzer/ |
D | allochaptokenstub_fuzzer.cpp | 63 .permStateList = {TestState}}; in AllocHapTokenStubFuzzTest()
|