Home
last modified time | relevance | path

Searched refs:resourcesApply (Results 1 - 17 of 17) sorted by relevance

/foundation/resourceschedule/device_standby/services/test/unittest/
H A Dmock_standby_service_unit_test.cpp90 info.resourcesApply = { TIMER_INDEX }; in HWTEST_F()
105 info.resourcesApply = { EXEMPT_ALL_RESOURCES }; in HWTEST_F()
120 info.resourcesApply = { NETWORK_INDEX }; in HWTEST_F()
/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dmock_efficiency_resources_mgr_test.cpp98 info.resourcesApply = { TIMER_INDEX }; in HWTEST_F()
113 info.resourcesApply = { 0 }; in HWTEST_F()
128 info.resourcesApply = { CPU_INDEX }; in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dpre_scan_info.h49 std::vector<int32_t> resourcesApply; member
77 resourcesApply.clear(); in Reset()
H A Dinner_bundle_info.h2182 void SetResourcesApply(const std::vector<int32_t> &resourcesApply);
/foundation/resourceschedule/background_task_mgr/services/efficiency_resources/src/
H A Dbg_efficiency_resources_mgr.cpp772 const std::vector<int32_t>& resourcesApply = QueryRunningResourcesApply(uid, bundleName); in GetExemptedResourceType() local
775 if (resourcesApply.empty()) { in GetExemptedResourceType()
780 if (std::find(resourcesApply.begin(), resourcesApply.end(), FREEZE_ALL_RESOURCES) != resourcesApply.end()) { in GetExemptedResourceType()
784 // traverse resourcesApply and get exempted resource type in GetExemptedResourceType()
785 for (const auto resourceType : resourcesApply) { in GetExemptedResourceType()
799 // meaning of number in resourcesApply list: 0 - all type of resources, 1 - cpu, 2 - COMMON_EVENT, 3 - TIMER,
810 BGTASK_LOGD("size of applicationInfo.resourcesApply is %{public}d", in QueryRunningResourcesApply()
811 static_cast<int32_t>(applicationInfo.resourcesApply in QueryRunningResourcesApply()
[all...]
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/
H A Dmock_bundle_manager_helper.cpp53 appInfo.resourcesApply = { 0 }; in GetApplicationInfo()
/foundation/resourceschedule/device_standby/services/test/unittest/mock/
H A Dmock_helper.cpp58 appInfo.resourcesApply = { EXEMPT_ALL_RESOURCES }; in GetApplicationInfo()
/foundation/ability/ability_runtime/frameworks/simulator/common/include/
H A Dapplication_info.h120 std::vector<int32_t> resourcesApply; member
/foundation/resourceschedule/device_standby/services/core/src/
H A Dstandby_service_impl.cpp485 const std::vector<int32_t>& resourcesApply = QueryRunningResourcesApply(uid, bundleName); in GetExemptedResourceType() local
488 if (resourcesApply.empty()) { in GetExemptedResourceType()
492 if (std::find(resourcesApply.begin(), resourcesApply.end(), EXEMPT_ALL_RESOURCES) != resourcesApply.end()) { in GetExemptedResourceType()
496 // traverse resourcesApply and get exempted resource type in GetExemptedResourceType()
497 for (const uint32_t resourceType : resourcesApply) { in GetExemptedResourceType()
509 // meaning of number in resourcesApply list: 100 - all type of resources, 101 - NETWORK,
519 STANDBYSERVICE_LOGD("size of applicationInfo.resourcesApply is %{public}d", in QueryRunningResourcesApply()
520 static_cast<int32_t>(applicationInfo.resourcesApply in QueryRunningResourcesApply()
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dapplication_info.cpp121 const char* APPLICATION_RESOURCES_APPLY = "resourcesApply";
554 CONTAINER_SECURITY_VERIFY(parcel, resourceApplySize, &resourcesApply); in ReadFromParcel()
556 resourcesApply.emplace_back(parcel.ReadInt32()); in ReadFromParcel()
744 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, resourcesApply.size()); in Marshalling()
745 for (auto &item : resourcesApply) { in Marshalling()
997 {APPLICATION_RESOURCES_APPLY, applicationInfo.resourcesApply}, in to_json()
1185 applicationInfo.resourcesApply, JsonType::ARRAY, false, parseResult, ArrayType::NUMBER); in from_json()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Dapplication_info.h234 std::vector<int32_t> resourcesApply; member
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dpre_bundle_profile.cpp50 constexpr const char* RESOURCES_APPLY = "resourcesApply";
313 preBundleConfigInfo.resourcesApply, in TransformTo()
H A Dinner_bundle_info.cpp1858 baseApplicationInfo_->resourcesApply = applicationInfo.resourcesApply; in UpdatePrivilegeCapability()
4052 void InnerBundleInfo::SetResourcesApply(const std::vector<int32_t> &resourcesApply) in SetResourcesApply() argument
4054 baseApplicationInfo_->resourcesApply = resourcesApply; in SetResourcesApply()
H A Dbundle_install_checker.cpp739 newInfo.SetResourcesApply(preBundleConfigInfo.resourcesApply); in GetPrivilegeCapability()
H A Dbundle_mgr_service_event_handler.cpp3305 appInfo.resourcesApply = preBundleConfigInfo.resourcesApply; in UpdateTrustedPrivilegeCapability()
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/bundle_parser/
H A Dapplication_info.cpp111 const std::string APPLICATION_RESOURCES_APPLY = "resourcesApply";
235 {APPLICATION_RESOURCES_APPLY, applicationInfo.resourcesApply}, in to_json()
862 applicationInfo.resourcesApply, in from_json()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_data_storage_test/
H A Dbms_bundle_data_storage_database_test.cpp404 "resourcesApply":[],
524 "resourcesApply":[],
1149 "resourcesApply":[],

Completed in 38 milliseconds