/base/security/access_token/frameworks/common/src/ |
D | data_validator.cpp | 80 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/ |
D | ExampleJsunit.test.js | 22 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/ |
D | ExampleJsunit.test.js | 22 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/ |
D | sec_comp_info_helper.cpp | 213 … "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()
|
D | sec_comp_perm_manager.cpp | 67 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/ |
D | remote_token_kit_test.cpp | 44 .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 …]
|
D | accesstoken_kit_extension_test.cpp | 54 .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 …]
|
D | accesstoken_kit_test.cpp | 53 .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/ |
D | accesstoken_info_manager_test.cpp | 143 .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 …]
|
D | permission_manager_test.cpp | 131 .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/ |
D | access_token.h | 45 } PermissionFlag; typedef
|
/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
D | access_token.h | 171 } PermissionFlag; typedef
|
/base/security/access_token/test/fuzztest/access_token/setremotehaptokeninfo_fuzzer/ |
D | setremotehaptokeninfo_fuzzer.cpp | 49 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}, in SetRemoteHapTokenInfoFuzzTest()
|
/base/security/access_token/test/fuzztest/access_token_stub/setremotehaptokeninfostub_fuzzer/ |
D | setremotehaptokeninfostub_fuzzer.cpp | 52 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}, in SetRemoteHapTokenInfoStubFuzzTest()
|
/base/security/access_token/services/common/database/test/unittest/ |
D | database_test.cpp | 517 .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/ |
D | token_sync_service_test.cpp | 458 .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/ |
D | accesstoken_parcel_test.cpp | 72 .grantFlags = {PermissionFlag::PERMISSION_USER_SET} 79 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
|
/base/security/access_token/interfaces/innerkits/privacy/test/unittest/src/ |
D | privacy_kit_test.cpp | 46 .grantFlags = {PermissionFlag::PERMISSION_SYSTEM_FIXED}
|