Home
last modified time | relevance | path

Searched refs:ApplyAllowResource (Results 1 - 16 of 16) sorted by relevance

/foundation/resourceschedule/device_standby/interfaces/innerkits/test/unittest/
H A Dmock_standby_client_unit_test.cpp53 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 Dstandby_client_unit_test.cpp65 * @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 Dstandby_napi_module.h25 napi_value ApplyAllowResource(napi_env env, napi_callback_info info);
/foundation/resourceschedule/device_standby/interfaces/innerkits/src/
H A Dstandby_service_client.cpp66 ErrCode StandbyServiceClient::ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) in ApplyAllowResource() function in OHOS::DevStandbyMgr::StandbyServiceClient
77 return standbyServiceProxy_->ApplyAllowResource(resourceRequest); in ApplyAllowResource()
H A Dstandby_service_proxy.cpp109 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 Dstandby_service_client.h68 ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest);
H A Dstandby_service_proxy.h54 ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) override;
/foundation/resourceschedule/device_standby/frameworks/include/
H A Distandby_service.h68 virtual ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) = 0;
/foundation/resourceschedule/device_standby/interfaces/kits/napi/src/
H A Dinit.cpp31 DECLARE_NAPI_FUNCTION("requestExemptionResource", ApplyAllowResource), in DeviceStandbyFuncInit()
H A Dstandby_napi_module.cpp283 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 Dstandby_service.h51 ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) override;
H A Dstandby_service_impl.h103 ErrCode ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest);
/foundation/resourceschedule/device_standby/services/core/src/
H A Dstandby_service.cpp203 ErrCode StandbyService::ApplyAllowResource(const sptr<ResourceRequest>& resourceRequest) in ApplyAllowResource() function in OHOS::DevStandbyMgr::StandbyService
209 return StandbyServiceImpl::GetInstance()->ApplyAllowResource(resourceRequest); in ApplyAllowResource()
H A Dstandby_service_impl.cpp548 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 Dstandby_service_unit_test.cpp196 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 Dstandby_service_stub.cpp191 ErrCode result = ApplyAllowResource(resourceRequest); in HandleApplyAllowResource()

Completed in 10 milliseconds