Home
last modified time | relevance | path

Searched refs:resourceInfo (Results 1 - 25 of 70) sorted by relevance

123

/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dbg_efficiency_resources_mgr_test.cpp81 void OnAppEfficiencyResourcesApply(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) override {}
83 void OnAppEfficiencyResourcesReset(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) override {}
85 void OnProcEfficiencyResourcesApply(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) override {}
87 void OnProcEfficiencyResourcesReset(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) override {}
100 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(); in HWTEST_F() local
101 resourceInfo->isApply_ = true; in HWTEST_F()
102 EXPECT_NE(resourceInfo, nullptr); in HWTEST_F()
103 resourceInfo->resourceNumber_ = 1 << MAX_RESOURCES_TYPE_NUM; in HWTEST_F()
105 resourceInfo), (int32_t)ERR_BGTASK_RESOURCES_EXCEEDS_MAX); in HWTEST_F()
106 resourceInfo in HWTEST_F()
136 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(1, true, 0, "apply", HWTEST_F() local
170 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(1, true, 0, "apply", HWTEST_F() local
197 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(1, true, 0, "apply", HWTEST_F() local
227 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(1, true, 2000, "apply", HWTEST_F() local
258 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(1, true, 0, "apply", HWTEST_F() local
305 auto resourceInfo = std::make_shared<ResourceCallbackInfo>(0, 0, 1, ""); HWTEST_F() local
341 auto resourceInfo = std::make_shared<ResourceCallbackInfo>(0, 0, 0, ""); HWTEST_F() local
368 auto resourceInfo = std::make_shared<EfficiencyResourceInfo>(1, true, HWTEST_F() local
418 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(ResourceType::CPU, true, HWTEST_F() local
474 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(1, true, 0, "apply", HWTEST_F() local
504 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo( HWTEST_F() local
538 sptr<EfficiencyResourceInfo> resourceInfo = new (std::nothrow) EfficiencyResourceInfo(0, true, 0, "apply", HWTEST_F() local
[all...]
/foundation/resourceschedule/work_scheduler/services/native/src/
H A Dscheduler_bg_task_subscriber.cpp26 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesApply()
29 if (!resourceInfo || (resourceInfo->GetResourceNumber() & BackgroundTaskMgr::ResourceType::WORK_SCHEDULER) == 0) { in OnProcEfficiencyResourcesApply()
33 int32_t uid = resourceInfo->GetUid(); in OnProcEfficiencyResourcesApply()
38 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesReset()
41 if (!resourceInfo || (resourceInfo->GetResourceNumber() & BackgroundTaskMgr::ResourceType::WORK_SCHEDULER) == 0) { in OnProcEfficiencyResourcesReset()
45 int32_t uid = resourceInfo->GetUid(); in OnProcEfficiencyResourcesReset()
50 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesApply()
52 OnProcEfficiencyResourcesApply(resourceInfo); in OnAppEfficiencyResourcesApply()
25 OnProcEfficiencyResourcesApply( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesApply() argument
37 OnProcEfficiencyResourcesReset( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesReset() argument
49 OnAppEfficiencyResourcesApply( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesApply() argument
55 OnAppEfficiencyResourcesReset( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesReset() argument
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_drawable.cpp53 ResourceInfo &resourceInfo) in GetIconResourceByTheme()
60 if ((resourceInfo.GetKey() == COM_OHOS_CONTACTS) && IsSupportTelephonyVoice()) { in GetIconResourceByTheme()
62 LOG_I(BMS_TAG_DEFAULT, "bundleName:%{public}s parse no theme icon", resourceInfo.bundleName_.c_str()); in GetIconResourceByTheme()
63 return GetIconResourceByHap(iconId, density, resourceManager, resourceInfo); in GetIconResourceByTheme()
71 resourceInfo.abilityName_); in GetIconResourceByTheme()
73 LOG_I(BMS_TAG_DEFAULT, "bundleName:%{public}s find theme resource", resourceInfo.bundleName_.c_str()); in GetIconResourceByTheme()
78 resourceInfo.foreground_.resize(foregroundInfo.second); in GetIconResourceByTheme()
80 resourceInfo.foreground_[index] = foregroundInfo.first[index]; in GetIconResourceByTheme()
83 resourceInfo.background_.resize(backgroundInfo.second); in GetIconResourceByTheme()
85 resourceInfo in GetIconResourceByTheme()
49 GetIconResourceByTheme( const uint32_t iconId, const int32_t density, std::shared_ptr<Global::Resource::ResourceManager> resourceManager, ResourceInfo &resourceInfo) GetIconResourceByTheme() argument
98 GetIconResourceByHap( const uint32_t iconId, const int32_t density, std::shared_ptr<Global::Resource::ResourceManager> resourceManager, ResourceInfo &resourceInfo) GetIconResourceByHap() argument
126 GetBadgedIconResource( const std::shared_ptr<Media::PixelMap> layeredPixelMap, const std::shared_ptr<Media::PixelMap> badgedPixelMap, ResourceInfo &resourceInfo) GetBadgedIconResource() argument
[all...]
H A Dbundle_resource_parser.cpp121 bool BundleResourceParser::ParseResourceInfo(const int32_t userId, ResourceInfo &resourceInfo) in ParseResourceInfo() argument
123 return ParseResourceInfoWithSameHap(userId, resourceInfo); in ParseResourceInfo()
200 bool BundleResourceParser::ParseResourceInfoWithSameHap(const int32_t userId, ResourceInfo &resourceInfo) in ParseResourceInfoWithSameHap() argument
202 if (resourceInfo.hapPath_.empty()) { in ParseResourceInfoWithSameHap()
203 APP_LOGE("resourceInfo.hapPath_ is empty"); in ParseResourceInfoWithSameHap()
213 resourceInfo.bundleName_, resourceInfo.moduleName_, in ParseResourceInfoWithSameHap()
214 resourceInfo.hapPath_, resourceInfo.overlayHapPaths_, *resConfig, 0, userId)); in ParseResourceInfoWithSameHap()
219 if (!BundleResourceConfiguration::InitResourceGlobalConfig(resourceInfo in ParseResourceInfoWithSameHap()
258 ParseIconResourceByPath(const std::string &hapPath, const uint32_t iconId, ResourceInfo &resourceInfo) ParseIconResourceByPath() argument
282 ParseResourceInfoByResourceManager( const std::shared_ptr<Global::Resource::ResourceManager> resourceManager, ResourceInfo &resourceInfo) ParseResourceInfoByResourceManager() argument
326 ParseIconResourceByResourceManager( const std::shared_ptr<Global::Resource::ResourceManager> resourceManager, ResourceInfo &resourceInfo) ParseIconResourceByResourceManager() argument
440 ParseForegroundAndBackgroundResource( const std::shared_ptr<Global::Resource::ResourceManager> resourceManager, const std::string &jsonBuff, const int32_t density, ResourceInfo &resourceInfo) ParseForegroundAndBackgroundResource() argument
[all...]
H A Dbundle_resource_manager.cpp101 ResourceInfo resourceInfo; in AddResourceInfoByAbility() local
103 userId, resourceInfo)) { in AddResourceInfoByAbility()
108 if (!AddResourceInfo(userId, resourceInfo)) { in AddResourceInfoByAbility()
161 bool BundleResourceManager::AddResourceInfo(const int32_t userId, ResourceInfo &resourceInfo) in AddResourceInfo() argument
165 if (!parser.ParseResourceInfo(userId, resourceInfo)) { in AddResourceInfo()
166 APP_LOGW("key %{public}s ParseResourceInfo failed", resourceInfo.GetKey().c_str()); in AddResourceInfo()
168 if (GetBundleResourceInfo(resourceInfo.bundleName_, in AddResourceInfo()
171 resourceInfo.label_ = resourceInfo.label_.empty() ? bundleResourceInfo.label : resourceInfo in AddResourceInfo()
287 ResourceInfo resourceInfo; DeleteNotExistResourceInfo() local
368 ProcessResourceInfo( const std::vector<ResourceInfo> &resourceInfos, ResourceInfo &resourceInfo) ProcessResourceInfo() argument
468 ProcessResourceInfoWhenParseFailed(ResourceInfo &resourceInfo) ProcessResourceInfoWhenParseFailed() argument
492 GetDefaultIcon(ResourceInfo &resourceInfo) GetDefaultIcon() argument
520 UpdateBundleIcon(const std::string &bundleName, ResourceInfo &resourceInfo) UpdateBundleIcon() argument
[all...]
H A Dbundle_resource_process.cpp30 ResourceInfo &resourceInfo) in GetBundleResourceInfo()
40 resourceInfo = ConvertToBundleResourceInfo(innerBundleInfo); in GetBundleResourceInfo()
42 GetOverlayModuleHapPaths(innerBundleInfo, resourceInfo.moduleName_, userId, resourceInfo.overlayHapPaths_); in GetBundleResourceInfo()
77 APP_LOGW("%{public}s resourceInfo empty", bundleName.c_str()); in GetAllResourceInfo()
89 std::vector<ResourceInfo> &resourceInfo) in GetResourceInfoByBundleName()
107 return InnerGetResourceInfo(innerBundleInfo, userId, resourceInfo); in GetResourceInfoByBundleName()
115 ResourceInfo &resourceInfo) in GetLauncherResourceInfoByAbilityName()
138 resourceInfo = info; in GetLauncherResourceInfoByAbilityName()
194 std::vector<ResourceInfo> &resourceInfos, const ResourceInfo &resourceInfo) in ChangeDynamicIcon()
28 GetBundleResourceInfo(const InnerBundleInfo &innerBundleInfo, const int32_t userId, ResourceInfo &resourceInfo) GetBundleResourceInfo() argument
86 GetResourceInfoByBundleName( const std::string &bundleName, const int32_t userId, std::vector<ResourceInfo> &resourceInfo) GetResourceInfoByBundleName() argument
110 GetLauncherResourceInfoByAbilityName( const std::string &bundleName, const std::string &moduleName, const std::string &abilityName, const int32_t userId, ResourceInfo &resourceInfo) GetLauncherResourceInfoByAbilityName() argument
193 ChangeDynamicIcon( std::vector<ResourceInfo> &resourceInfos, const ResourceInfo &resourceInfo) ChangeDynamicIcon() argument
204 GetDynamicIcon( const InnerBundleInfo &innerBundleInfo, ResourceInfo &resourceInfo) GetDynamicIcon() argument
300 ResourceInfo resourceInfo; ConvertToLauncherAbilityResourceInfo() local
314 ResourceInfo resourceInfo; ConvertToBundleResourceInfo() local
[all...]
H A Dbundle_resource_rdb.cpp56 bool BundleResourceRdb::AddResourceInfo(const ResourceInfo &resourceInfo) in AddResourceInfo() argument
58 if (resourceInfo.bundleName_.empty()) { in AddResourceInfo()
62 APP_LOGD("insert resource key:%{public}s", resourceInfo.GetKey().c_str()); in AddResourceInfo()
65 valuesBucket.PutString(BundleResourceConstants::NAME, resourceInfo.GetKey()); in AddResourceInfo()
67 valuesBucket.PutString(BundleResourceConstants::LABEL, resourceInfo.label_); in AddResourceInfo()
68 valuesBucket.PutString(BundleResourceConstants::ICON, resourceInfo.icon_); in AddResourceInfo()
71 valuesBucket.PutBlob(BundleResourceConstants::FOREGROUND, resourceInfo.foreground_); in AddResourceInfo()
72 valuesBucket.PutBlob(BundleResourceConstants::BACKGROUND, resourceInfo.background_); in AddResourceInfo()
73 APP_LOGD("key:%{public}s foreground: %{public}zu, background: %{public}zu", resourceInfo.GetKey().c_str(), in AddResourceInfo()
74 resourceInfo in AddResourceInfo()
223 ResourceInfo resourceInfo; GetResourceNameByBundleName() local
273 ResourceInfo resourceInfo; GetBundleResourceInfo() local
307 ResourceInfo resourceInfo; GetLauncherAbilityResourceInfo() local
330 LauncherAbilityResourceInfo resourceInfo; GetLauncherAbilityResourceInfo() local
367 BundleResourceInfo resourceInfo; GetAllBundleResourceInfo() local
406 LauncherAbilityResourceInfo resourceInfo; GetAllLauncherAbilityResourceInfo() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_resource_test/
H A Dbms_bundle_resource_test.cpp276 ResourceInfo resourceInfo; in HWTEST_F() local
277 resourceInfo.bundleName_ = "bundleName"; in HWTEST_F()
278 std::string key = resourceInfo.GetKey(); in HWTEST_F()
281 resourceInfo.moduleName_ = "moduleName"; in HWTEST_F()
282 resourceInfo.abilityName_ = "abilityName"; in HWTEST_F()
283 key = resourceInfo.GetKey(); in HWTEST_F()
297 ResourceInfo resourceInfo; in HWTEST_F() local
298 resourceInfo.ParseKey(key); in HWTEST_F()
299 EXPECT_EQ(resourceInfo.bundleName_, "bundleName"); in HWTEST_F()
300 EXPECT_EQ(resourceInfo in HWTEST_F()
331 ResourceInfo resourceInfo; HWTEST_F() local
385 ResourceInfo resourceInfo; HWTEST_F() local
412 ResourceInfo resourceInfo; HWTEST_F() local
439 ResourceInfo resourceInfo; HWTEST_F() local
568 ResourceInfo resourceInfo; HWTEST_F() local
598 ResourceInfo resourceInfo; HWTEST_F() local
650 ResourceInfo resourceInfo; HWTEST_F() local
690 ResourceInfo resourceInfo; HWTEST_F() local
734 ResourceInfo resourceInfo; HWTEST_F() local
769 ResourceInfo resourceInfo; HWTEST_F() local
806 ResourceInfo resourceInfo; HWTEST_F() local
852 ResourceInfo resourceInfo; HWTEST_F() local
901 ResourceInfo resourceInfo; HWTEST_F() local
928 ResourceInfo resourceInfo; HWTEST_F() local
957 ResourceInfo resourceInfo; HWTEST_F() local
986 ResourceInfo resourceInfo; HWTEST_F() local
1016 ResourceInfo resourceInfo; HWTEST_F() local
1045 ResourceInfo resourceInfo; HWTEST_F() local
1124 ResourceInfo resourceInfo; HWTEST_F() local
1157 ResourceInfo resourceInfo; HWTEST_F() local
1220 ResourceInfo resourceInfo; HWTEST_F() local
1373 ResourceInfo resourceInfo; HWTEST_F() local
1402 ResourceInfo resourceInfo; HWTEST_F() local
1561 ResourceInfo resourceInfo; HWTEST_F() local
1598 ResourceInfo resourceInfo; HWTEST_F() local
2400 ResourceInfo resourceInfo; HWTEST_F() local
2724 ResourceInfo resourceInfo; HWTEST_F() local
2762 ResourceInfo resourceInfo; HWTEST_F() local
2802 ResourceInfo resourceInfo; HWTEST_F() local
2848 ResourceInfo resourceInfo; HWTEST_F() local
3036 ResourceInfo resourceInfo; HWTEST_F() local
3141 ResourceInfo resourceInfo; HWTEST_F() local
3196 ResourceInfo resourceInfo; HWTEST_F() local
3349 ResourceInfo resourceInfo; HWTEST_F() local
3375 ResourceInfo resourceInfo; HWTEST_F() local
3444 ResourceInfo resourceInfo; HWTEST_F() local
3510 ResourceInfo resourceInfo; HWTEST_F() local
3529 ResourceInfo resourceInfo; HWTEST_F() local
3551 ResourceInfo resourceInfo; HWTEST_F() local
3570 ResourceInfo resourceInfo; HWTEST_F() local
3608 ResourceInfo resourceInfo; HWTEST_F() local
3689 ResourceInfo resourceInfo; HWTEST_F() local
3847 ResourceInfo resourceInfo; HWTEST_F() local
3882 ResourceInfo resourceInfo; HWTEST_F() local
3913 ResourceInfo resourceInfo; HWTEST_F() local
4004 ResourceInfo resourceInfo; HWTEST_F() local
4025 ResourceInfo resourceInfo; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresrdb_fuzzer/
H A Dbundleresrdb_fuzzer.cpp35 ResourceInfo resourceInfo; in DoSomethingInterestingWithMyAPI() local
37 resourceInfo.bundleName_ = bundleName; in DoSomethingInterestingWithMyAPI()
38 resourceRdb.AddResourceInfo(resourceInfo); in DoSomethingInterestingWithMyAPI()
39 resourceRdb.DeleteResourceInfo(resourceInfo.GetKey()); in DoSomethingInterestingWithMyAPI()
41 resourceInfos.push_back(resourceInfo); in DoSomethingInterestingWithMyAPI()
49 resourceRdb.GetBundleResourceInfo(resourceInfo.bundleName_, in DoSomethingInterestingWithMyAPI()
52 resourceRdb.GetLauncherAbilityResourceInfo(resourceInfo.bundleName_, in DoSomethingInterestingWithMyAPI()
63 resourceRdb.ParseKey(resourceInfo.GetKey(), info); in DoSomethingInterestingWithMyAPI()
65 resourceRdb.ParseKey(resourceInfo.GetKey(), launcherInfo); in DoSomethingInterestingWithMyAPI()
69 resourceInfo in DoSomethingInterestingWithMyAPI()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresparser_fuzzer/
H A Dbundleresparser_fuzzer.cpp37 ResourceInfo resourceInfo; in DoSomethingInterestingWithMyAPI() local
38 resourceInfo.bundleName_ = bundleName; in DoSomethingInterestingWithMyAPI()
39 resourceInfo.moduleName_ = MODULE_NAME; in DoSomethingInterestingWithMyAPI()
40 resourceInfo.label_ = bundleName; in DoSomethingInterestingWithMyAPI()
41 resourceInfo.labelNeedParse_ = false; in DoSomethingInterestingWithMyAPI()
42 resourceInfo.iconNeedParse_ = false; in DoSomethingInterestingWithMyAPI()
49 parser.ParseIconResourceByPath(resourceInfos[0].hapPath_, resourceInfos[0].iconId_, resourceInfo); in DoSomethingInterestingWithMyAPI()
53 parser.ParseResourceInfoWithSameHap(USERID, resourceInfo); in DoSomethingInterestingWithMyAPI()
57 parser.ParseResourceInfoByResourceManager(resourceManager, resourceInfo); in DoSomethingInterestingWithMyAPI()
59 parser.ParseIconResourceByResourceManager(resourceManager, resourceInfo); in DoSomethingInterestingWithMyAPI()
[all...]
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/src/
H A Dbackground_task_subscriber.cpp55 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) {} in OnProcEfficiencyResourcesApply()
58 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) {} in OnProcEfficiencyResourcesReset()
61 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) {} in OnAppEfficiencyResourcesApply()
64 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) {} in OnAppEfficiencyResourcesReset()
79 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesApply()
81 subscriber_.OnAppEfficiencyResourcesApply(resourceInfo); in OnAppEfficiencyResourcesApply()
85 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesReset()
87 subscriber_.OnAppEfficiencyResourcesReset(resourceInfo); in OnAppEfficiencyResourcesReset()
91 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesApply()
93 subscriber_.OnProcEfficiencyResourcesApply(resourceInfo); in OnProcEfficiencyResourcesApply()
54 OnProcEfficiencyResourcesApply( const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesApply() argument
57 OnProcEfficiencyResourcesReset( const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesReset() argument
60 OnAppEfficiencyResourcesApply( const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesApply() argument
63 OnAppEfficiencyResourcesReset( const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesReset() argument
78 OnAppEfficiencyResourcesApply( const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesApply() argument
84 OnAppEfficiencyResourcesReset( const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesReset() argument
90 OnProcEfficiencyResourcesApply( const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesApply() argument
96 OnProcEfficiencyResourcesReset( const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesReset() argument
[all...]
H A Dresource_callback_info.cpp44 ResourceCallbackInfo* resourceInfo = new (std::nothrow) ResourceCallbackInfo(); in Unmarshalling() local
45 if (resourceInfo && !resourceInfo->ReadFromParcel(in)) { in Unmarshalling()
47 delete resourceInfo; in Unmarshalling()
48 resourceInfo = nullptr; in Unmarshalling()
50 return resourceInfo; in Unmarshalling()
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dbackground_task_observer.cpp61 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesApply()
63 if (!resourceInfo || (resourceInfo->GetResourceNumber() & BackgroundTaskMgr::ResourceType::WORK_SCHEDULER) == 0) { in OnProcEfficiencyResourcesApply()
67 efficiencyUids_.push_back(resourceInfo->GetUid()); in OnProcEfficiencyResourcesApply()
71 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesReset()
73 if (!resourceInfo || (resourceInfo->GetResourceNumber() & BackgroundTaskMgr::ResourceType::WORK_SCHEDULER) == 0) { in OnProcEfficiencyResourcesReset()
77 int32_t uid = resourceInfo->GetUid(); in OnProcEfficiencyResourcesReset()
85 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesApply()
87 OnProcEfficiencyResourcesApply(resourceInfo); in OnAppEfficiencyResourcesApply()
60 OnProcEfficiencyResourcesApply( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesApply() argument
70 OnProcEfficiencyResourcesReset( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesReset() argument
84 OnAppEfficiencyResourcesApply( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesApply() argument
90 OnAppEfficiencyResourcesReset( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesReset() argument
[all...]
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/src/
H A Dbg_efficiency_resources_mgr.cpp257 bool CheckResourceInfo(const sptr<EfficiencyResourceInfo> &resourceInfo) in CheckResourceInfo() argument
259 if (!resourceInfo) { in CheckResourceInfo()
263 if (resourceInfo->GetResourceNumber() == 0 || resourceInfo->GetResourceNumber() > MAX_RESOURCE_MASK in CheckResourceInfo()
264 || (resourceInfo->IsApply() && !resourceInfo->IsPersist() && resourceInfo->GetTimeOut() == 0)) { in CheckResourceInfo()
293 const sptr<EfficiencyResourceInfo> &resourceInfo) in ApplyEfficiencyResources()
302 if (!CheckResourceInfo(resourceInfo)) { in ApplyEfficiencyResources()
321 auto exemptedResourceType = GetExemptedResourceType(resourceInfo in ApplyEfficiencyResources()
292 ApplyEfficiencyResources( const sptr<EfficiencyResourceInfo> &resourceInfo) ApplyEfficiencyResources() argument
331 ApplyResourceForPkgAndProc(int32_t uid, int32_t pid, const std::string &bundleName, const sptr<EfficiencyResourceInfo> &resourceInfo) ApplyResourceForPkgAndProc() argument
353 SendResourceApplyTask(int32_t uid, int32_t pid, const std::string &bundleName, const sptr<EfficiencyResourceInfo> &resourceInfo) SendResourceApplyTask() argument
369 ApplyEfficiencyResourcesInner(std::shared_ptr<ResourceCallbackInfo> callbackInfo, const sptr<EfficiencyResourceInfo> &resourceInfo) ApplyEfficiencyResourcesInner() argument
411 UpdateResourcesEndtime( const std::shared_ptr<ResourceCallbackInfo> &callbackInfo, std::shared_ptr<ResourceApplicationRecord> &record, const sptr<EfficiencyResourceInfo> &resourceInfo) UpdateResourcesEndtime() argument
[all...]
/foundation/resourceschedule/background_task_mgr/interfaces/innerkits/include/
H A Dbackground_task_subscriber.h121 * @param resourceInfo Request params.
123 virtual void OnAppEfficiencyResourcesApply(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo);
128 * @param resourceInfo Request params.
130 virtual void OnAppEfficiencyResourcesReset(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo);
135 * @param resourceInfo Request params.
137 virtual void OnProcEfficiencyResourcesApply(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo);
142 * @param resourceInfo Request params.
144 virtual void OnProcEfficiencyResourcesReset(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo);
230 * @param resourceInfo Request params.
232 void OnAppEfficiencyResourcesApply(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) overrid
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/bundle_resource/
H A Dbundle_resource_parser.h33 bool ParseResourceInfo(const int32_t userId, ResourceInfo &resourceInfo);
39 bool ParseIconResourceByPath(const std::string &hapPath, const uint32_t iconId, ResourceInfo &resourceInfo);
46 bool ParseResourceInfoWithSameHap(const int32_t userId, ResourceInfo &resourceInfo);
52 ResourceInfo &resourceInfo);
60 ResourceInfo &resourceInfo);
64 const std::string &jsonBuff, const int32_t density, ResourceInfo &resourceInfo);
H A Dbundle_resource_process.h33 std::vector<ResourceInfo> &resourceInfo);
37 ResourceInfo &resourceInfo);
50 ResourceInfo &resourceInfo);
74 std::vector<ResourceInfo> &resourceInfos, const ResourceInfo &resourceInfo);
77 const InnerBundleInfo &innerBundleInfo, ResourceInfo &resourceInfo);
H A Dbundle_resource_drawable.h36 ResourceInfo &resourceInfo);
42 ResourceInfo &resourceInfo);
48 ResourceInfo &resourceInfo);
/foundation/resourceschedule/work_scheduler/services/native/include/
H A Dscheduler_bg_task_subscriber.h28 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;
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresmgr_fuzzer/
H A Dbundleresmgr_fuzzer.cpp55 ResourceInfo resourceInfo; in DoSomethingInterestingWithMyAPI() local
56 resourceInfo.bundleName_ = bundleName; in DoSomethingInterestingWithMyAPI()
57 resourceInfo.label_ = bundleName; in DoSomethingInterestingWithMyAPI()
58 manager->UpdateBundleIcon(bundleName, resourceInfo); in DoSomethingInterestingWithMyAPI()
63 manager->AddResourceInfo(USERID, resourceInfo); in DoSomethingInterestingWithMyAPI()
71 manager->ProcessResourceInfoWhenParseFailed(resourceInfo); in DoSomethingInterestingWithMyAPI()
72 manager->ProcessResourceInfo(resourceInfos, resourceInfo); in DoSomethingInterestingWithMyAPI()
73 manager->GetDefaultIcon(resourceInfo); in DoSomethingInterestingWithMyAPI()
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/
H A Dbackground_task_observer.cpp191 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo, nlohmann::json &payload) in MarshallingResourceInfo()
193 payload["pid"] = resourceInfo->GetPid(); in MarshallingResourceInfo()
194 payload["uid"] = resourceInfo->GetUid(); in MarshallingResourceInfo()
195 payload["resourceNumber"] = resourceInfo->GetResourceNumber(); in MarshallingResourceInfo()
196 payload["bundleName"] = resourceInfo->GetBundleName(); in MarshallingResourceInfo()
200 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesApply()
203 MarshallingResourceInfo(resourceInfo, payload); in OnAppEfficiencyResourcesApply()
211 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnAppEfficiencyResourcesReset()
214 MarshallingResourceInfo(resourceInfo, payload); in OnAppEfficiencyResourcesReset()
222 const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) in OnProcEfficiencyResourcesApply()
190 MarshallingResourceInfo( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo, nlohmann::json &payload) MarshallingResourceInfo() argument
199 OnAppEfficiencyResourcesApply( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesApply() argument
210 OnAppEfficiencyResourcesReset( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnAppEfficiencyResourcesReset() argument
221 OnProcEfficiencyResourcesApply( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesApply() argument
232 OnProcEfficiencyResourcesReset( const std::shared_ptr<BackgroundTaskMgr::ResourceCallbackInfo> &resourceInfo) OnProcEfficiencyResourcesReset() argument
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/include/
H A Dbackground_task_observer.h46 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;
/foundation/resourceschedule/background_task_mgr/frameworks/include/
H A Dibackground_task_subscriber.h117 * @param resourceInfo Request params.
120 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) = 0;
125 * @param resourceInfo Request params.
128 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) = 0;
133 * @param resourceInfo Request params.
136 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) = 0;
141 * @param resourceInfo Request params.
144 const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) = 0;
H A Dbackground_task_subscriber_proxy.h111 * @param resourceInfo Request params.
113 void OnAppEfficiencyResourcesApply(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) override;
118 * @param resourceInfo Request params.
120 void OnAppEfficiencyResourcesReset(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) override;
125 * @param resourceInfo Request params.
127 void OnProcEfficiencyResourcesApply(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) override;
132 * @param resourceInfo Request params.
134 void OnProcEfficiencyResourcesReset(const std::shared_ptr<ResourceCallbackInfo> &resourceInfo) override;
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleresprocess_fuzzer/
H A Dbundleresprocess_fuzzer.cpp36 ResourceInfo resourceInfo; in DoSomethingInterestingWithMyAPI() local
38 USERID, resourceInfo); in DoSomethingInterestingWithMyAPI()
50 BundleResourceProcess::GetBundleResourceInfo(bundleInfo, USERID, resourceInfo); in DoSomethingInterestingWithMyAPI()
68 BundleResourceProcess::ChangeDynamicIcon(resourceInfos, resourceInfo); in DoSomethingInterestingWithMyAPI()
69 BundleResourceProcess::GetDynamicIcon(bundleInfo, resourceInfo); in DoSomethingInterestingWithMyAPI()

Completed in 13 milliseconds

123