Home
last modified time | relevance | path

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

12

/base/notification/common_event_service/services/src/
Dcommon_event_permission_manager.cpp30 static const std::unordered_map<std::string, std::pair<PermissionState, std::vector<std::string>>> …
32 {PermissionState::DEFAULT, {"ohos.permission.RECEIVER_STARTUP_COMPLETED"}}
35 {PermissionState::DEFAULT, {"ohos.permission.RECEIVER_STARTUP_COMPLETED"}}
38 {PermissionState::DEFAULT, {"ohos.permission.MANAGE_LOCAL_ACCOUNTS"}}
41 {PermissionState::DEFAULT, {"ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS"}}
44 {PermissionState::DEFAULT, {"ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS"}}
47 {PermissionState::DEFAULT, {"ohos.permission.LOCATION"}}
50 {PermissionState::DEFAULT, {"ohos.permission.GET_WIFI_INFO"}}
53 {PermissionState::DEFAULT, {"ohos.permission.GET_WIFI_INFO"}}
56 {PermissionState::DEFAULT, {"ohos.permission.GET_WIFI_INFO"}}
[all …]
Daccess_token_helper.cpp37 AccessToken::PermissionState::PERMISSION_GRANTED); in VerifyAccessToken()
/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/telephony/core_service/utils/common/src/
Dtelephony_permission.cpp67 int result = PermissionState::PERMISSION_DENIED; in CheckPermission()
69 result = PermissionState::PERMISSION_GRANTED; in CheckPermission()
81 bool status = result == PermissionState::PERMISSION_GRANTED; in CheckPermission()
92 if (result != PermissionState::PERMISSION_GRANTED) { in CheckPermission()
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_test.h51 .grantStatus = { PermissionState::PERMISSION_GRANTED },
70 .grantStatus = { PermissionState::PERMISSION_GRANTED },
89 .grantStatus = { PermissionState::PERMISSION_GRANTED },
108 .grantStatus = { PermissionState::PERMISSION_GRANTED },
127 .grantStatus = { PermissionState::PERMISSION_GRANTED },
Dnetwork_search_test.h51 .grantStatus = { PermissionState::PERMISSION_GRANTED },
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 },
/base/telephony/core_service/services/network_search/test/
Dtest.h49 .grantStatus = { PermissionState::PERMISSION_GRANTED },
68 .grantStatus = { PermissionState::PERMISSION_GRANTED },
87 .grantStatus = { PermissionState::PERMISSION_GRANTED },
106 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dremote_token_kit_test.cpp42 .grantStatus = {PermissionState::PERMISSION_GRANTED},
49 .grantStatus = {PermissionState::PERMISSION_GRANTED},
79 .grantStatus = {PermissionState::PERMISSION_GRANTED},
87 .grantStatus = {PermissionState::PERMISSION_GRANTED, PermissionState::PERMISSION_GRANTED},
228 .grantStatus = {PermissionState::PERMISSION_GRANTED},
260 ASSERT_EQ(ret, PermissionState::PERMISSION_GRANTED);
296 .grantStatus = {PermissionState::PERMISSION_GRANTED},
363 .grantStatus = {PermissionState::PERMISSION_GRANTED},
382 ASSERT_EQ(ret, PermissionState::PERMISSION_DENIED);
415 .grantStatus = {PermissionState::PERMISSION_DENIED}, // first denied
[all …]
/base/telephony/state_registry/test/unittest/state_test/
Dstate_registry_test.h61 .grantStatus = { PermissionState::PERMISSION_GRANTED },
80 .grantStatus = { PermissionState::PERMISSION_GRANTED },
99 .grantStatus = { PermissionState::PERMISSION_GRANTED },
118 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Daccesstoken.h31 } PermissionState; typedef
Daccess_token.h66 } PermissionState; typedef
/base/account/os_account/services/accountmgr/test/mock/os_account/
Dpermission_kit.h28 } PermissionState; typedef
/base/powermgr/power_manager/utils/permission/src/
Dpermission.cpp150 int32_t result = PermissionState::PERMISSION_DENIED; in IsPermissionGranted()
157 result = PermissionState::PERMISSION_GRANTED; in IsPermissionGranted()
163 if (result == PermissionState::PERMISSION_DENIED) { in IsPermissionGranted()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp145 .grantStatus = {PermissionState::PERMISSION_DENIED},
152 .grantStatus = {PermissionState::PERMISSION_DENIED},
159 .grantStatus = {PermissionState::PERMISSION_DENIED, PermissionState::PERMISSION_DENIED},
166 .grantStatus = {PermissionState::PERMISSION_DENIED},
173 .grantStatus = {PermissionState::PERMISSION_GRANTED},
180 .grantStatus = {PermissionState::PERMISSION_DENIED},
2033 int grantState = PermissionState::PERMISSION_DENIED;
2103 .grantStatus = {PermissionState::PERMISSION_DENIED, PermissionState::PERMISSION_DENIED},
2129 .grantStatus = {PermissionState::PERMISSION_DENIED, PermissionState::PERMISSION_DENIED},
2136 .grantStatus = {PermissionState::PERMISSION_DENIED, PermissionState::PERMISSION_DENIED},
[all …]
/base/telephony/cellular_call/test/unittest/imstest/
Dims_test.h55 .grantStatus = { PermissionState::PERMISSION_GRANTED },
74 .grantStatus = { PermissionState::PERMISSION_GRANTED },
93 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/telephony/cellular_call/test/unittest/cstest/
Dcs_test.h54 .grantStatus = { PermissionState::PERMISSION_GRANTED },
73 .grantStatus = { PermissionState::PERMISSION_GRANTED },
92 .grantStatus = { 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/test/fuzztest/access_token/updatehaptoken_fuzzer/
Dupdatehaptoken_fuzzer.cpp51 .grantStatus = {PermissionState::PERMISSION_GRANTED}, in UpdateHapTokenFuzzTest()
/base/security/access_token/test/fuzztest/access_token/allochaptoken_fuzzer/
Dallochaptoken_fuzzer.cpp51 .grantStatus = {PermissionState::PERMISSION_GRANTED}, in AllocHapTokenFuzzTest()
/base/security/access_token/test/fuzztest/access_token/setremotehaptokeninfo_fuzzer/
Dsetremotehaptokeninfo_fuzzer.cpp51 .grantStatus = {PermissionState::PERMISSION_GRANTED}, in SetRemoteHapTokenInfoFuzzTest()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/database/
Ddata_translator.cpp110 int grantStatus = (PermissionState)inGenericValues.GetInt(TokenFiledConst::FIELD_GRANT_STATE); in TranslationIntoPermissionStateFull()
120 int grantFlag = (PermissionState)inGenericValues.GetInt(TokenFiledConst::FIELD_GRANT_FLAG); in TranslationIntoPermissionStateFull()
/base/security/access_token/services/common/database/test/unittest/
Ddatabase_test.cpp516 .grantStatus = {PermissionState::PERMISSION_GRANTED},
539 .grantStatus = {PermissionState::PERMISSION_GRANTED},
562 .grantStatus = {PermissionState::PERMISSION_GRANTED, PermissionState::PERMISSION_GRANTED},
654 inGenericValues.Put(TokenFiledConst::FIELD_GRANT_STATE, PermissionState::PERMISSION_GRANTED);
/base/security/access_token/services/privacymanager/test/unittest/
Dsensitive_manager_test.cpp52 .grantStatus = {PermissionState::PERMISSION_GRANTED},
60 .grantStatus = {PermissionState::PERMISSION_GRANTED},
68 .grantStatus = {PermissionState::PERMISSION_GRANTED},
/base/telephony/cellular_data/test/unit_test/
Dcellular_data_code_test.cpp50 .grantStatus = { PermissionState::PERMISSION_GRANTED },
69 .grantStatus = { PermissionState::PERMISSION_GRANTED },
88 .grantStatus = { PermissionState::PERMISSION_GRANTED },
/base/telephony/call_manager/test/unittest/ui_client/
Dbluetooth_call_test.cpp54 .grantStatus = { PermissionState::PERMISSION_GRANTED },
73 .grantStatus = { PermissionState::PERMISSION_GRANTED },
92 .grantStatus = { PermissionState::PERMISSION_GRANTED },
111 .grantStatus = { PermissionState::PERMISSION_GRANTED },

12