/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | LapsAdapter.kt | 313 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()
|
D | StopwatchFragment.kt | 342 val subject = subjects[(Math.random() * subjects.size).toInt()] in <lambda>()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | ChartDataUsagePreference.java | 73 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/ |
D | ChartDataUsagePreference.java | 73 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/ |
D | SettingsDAO.kt | 226 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()
|
D | TimerStringFormatter.kt | 38 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()
|
D | CityDAO.kt | 150 val index = if (matcher.find()) matcher.group().toInt() else -1 in createCity()
|
D | TimerDAO.kt | 67 val id = timerId.toInt() in getTimers()
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/ |
D | CircleView.kt | 221 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/ |
D | DigitalAppWidgetProvider.kt | 236 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>()
|
D | DigitalAppWidgetCityViewsFactory.kt | 82 return Math.ceil(totalClockCount / 2).toInt() in getCount()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | FormattedStringModel.kt | 67 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/ |
D | AlarmUtils.kt | 79 var hours = variableDelta.toInt() / (1000 * 60 * 60) in formatElapsedTimeUntilAlarm() 80 val minutes = variableDelta.toInt() / (1000 * 60) % 60 in formatElapsedTimeUntilAlarm()
|
D | AlarmSelectionActivity.kt | 71 val selection = mSelections[id.toInt()] in onListItemClick()
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
D | SettingsActivity.kt | 286 val i = delay.toInt() in updateAutoSnoozeSummary()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.kt | 368 intent.putExtra(ALARM_STATE_EXTRA, state.toInt()) in <lambda>()
|