Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/handheld/v31/
DDashboardUtilsTest.kt22 import com.android.permissioncontroller.permission.ui.handheld.v31.getTimeDiffStr
35 assertThat(getTimeDiffStr(ApplicationProvider.getApplicationContext(), duration)) in getTimeDiffStr_durationSecondsOne()
42 assertThat(getTimeDiffStr(ApplicationProvider.getApplicationContext(), duration)) in getTimeDiffStr_durationSecondsOther()
49 assertThat(getTimeDiffStr(ApplicationProvider.getApplicationContext(), duration)) in getTimeDiffStr_durationMinutesOne()
56 assertThat(getTimeDiffStr(ApplicationProvider.getApplicationContext(), duration)) in getTimeDiffStr_durationMinutesOther()
63 assertThat(getTimeDiffStr(ApplicationProvider.getApplicationContext(), duration)) in getTimeDiffStr_durationHoursOne()
70 assertThat(getTimeDiffStr(ApplicationProvider.getApplicationContext(), duration)) in getTimeDiffStr_durationHoursOther()
77 assertThat(getTimeDiffStr(ApplicationProvider.getApplicationContext(), duration)) in getTimeDiffStr_durationDaysOne()
84 assertThat(getTimeDiffStr(ApplicationProvider.getApplicationContext(), duration)) in getTimeDiffStr_durationDaysOther()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DDashboardUtils.kt90 } else getTimeDiffStr(context, groupUsage.accessDuration) in getUsageDurationString()
101 fun getTimeDiffStr(context: Context, duration: Long): String { in getTimeDiffStr() method