Home
last modified time | relevance | path

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

/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/
DInteractiveLineGraphView.java477 double interval = roundToOneSignificantFigure(rawInterval); in computeAxisStops() local
478 double intervalMagnitude = Math.pow(10, (int) Math.log10(interval)); in computeAxisStops()
479 int intervalSigDigit = (int) (interval / intervalMagnitude); in computeAxisStops()
482 interval = Math.floor(10 * intervalMagnitude); in computeAxisStops()
485 double first = Math.ceil(start / interval) * interval; in computeAxisStops()
486 double last = Math.nextUp(Math.floor(stop / interval) * interval); in computeAxisStops()
491 for (f = first; f <= last; f += interval) { in computeAxisStops()
502 for (f = first, i = 0; i < n; f += interval, ++i) { in computeAxisStops()
506 if (interval < 1) { in computeAxisStops()
507 outStops.decimals = (int) Math.ceil(-Math.log10(interval)); in computeAxisStops()
/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/
DAppUsageStatisticsFragment.java217 StatsUsageInterval(String stringRepresentation, int interval) { in StatsUsageInterval() argument
219 mInterval = interval; in StatsUsageInterval()