Searched refs:lastTimePackageUsed (Results 1 – 2 of 2) sorted by relevance
245 stat.packageName to Date(stat.lastTimePackageUsed()) in getAppsToHibernate()270 var lastTimePkgUsed: Long = stats.lastTimePackageUsed(uidPackages) in getAppsToHibernate()285 maxOf(lastTimePkgUsed, otherStats.lastTimePackageUsed(pkgName)) in getAppsToHibernate()331 userStats[user]?.lastTimePackageUsed(packageName)?.let(::Date)) in getAppsToHibernate()348 fun UsageStats.lastTimePackageUsed(): Long { in UsageStats() method356 private fun List<UsageStats>.lastTimePackageUsed(pkgNames: List<String>): Long { in List() method360 result = Math.max(result, stat.lastTimePackageUsed()) in List()366 private fun List<UsageStats>.lastTimePackageUsed(pkgName: String): Long { in List() method367 return lastTimePackageUsed(listOf(pkgName)) in List()
27 import com.android.permissioncontroller.hibernation.lastTimePackageUsed in <lambda>()96 (now - stat.lastTimePackageUsed()) < unusedThreshold) { in <lambda>()