Home
last modified time | relevance | path

Searched refs:totalInFrontTime_ (Results 1 - 8 of 8) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/src/
H A Dbundle_active_package_stats.cpp27 totalInFrontTime_ = 0; // the total time of bundle in front. in BundleActivePackageStats()
45 totalInFrontTime_ = orig.totalInFrontTime_; in BundleActivePackageStats()
73 totalInFrontTime_ += timeStamp - lastTimeUsed_; in IncrementTimeUsed()
214 parcel.WriteInt64(totalInFrontTime_) && in Marshalling()
230 result->totalInFrontTime_ = parcel.ReadInt64(); in UnMarshalling()
243 ", total time in front is " + std::to_string(this->totalInFrontTime_) + in ToString()
H A Dbundle_active_proxy.cpp86 "totalInFrontTime_ is %{public}lld, totalContiniousTaskUsedTime_ is %{public}lld", in QueryBundleStatsInfoByInterval()
89 (long long)PackageStats[i].totalInFrontTime_, (long long)PackageStats[i].totalContiniousTaskUsedTime_); in QueryBundleStatsInfoByInterval()
174 "totalInFrontTime_ is %{public}lld, totalContiniousTaskUsedTime_ is %{public}lld", in QueryBundleStatsInfos()
178 (long long)bundleActivePackageStats[i].totalInFrontTime_, in QueryBundleStatsInfos()
/foundation/resourceschedule/device_usage_statistics/interfaces/innerkits/include/
H A Dbundle_active_package_stats.h33 int64_t totalInFrontTime_; // the total time of using the bundle member in OHOS::DeviceUsageStats::BundleActivePackageStats
/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Dpackage_usage_test.cpp540 packageStatsObject->totalInFrontTime_ = 1; in HWTEST_F()
559 packageStatsObject->totalInFrontTime_ = 1; in HWTEST_F()
1074 packageStats->totalInFrontTime_ = 0; in HWTEST_F()
1079 EXPECT_EQ(packageStats->totalInFrontTime_, timeStamp); in HWTEST_F()
1098 packageStats->totalInFrontTime_ = 0; in HWTEST_F()
1103 EXPECT_EQ(packageStats->totalInFrontTime_, timeStamp); in HWTEST_F()
/foundation/resourceschedule/device_usage_statistics/frameworks/src/
H A Dbundle_state_common.cpp157 NAPI_CALL_RETURN_VOID(env, napi_create_int64(env, item.totalInFrontTime_, &abilityInFgTotalTime)); in GetBundleStateInfoByIntervalForResult()
243 NAPI_CALL_RETURN_VOID(env, napi_create_int64(env, item.second.totalInFrontTime_, &abilityInFgTotalTime)); in GetBundleStateInfoForResult()
505 left.totalInFrontTime_ += right.totalInFrontTime_; in MergePackageStats()
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_usage_database.cpp967 if (iter->second == nullptr || (iter->second->totalInFrontTime_ == 0 && in FlushPackageInfo()
981 valuesBucket.PutLong(BUNDLE_ACTIVE_DB_TOTAL_TIME, iter->second->totalInFrontTime_); in FlushPackageInfo()
1036 bundleActiveResult->GetLong(TOTAL_TIME_COLUMN_INDEX, usageStats->totalInFrontTime_); in GetCurrentUsageData()
1474 bundleActiveResult->GetLong(TOTAL_TIME_COLUMN_INDEX, usageStats.totalInFrontTime_); in QueryDatabaseUsageStats()
/foundation/resourceschedule/device_usage_statistics/services/packageusage/src/
H A Dbundle_active_user_service.cpp472 bool isTimeLegal = (it.second->totalInFrontTime_ != 0 || it.second->totalContiniousTaskUsedTime_ != 0) && in QueryBundleStatsInfos()
662 int64_t totalUsedTime = it.second->totalInFrontTime_; in PrintInMemPackageStats()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_mgr_host_impl.cpp1301 return a.totalInFrontTime_ < b.totalInFrontTime_; in CleanBundleCacheFilesAutomatic()

Completed in 17 milliseconds