Home
last modified time | relevance | path

Searched refs:GrantMode (Results 1 – 7 of 7) sorted by relevance

/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_definition_parser.cpp112 return AccessToken::GrantMode::SYSTEM_GRANT; in GetPermissionGrantMode()
114 return AccessToken::GrantMode::USER_GRANT; in GetPermissionGrantMode()
154 if (permDef.grantMode == AccessToken::GrantMode::SYSTEM_GRANT) { in from_json()
Dpermission_validator.cpp33 return grantMode == GrantMode::SYSTEM_GRANT || grantMode == GrantMode::USER_GRANT; in IsGrantModeValid()
Dpermission_manager.cpp302 GrantMode mode = isSystemGrant ? SYSTEM_GRANT : USER_GRANT; in GetReqPermissions()
1238 if (permDef.grantMode == AccessToken::GrantMode::SYSTEM_GRANT) { in InitPermissionList()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Daccess_token.h170 } GrantMode; typedef
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
Daccesstoken_kit_extension_test.cpp173 .grantMode = GrantMode::USER_GRANT,
182 .grantMode = GrantMode::USER_GRANT,
191 .grantMode = GrantMode::SYSTEM_GRANT,
200 .grantMode = GrantMode::USER_GRANT,
421 permissionDefAlpha.grantMode = GrantMode::USER_GRANT; in PreparePermDefList()
429 permissionDefBeta.grantMode = GrantMode::SYSTEM_GRANT; in PreparePermDefList()
437 testPermDef1.grantMode = GrantMode::USER_GRANT; in PreparePermDefList()
445 testPermDef2.grantMode = GrantMode::USER_GRANT; in PreparePermDefList()
453 testPermDef3.grantMode = GrantMode::USER_GRANT; in PreparePermDefList()
461 testPermDef4.grantMode = GrantMode::USER_GRANT; in PreparePermDefList()
Daccesstoken_kit_test.cpp211 permissionDefBeta.grantMode = GrantMode::SYSTEM_GRANT; in TestPreparePermDefList()
219 permissionDefAlpha.grantMode = GrantMode::USER_GRANT; in TestPreparePermDefList()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp1640 .grantMode = static_cast<GrantMode>(2),
1653 permDef.grantMode = GrantMode::USER_GRANT;
1713 .grantMode = GrantMode::SYSTEM_GRANT,