Home
last modified time | relevance | path

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

12

/packages/apps/DeskClock/src/com/android/deskclock/
DTimerTextController.kt34 var hours = (variableRemainingTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
35 var remainder = (variableRemainingTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
37 var minutes = (remainder / DateUtils.MINUTE_IN_MILLIS).toInt() in setTimeString()
38 remainder = (remainder % DateUtils.MINUTE_IN_MILLIS).toInt() in setTimeString()
40 var seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
41 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
DStopwatchTextController.kt40 val hours = (accumulatedTime / DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
41 var remainder = (accumulatedTime % DateUtils.HOUR_IN_MILLIS).toInt() in setTimeString()
43 val minutes = (remainder / DateUtils.MINUTE_IN_MILLIS).toInt() in setTimeString()
44 remainder = (remainder % DateUtils.MINUTE_IN_MILLIS).toInt() in setTimeString()
46 val seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
47 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
DCircleButtonsLayout.kt71 val circleDiam = (minBound - mDiamOffset).toInt() in remeasureViews()
145 it.maxWidth = w.toInt() in remeasureViews()
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()
DClockFragment.kt422 val hoursDifferent = (offsetDelta / DateUtils.HOUR_IN_MILLIS).toInt() in bind()
423 val minutesDifferent = (offsetDelta / DateUtils.MINUTE_IN_MILLIS).toInt() % 60 in bind()
DHandleApiCalls.kt328 val timerId = ContentUris.parseId(dataUri).toInt() in getSelectedTimer()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DUtils.kt183 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) in getTimeDiffStr()
185 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) in getTimeDiffStr()
187 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) in getTimeDiffStr()
189 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) in getTimeDiffStr()
201 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) in getDurationUsedStr()
203 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) in getDurationUsedStr()
205 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) in getDurationUsedStr()
207 timeDiffAndUnit.first.toInt(), timeDiffAndUnit.first) in getDurationUsedStr()
/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.kt341 val subject = subjects[(Math.random() * subjects.size).toInt()] in <lambda>()
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java81 chart.configureGraph(toInt(mEnd - mStart), top); in onBindViewHolder()
120 points.put(toInt(startTime - mStart) - 1, -1); in calcPoints()
122 points.put(toInt(startTime - mStart + 1), (int) (totalData / RESOLUTION)); in calcPoints()
123 points.put(toInt(endTime - mStart), (int) (totalData / RESOLUTION)); in calcPoints()
254 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/modules/Connectivity/tests/common/java/android/net/
DConnectivitySettingsManagerTest.kt154 testIntValues = intArrayOf(testTime1.toInt())) in <lambda>()
163 testIntValues = intArrayOf(testTime1.toInt())) in <lambda>()
173 testIntValues = intArrayOf(testTime1.toInt())) in <lambda>()
226 testIntValues = intArrayOf(testTime1.toInt())) in <lambda>()
272 testIntValues = intArrayOf(testTime1.toInt())) in <lambda>()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/
DPermissionGroupPreferenceUtils.kt39 UsageCount(groups[1].toInt(), groups[2].toInt()) in getUsageCountsFromUi()
/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/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/
DManageStandardPermissionsFragmentTest.kt88 .toInt() in getAdditionalPermissionCount()
/packages/modules/NetworkStack/tests/integration/src/android/net/util/
DNetworkStackUtilsIntegrationTest.kt128 0 /* flags */, TEST_TARGET_IPV4_ADDR, DhcpPacket.DHCP_CLIENT.toInt() /* port */) in testAddArpEntry()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt284 val i = delay.toInt() in updateAutoSnoozeSummary()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DGrantPermissionsViewHandlerImpl.kt87 R.dimen.location_accuracy_image_size).toInt() in <lambda>()

12