Searched refs:lastTimePackageUsed (Results 1 – 3 of 3) sorted by relevance
27 import com.android.permissioncontroller.hibernation.lastTimePackageUsed in <lambda>()92 (now - stat.lastTimePackageUsed()) < unusedThreshold in <lambda>()
404 .map { stat -> stat.packageName to Date(stat.lastTimePackageUsed()) } in getAppsToHibernate()437 var lastTimePkgUsed: Long = stats.lastTimePackageUsed(uidPackages) in getAppsToHibernate()452 maxOf(lastTimePkgUsed, otherStats.lastTimePackageUsed(pkgName)) in getAppsToHibernate()506 userStats[user]?.lastTimePackageUsed(packageName)?.let(::Date) in getAppsToHibernate()522 fun UsageStats.lastTimePackageUsed(): Long { in UsageStats() method530 private fun List<UsageStats>.lastTimePackageUsed(pkgNames: List<String>): Long { in List() method534 result = Math.max(result, stat.lastTimePackageUsed()) in List()540 private fun List<UsageStats>.lastTimePackageUsed(pkgName: String): Long { in List() method541 return lastTimePackageUsed(listOf(pkgName)) in List()
38 import com.android.permissioncontroller.hibernation.lastTimePackageUsed in <lambda>()135 PackageLastUsageTime(it.packageName, it.lastTimePackageUsed()) in <lambda>()