/base/security/access_token/interfaces/innerkits/privacy/src/ |
D | perm_active_status_customized_cbk.cpp | 25 const std::vector<std::string>& permList) : permList_(permList) in PermActiveStatusCustomizedCbk() argument 31 void PermActiveStatusCustomizedCbk::GetPermList(std::vector<std::string>& permList) const in GetPermList() 33 permList = permList_; in GetPermList()
|
/base/security/access_token/test/fuzztest/access_token_stub/registerpermactivestatuscallbackstub_fuzzer/ |
D | registerpermactivestatuscallbackstub_fuzzer.cpp | 32 explicit RegisterActiveFuzzTest(const std::vector<std::string> &permList) in RegisterActiveFuzzTest() argument 33 : PermActiveStatusCustomizedCbk(permList) in RegisterActiveFuzzTest() 57 std::vector<std::string> permList = {testName}; in RegisterPermActiveStatusCallbackStubFuzzTest() local 60 if (!datas.WriteString(permList[0])) { in RegisterPermActiveStatusCallbackStubFuzzTest() 63 if (!datas.WriteInt32(permList.size())) { in RegisterPermActiveStatusCallbackStubFuzzTest() 67 auto callback = std::make_shared<RegisterActiveFuzzTest>(permList); in RegisterPermActiveStatusCallbackStubFuzzTest()
|
/base/security/access_token/test/fuzztest/access_token/unregisterpermactivestatuscallback_fuzzer/ |
D | unregisterpermactivestatuscallback_fuzzer.cpp | 30 explicit UnRegisterActiveFuzzTest(const std::vector<std::string> &permList) in UnRegisterActiveFuzzTest() argument 31 : PermActiveStatusCustomizedCbk(permList) in UnRegisterActiveFuzzTest() 54 std::vector<std::string> permList = {testName}; in UnRegisterPermActiveStatusCallbackFuzzTest() local 55 auto callback = std::make_shared<UnRegisterActiveFuzzTest>(permList); in UnRegisterPermActiveStatusCallbackFuzzTest()
|
/base/security/access_token/test/fuzztest/access_token/registerpermactivestatuscallback_fuzzer/ |
D | registerpermactivestatuscallback_fuzzer.cpp | 30 explicit RegisterActiveFuzzTest(const std::vector<std::string> &permList) in RegisterActiveFuzzTest() argument 31 : PermActiveStatusCustomizedCbk(permList) in RegisterActiveFuzzTest() 54 std::vector<std::string> permList = {testName}; in RegisterPermActiveStatusCallbackFuzzTest() local 55 auto callback = std::make_shared<RegisterActiveFuzzTest>(permList); in RegisterPermActiveStatusCallbackFuzzTest()
|
/base/security/access_token/services/privacymanager/include/active/ |
D | active_status_callback_manager.h | 33 CallbackData(const std::vector<std::string>& permList, sptr<IRemoteObject> callback) in CallbackData() 34 : permList_(permList), callbackObject_(callback) in CallbackData() 48 const std::vector<std::string>& permList, const sptr<IRemoteObject>& callback); 50 bool NeedCalled(const std::vector<std::string>& permList, const std::string& permName);
|
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
D | accesstoken_kit_test.cpp | 115 .permList = {g_infoManagerTestPermDef1, g_infoManagerTestPermDef2}, 130 .permList = {g_infoManagerTestPermDef1, g_infoManagerTestPermDef2}, 313 policy.permList.emplace_back(permissionDefAlpha); in TestPreparePermDefList() 314 policy.permList.emplace_back(permissionDefBeta); in TestPreparePermDefList() 315 policy.permList.emplace_back(testPermDef1); in TestPreparePermDefList() 316 policy.permList.emplace_back(testPermDef2); in TestPreparePermDefList() 317 policy.permList.emplace_back(testPermDef3); in TestPreparePermDefList() 318 policy.permList.emplace_back(testPermDef4); in TestPreparePermDefList() 469 testPolicyPrams.permList.clear(); 861 .permList = permDefList, [all …]
|
D | accesstoken_kit_extension_test.cpp | 121 .permList = {g_infoManagerTestPermDef1, g_infoManagerTestPermDef2}, 136 .permList = {g_infoManagerTestPermDef1, g_infoManagerTestPermDef2}, 418 policy.permList.emplace_back(permissionDefAlpha); in PreparePermDefList() 419 policy.permList.emplace_back(permissionDefBeta); in PreparePermDefList() 420 policy.permList.emplace_back(testPermDef1); in PreparePermDefList() 421 policy.permList.emplace_back(testPermDef2); in PreparePermDefList() 422 policy.permList.emplace_back(testPermDef3); in PreparePermDefList() 423 policy.permList.emplace_back(testPermDef4); in PreparePermDefList() 486 policy.permList.emplace_back(permissionDef); in AllocHapToken() 1203 scopeInfo.permList = {"ohos.permission.CAMERA"}; [all …]
|
/base/security/access_token/services/privacymanager/src/active/ |
D | active_status_callback_manager.cpp | 56 const std::vector<std::string>& permList, const sptr<IRemoteObject>& callback) in AddCallback() argument 72 recordInstance.permList_ = permList; in AddCallback() 104 bool ActiveStatusCallbackManager::NeedCalled(const std::vector<std::string>& permList, const std::s… in NeedCalled() argument 106 if (permList.empty()) { in NeedCalled() 109 return std::any_of(permList.begin(), permList.end(), in NeedCalled() 130 std::vector<std::string> permList = (*it).permList_; in ExecuteCallbackAsync() local 131 if (!NeedCalled(permList, permName)) { in ExecuteCallbackAsync()
|
/base/security/access_token/test/fuzztest/access_token_stub/unregisterpermactivestatuscallbackstub_fuzzer/ |
D | unregisterpermactivestatuscallbackstub_fuzzer.cpp | 32 explicit RegisterActiveFuzzTest(const std::vector<std::string> &permList) in RegisterActiveFuzzTest() argument 33 : PermActiveStatusCustomizedCbk(permList) in RegisterActiveFuzzTest() 59 std::vector<std::string> permList = {testName}; in UnRegisterPermActiveStatusCallbackStubFuzzTest() local 62 auto callback = std::make_shared<RegisterActiveFuzzTest>(permList); in UnRegisterPermActiveStatusCallbackStubFuzzTest()
|
/base/security/access_token/frameworks/test/unittest/ |
D | accesstoken_parcel_test.cpp | 139 hapPolicyParcel.hapPolicyParameter.permList.emplace_back(g_permDefAlpha); 140 hapPolicyParcel.hapPolicyParameter.permList.emplace_back(g_permDefBeta); 152 …EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permList.size(), readedData->hapPolicyParameter.permL… 156 for (uint32_t i = 0; i < hapPolicyParcel.hapPolicyParameter.permList.size(); i++) { 157 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permList[i].permissionName, 158 readedData->hapPolicyParameter.permList[i].permissionName); 159 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permList[i].bundleName, 160 readedData->hapPolicyParameter.permList[i].bundleName); 161 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.permList[i].grantMode, 162 readedData->hapPolicyParameter.permList[i].grantMode); [all …]
|
/base/security/permission_lite/services/pms/src/ |
D | perm_operate.c | 32 if (strcmp(cur->permList[i].name, permission) == 0) { in PermissionIsGranted() 33 return (int)cur->permList[i].granted; in PermissionIsGranted() 48 if (strcmp(node->permList[i].name, permission) == 0) { in ModifyPermission() 49 node->permList[i].granted = granted; in ModifyPermission() 77 HalFree(cur->permList); in DeleteTask()
|
D | pms_impl.c | 134 PermissionDef *permList = HalGetPermissionList(&permSize); in GetPermissionType() local 137 if (strcmp(permission, permList[i].name) == 0) { in GetPermissionType() 138 return permList[i].type; in GetPermissionType() 352 PermissionDef *permList = HalGetPermissionList(&permSize); in QueryAppCapabilities() local 356 … if (strcmp(permissions[j].name, permList[i].name) || permList[i].cap == CAP_NOT_BINDED) { in QueryAppCapabilities() 359 capsBinded[index++] = permList[i].cap; in QueryAppCapabilities() 503 PermissionDef *permList = HalGetPermissionList(&permSize); in IsPermissionValid() local 506 if (strcmp(permissionName, permList[i].name) == 0) { in IsPermissionValid() 516 PermissionDef *permList = HalGetPermissionList(&permSize); in IsPermissionRestricted() local 519 if (strcmp(permissionName, permList[i].name) == 0) { in IsPermissionRestricted() [all …]
|
/base/security/access_token/frameworks/accesstoken/src/ |
D | hap_policy_parcel.cpp | 33 const std::vector<PermissionDef>& permList = this->hapPolicyParameter.permList; in Marshalling() local 34 uint32_t permListSize = permList.size(); in Marshalling() 39 permDefParcel.permissionDef = permList[i]; in Marshalling() 76 hapPolicyParcel->hapPolicyParameter.permList.emplace_back(permDefParcel->permissionDef); in Unmarshalling()
|
D | permission_state_change_scope_parcel.cpp | 29 RETURN_IF_FALSE(out.WriteUint32((this->scope.permList.size()))); in Marshalling() 30 for (const auto& permissionName : this->scope.permList) { in Marshalling() 57 permStateChangeScopeParcel->scope.permList.emplace_back(permName); in Unmarshalling()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_validator.cpp | 90 const std::vector<PermissionDef>& permList, std::vector<PermissionDef>& result) in FilterInvalidPermissionDef() argument 93 for (auto it = permList.begin(); it != permList.end(); ++it) { in FilterInvalidPermissionDef() 122 const std::vector<PermissionStateFull>& permList, std::vector<PermissionStateFull>& result) in FilterInvalidPermissionState() argument 125 for (auto it = permList.begin(); it != permList.end(); ++it) { in FilterInvalidPermissionState()
|
/base/security/access_token/interfaces/innerkits/privacy/include/ |
D | perm_active_status_customized_cbk.h | 60 explicit PermActiveStatusCustomizedCbk(const std::vector<std::string>& permList); 76 void GetPermList(std::vector<std::string>& permList) const;
|
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/ |
D | permission_validator.h | 34 const std::vector<PermissionDef>& permList, std::vector<PermissionDef>& result); 36 const std::vector<PermissionStateFull>& permList, std::vector<PermissionStateFull>& result);
|
/base/security/access_token/interfaces/innerkits/token_callback/src/ |
D | token_callback_stub.cpp | 54 std::vector<std::string> permList; in OnRemoteRequest() local 58 permList.emplace_back(perm); in OnRemoteRequest() 71 GrantResultsCallback(permList, grantResults); in OnRemoteRequest()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/callback/ |
D | callback_manager.cpp | 112 bool CallbackManager::CalledAccordingToPermLlist(const std::vector<std::string>& permList, const st… in CalledAccordingToPermLlist() argument 114 if (permList.empty()) { in CalledAccordingToPermLlist() 117 return std::any_of(permList.begin(), permList.end(), in CalledAccordingToPermLlist() 138 !CalledAccordingToPermLlist(scopePtr_->permList, permName)) { in ExecuteCallbackAsync()
|
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/ |
D | permission_deny_test.cpp | 153 explicit CbCustomizeTest(const std::vector<std::string> &permList) in CbCustomizeTest() argument 154 : PermActiveStatusCustomizedCbk(permList) in CbCustomizeTest() 177 std::vector<std::string> permList = {"ohos.permission.CAMERA"}; variable 178 auto callbackPtr = std::make_shared<CbCustomizeTest>(permList);
|
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/privacy_mock_test/ |
D | privacy_kit_test.cpp | 176 explicit PermActiveStatusCallbackTest(const std::vector<std::string> &permList) in PermActiveStatusCallbackTest() argument 177 : PermActiveStatusCustomizedCbk(permList) in PermActiveStatusCallbackTest() 198 std::vector<std::string> permList = {"ohos.permission.CAMERA"}; variable 199 auto callbackPtr = std::make_shared<PermActiveStatusCallbackTest>(permList);
|
/base/security/access_token/interfaces/kits/privacy/napi/src/ |
D | permission_record_manager_napi.cpp | 684 std::vector<std::string> permList; in ParseInputToRegister() local 686 if (!ParseStringArray(env, argv[1], permList)) { in ParseInputToRegister() 690 std::sort(permList.begin(), permList.end()); in ParseInputToRegister() 699 registerPermActiveChangeContext.subscriber = std::make_shared<PermActiveStatusPtr>(permList); in ParseInputToRegister() 726 std::vector<std::string> permList; in ParseInputToUnregister() local 727 if (!ParseStringArray(env, argv[1], permList)) { in ParseInputToUnregister() 731 std::sort(permList.begin(), permList.end()); in ParseInputToUnregister() 742 unregisterPermActiveChangeContext.permList = permList; in ParseInputToUnregister() 752 std::vector<std::string> permList; in IsExistRegister() local 753 item->subscriber->GetPermList(permList); in IsExistRegister() [all …]
|
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/accesstoken_mock_test/ |
D | accesstoken_kit_test.cpp | 225 std::vector<PermissionDef> permList; variable 226 …T_EQ(AccessTokenError::ERR_SA_WORK_ABNORMAL, AccessTokenKit::GetDefPermissions(tokenId, permList)); 238 std::vector<PermissionStateFull> permList; variable 239 …cessTokenError::ERR_SA_WORK_ABNORMAL, AccessTokenKit::GetReqPermissions(tokenId, permList, false)); 264 std::vector<PermissionListState> permList; variable 265 ASSERT_EQ(INVALID_OPER, AccessTokenKit::GetSelfPermissionsState(permList)); 330 scopeInfo.permList = {"ohos.permission.CAMERA"};
|
/base/security/access_token/services/privacymanager/test/unittest/ |
D | permission_record_manager_test.cpp | 67 .permList = {}, 81 .permList = {}, 198 std::vector<std::string> permList = {"ohos.permission.CAMERA"}; variable 200 … PermissionRecordManager::GetInstance().RegisterPermActiveStatusCallback(permList, nullptr)); 220 std::vector<std::string> permList = {"ohos.permission.CAMERA"}; variable 227 …PermissionRecordManager::GetInstance().RegisterPermActiveStatusCallback(permList, callback->AsObje… 234 …PermissionRecordManager::GetInstance().RegisterPermActiveStatusCallback(permList, callback->AsObje… 250 std::vector<std::string> permList = {"ohos.permission.CAMERA"}; variable 252 … PermissionRecordManager::GetInstance().RegisterPermActiveStatusCallback(permList, nullptr)); 631 std::vector<std::string> permList; variable [all …]
|
D | privacy_manager_service_test.cpp | 58 .permList = {}, 73 .permList = {}, 275 std::vector<std::string>& permList, const sptr<IRemoteObject>& callback) in RegisterPermActiveStatusCallback() argument 796 explicit CbCustomizeTest1(const std::vector<std::string> &permList) in CbCustomizeTest1() argument 797 : PermActiveStatusCustomizedCbk(permList) in CbCustomizeTest1() 824 std::vector<std::string> permList = {}; variable 825 auto callbackPtr = std::make_shared<CbCustomizeTest1>(permList); 836 ASSERT_EQ(true, data.WriteUint32(permList.size())); 851 std::vector<std::string> permList = {}; variable 852 auto callbackPtr = std::make_shared<CbCustomizeTest1>(permList); [all …]
|