/base/powermgr/power_manager/test/unittest/src/ |
D | power_mgr_util_test.cpp | 50 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/ |
D | permission.h | 27 static bool IsPermissionGranted(const std::string& perm);
|
/base/useriam/face_auth/services/src/ |
D | face_auth_service.cpp | 101 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/ |
D | face_auth_service.h | 48 bool IsPermissionGranted(const std::string &permission);
|
/base/hiviewdfx/hiview/adapter/service/idl/include/ |
D | hiview_service_ability_stub.h | 36 bool IsPermissionGranted(uint32_t code);
|
/base/powermgr/power_manager/services/native/src/ |
D | power_mgr_service.cpp | 405 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/ |
D | hiview_service_ability_stub.cpp | 47 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/ |
D | sys_installer_stub.h | 53 bool IsPermissionGranted(void);
|
/base/update/sys_installer/frameworks/ipc_server/src/ |
D | sys_installer_stub.cpp | 142 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/ |
D | permission.cpp | 82 bool Permission::IsPermissionGranted(const std::string& perm) in IsPermissionGranted() function in OHOS::PowerMgr::Permission
|
/base/update/updateservice/services/engine/include/ |
D | update_service_stub.h | 81 bool IsPermissionGranted(uint32_t code);
|
/base/powermgr/power_manager/test/unittest/src/mock/ |
D | power_mock_parcel_test.cpp | 207 EXPECT_TRUE(Permission::IsPermissionGranted(""));
|
/base/update/updateservice/services/engine/src/ |
D | update_service_stub.cpp | 391 bool UpdateServiceStub::IsPermissionGranted(uint32_t code) in IsPermissionGranted() function in OHOS::UpdateEngine::UpdateServiceStub 425 if (!IsPermissionGranted(code)) { in OnRemoteRequest()
|