/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/utils/include/ |
H A D | ressched_utils.h | 32 class ResSchedUtils { 34 static ResSchedUtils& GetInstance(); 44 ResSchedUtils() in ResSchedUtils() function 49 ~ResSchedUtils() in ~ResSchedUtils() 58 ResSchedUtils(const ResSchedUtils&) = delete; 59 ResSchedUtils& operator=(const ResSchedUtils &) = delete; 60 ResSchedUtils(ResSchedUtils&&) = delete; 61 ResSchedUtils& operator=(ResSchedUtils&&) = delete;
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/utils/ |
H A D | ressched_utils.cpp | 35 ResSchedUtils& ResSchedUtils::GetInstance() in GetInstance() 37 static ResSchedUtils instance; in GetInstance() 41 void ResSchedUtils::LoadUtils() in LoadUtils() 75 void ResSchedUtils::LoadUtilsExtra() in LoadUtilsExtra() 124 void ResSchedUtils::ReportDataInProcess(uint32_t resType, int64_t value, const nlohmann::json& payl… in ReportDataInProcess() 133 void ResSchedUtils::ReportArbitrationResult(Application &app, ProcessRecord &pr, AdjustSource sourc… in ReportArbitrationResult() 142 void ResSchedUtils::ReportSysEvent(Application &app, ProcessRecord &pr, uint32_t resType, int32_t s… in ReportSysEvent() 151 bool ResSchedUtils::CheckTidIsInPid(int32_t pid, int32_t tid) in CheckTidIsInPid() 166 std::string ResSchedUtils::GetProcessFilePath(int32_t uid, std::string bundleName, int32_t pid) in GetProcessFilePath() 189 void ResSchedUtils::DispatchResourceExt(uint32_t resType, int64_t value, const nlohmann::json& payl… in DispatchResourceExt() [all …]
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/sched_controller/ |
H A D | app_state_observer.cpp | 42 …ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_APP_STATE_CHANGE, appStateData.… in OnForegroundApplicationChanged() 72 ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_ABILITY_STATE_CHANGE, in OnAbilityStateChanged() 106 ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_EXTENSION_STATE_CHANGE, in OnExtensionStateChanged() 147 ResSchedUtils::GetInstance().ReportDataInProcess( in OnProcessCreated() 170 ResSchedUtils::GetInstance().ReportDataInProcess( in OnProcessDied() 199 ResSchedUtils::GetInstance().ReportAppStateInProcess(appStateData.state, appStateData.pid); in OnApplicationStateChanged() 221 …ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_ON_APP_STATE_CHANGED, appStateD… in OnAppStateChanged() 223 ResSchedUtils::GetInstance().ReportAppStateInProcess(appStateData.state, appStateData.pid); in OnAppStateChanged() 237 …ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_KEY_PERF_SCENE, appStateData.st… in OnAppCacheStateChanged() 260 ResSchedUtils::GetInstance().ReportDataInProcess( in OnProcessStateChanged() [all …]
|
H A D | background_task_observer.cpp | 57 ResSchedUtils::GetInstance().ReportDataInProcess( in OnTransientTaskStart() 80 ResSchedUtils::GetInstance().ReportDataInProcess( in OnTransientTaskEnd() 93 ResSchedUtils::GetInstance().ReportDataInProcess( in OnTransientTaskErr() 131 ResSchedUtils::GetInstance().ReportDataInProcess( in OnContinuousTaskStart() 156 ResSchedUtils::GetInstance().ReportDataInProcess( in OnContinuousTaskStop() 181 ResSchedUtils::GetInstance().ReportDataInProcess( in OnContinuousTaskUpdate() 208 ResSchedUtils::GetInstance().ReportDataInProcess( in OnAppEfficiencyResourcesApply() 219 ResSchedUtils::GetInstance().ReportDataInProcess( in OnAppEfficiencyResourcesReset() 230 ResSchedUtils::GetInstance().ReportDataInProcess( in OnProcEfficiencyResourcesApply() 241 ResSchedUtils::GetInstance().ReportDataInProcess( in OnProcEfficiencyResourcesReset()
|
H A D | window_state_observer.cpp | 54 ResSchedUtils::GetInstance().ReportDataInProcess( in OnFocused() 84 ResSchedUtils::GetInstance().ReportDataInProcess( in OnUnfocused() 122 ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_WINDOW_VISIBILITY_CHANGE, in OnWindowVisibilityChanged() 158 … ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_WINDOW_DRAWING_CONTENT_CHANGE, in OnWindowDrawingContentChanged() 173 ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_FLOATING_WINDOW, in OnWindowModeUpdate() 177 ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_SPLIT_SCREEN, in OnWindowModeUpdate() 181 ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_SPLIT_SCREEN, in OnWindowModeUpdate() 183 ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_FLOATING_WINDOW, in OnWindowModeUpdate()
|
H A D | cgroup_adjuster.cpp | 52 (void)ResSchedUtils::GetInstance(); in InitAdjuster() 63 …std::string filePath = ResSchedUtils::GetInstance().GetProcessFilePath(app.GetUid(), app.GetName()… in AdjustForkProcessGroup() 104 ResSchedUtils::GetInstance().ReportArbitrationResult(app, pr, source); in AdjustProcessGroup() 128 ResSchedUtils::GetInstance().ReportArbitrationResult(app, *(procRecord.get()), in AdjustProcessGroup() 228 … ResSchedUtils::GetInstance().ReportDataInProcess(ResType::RES_TYPE_CGROUP_ADJUSTER, 0, payload); in ApplyProcessGroup()
|
H A D | cgroup_event_handler.cpp | 358 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), in HandleProcessDied() 594 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), in HandleDrawingContentChangeWindow() 672 if (!ResSchedUtils::GetInstance().CheckTidIsInPid(pid, keyTid)) { in HandleReportKeyThread() 740 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), in HandleReportWindowState() 785 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), in HandleReportAudioState() 822 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), in HandleReportWebviewAudioState() 860 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), resType, state); in HandleReportRunningLockEvent() 909 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), in HandleReportHisysEvent() 940 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), in HandleReportScreenCaptureEvent() 1022 ResSchedUtils::GetInstance().ReportSysEvent(*(app.get()), *(procRecord.get()), resType, in HandleWebviewScreenCapture() [all …]
|
H A D | app_startup_scene_rec.cpp | 86 ResSchedUtils::GetInstance().ReportDataInProcess( in RecordIsContinuousStartup() 104 ResSchedUtils::GetInstance().ReportDataInProcess( in CleanRecordSceneData()
|
H A D | sched_controller.cpp | 178 ResSchedUtils::GetInstance().DispatchResourceExt(resType, value, payload); in DispatchOtherResource()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/ |
H A D | connection_subscriber.cpp | 43 ResSchedUtils::GetInstance().ReportDataInProcess( in OnExtensionConnected() 52 ResSchedUtils::GetInstance().ReportDataInProcess( in OnExtensionDisconnected() 73 ResSchedUtils::GetInstance().ReportDataInProcess( in OnDlpAbilityOpened() 82 ResSchedUtils::GetInstance().ReportDataInProcess( in OnDlpAbilityClosed()
|
H A D | av_session_state_listener.cpp | 38 ResSchedUtils::GetInstance().ReportDataInProcess( in OnSessionCreate() 47 ResSchedUtils::GetInstance().ReportDataInProcess( in OnSessionRelease() 56 ResSchedUtils::GetInstance().ReportDataInProcess( in OnTopSessionChange()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/test/unittest/ |
H A D | ressched_utils_test.cpp | 55 EXPECT_EQ(ResSchedUtils::GetInstance().CheckTidIsInPid(0, 0), false); 67 EXPECT_EQ(ResSchedUtils::GetInstance().CheckTidIsInPid(1, 1), false); 84 …std::string path = ResSchedUtils::GetInstance().GetProcessFilePath(20150111, "com.example.myapplic…
|