Home
last modified time | relevance | path

Searched refs:oneBundleHistory (Results 1 - 3 of 3) sorted by relevance

/foundation/resourceschedule/device_usage_statistics/services/packagegroup/src/
H A Dbundle_active_user_history.cpp86 auto oneBundleHistory = GetUsageHistoryInUserHistory(oneUserHistory, bundleName, bootBasedTimeStamp, false, uid); in GetLevelIndex() local
87 if (oneBundleHistory == nullptr) { in GetLevelIndex()
90 int64_t screenDiff = GetScreenOnTimeStamp(bootBasedTimeStamp) - oneBundleHistory->lastScreenUsedTimeStamp_; in GetLevelIndex()
91 int64_t bootFromDiff = GetBootBasedTimeStamp(bootBasedTimeStamp) - oneBundleHistory->lastBootFromUsedTimeStamp_; in GetLevelIndex()
172 auto oneBundleHistory = GetUsageHistoryInUserHistory(oneUserHistory, bundleName, bootBasedTimeStamp, create, uid); in GetUsageHistoryForBundle() local
173 if (!oneBundleHistory) { in GetUsageHistoryForBundle()
176 return oneBundleHistory; in GetUsageHistoryForBundle()
232 shared_ptr<BundleActivePackageHistory> oneBundleHistory = GetUsageHistoryInUserHistory(userBundleHistory, in SetAppGroup() local
234 if (!oneBundleHistory) { in SetAppGroup()
237 if (oneBundleHistory in SetAppGroup()
[all...]
H A Dbundle_active_group_controller.cpp232 const std::shared_ptr<BundleActivePackageHistory>& oneBundleHistory, const int64_t bootBasedTimeStamp) in calculationTimeOut()
234 if (oneBundleHistory == nullptr) { in calculationTimeOut()
237 int64_t lastGroupCalculatedTimeStamp = oneBundleHistory->lastGroupCalculatedTimeStamp_; in calculationTimeOut()
305 auto oneBundleHistory = bundleUserHistory_->GetUsageHistoryForBundle(bundleName, userId, in CheckAndUpdateGroup() local
307 if (oneBundleHistory == nullptr) { in CheckAndUpdateGroup()
310 uint32_t groupReason = oneBundleHistory->reasonInGroup_; in CheckAndUpdateGroup()
316 int32_t oldGroup = oneBundleHistory->currentGroup_; in CheckAndUpdateGroup()
329 if (newGroup >= ACTIVE_GROUP_ALIVE && oneBundleHistory->bundleAliveTimeoutTimeStamp_ > in CheckAndUpdateGroup()
334 } else if (newGroup >= ACTIVE_GROUP_DAILY && oneBundleHistory->bundleDailyTimeoutTimeStamp_ > in CheckAndUpdateGroup()
365 auto oneBundleHistory in SetAppGroup() local
231 calculationTimeOut( const std::shared_ptr<BundleActivePackageHistory>& oneBundleHistory, const int64_t bootBasedTimeStamp) calculationTimeOut() argument
397 auto oneBundleHistory = bundleUserHistory_->GetUsageHistoryForBundle(bundleName, IsBundleIdle() local
433 auto oneBundleHistory = bundleUserHistory_->GetUsageHistoryForBundle(bundleName, QueryAppGroup() local
[all...]
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/
H A Dbundle_active_group_controller.h97 bool calculationTimeOut(const std::shared_ptr<BundleActivePackageHistory>& oneBundleHistory,

Completed in 2 milliseconds