/foundation/resourceschedule/device_standby/interfaces/innerkits/test/unittest/ |
H A D | mock_standby_client_unit_test.cpp | 53 EXPECT_NE(StandbyServiceClient::GetInstance().ApplyAllowResource(nullRequest), ERR_OK); in HWTEST_F() 87 EXPECT_NE(proxy->ApplyAllowResource(resouarceRequest), ERR_OK); in HWTEST_F() 102 EXPECT_NE(proxy->ApplyAllowResource(resouarceRequest), ERR_OK); in HWTEST_F()
|
H A D | standby_client_unit_test.cpp | 65 * @tc.desc: test ApplyAllowResource. 72 EXPECT_NE(StandbyServiceClient::GetInstance().ApplyAllowResource(nullRequest), ERR_OK); in HWTEST_F() 76 EXPECT_NE(StandbyServiceClient::GetInstance().ApplyAllowResource(resouarceRequest), ERR_OK); in HWTEST_F() 81 EXPECT_EQ(StandbyServiceClient::GetInstance().ApplyAllowResource(validResRequest), ERR_OK); in HWTEST_F()
|
/foundation/resourceschedule/device_standby/interfaces/kits/napi/include/ |
H A D | standby_napi_module.h | 25 napi_value ApplyAllowResource(napi_env env, napi_callback_info info);
|
/foundation/resourceschedule/device_standby/interfaces/innerkits/src/ |
H A D | standby_service_client.cpp | 66 ErrCode StandbyServiceClient::ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) in ApplyAllowResource() function in OHOS::DevStandbyMgr::StandbyServiceClient 77 return standbyServiceProxy_->ApplyAllowResource(resourceRequest); in ApplyAllowResource()
|
H A D | standby_service_proxy.cpp | 109 ErrCode StandbyServiceProxy::ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) in ApplyAllowResource() function in OHOS::DevStandbyMgr::StandbyServiceProxy 115 STANDBYSERVICE_LOGW("ApplyAllowResource write descriptor failed"); in ApplyAllowResource() 119 STANDBYSERVICE_LOGW("ApplyAllowResource write parameter failed"); in ApplyAllowResource() 126 STANDBYSERVICE_LOGW("ApplyAllowResource fail: transact ErrCode=%{public}d", result); in ApplyAllowResource() 130 STANDBYSERVICE_LOGW("ApplyAllowResource fail: read result failed"); in ApplyAllowResource() 134 STANDBYSERVICE_LOGW("ApplyAllowResource failed"); in ApplyAllowResource()
|
/foundation/resourceschedule/device_standby/interfaces/innerkits/include/ |
H A D | standby_service_client.h | 68 ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest);
|
H A D | standby_service_proxy.h | 54 ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) override;
|
/foundation/resourceschedule/device_standby/frameworks/include/ |
H A D | istandby_service.h | 68 virtual ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) = 0;
|
/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/ |
H A D | init.cpp | 31 DECLARE_NAPI_FUNCTION("requestExemptionResource", ApplyAllowResource), in DeviceStandbyFuncInit()
|
H A D | standby_napi_module.cpp | 283 napi_value ApplyAllowResource(napi_env env, napi_callback_info info) in ApplyAllowResource() function 289 ErrCode errCode = StandbyServiceClient::GetInstance().ApplyAllowResource(resourceRequest); in ApplyAllowResource()
|
/foundation/resourceschedule/device_standby/services/core/include/ |
H A D | standby_service.h | 51 ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) override;
|
H A D | standby_service_impl.h | 103 ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest);
|
/foundation/resourceschedule/device_standby/services/core/src/ |
H A D | standby_service.cpp | 203 ErrCode StandbyService::ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) in ApplyAllowResource() function in OHOS::DevStandbyMgr::StandbyService 209 return StandbyServiceImpl::GetInstance()->ApplyAllowResource(resourceRequest); in ApplyAllowResource()
|
H A D | standby_service_impl.cpp | 548 ErrCode StandbyServiceImpl::ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) in ApplyAllowResource() function in OHOS::DevStandbyMgr::StandbyServiceImpl 1368 ApplyAllowResource(resourceRequest); in DumpModifyAllowList()
|
/foundation/resourceschedule/device_standby/services/test/unittest/ |
H A D | standby_service_unit_test.cpp | 196 EXPECT_NE(StandbyService::GetInstance()->ApplyAllowResource(resourceRequest), ERR_OK); in HWTEST_F() 208 StandbyService::GetInstance()->ApplyAllowResource(resourceRequest); in HWTEST_F() 232 StandbyServiceImpl::GetInstance()->ApplyAllowResource(resourceRequest); in HWTEST_F() 431 * @tc.desc: test ApplyAllowResource of StandbyService. 438 StandbyServiceImpl::GetInstance()->ApplyAllowResource(resourceRequest); in HWTEST_F() 772 * @tc.desc: test multithread ApplyAllowResource of StandbyService. 779 StandbyServiceImpl::GetInstance()->ApplyAllowResource(resourceRequest); in HWMTEST_F() 782 EXPECT_EQ(StandbyServiceImpl::GetInstance()->ApplyAllowResource(validResRequest), ERR_OK); in HWMTEST_F() 785 StandbyServiceImpl::GetInstance()->ApplyAllowResource(invalidResRequest); in HWMTEST_F() 788 StandbyServiceImpl::GetInstance()->ApplyAllowResource(negResReques in HWMTEST_F() [all...] |
/foundation/resourceschedule/device_standby/frameworks/src/ |
H A D | standby_service_stub.cpp | 191 ErrCode result = ApplyAllowResource(resourceRequest); in HandleApplyAllowResource()
|