Home
last modified time | relevance | path

Searched refs:IsPermissionGranted (Results 1 – 13 of 13) sorted by relevance

/base/powermgr/power_manager/test/unittest/src/
Dpower_mgr_util_test.cpp50 EXPECT_TRUE(Permission::IsPermissionGranted("REBOOT"));
54 EXPECT_TRUE(Permission::IsPermissionGranted("REBOOT"));
71 EXPECT_TRUE(Permission::IsPermissionGranted("REBOOT"));
83 EXPECT_FALSE(Permission::IsPermissionGranted("REBOOT"));
87 EXPECT_FALSE(Permission::IsPermissionGranted("REBOOT"));
99 EXPECT_FALSE(Permission::IsPermissionGranted("REBOOT"));
102 EXPECT_TRUE(Permission::IsPermissionGranted("REBOOT"));
113 EXPECT_TRUE(Permission::IsPermissionGranted("REBOOT"));
116 EXPECT_TRUE(Permission::IsPermissionGranted("REBOOT"));
127 EXPECT_FALSE(Permission::IsPermissionGranted("REBOOT"));
[all …]
/base/powermgr/power_manager/utils/permission/include/
Dpermission.h27 static bool IsPermissionGranted(const std::string& perm);
/base/useriam/face_auth/services/src/
Dface_auth_service.cpp101 bool FaceAuthService::IsPermissionGranted(const std::string &permission) in IsPermissionGranted() function in OHOS::UserIam::FaceAuth::FaceAuthService
127 if (!IsPermissionGranted(MANAGE_USER_IDM_PERMISSION)) { in SetBufferProducer()
/base/useriam/face_auth/services/inc/
Dface_auth_service.h48 bool IsPermissionGranted(const std::string &permission);
/base/hiviewdfx/hiview/adapter/service/idl/include/
Dhiview_service_ability_stub.h36 bool IsPermissionGranted(uint32_t code);
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp405 if (!Permission::IsPermissionGranted("ohos.permission.REBOOT")) { in RebootDeviceForDeprecated()
425 if (!Permission::IsPermissionGranted("ohos.permission.REBOOT")) { in ShutDownDevice()
487 …if (!Permission::IsPermissionGranted("ohos.permission.REFRESH_USER_ACTION") || !Permission::IsSyst… in RefreshActivity()
564 if (!Permission::IsPermissionGranted("ohos.permission.RUNNING_LOCK")) { in CreateRunningLock()
584 if (!Permission::IsPermissionGranted("ohos.permission.RUNNING_LOCK")) { in ReleaseRunningLock()
611 if (!Permission::IsPermissionGranted("ohos.permission.RUNNING_LOCK")) { in Lock()
623 if (!Permission::IsPermissionGranted("ohos.permission.RUNNING_LOCK")) { in UnLock()
693 if (!Permission::IsPermissionGranted("ohos.permission.POWER_MANAGER")) { in RegisterPowerStateCallback()
706 if (!Permission::IsPermissionGranted("ohos.permission.POWER_MANAGER")) { in UnRegisterPowerStateCallback()
762 if (!Permission::IsPermissionGranted("ohos.permission.POWER_OPTIMIZATION")) { in SetDeviceMode()
/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_ability_stub.cpp47 if (!IsPermissionGranted(code)) { in OnRemoteRequest()
64 bool HiviewServiceAbilityStub::IsPermissionGranted(uint32_t code) in IsPermissionGranted() function in OHOS::HiviewDFX::HiviewServiceAbilityStub
/base/update/sys_installer/frameworks/ipc_server/include/
Dsys_installer_stub.h53 bool IsPermissionGranted(void);
/base/update/sys_installer/frameworks/ipc_server/src/
Dsys_installer_stub.cpp142 bool SysInstallerStub::IsPermissionGranted(void) in IsPermissionGranted() function in OHOS::SysInstaller::SysInstallerStub
162 return callingUid == Updater::Utils::USER_UPDATE_AUTHORITY && IsPermissionGranted(); in CheckCallingPerm()
/base/powermgr/power_manager/utils/permission/src/
Dpermission.cpp82 bool Permission::IsPermissionGranted(const std::string& perm) in IsPermissionGranted() function in OHOS::PowerMgr::Permission
/base/update/updateservice/services/engine/include/
Dupdate_service_stub.h81 bool IsPermissionGranted(uint32_t code);
/base/powermgr/power_manager/test/unittest/src/mock/
Dpower_mock_parcel_test.cpp207 EXPECT_TRUE(Permission::IsPermissionGranted(""));
/base/update/updateservice/services/engine/src/
Dupdate_service_stub.cpp391 bool UpdateServiceStub::IsPermissionGranted(uint32_t code) in IsPermissionGranted() function in OHOS::UpdateEngine::UpdateServiceStub
425 if (!IsPermissionGranted(code)) { in OnRemoteRequest()