Searched refs:PERMISSION_COMPONENT_SET (Results 1 – 9 of 9) sorted by relevance
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/ |
D | security_component_grant_test.cpp | 136 … int32_t res = AccessTokenKit::GrantPermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET); 141 ASSERT_NE(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); 146 res = AccessTokenKit::RevokePermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET); 152 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); 173 res = AccessTokenKit::GrantPermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET); 180 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); 183 res = AccessTokenKit::RevokePermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET); 189 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); 210 res = AccessTokenKit::GrantPermission(tokenID, TEST_PERMISSION, PERMISSION_COMPONENT_SET); 216 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); [all …]
|
D | accesstoken_kit_test.cpp | 340 .grantFlags = {PermissionFlag::PERMISSION_COMPONENT_SET} 403 …_SUCCESS, AccessTokenKit::GrantPermission(tokenID, distributedDatasync, PERMISSION_COMPONENT_SET));
|
/base/security/security_component_manager/services/security_component_service/sa/test/mock/include/ |
D | access_token.h | 43 PERMISSION_COMPONENT_SET = 1 << 4, enumerator
|
/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
D | sec_comp_perm_manager.cpp | 184 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in GrantAppPermission() 197 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in RevokeAppPermission() 240 AccessToken::PermissionFlag::PERMISSION_COMPONENT_SET); in RevokeAppPermisionsImmediately()
|
/base/security/access_token/interfaces/innerkits/accesstoken/include/ |
D | access_token.h | 203 PERMISSION_COMPONENT_SET = 1 << 4, enumerator
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_policy_set.cpp | 110 return GetFlagWithoutSpecifiedElement(grantFlag, PERMISSION_COMPONENT_SET); in GetFlagWroteToDb() 194 return uFlag & PERMISSION_COMPONENT_SET; in IsPermGrantedBySecComp() 368 needToAdd ? (oldFlag | flag) : (oldFlag & (~PERMISSION_COMPONENT_SET)); in SetPermissionFlag() 405 SetPermissionFlag(permissionName, PERMISSION_COMPONENT_SET, isToGrant); in UpdateSecCompGrantedPermList() 425 … perm.grantFlags[0] = GetFlagWithoutSpecifiedElement(perm.grantFlags[0], PERMISSION_COMPONENT_SET); in ClearSecCompGrantedPerm()
|
D | permission_manager.cpp | 393 …((goalGrantFlag & PERMISSION_COMPONENT_SET) != 0) || ((goalGrantFlag & PERMISSION_ALLOW_THIS_TIME)… in GetSelfPermissionState()
|
/base/security/access_token/frameworks/common/src/ |
D | data_validator.cpp | 100 unmaskedFlag == PermissionFlag::PERMISSION_COMPONENT_SET || in IsPermissionFlagValid()
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 2357 …ager::GetInstance().GrantPermission(tokenId, "ohos.permission.LOCATION", PERMISSION_COMPONENT_SET);
|