Home
last modified time | relevance | path

Searched refs:calculator (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/text/format/
DTime.java164 private TimeCalculator calculator; field in Time
208 calculator = new TimeCalculator(timezoneId); in initialize()
230 calculator.copyFieldsFromTime(this); in normalize()
231 long timeInMillis = calculator.toMillis(ignoreDst); in normalize()
232 calculator.copyFieldsToTime(this); in normalize()
244 calculator.copyFieldsFromTime(this); in switchTimezone()
245 calculator.switchTimeZone(timezone); in switchTimezone()
246 calculator.copyFieldsToTime(this); in switchTimezone()
342 a.calculator.copyFieldsFromTime(a); in compare()
343 b.calculator.copyFieldsFromTime(b); in compare()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightManager.java149 final TwilightCalculator calculator = TwilightCalculator.getInstance(); in updateState() local
152 calculator.calculateTwilight(now - DateUtils.DAY_IN_MILLIS, in updateState()
154 final long yesterdaySunset = calculator.sunset; in updateState()
157 calculator.calculateTwilight(now, location.getLatitude(), location.getLongitude()); in updateState()
158 final boolean isNight = (calculator.state == TwilightCalculator.NIGHT); in updateState()
159 final long todaySunrise = calculator.sunrise; in updateState()
160 final long todaySunset = calculator.sunset; in updateState()
163 calculator.calculateTwilight(now + DateUtils.DAY_IN_MILLIS, in updateState()
165 final long tomorrowSunrise = calculator.sunrise; in updateState()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java176 float minContrastRatio, ContrastCalculator calculator) { in binaryAlphaSearch() argument
186 final double testRatio = calculator.calculateContrast(foreground, background, in binaryAlphaSearch()