Home
last modified time | relevance | path

Searched refs:UnusedPeriod (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DWearUnusedAppsFragment.kt39 import com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel.UnusedPeriod in <lambda>()
40 import com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel.UnusedPeriod.Compan… in <lambda>()
65 MutableList(UnusedPeriod.values().size) { false } in <lambda>()
66 private var unusedAppsMap: MutableMap<UnusedPeriod, MutableMap<String, UnusedAppChip>> = in <lambda>()
140 private fun initUnusedAppsMap(): MutableMap<UnusedPeriod, MutableMap<String, UnusedAppChip>> { in <lambda>()
141 val res = mutableMapOf<UnusedPeriod, MutableMap<String, UnusedAppChip>>() in <lambda>()
148 private fun updatePackages(categorizedPackages: Map<UnusedPeriod, List<UnusedPackageInfo>>) { in <lambda>()
266 private fun periodToIndex(period: UnusedPeriod): Int { in <lambda>()
268 UnusedPeriod.ONE_MONTH -> return 0 in <lambda>()
269 UnusedPeriod.THREE_MONTHS -> return 1 in <lambda>()
[all …]
DWearUnusedAppsScreen.kt26 import com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel.UnusedPeriod
27 import com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel.UnusedPeriod.Compan…
100 private fun posByPeriod(period: UnusedPeriod) = in posByPeriod()
102 UnusedPeriod.ONE_MONTH -> 0 in posByPeriod()
103 UnusedPeriod.THREE_MONTHS -> 1 in posByPeriod()
104 UnusedPeriod.SIX_MONTHS -> 2 in posByPeriod()
108 private fun categoryTitleByPeriod(period: UnusedPeriod) =
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DUnusedAppsViewModel.kt61 UnusedPeriod.allPeriods.maxBy(UnusedPeriod::duration).duration.inWholeMilliseconds in <lambda>()
65 enum class UnusedPeriod(val duration: Duration) { in <lambda>() class in com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel
78 val allPeriods: List<UnusedPeriod> = values().toList() in <lambda>()
81 fun findLongestValidPeriod(durationInMs: Long): UnusedPeriod { in <lambda>()
83 return UnusedPeriod.allPeriods.findLast { duration > it.duration } in <lambda>()
84 ?: UnusedPeriod.allPeriods.first() in <lambda>()
100 SmartAsyncMediatorLiveData<Map<UnusedPeriod, List<UnusedPackageInfo>>>( in <lambda>()
125 val categorizedApps = mutableMapOf<UnusedPeriod, MutableList<UnusedPackageInfo>>() in <lambda>()
126 for (period in UnusedPeriod.allPeriods) { in <lambda>()
155 val period = UnusedPeriod.findLongestValidPeriod(now - lastUsageTime) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/model/
DWearUnusedAppsViewModel.kt23 import com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel.UnusedPeriod
37 MutableLiveData<Map<UnusedPeriod, Map<String, UnusedAppChip>>>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DUnusedAppsFragment.kt48 import com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel.UnusedPeriod in <lambda>()
49 import com.android.permissioncontroller.permission.ui.model.UnusedAppsViewModel.UnusedPeriod.Compan… in <lambda>()
187 private fun updatePackages(categorizedPackages: Map<UnusedPeriod, List<UnusedPackageInfo>>) { in <lambda>()