Home
last modified time | relevance | path

Searched refs:BundleActivePackageStats (Results 1 - 25 of 35) sorted by relevance

12

/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
H A Dbundle_active_package_stats.cpp21 BundleActivePackageStats::BundleActivePackageStats() in BundleActivePackageStats() function in OHOS::DeviceUsageStats::BundleActivePackageStats
37 BundleActivePackageStats::BundleActivePackageStats (const BundleActivePackageStats& orig) in BundleActivePackageStats() function in OHOS::DeviceUsageStats::BundleActivePackageStats
55 bool BundleActivePackageStats::HasFrontAbility() in HasFrontAbility()
65 bool BundleActivePackageStats::AnyLongTimeTaskStarted() in AnyLongTimeTaskStarted()
70 void BundleActivePackageStats::IncrementTimeUsed(const int64_t timeStamp) in IncrementTimeUsed()
78 void BundleActivePackageStats::IncrementServiceTimeUsed(const int64_t timeStamp) in IncrementServiceTimeUsed()
86 void BundleActivePackageStats
[all...]
H A Dbundle_active_proxy.cpp55 ErrCode BundleActiveProxy::QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats, in QueryBundleStatsInfoByInterval()
75 std::shared_ptr<BundleActivePackageStats> tmp; in QueryBundleStatsInfoByInterval()
144 ErrCode BundleActiveProxy::QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats, in QueryBundleStatsInfos()
163 std::shared_ptr<BundleActivePackageStats> tmp; in QueryBundleStatsInfos()
H A Dbundle_active_client.cpp86 ErrCode BundleActiveClient::QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats, in QueryBundleStatsInfoByInterval()
120 ErrCode BundleActiveClient::QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats, in QueryBundleStatsInfos()
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
H A Dbundle_active_package_stats.h27 class BundleActivePackageStats : public Parcelable { class
46 * function: BundleActivePackageStats, default constructor.
48 BundleActivePackageStats();
50 * function: ~BundleActivePackageStats, default destructor.
52 ~BundleActivePackageStats() {} in ~BundleActivePackageStats()
54 * function: BundleActivePackageStats, copy constructor.
57 BundleActivePackageStats(const BundleActivePackageStats& orig);
79 * function: Marshalling, mashalling BundleActivePackageStats object to parcel.
85 * function: UnMarshalling, Unmashalling BundleActivePackageStats objec
[all...]
H A Dbundle_active_client.h67 ErrCode QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
101 ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
H A Dbundle_active_proxy.h50 ErrCode QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats,
73 ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_period_stats.cpp44 std::shared_ptr<BundleActivePackageStats> BundleActivePeriodStats::GetOrCreateUsageStats( in GetOrCreateUsageStats()
48 std::map<std::string, std::shared_ptr<BundleActivePackageStats>>::iterator it = bundleStats_.find(bundleStatsKey); in GetOrCreateUsageStats()
50 std::shared_ptr<BundleActivePackageStats> insertedStats = std::make_shared<BundleActivePackageStats>(); in GetOrCreateUsageStats()
64 for (std::map<std::string, std::shared_ptr<BundleActivePackageStats>>::iterator it = bundleStats_.begin(); in Update()
66 std::shared_ptr<BundleActivePackageStats> tmpUsageStats = it->second; in Update()
H A Dbundle_active_stats_combiner.cpp21 void BundleActiveStatsCombiner<BundleActivePackageStats>::combine( in combine()
22 const std::shared_ptr<BundleActivePeriodStats>& stats, std::vector<BundleActivePackageStats>& accumulatedResult, in combine()
25 BUNDLE_ACTIVE_LOGI("BundleActivePackageStats combine called"); in combine()
/foundation/resourceschedule/device_usage_statistics/interfaces/kits/bundlestats/napi/include/
H A Dbundle_state_common.h57 napi_env env, const std::vector<BundleActivePackageStats> &packageStats, napi_value result);
66 const std::shared_ptr<std::map<std::string, BundleActivePackageStats>> &packageStats, napi_value result);
85 static std::shared_ptr<std::map<std::string, BundleActivePackageStats>> QueryBundleStatsInfos(
88 static void MergePackageStats(BundleActivePackageStats &left, const BundleActivePackageStats &right);
H A Dbundle_state_data.h95 std::vector<BundleActivePackageStats> packageStats;
109 std::shared_ptr<std::map<std::string, BundleActivePackageStats>> packageStats;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/
H A Dbundle_aging_mgr.cpp31 const std::vector<DeviceUsageStats::BundleActivePackageStats> &useStats, in StatisticsUsageStats()
32 std::vector<DeviceUsageStats::BundleActivePackageStats> &results) in StatisticsUsageStats()
149 std::vector<DeviceUsageStats::BundleActivePackageStats> &results) in QueryBundleStatsInfoByInterval()
159 std::vector<DeviceUsageStats::BundleActivePackageStats> useStats; in QueryBundleStatsInfoByInterval()
189 std::vector<DeviceUsageStats::BundleActivePackageStats> activeBundleRecord; in InitAgingRequest()
202 DeviceUsageStats::BundleActivePackageStats bundleRecord; in InitAgingRequest()
/foundation/resourceschedule/device_usage_statistics/services/packageusage/include/
H A Dbundle_active_stats_combiner.h32 template <> class BundleActiveStatsCombiner<BundleActivePackageStats> {
35 std::vector<BundleActivePackageStats>& accumulatedResult, int64_t beginTime = 0);
H A Dbundle_active_period_stats.h42 std::map<std::string, std::shared_ptr<BundleActivePackageStats>> bundleStats_;
66 std::shared_ptr<BundleActivePackageStats> GetOrCreateUsageStats(const std::string& bundleName, const int32_t uid);
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dibundle_active_service.h40 class BundleActivePackageStats;
70 virtual ErrCode QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats,
86 virtual ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
H A Dbundle_active_service.h84 ErrCode QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats,
118 ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dpackage_usage_test.cpp82 auto packageStats = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
124 auto packageStats = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
147 auto packageStats = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
173 auto packageStats = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
466 "defaultBundleStat", std::make_shared<BundleActivePackageStats>()); in HWTEST_F()
487 std::vector<BundleActivePackageStats> PackageStats; in HWTEST_F()
531 std::vector<BundleActivePackageStats> PackageStats; in HWTEST_F()
536 auto packageStatsObject = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
555 packageStatsObject = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
585 auto packageStatsObject = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
[all...]
H A Ddevice_usage_statistics_mock_test.cpp85 std::vector<BundleActivePackageStats> packageStats; in HWTEST_F()
249 std::vector<BundleActivePackageStats> packageStats; in HWTEST_F()
264 std::vector<BundleActivePackageStats> packageStats; in HWTEST_F()
300 std::vector<BundleActivePackageStats> packageStats; in HWTEST_F()
H A Ddevice_usage_statistics_test.cpp163 std::vector<BundleActivePackageStats> result; in HWTEST_F()
178 std::vector<BundleActivePackageStats> result; in HWTEST_F()
482 auto bundleActivePackageStats = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
H A Ddevice_usage_statistics_service_test.cpp510 stats.bundleStats_.emplace("defaultTest", std::make_shared<BundleActivePackageStats>()); in HWTEST_F()
1393 stats->bundleStats_["test0"] = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
1394 stats->bundleStats_["test1"] = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
1395 stats->bundleStats_["test2"] = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
1421 stats->bundleStats_["test0"] = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
1422 stats->bundleStats_["test1"] = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
1423 stats->bundleStats_["test2"] = std::make_shared<BundleActivePackageStats>(); in HWTEST_F()
H A Ddevice_usage_statistics_multi_test.cpp191 std::vector<BundleActivePackageStats> result; in MultiTestQueryBundleStatsInfoByInterval()
213 std::vector<BundleActivePackageStats> result; in MultiTestQueryBundleStatsInfos()
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/
H A Dbundleactivepowerstatecallbackproxy_fuzzer.cpp120 std::vector<BundleActivePackageStats> packageStats; in BundleActiveClientFuzzTest()
166 auto combiner = std::make_shared<BundleActiveStatsCombiner<BundleActivePackageStats>>(); in BundleActiveStatsCombinerFuzzTest()
168 auto packageStat = std::make_shared<BundleActivePackageStats>(); in BundleActiveStatsCombinerFuzzTest()
173 std::vector<BundleActivePackageStats> accumulatedResult; in BundleActiveStatsCombinerFuzzTest()
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dbundle_state_common.cpp139 napi_env env, const std::vector<BundleActivePackageStats> &packageStats, napi_value result) in GetBundleStateInfoByIntervalForResult()
223 const std::shared_ptr<std::map<std::string, BundleActivePackageStats>> &packageStats, napi_value result) in GetBundleStateInfoForResult()
472 std::shared_ptr<std::map<std::string, BundleActivePackageStats>> BundleStateCommon::QueryBundleStatsInfos( in QueryBundleStatsInfos()
475 std::vector<BundleActivePackageStats> packageStats; in QueryBundleStatsInfos()
478 std::shared_ptr<std::map<std::string, BundleActivePackageStats>> mergedPackageStats = in QueryBundleStatsInfos()
479 std::make_shared<std::map<std::string, BundleActivePackageStats>>(); in QueryBundleStatsInfos()
484 std::map<std::string, BundleActivePackageStats>::iterator iter = in QueryBundleStatsInfos()
490 insert(std::pair<std::string, BundleActivePackageStats>(packageStat.bundleName_, packageStat)); in QueryBundleStatsInfos()
496 void BundleStateCommon::MergePackageStats(BundleActivePackageStats &left, const BundleActivePackageStats
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/aging/
H A Dbundle_aging_mgr.h56 bool QueryBundleStatsInfoByInterval(std::vector<DeviceUsageStats::BundleActivePackageStats> &results);
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleagingmgr_fuzzer/
H A Dbundleagingmgr_fuzzer.cpp35 std::vector<DeviceUsageStats::BundleActivePackageStats> results; in DoSomethingInterestingWithMyAPI()
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_stub.cpp112 std::vector<BundleActivePackageStats> result; in HandleQueryBundleStatsInfoByInterval()
163 std::vector<BundleActivePackageStats> result; in HandleQueryBundleStatsInfos()

Completed in 14 milliseconds

12