/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | background_task_observer.cpp | 61 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesApply() 71 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesReset() 81 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesApply() 87 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesReset() 94 std::vector<std::shared_ptr<BackgroundTaskMgr::ContinuousTaskCallbackInfo>> continuousTasks; in GetContinuousTaskApps() 95 …ErrCode result = BackgroundTaskMgr::BackgroundTaskMgrHelper::GetContinuousTaskApps(continuousTasks… in GetContinuousTaskApps() 109 std::vector<std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo>> appList; in GetEfficiencyResourcesTaskApps() 110 std::vector<std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo>> procList; in GetEfficiencyResourcesTaskApps() 111 …ErrCode result = BackgroundTaskMgr::BackgroundTaskMgrHelper::GetEfficiencyResourcesInfos(appList, … in GetEfficiencyResourcesTaskApps() 122 if ((info->GetResourceNumber() & BackgroundTaskMgr::ResourceType::WORK_SCHEDULER) != 0) { in GetEfficiencyResourcesTaskApps() [all …]
|
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | scheduler_bg_task_subscriber.cpp | 24 using namespace OHOS::BackgroundTaskMgr; 26 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesApply() 29 …if (!resourceInfo || (resourceInfo->GetResourceNumber() & BackgroundTaskMgr::ResourceType::WORK_SC… in OnProcEfficiencyResourcesApply() 38 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesReset() 41 …if (!resourceInfo || (resourceInfo->GetResourceNumber() & BackgroundTaskMgr::ResourceType::WORK_SC… in OnProcEfficiencyResourcesReset() 50 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesApply() 56 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesReset()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/sched_controller/include/ |
H A D | background_task_observer.h | 28 using OHOS::BackgroundTaskMgr::BackgroundTaskSubscriber; 29 using OHOS::BackgroundTaskMgr::ContinuousTaskCallbackInfo; 30 using OHOS::BackgroundTaskMgr::TransientTaskAppInfo; 45 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 47 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 49 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 51 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 59 …const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo, nlohmann::json &payl… 72 && eventData->GetTypeId() <= BackgroundTaskMgr::BackgroundMode::TASK_KEEPING; in ValidateTaskInfo()
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | background_task_observer.h | 27 class BackgroundTaskObserver : public BackgroundTaskMgr::BackgroundTaskSubscriber, 39 void OnContinuousTaskStart(const std::shared_ptr<BackgroundTaskMgr::ContinuousTaskCallbackInfo> 42 void OnContinuousTaskStop(const std::shared_ptr<BackgroundTaskMgr::ContinuousTaskCallbackInfo> 46 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 49 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 52 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 55 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override;
|
/ohos5.0/foundation/resourceschedule/work_scheduler/services/native/include/ |
H A D | scheduler_bg_task_subscriber.h | 24 class SchedulerBgTaskSubscriber : public BackgroundTaskMgr::BackgroundTaskSubscriber { 28 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 30 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 32 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override; 34 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) override;
|
/ohos5.0/foundation/resourceschedule/memmgr/services/memmgrservice/include/event/ |
H A D | bg_task_observer.h | 23 class BgTaskObserver : public BackgroundTaskMgr::BackgroundTaskSubscriber { 26 const std::shared_ptr<BackgroundTaskMgr::TransientTaskAppInfo>& ttInfo) override; 28 const std::shared_ptr<BackgroundTaskMgr::TransientTaskAppInfo>& ttInfo) override; 30 const std::shared_ptr<BackgroundTaskMgr::ContinuousTaskCallbackInfo> &ctInfo) override; 32 const std::shared_ptr<BackgroundTaskMgr::ContinuousTaskCallbackInfo> &ctInfo) override;
|
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/include/ |
H A D | bundle_active_continuous_task_observer.h | 33 class BundleActiveContinuousTaskObserver : public OHOS::BackgroundTaskMgr::BackgroundTaskSubscriber… 36 …void OnContinuousTaskStart(const std::shared_ptr<OHOS::BackgroundTaskMgr::ContinuousTaskCallbackIn… 38 …void OnContinuousTaskStop(const std::shared_ptr<OHOS::BackgroundTaskMgr::ContinuousTaskCallbackInf… 47 …void ReportContinuousTaskEvent(const std::shared_ptr<OHOS::BackgroundTaskMgr::ContinuousTaskCallba…
|
/ohos5.0/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/ |
H A D | bg_task_observer.cpp | 27 const std::shared_ptr<BackgroundTaskMgr::TransientTaskAppInfo>& ttInfo) in OnTransientTaskStart() 43 const std::shared_ptr<BackgroundTaskMgr::TransientTaskAppInfo>& ttInfo) in OnTransientTaskEnd() 59 const std::shared_ptr<BackgroundTaskMgr::ContinuousTaskCallbackInfo>& ctInfo) in OnContinuousTaskStart() 77 const std::shared_ptr<BackgroundTaskMgr::ContinuousTaskCallbackInfo>& ctInfo) in OnContinuousTaskStop()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | background_task_helper_ohos.cpp | 35 uint32_t backgroundMode = BackgroundTaskMgr::BackgroundMode::AUDIO_PLAYBACK; in HasBackgroundTask() 37 std::vector<std::shared_ptr<BackgroundTaskMgr::ContinuousTaskCallbackInfo>> continuousTaskList; in HasBackgroundTask() 38 …ErrCode code = BackgroundTaskMgr::BackgroundTaskMgrHelper::GetContinuousTaskApps(continuousTaskLis… in HasBackgroundTask()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskapplyefficiencyresources_fuzzer/ |
H A D | bgtaskapplyefficiencyresources_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskbackgroundrunningforinner_fuzzer/ |
H A D | bgtaskbackgroundrunningforinner_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 60 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 76 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskcancelsuspenddelay_fuzzer/ |
H A D | bgtaskcancelsuspenddelay_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetcontinuoustaskapps_fuzzer/ |
H A D | bgtaskgetcontinuoustaskapps_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetefficiencyresourcesinfos_fuzzer/ |
H A D | bgtaskgetefficiencyresourcesinfos_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetremainingdelaytime_fuzzer/ |
H A D | bgtaskgetremainingdelaytime_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgettransienttaskapps_fuzzer/ |
H A D | bgtaskgettransienttaskapps_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskrequestsuspenddelay_fuzzer/ |
H A D | bgtaskrequestsuspenddelay_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskresetallefficiencyresources_fuzzer/ |
H A D | bgtaskresetallefficiencyresources_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksetbgtaskconfig_fuzzer/ |
H A D | bgtasksetbgtaskconfig_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstartbackgroundrunning_fuzzer/ |
H A D | bgtaskstartbackgroundrunning_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstopbackgroundrunning_fuzzer/ |
H A D | bgtaskstopbackgroundrunning_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstopcontinuoustask_fuzzer/ |
H A D | bgtaskstopcontinuoustask_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskupdatebackgroundrunning_fuzzer/ |
H A D | bgtaskupdatebackgroundrunning_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 59 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 75 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksubscribebackgroundtask_fuzzer/ |
H A D | bgtasksubscribebackgroundtask_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 61 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 77 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskunsubscribebackgroundtask_fuzzer/ |
H A D | bgtaskunsubscribebackgroundtask_fuzzer.cpp | 23 namespace BackgroundTaskMgr { namespace 61 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput() 77 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
|