/base/notification/common_event_service/services/src/ |
D | common_event_permission_manager.cpp | 31 static const std::unordered_map<std::string, std::pair<PermissionState, std::vector<std::string>>> … 33 {PermissionState::DEFAULT, {"ohos.permission.RECEIVER_STARTUP_COMPLETED"}} 36 {PermissionState::DEFAULT, {"ohos.permission.RECEIVER_STARTUP_COMPLETED"}} 39 {PermissionState::DEFAULT, {"ohos.permission.MANAGE_LOCAL_ACCOUNTS"}} 42 {PermissionState::DEFAULT, {"ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS"}} 45 {PermissionState::DEFAULT, {"ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS"}} 48 {PermissionState::DEFAULT, {"ohos.permission.LOCATION"}} 51 {PermissionState::DEFAULT, {"ohos.permission.GET_WIFI_INFO"}} 54 {PermissionState::DEFAULT, {"ohos.permission.GET_WIFI_INFO"}} 57 {PermissionState::DEFAULT, {"ohos.permission.GET_WIFI_INFO"}} [all …]
|
/base/notification/common_event_service/services/include/ |
D | common_event_permission_manager.h | 27 enum class PermissionState { enum 34 PermissionState state; 37 Permission() : state(PermissionState::DEFAULT) in Permission()
|
/base/powermgr/power_manager/test/unittest/src/mock/ |
D | mock_accesstoken_kit.cpp | 23 PermissionState g_mockState = PermissionState::PERMISSION_DENIED; 32 void MockAccesstokenKit::MockSetPermissionState(PermissionState mockState) in MockSetPermissionState()
|
D | mock_accesstoken_kit.h | 27 static void MockSetPermissionState(OHOS::Security::AccessToken::PermissionState mockState);
|
/base/telephony/sms_mms/test/gtest/ |
D | sms_mms_gtest.h | 49 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 66 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 83 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 100 .grantStatus = { PermissionState::PERMISSION_GRANTED },
|
/base/telephony/sms_mms/test/unittest/ |
D | access_mms_token.h | 49 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 66 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 83 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 101 .grantStatus = { PermissionState::PERMISSION_GRANTED },
|
/base/telephony/core_service/services/network_search/test/ |
D | test.h | 50 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 69 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 88 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 107 .grantStatus = { PermissionState::PERMISSION_GRANTED },
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | network_search_test.h | 52 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 71 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 90 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 109 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 128 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 147 .grantStatus = { PermissionState::PERMISSION_GRANTED },
|
D | sim_test_util.h | 52 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 71 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 90 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 109 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 128 .grantStatus = { PermissionState::PERMISSION_GRANTED },
|
/base/telephony/state_registry/test/unittest/state_test/ |
D | state_registry_test.h | 62 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 81 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 100 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 119 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 138 .grantStatus = { PermissionState::PERMISSION_GRANTED },
|
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
D | remote_token_kit_test.cpp | 43 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 50 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 80 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 88 .grantStatus = {PermissionState::PERMISSION_GRANTED, PermissionState::PERMISSION_GRANTED}, 229 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 261 ASSERT_EQ(ret, PermissionState::PERMISSION_GRANTED); 327 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 370 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 389 ASSERT_EQ(ret, PermissionState::PERMISSION_DENIED); 422 .grantStatus = {PermissionState::PERMISSION_DENIED}, // first denied [all …]
|
D | accesstoken_kit_extension_test.cpp | 53 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 60 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 68 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 98 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 106 .grantStatus = {PermissionState::PERMISSION_GRANTED, PermissionState::PERMISSION_GRANTED}, 187 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 195 .grantStatus = {PermissionState::PERMISSION_DENIED}, 203 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 211 .grantStatus = {PermissionState::PERMISSION_DENIED}, 219 .grantStatus = {PermissionState::PERMISSION_DENIED}, [all …]
|
/base/powermgr/power_manager/utils/permission/src/ |
D | permission.cpp | 90 int32_t result = PermissionState::PERMISSION_DENIED; in IsPermissionGranted() 97 result = PermissionState::PERMISSION_GRANTED; in IsPermissionGranted() 105 if (result == PermissionState::PERMISSION_DENIED) { in IsPermissionGranted()
|
/base/account/os_account/services/accountmgr/test/mock/os_account/ |
D | permission_kit.h | 28 } PermissionState; typedef
|
/base/telephony/telephony_data/common/src/ |
D | permission_util.cpp | 40 if (result != PermissionState::PERMISSION_GRANTED) { in CheckPermission()
|
/base/telephony/core_service/utils/common/src/ |
D | telephony_permission.cpp | 79 bool status = result == PermissionState::PERMISSION_GRANTED; in CheckPermission() 91 if (result != PermissionState::PERMISSION_GRANTED) { in CheckPermission()
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 142 .grantStatus = {PermissionState::PERMISSION_DENIED}, 149 .grantStatus = {PermissionState::PERMISSION_DENIED}, 156 .grantStatus = {PermissionState::PERMISSION_DENIED, PermissionState::PERMISSION_DENIED}, 163 .grantStatus = {PermissionState::PERMISSION_DENIED}, 170 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 177 .grantStatus = {PermissionState::PERMISSION_DENIED}, 184 .grantStatus = {PermissionState::PERMISSION_DENIED}, 191 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 198 .grantStatus = {PermissionState::PERMISSION_DENIED}, 205 .grantStatus = {PermissionState::PERMISSION_GRANTED}, [all …]
|
D | permission_manager_test.cpp | 130 .grantStatus = {PermissionState::PERMISSION_DENIED}, 138 .grantStatus = {PermissionState::PERMISSION_DENIED}, 146 .grantStatus = {PermissionState::PERMISSION_DENIED}, 154 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 162 .grantStatus = {PermissionState::PERMISSION_DENIED}, 170 .grantStatus = {PermissionState::PERMISSION_GRANTED}, 828 ASSERT_EQ(PermissionState::PERMISSION_DENIED, 843 ASSERT_EQ(PermissionState::PERMISSION_DENIED, 850 ASSERT_EQ(PermissionState::PERMISSION_GRANTED, 855 ASSERT_EQ(PermissionState::PERMISSION_DENIED, [all …]
|
/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/ |
D | mock_common_event_permission_manager.cpp | 32 per.state = PermissionState::AND; in GetEventPermission()
|
/base/powermgr/power_manager/test/unittest/src/ |
D | power_mgr_util_test.cpp | 70 MockAccesstokenKit::MockSetPermissionState(PermissionState::PERMISSION_GRANTED); 98 MockAccesstokenKit::MockSetPermissionState(PermissionState::PERMISSION_DENIED); 101 MockAccesstokenKit::MockSetPermissionState(PermissionState::PERMISSION_GRANTED);
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_validator.cpp | 33 …return grantStaus == PermissionState::PERMISSION_GRANTED || grantStaus == PermissionState::PERMISS… in IsGrantStatusValid()
|
/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
D | access_token.h | 120 } PermissionState; typedef
|
/base/security/access_token/test/fuzztest/access_token/setremotehaptokeninfo_fuzzer/ |
D | setremotehaptokeninfo_fuzzer.cpp | 50 .grantStatus = {PermissionState::PERMISSION_GRANTED}, in SetRemoteHapTokenInfoFuzzTest()
|
/base/security/access_token/test/fuzztest/access_token/allochaptoken_fuzzer/ |
D | allochaptoken_fuzzer.cpp | 51 .grantStatus = {PermissionState::PERMISSION_GRANTED}, in AllocHapTokenFuzzTest()
|
/base/telephony/call_manager/test/unittest/call_manager_gtest/include/ |
D | call_manager_connect.h | 70 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 89 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 108 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 127 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 146 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 165 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 184 .grantStatus = { PermissionState::PERMISSION_GRANTED }, 203 .grantStatus = { PermissionState::PERMISSION_GRANTED },
|