Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DDashboardUtils.kt102 val timeDiffAndUnit = calculateTimeDiffAndUnit(duration) in getTimeDiffStr() constant
103 return when (timeDiffAndUnit.second) { in getTimeDiffStr()
108 timeDiffAndUnit.first.toInt() in getTimeDiffStr()
114 timeDiffAndUnit.first.toInt() in getTimeDiffStr()
117 StringUtils.getIcuPluralsString(context, R.string.hours, timeDiffAndUnit.first.toInt()) in getTimeDiffStr()
119 StringUtils.getIcuPluralsString(context, R.string.days, timeDiffAndUnit.first.toInt()) in getTimeDiffStr()
129 val timeDiffAndUnit = calculateTimeDiffAndUnit(duration) in getDurationUsedStr() constant
130 return when (timeDiffAndUnit.second) { in getDurationUsedStr()
135 timeDiffAndUnit.first.toInt() in getDurationUsedStr()
141 timeDiffAndUnit.first.toInt() in getDurationUsedStr()
[all …]