Home
last modified time | relevance | path

Searched refs:PermissionState (Results 1 – 25 of 65) sorted by relevance

123

/base/notification/common_event_service/services/src/
Dcommon_event_permission_manager.cpp31 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/
Dcommon_event_permission_manager.h27 enum class PermissionState { enum
34 PermissionState state;
37 Permission() : state(PermissionState::DEFAULT) in Permission()
/base/powermgr/power_manager/test/unittest/src/mock/
Dmock_accesstoken_kit.cpp23 PermissionState g_mockState = PermissionState::PERMISSION_DENIED;
32 void MockAccesstokenKit::MockSetPermissionState(PermissionState mockState) in MockSetPermissionState()
Dmock_accesstoken_kit.h27 static void MockSetPermissionState(OHOS::Security::AccessToken::PermissionState mockState);
/base/telephony/sms_mms/test/gtest/
Dsms_mms_gtest.h49 .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/
Daccess_mms_token.h49 .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/
Dtest.h50 .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/
Dnetwork_search_test.h52 .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 },
Dsim_test_util.h52 .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/
Dstate_registry_test.h62 .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/
Dremote_token_kit_test.cpp43 .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 …]
Daccesstoken_kit_extension_test.cpp53 .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/
Dpermission.cpp90 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/
Dpermission_kit.h28 } PermissionState; typedef
/base/telephony/telephony_data/common/src/
Dpermission_util.cpp40 if (result != PermissionState::PERMISSION_GRANTED) { in CheckPermission()
/base/telephony/core_service/utils/common/src/
Dtelephony_permission.cpp79 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/
Daccesstoken_info_manager_test.cpp142 .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 …]
Dpermission_manager_test.cpp130 .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/
Dmock_common_event_permission_manager.cpp32 per.state = PermissionState::AND; in GetEventPermission()
/base/powermgr/power_manager/test/unittest/src/
Dpower_mgr_util_test.cpp70 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/
Dpermission_validator.cpp33 …return grantStaus == PermissionState::PERMISSION_GRANTED || grantStaus == PermissionState::PERMISS… in IsGrantStatusValid()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Daccess_token.h120 } PermissionState; typedef
/base/security/access_token/test/fuzztest/access_token/setremotehaptokeninfo_fuzzer/
Dsetremotehaptokeninfo_fuzzer.cpp50 .grantStatus = {PermissionState::PERMISSION_GRANTED}, in SetRemoteHapTokenInfoFuzzTest()
/base/security/access_token/test/fuzztest/access_token/allochaptoken_fuzzer/
Dallochaptoken_fuzzer.cpp51 .grantStatus = {PermissionState::PERMISSION_GRANTED}, in AllocHapTokenFuzzTest()
/base/telephony/call_manager/test/unittest/call_manager_gtest/include/
Dcall_manager_connect.h70 .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 },

123