/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/ |
H A D | bundle_active_package_stats.cpp | 21 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 D | bundle_active_proxy.cpp | 55 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 D | bundle_active_client.cpp | 86 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 D | bundle_active_package_stats.h | 27 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 D | bundle_active_client.h | 67 ErrCode QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& bundleActivePackageStats, 101 ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
|
H A D | bundle_active_proxy.h | 50 ErrCode QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats, 73 ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
|
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/ |
H A D | bundle_active_period_stats.cpp | 44 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 D | bundle_active_stats_combiner.cpp | 21 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 D | bundle_state_common.h | 57 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 D | bundle_state_data.h | 95 std::vector<BundleActivePackageStats> packageStats; 109 std::shared_ptr<std::map<std::string, BundleActivePackageStats>> packageStats;
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/ |
H A D | bundle_aging_mgr.cpp | 31 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 D | bundle_active_stats_combiner.h | 32 template <> class BundleActiveStatsCombiner<BundleActivePackageStats> { 35 std::vector<BundleActivePackageStats>& accumulatedResult, int64_t beginTime = 0);
|
H A D | bundle_active_period_stats.h | 42 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 D | ibundle_active_service.h | 40 class BundleActivePackageStats; 70 virtual ErrCode QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats, 86 virtual ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
|
H A D | bundle_active_service.h | 84 ErrCode QueryBundleStatsInfoByInterval(std::vector<BundleActivePackageStats>& PackageStats, 118 ErrCode QueryBundleStatsInfos(std::vector<BundleActivePackageStats>& bundleActivePackageStats,
|
/foundation/resourceschedule/device_usage_statistics/test/unittest/ |
H A D | package_usage_test.cpp | 82 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 D | device_usage_statistics_mock_test.cpp | 85 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 D | device_usage_statistics_test.cpp | 163 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 D | device_usage_statistics_service_test.cpp | 510 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 D | device_usage_statistics_multi_test.cpp | 191 std::vector<BundleActivePackageStats> result;
in MultiTestQueryBundleStatsInfoByInterval() 213 std::vector<BundleActivePackageStats> result;
in MultiTestQueryBundleStatsInfos()
|
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactivepowerstatecallbackproxy_fuzzer/ |
H A D | bundleactivepowerstatecallbackproxy_fuzzer.cpp | 120 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 D | bundle_state_common.cpp | 139 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 D | bundle_aging_mgr.h | 56 bool QueryBundleStatsInfoByInterval(std::vector<DeviceUsageStats::BundleActivePackageStats> &results);
|
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/bundleagingmgr_fuzzer/ |
H A D | bundleagingmgr_fuzzer.cpp | 35 std::vector<DeviceUsageStats::BundleActivePackageStats> results; in DoSomethingInterestingWithMyAPI()
|
/foundation/resourceschedule/device_usage_statistics/services/common/src/ |
H A D | bundle_active_stub.cpp | 112 std::vector<BundleActivePackageStats> result; in HandleQueryBundleStatsInfoByInterval() 163 std::vector<BundleActivePackageStats> result; in HandleQueryBundleStatsInfos()
|