Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DUnusedPackagesLiveData.kt27 import com.android.permissioncontroller.hibernation.lastTimePackageUsed in <lambda>()
92 (now - stat.lastTimePackageUsed()) < unusedThreshold in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/hibernation/
DHibernationPolicy.kt404 .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() method
530 private fun List<UsageStats>.lastTimePackageUsed(pkgNames: List<String>): Long { in List() method
534 result = Math.max(result, stat.lastTimePackageUsed()) in List()
540 private fun List<UsageStats>.lastTimePackageUsed(pkgName: String): Long { in List() method
541 return lastTimePackageUsed(listOf(pkgName)) in List()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DUnusedAppsViewModel.kt38 import com.android.permissioncontroller.hibernation.lastTimePackageUsed in <lambda>()
135 PackageLastUsageTime(it.packageName, it.lastTimePackageUsed()) in <lambda>()