Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.kt313 hours = (time / DateUtils.HOUR_IN_MILLIS).toInt() in formatTime()
314 var remainder = (time % DateUtils.HOUR_IN_MILLIS).toInt() in formatTime()
315 minutes = (remainder / DateUtils.MINUTE_IN_MILLIS).toInt() in formatTime()
316 remainder = (remainder % DateUtils.MINUTE_IN_MILLIS).toInt() in formatTime()
317 seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in formatTime()
318 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in formatTime()
DStopwatchFragment.kt342 val subject = subjects[(Math.random() * subjects.size).toInt()] in <lambda>()
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java73 chart.configureGraph(toInt(mEnd - mStart), top); in onBindViewHolder()
111 points.put(toInt(startTime - mStart) - 1, -1); in calcPoints()
113 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); in calcPoints()
114 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); in calcPoints()
121 private int toInt(long l) { in toInt() method in ChartDataUsagePreference
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DChartDataUsagePreference.java73 chart.configureGraph(toInt(mEnd - mStart), top); in onBindViewHolder()
111 points.put(toInt(startTime - mStart) - 1, -1); in calcPoints()
113 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); in calcPoints()
114 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); in calcPoints()
121 private int toInt(long l) { in toInt() method in ChartDataUsagePreference
/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.kt226 return crescendoSeconds.toInt() * DateUtils.SECOND_IN_MILLIS in getAlarmCrescendoDuration()
235 return crescendoSeconds.toInt() * DateUtils.SECOND_IN_MILLIS in getTimerCrescendoDuration()
245 return when (val firstCalendarDay = value.toInt()) { in getWeekdayOrder()
291 return string.toInt() in getAlarmTimeout()
300 return string.toInt() in getSnoozeLength()
DTimerStringFormatter.kt38 var roundedHours = (remainingTime / HOUR_IN_MILLIS).toInt() in formatTimeRemaining()
39 var roundedMinutes = (remainingTime / MINUTE_IN_MILLIS % 60).toInt() in formatTimeRemaining()
40 var roundedSeconds = (remainingTime / SECOND_IN_MILLIS % 60).toInt() in formatTimeRemaining()
DCityDAO.kt150 val index = if (matcher.find()) matcher.group().toInt() else -1 in createCity()
DTimerDAO.kt67 val id = timerId.toInt() in getTimers()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DCircleView.kt221 invalidate((centerX - radius - 0.5f).toInt(), (centerY - radius - 0.5f).toInt(), in invalidate()
222 (centerX + radius + 0.5f).toInt(), (centerY + radius + 0.5f).toInt()) in invalidate()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.kt236 mIconFontSizePx = (mFontSizePx * 1.4f).toInt() in <lambda>()
352 val minWidthPx = (density * options.getInt(OPTION_APPWIDGET_MIN_WIDTH)).toInt() in <lambda>()
353 val minHeightPx = (density * options.getInt(OPTION_APPWIDGET_MIN_HEIGHT)).toInt() in <lambda>()
354 val maxWidthPx = (density * options.getInt(OPTION_APPWIDGET_MAX_WIDTH)).toInt() in <lambda>()
355 val maxHeightPx = (density * options.getInt(OPTION_APPWIDGET_MAX_HEIGHT)).toInt() in <lambda>()
DDigitalAppWidgetCityViewsFactory.kt82 return Math.ceil(totalClockCount / 2).toInt() in getCount()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DFormattedStringModel.kt67 val length = if (value == 0) 1 else Math.log10(value.toDouble()).toInt() + 1 in getFormattedNumber()
107 valueCache = SparseArray(Math.pow(10.0, length.toDouble()).toInt()) in getFormattedNumber()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmUtils.kt79 var hours = variableDelta.toInt() / (1000 * 60 * 60) in formatElapsedTimeUntilAlarm()
80 val minutes = variableDelta.toInt() / (1000 * 60) % 60 in formatElapsedTimeUntilAlarm()
DAlarmSelectionActivity.kt71 val selection = mSelections[id.toInt()] in onListItemClick()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt286 val i = delay.toInt() in updateAutoSnoozeSummary()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt368 intent.putExtra(ALARM_STATE_EXTRA, state.toInt()) in <lambda>()