Home
last modified time | relevance | path

Searched refs:resType (Results 1 – 25 of 162) sorted by relevance

1234567

/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dres_desc_test.cpp70 ResType resType; variable
87 EXPECT_TRUE(IdItem::IsRef(str, resType, id));
88 EXPECT_EQ(ResType::STRING, resType);
91 EXPECT_TRUE(IdItem::IsRef(str, resType, id));
92 EXPECT_EQ(ResType::BOOLEAN, resType);
95 EXPECT_TRUE(IdItem::IsRef(str, resType, id));
96 EXPECT_EQ(ResType::COLOR, resType);
100 EXPECT_EQ(ResType::FLOAT, resType);
104 EXPECT_EQ(ResType::INTEGER, resType);
108 EXPECT_EQ(ResType::PATTERN, resType);
[all …]
/ohos5.0/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dres_desc_test.cpp70 ResType resType; variable
87 EXPECT_TRUE(IdItem::IsRef(str, resType, id));
88 EXPECT_EQ(ResType::STRING, resType);
91 EXPECT_TRUE(IdItem::IsRef(str, resType, id));
92 EXPECT_EQ(ResType::BOOLEAN, resType);
95 EXPECT_TRUE(IdItem::IsRef(str, resType, id));
96 EXPECT_EQ(ResType::COLOR, resType);
100 EXPECT_EQ(ResType::FLOAT, resType);
104 EXPECT_EQ(ResType::INTEGER, resType);
108 EXPECT_EQ(ResType::PATTERN, resType);
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/sched_controller/
H A Dsched_controller.cpp139 auto iter = dispatchResFuncMap_.find(resType); in DispatchResource()
141 DispatchOtherResource(resType, value, payload); in DispatchResource()
145 func(handler, resType, value, payload); in DispatchResource()
147 DispatchOtherResource(resType, value, payload); in DispatchResource()
156 handler->PostTask([handler, resType, value, payload] { in DispatchOtherResource()
157 switch (resType) { in DispatchOtherResource()
162 handler->HandleReportHisysEvent(resType, value, payload); in DispatchOtherResource()
170 handler->HandleReportAvCodecEvent(resType, value, payload); in DispatchOtherResource()
221 uint32_t resType, int64_t value, const nlohmann::json& payload) in InitDispatchResFuncMap()
224 uint32_t resType, int64_t value, const nlohmann::json& payload) in InitDispatchResFuncMap()
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched_executor/services/resschedexemgr/src/
H A Dres_sched_exe_mgr.cpp63 int32_t ResSchedExeMgr::SendRequestSync(uint32_t resType, int64_t value, in SendRequestSync() argument
67 std::string traceStr = BuildTraceStr(__func__, resType, value); in SendRequestSync()
69 switch (resType) { in SendRequestSync()
75 HandleRequestForCgroup(resType, payload, reply); in SendRequestSync()
91 if (resType == ResExeType::RES_TYPE_EXECUTOR_PLUGIN_INIT) { in SendRequestAsync()
95 std::string traceStr = BuildTraceStr(__func__, resType, value); in SendRequestAsync()
149 if (resType != ResExeType::RES_TYPE_CGROUP_SYNC_EVENT && in HandleRequestForCgroup()
150 resType != ResExeType::RES_TYPE_CGROUP_PROC_TASK_SYNC_EVENT) { in HandleRequestForCgroup()
153 switch (resType) { in HandleRequestForCgroup()
155 GetCgroupFileContent(resType, payload, reply); in HandleRequestForCgroup()
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched_executor/services/resschedexeservice/src/
H A Dres_sched_exe_service_stub.cpp60 … if (resType != ResExeType::RES_TYPE_COMMON_SYNC && resType != ResExeType::RES_TYPE_COMMON_ASYNC) { in GetExtResType()
69 resType = (uint32_t)type; in GetExtResType()
97 uint32_t resType = 0; in ReportRequestInner() local
100 if (!ParseParcel(data, resType, value, context)) { in ReportRequestInner()
109 resType, (long long)value, uid, clientPid); in ReportRequestInner()
118 bool isSync = IsTypeSync(resType); in ReportRequestInner()
119 if (!GetExtResType(resType, context)) { in ReportRequestInner()
132 SendRequestAsync(resType, value, context); in ReportRequestInner()
156 uint32_t resType = 0; in ReportDebugInner() local
158 if (!IsTypeDebug(resType)) { in ReportDebugInner()
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/common/src/
H A Dres_sched_util.cpp55 uint32_t resType = ResourceSchedule::ResType::RES_TYPE_APP_ABILITY_START; in ReportAbilityStartInfoToRSS() local
72 uint32_t resType = ResourceSchedule::ResType::RES_TYPE_APP_ASSOCIATED_START; in ReportAbilityAssociatedStartInfoToRSS() local
82 ResourceSchedule::ResSchedClient::GetInstance().ReportData(resType, type, eventParams); in ReportAbilityAssociatedStartInfoToRSS()
107 uint32_t resType = ResourceSchedule::ResType::SYNC_RES_TYPE_THAW_ONE_APP; in ReportEventToRSS() local
116 ResourceSchedule::ResSchedClient::GetInstance().ReportSyncEvent(resType, 0, payload, reply); in ReportEventToRSS()
123 uint32_t resType = ResourceSchedule::ResType::SYNC_RES_TYPE_GET_ALL_SUSPEND_STATE; in GetAllFrozenPidsFromRSS() local
160 uint32_t resType = ResourceSchedule::ResType::SYNC_RES_TYPE_SHOULD_FORCE_KILL_PROCESS; in CheckShouldForceKillProcess() local
164 ResourceSchedule::ResSchedClient::GetInstance().ReportSyncEvent(resType, 0, payload, reply); in CheckShouldForceKillProcess()
178 uint32_t resType = ResourceSchedule::ResType::RES_TYPE_KEY_PERF_SCENE; in ReportLoadingEventToRss() local
193 ResourceSchedule::ResSchedClient::GetInstance().ReportData(resType, type, eventParams); in ReportLoadingEventToRss()
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/sched_controller/include/
H A Dcgroup_event_handler.h61 void HandleReportMMIProcess(uint32_t resType, int64_t value, const nlohmann::json& payload);
62 void HandleReportRenderThread(uint32_t resType, int64_t value, const nlohmann::json& payload);
63 void HandleReportKeyThread(uint32_t resType, int64_t value, const nlohmann::json& payload);
64 void HandleReportWindowState(uint32_t resType, int64_t value, const nlohmann::json& payload);
65 void HandleReportAudioState(uint32_t resType, int64_t value, const nlohmann::json& payload);
66 …void HandleReportWebviewAudioState(uint32_t resType, int64_t value, const nlohmann::json& payload);
67 … void HandleReportRunningLockEvent(uint32_t resType, int64_t value, const nlohmann::json& payload);
68 void HandleReportHisysEvent(uint32_t resType, int64_t value, const nlohmann::json& payload);
69 void HandleReportAvCodecEvent(uint32_t resType, int64_t value, const nlohmann::json& payload);
70 void HandleSceneBoardState(uint32_t resType, int64_t value, const nlohmann::json& payload);
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/src/
H A Dres_sched_mgr.cpp161 void ResSchedMgr::ReportData(uint32_t resType, int64_t value, const nlohmann::json& payload) in ReportData() argument
163 ReportDataInner(resType, value, payload); in ReportData()
164 DispatchResourceInner(resType, value, payload); in ReportData()
165 SceneRecognizerMgr::GetInstance().DispatchResource(resType, value, payload); in ReportData()
168 void ResSchedMgr::ReportDataInner(uint32_t resType, int64_t value, const nlohmann::json& payload) in ReportDataInner() argument
171 resType, (long long)value); in ReportDataInner()
173 trace_str.append(",resType[").append(std::to_string(resType)).append("]"); in ReportDataInner()
176 PluginMgr::GetInstance().DispatchResource(std::make_shared<ResData>(resType, value, payload)); in ReportDataInner()
204 CgroupSchedDispatch(resType, value, payload); in DispatchResourceInner()
207 extern "C" void ReportDataInProcess(uint32_t resType, int64_t value, const nlohmann::json& payload) in ReportDataInProcess() argument
[all …]
H A Dplugin_mgr.cpp369 auto iter = resTypeLibMap_.find(resType); in GetPluginListByResType()
417 resData->resType = (uint32_t)extType; in DispatchResource()
420 if (!GetPluginListByResType(resData->resType, pluginList)) { in DispatchResource()
452 auto iter = resTypeLibSyncMap_.find(resData->resType); in DeliverResource()
498 resTypeLibMap_[resType].emplace_back(pluginLib); in SubscribeResource()
508 auto iter = resTypeLibMap_.find(resType); in UnSubscribeResource()
527 auto iter = resTypeLibSyncMap_.find(resType); in SubscribeSyncResource()
532 resTypeLibSyncMap_[resType] = pluginLib; in SubscribeSyncResource()
542 auto iter = resTypeLibSyncMap_.find(resType); in UnSubscribeSyncResource()
799 std::string PluginMgr::GetStrFromResTypeStrMap(uint32_t resType) in GetStrFromResTypeStrMap() argument
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched_executor/services/resschedexemgr/include/
H A Dres_sched_exe_mgr.h51 int32_t SendRequestSync(uint32_t resType, int64_t value,
61 void SendRequestAsync(uint32_t resType, int64_t value, const nlohmann::json& payload = nullptr);
71 std::string BuildTraceStr(const std::string& func, uint32_t resType, int64_t value);
73 …void HandleRequestForCgroup(uint32_t resType, const nlohmann::json& payload, nlohmann::json& reply…
74 … void GetCgroupFileContent(uint32_t resType, const nlohmann::json& payload, nlohmann::json& reply);
75 …void CheckProcTaskForCgroup(uint32_t resType, const nlohmann::json& payload, nlohmann::json& reply…
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched_executor/interfaces/innerkits/ressched_executor_client/src/
H A Dres_sched_exe_client.cpp45 int32_t ResSchedExeClient::SendRequestSync(uint32_t resType, int64_t value, in SendRequestSync() argument
48 return SendRequestInner(true, resType, value, context, reply); in SendRequestSync()
51 void ResSchedExeClient::SendRequestAsync(uint32_t resType, int64_t value, in SendRequestAsync() argument
55 SendRequestInner(false, resType, value, context, reply); in SendRequestAsync()
69 int32_t ResSchedExeClient::SendRequestInner(bool isSync, uint32_t resType, int64_t value, in SendRequestInner() argument
72 RSSEXE_LOGD("receive resType = %{public}u, value = %{public}lld.", resType, (long long)value); in SendRequestInner()
81 return proxy->SendRequestSync(resType, value, context, reply); in SendRequestInner()
83 proxy->SendRequestAsync(resType, value, context); in SendRequestInner()
H A Dres_sched_exe_service_proxy.cpp28 int32_t ResSchedExeServiceProxy::SendRequestSync(uint32_t resType, int64_t value, in SendRequestSync() argument
33 if (resType == ResExeType::RES_TYPE_DEBUG) { in SendRequestSync()
38 MakeUpParcel(data, resType, value, context); in SendRequestSync()
53 void ResSchedExeServiceProxy::SendRequestAsync(uint32_t resType, int64_t value, const nlohmann::jso… in SendRequestAsync() argument
57 if (resType == ResExeType::RES_TYPE_DEBUG) { in SendRequestAsync()
62 MakeUpParcel(data, resType, value, context); in SendRequestAsync()
102 uint32_t resType, int64_t value, const nlohmann::json& context) in MakeUpParcel() argument
106 WRITE_PARCEL(data, Uint32, resType, ResIpcErrCode::RSSEXE_DATA_ERROR, ResSchedExeServiceProxy); in MakeUpParcel()
/ohos5.0/base/web/webview/ohos_adapter/soc_perf_adapter/src/
H A Dsoc_perf_client_adapter_impl.cpp53 uint32_t resType = ConvertId(id); in ApplySocPerfConfigById() local
54 if (resType == SOC_PERF_INVALID) { in ApplySocPerfConfigById()
59 …OHOS::ResourceSchedule::ResSchedClient::GetInstance().ReportData(resType, SOC_PERF_START, mapPaylo… in ApplySocPerfConfigById()
66 uint32_t resType = ConvertId(id); in ApplySocPerfConfigByIdEx() local
67 if (resType == SOC_PERF_INVALID) { in ApplySocPerfConfigByIdEx()
73 OHOS::ResourceSchedule::ResSchedClient::GetInstance().ReportData(resType, value, mapPayload); in ApplySocPerfConfigByIdEx()
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/plugins/device_standby_plugin/src/
H A Ddevice_standby_plugin.cpp48 for (auto resType : resTypes_) { in IMPLEMENT_SINGLE_INSTANCE() local
49 PluginMgr::GetInstance().SubscribeResource(LIB_NAME, resType); in IMPLEMENT_SINGLE_INSTANCE()
56 for (auto resType : resTypes_) { in Disable() local
57 PluginMgr::GetInstance().UnSubscribeResource(LIB_NAME, resType); in Disable()
72 data->resType, (long long)(data->value)); in DispatchResource()
75 std::make_shared<DevStandbyMgr::ResData>(data->resType, data->value, data->payload)); in DispatchResource()
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/plugins/frame_aware_plugin/test/unittest/
H A Dframe_aware_plugin_test.cpp68 data->resType = RES_TYPE_APP_STATE_CHANGE;
70 data1->resType = RES_TYPE_APP_STATE_CHANGE;
110 data->resType = RES_TYPE_PROCESS_STATE_CHANGE;
152 data->resType = RES_TYPE_CGROUP_ADJUSTER;
154 data1->resType = RES_TYPE_CGROUP_ADJUSTER;
204 data->resType = RES_TYPE_WINDOW_FOCUS;
206 data1->resType = RES_TYPE_WINDOW_FOCUS;
240 data->resType = RES_TYPE_CONTINUOUS_TASK;
242 data1->resType = RES_TYPE_CONTINUOUS_TASK;
277 data->resType = RES_TYPE_SLIDE_RECOGNIZE;
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/utils/include/
H A Dressched_utils.h27 using ReportDataFunc = void (*)(uint32_t resType, int64_t value, const nlohmann::json& payload);
29 using ReportSysEventFunc = void (*)(Application &app, ProcessRecord &pr, uint32_t resType, int32_t …
30 using DispatchResourceExtFunc = void (*)(uint32_t resType, int64_t value, const nlohmann::json& pay…
35 void ReportDataInProcess(uint32_t resType, int64_t value, const nlohmann::json& payload);
37 void ReportSysEvent(Application &app, ProcessRecord &pr, uint32_t resType, int32_t state);
40 void DispatchResourceExt(uint32_t resType, int64_t value, const nlohmann::json& payload);
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/scene_recognize/src/
H A Dbackground_sensitive_task_overlapping_scene_recognizer.cpp51 void BackgroundSensitiveTaskOverlappingSceneRecognizer::OnDispatchResource(uint32_t resType, int64_… in OnDispatchResource() argument
58 switch (resType) { in OnDispatchResource()
60 HandleForeground(resType, value, payload); in OnDispatchResource()
63 HandleContinuousTask(resType, value, payload); in OnDispatchResource()
73 void BackgroundSensitiveTaskOverlappingSceneRecognizer::HandleContinuousTask(uint32_t resType, int6… in HandleContinuousTask() argument
95 __func__, resType, (long long)value, typeIdsStr.str().c_str()); in HandleContinuousTask()
190 void BackgroundSensitiveTaskOverlappingSceneRecognizer::HandleForeground(uint32_t resType, int64_t … in HandleForeground() argument
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/test/fuzztest/cgroupsched_fuzzer/
H A Dcgroupsched_fuzzer.cpp513 uint32_t resType = GetData<uint32_t>(); in HandleReportMMIProcessFuzzTest() local
538 uint32_t resType = GetData<uint32_t>(); in HandleReportRenderThreadFuzzTest() local
563 uint32_t resType = GetData<uint32_t>(); in HandleReportKeyThreadFuzzTest() local
592 uint32_t resType = GetData<uint32_t>(); in HandleReportWindowStateFuzzTest() local
623 uint32_t resType = GetData<uint32_t>(); in HandleReportWebviewAudioStateFuzzTest() local
648 uint32_t resType = GetData<uint32_t>(); in HandleReportRunningLockEventFuzzTest() local
675 uint32_t resType = GetData<uint32_t>(); in HandleReportHisysEventFuzzTest() local
704 uint32_t resType = GetData<uint32_t>(); in HandleReportScreenCaptureEventFuzzTest() local
785 uint32_t resType = GetData<uint32_t>(); in HandleReportAvCodecEventFuzzTest() local
811 uint32_t resType = GetData<uint32_t>(); in HandleSceneBoardStateFuzzTest() local
[all …]
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched_executor/plugins/socperf_executor_plugin/framework/src/
H A Dsocperf_executor_plugin.cpp46 for (auto resType : resType_) { in IMPLEMENT_SINGLE_INSTANCE() local
47 PluginMgr::GetInstance().SubscribeResource(LIB_NAME, resType); in IMPLEMENT_SINGLE_INSTANCE()
56 for (auto resType : resType_) { in Disable() local
57 PluginMgr::GetInstance().UnSubscribeResource(LIB_NAME, resType); in Disable()
68 auto funcIter = functionMap_.find(data->resType); in DispatchResource()
/ohos5.0/base/theme/wallpaper_mgr/services/src/
H A Dwallpaper_common_event_manager.cpp39 void WallpaperCommonEventManager::SendWallpaperLockSettingMessage(WallpaperResourceType resType) in SendWallpaperLockSettingMessage() argument
44 want.SetParam("WallpaperLockScreenResourceType", static_cast<int>(resType)); in SendWallpaperLockSettingMessage()
50 void WallpaperCommonEventManager::SendWallpaperSystemSettingMessage(WallpaperResourceType resType) in SendWallpaperSystemSettingMessage() argument
55 want.SetParam("WallpaperSystemResourceType", static_cast<int>(resType)); in SendWallpaperSystemSettingMessage()
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/
H A Dtheme_pack_resource.h35 ResType resType; member
40 … : bundleName(bundle), moduleName(module), resType(type), resName(name), abilityName(ability) {};
44 … && resType == theme.resType && resName == theme.resName && abilityName == theme.abilityName;
53 std::size_t h3 = std::hash<int32_t>()(theme.resType); in operator()
116 const ResType &resType, const std::string &name);
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/utils/
H A Dressched_utils.cpp124 void ResSchedUtils::ReportDataInProcess(uint32_t resType, int64_t value, const nlohmann::json& payl… in ReportDataInProcess() argument
130 reportFunc_(resType, value, payload); in ReportDataInProcess()
142 void ResSchedUtils::ReportSysEvent(Application &app, ProcessRecord &pr, uint32_t resType, int32_t s… in ReportSysEvent() argument
148 reportSysEventFunc_(app, pr, resType, state); in ReportSysEvent()
189 void ResSchedUtils::DispatchResourceExt(uint32_t resType, int64_t value, const nlohmann::json& payl… in DispatchResourceExt() argument
195 dispatchResourceExtFunc_(resType, value, payload); in DispatchResourceExt()
/ohos5.0/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/callbacksinkonremoterequest_fuzzer/
H A Dcallbacksinkonremoterequest_fuzzer.cpp44 int32_t resType = static_cast<int32_t>(resourceEventType[data[0] % DC_RESOURCE_SIZE]); in CallbackSinkOnRemoteRequestFuzzTest() local
49 pdata.WriteInt32(resType); in CallbackSinkOnRemoteRequestFuzzTest()
67 int32_t resType = static_cast<int32_t>(resourceEventType[data[0] % DC_RESOURCE_SIZE]); in CallbackSinkOnNotifyResourceInfoInnerFuzzTest() local
72 pdata.WriteInt32(resType); in CallbackSinkOnNotifyResourceInfoInnerFuzzTest()
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/pluginbase/include/
H A Dres_data.h28 ResData(uint32_t type, int64_t value, const nlohmann::json& payload) : resType(type), in ResData()
31 …int32_t type, int64_t value, const nlohmann::json& payload, nlohmann::json& reply) : resType(type), in ResData()
34 uint32_t resType = 0; member
/ohos5.0/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedmgr/resschedfwk/include/
H A Dres_sched_mgr.h49 void ReportData(uint32_t resType, int64_t value = 0, const nlohmann::json& payload = nullptr);
58 …void ReportDataInner(uint32_t resType, int64_t value = 0, const nlohmann::json& payload = nullptr);
74 void DispatchResourceInner(uint32_t resType, int64_t value, const nlohmann::json& payload);

1234567