Home
last modified time | relevance | path

Searched refs:lastTimePackageUsed (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/hibernation/
DHibernationPolicy.kt245 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() method
356 private fun List<UsageStats>.lastTimePackageUsed(pkgNames: List<String>): Long { in List() method
360 result = Math.max(result, stat.lastTimePackageUsed()) in List()
366 private fun List<UsageStats>.lastTimePackageUsed(pkgName: String): Long { in List() method
367 return lastTimePackageUsed(listOf(pkgName)) in List()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DUnusedPackagesLiveData.kt27 import com.android.permissioncontroller.hibernation.lastTimePackageUsed in <lambda>()
96 (now - stat.lastTimePackageUsed()) < unusedThreshold) { in <lambda>()