Home
last modified time | relevance | path

Searched refs:PermissionFlag (Results 1 – 18 of 18) sorted by relevance

/base/security/access_token/frameworks/common/src/
Ddata_validator.cpp80 static_cast<uint32_t>(flag) & (~PermissionFlag::PERMISSION_GRANTED_BY_POLICY); in IsPermissionFlagValid()
81 return unmaskedFlag == PermissionFlag::PERMISSION_DEFAULT_FLAG || in IsPermissionFlagValid()
82 unmaskedFlag == PermissionFlag::PERMISSION_USER_SET || in IsPermissionFlagValid()
83 unmaskedFlag == PermissionFlag::PERMISSION_USER_FIXED || in IsPermissionFlagValid()
84 unmaskedFlag == PermissionFlag::PERMISSION_SYSTEM_FIXED || in IsPermissionFlagValid()
85 unmaskedFlag == PermissionFlag::PERMISSION_COMPONENT_SET || in IsPermissionFlagValid()
86 unmaskedFlag == PermissionFlag::PERMISSION_POLICY_FIXED; in IsPermissionFlagValid()
/base/sensors/sensor/interfaces/plugin/test/unittest/pedometer/
DExampleJsunit.test.js22 let PermissionFlag = { variable
84 PermissionFlag.PERMISSION_SYSTEM_FIXED)
101 PermissionFlag.PERMISSION_SYSTEM_FIXED)
145 PermissionFlag.PERMISSION_SYSTEM_FIXED)
186 PermissionFlag.PERMISSION_SYSTEM_FIXED)
230 PermissionFlag.PERMISSION_SYSTEM_FIXED)
274 PermissionFlag.PERMISSION_SYSTEM_FIXED)
315 PermissionFlag.PERMISSION_SYSTEM_FIXED)
355 PermissionFlag.PERMISSION_SYSTEM_FIXED)
400 PermissionFlag.PERMISSION_SYSTEM_FIXED)
[all …]
/base/sensors/sensor/interfaces/plugin/test/unittest/pedometer_detection/
DExampleJsunit.test.js22 let PermissionFlag = { variable
84 PermissionFlag.PERMISSION_SYSTEM_FIXED)
101 PermissionFlag.PERMISSION_SYSTEM_FIXED)
145 PermissionFlag.PERMISSION_SYSTEM_FIXED)
186 PermissionFlag.PERMISSION_SYSTEM_FIXED)
230 PermissionFlag.PERMISSION_SYSTEM_FIXED)
274 PermissionFlag.PERMISSION_SYSTEM_FIXED)
315 PermissionFlag.PERMISSION_SYSTEM_FIXED)
355 PermissionFlag.PERMISSION_SYSTEM_FIXED)
400 PermissionFlag.PERMISSION_SYSTEM_FIXED)
[all …]
/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dsec_comp_info_helper.cpp213 … "ohos.permission.APPROXIMATELY_LOCATION", AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in GrantTempPermission()
218 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in GrantTempPermission()
222 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in GrantTempPermission()
253 … "ohos.permission.LOCATION", AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in RevokeTempPermission()
255 … "ohos.permission.APPROXIMATELY_LOCATION", AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in RevokeTempPermission()
Dsec_comp_perm_manager.cpp67 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in GrantLocationPermission()
77 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in RevokeLocationPermission()
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Dremote_token_kit_test.cpp44 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
51 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
230 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
328 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
423 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
481 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
500 …ret = AccessTokenKit::GrantPermission(mapID, "ohos.permission.test1", PermissionFlag::PERMISSION_S…
538 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
557 …ret = AccessTokenKit::RevokePermission(mapID, "ohos.permission.test1", PermissionFlag::PERMISSION_…
595 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
[all …]
Daccesstoken_kit_extension_test.cpp54 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
61 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
69 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
188 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
196 .grantFlags = {PermissionFlag::PERMISSION_DEFAULT_FLAG}
204 .grantFlags = {PermissionFlag::PERMISSION_USER_FIXED}
212 .grantFlags = {PermissionFlag::PERMISSION_DEFAULT_FLAG}
220 .grantFlags = {PermissionFlag::PERMISSION_USER_FIXED}
228 .grantFlags = {PermissionFlag::PERMISSION_USER_FIXED}
236 .grantFlags = {PermissionFlag::PERMISSION_DEFAULT_FLAG}
[all …]
Daccesstoken_kit_test.cpp53 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
60 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
68 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
219 .grantFlags = {PermissionFlag::PERMISSION_USER_SET} in TestPreparePermStateList()
226 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED} in TestPreparePermStateList()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp143 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
150 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
157 .grantFlags = {PermissionFlag::PERMISSION_DEFAULT_FLAG, PermissionFlag::PERMISSION_DEFAULT_FLAG}
164 .grantFlags = {PermissionFlag::PERMISSION_DEFAULT_FLAG}
171 .grantFlags = {PermissionFlag::PERMISSION_USER_FIXED}
178 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
185 .grantFlags = {PermissionFlag::PERMISSION_POLICY_FIXED}
192 .grantFlags = {PermissionFlag::PERMISSION_POLICY_FIXED}
199 .grantFlags = {PermissionFlag::PERMISSION_POLICY_FIXED | PermissionFlag::PERMISSION_USER_SET}
206 .grantFlags = {PermissionFlag::PERMISSION_POLICY_FIXED | PermissionFlag::PERMISSION_USER_SET}
[all …]
Dpermission_manager_test.cpp131 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
139 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
147 .grantFlags = {PermissionFlag::PERMISSION_POLICY_FIXED}
155 .grantFlags = {PermissionFlag::PERMISSION_POLICY_FIXED}
163 .grantFlags = {PermissionFlag::PERMISSION_POLICY_FIXED | PermissionFlag::PERMISSION_USER_SET}
171 .grantFlags = {PermissionFlag::PERMISSION_POLICY_FIXED | PermissionFlag::PERMISSION_USER_SET}
1120 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
/base/security/security_component_manager/services/security_component_service/sa/test/mock/include/
Daccess_token.h45 } PermissionFlag; typedef
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Daccess_token.h171 } PermissionFlag; typedef
/base/security/access_token/test/fuzztest/access_token/setremotehaptokeninfo_fuzzer/
Dsetremotehaptokeninfo_fuzzer.cpp49 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}, in SetRemoteHapTokenInfoFuzzTest()
/base/security/access_token/test/fuzztest/access_token_stub/setremotehaptokeninfostub_fuzzer/
Dsetremotehaptokeninfostub_fuzzer.cpp52 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}, in SetRemoteHapTokenInfoStubFuzzTest()
/base/security/access_token/services/common/database/test/unittest/
Ddatabase_test.cpp517 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
540 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
563 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
/base/security/access_token/services/tokensyncmanager/test/unittest/token_sync_service/
Dtoken_sync_service_test.cpp458 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
479 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}};
488 … .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED, PermissionFlag::PERMISSION_SYSTEM_FIXED}};
/base/security/access_token/frameworks/test/unittest/
Daccesstoken_parcel_test.cpp72 .grantFlags = {PermissionFlag::PERMISSION_USER_SET}
79 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/
Dprivacy_kit_test.cpp46 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}