Home
last modified time | relevance | path

Searched refs:sunrise (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightCalculator.java73 public long sunrise; field in TwilightCalculator
119 sunrise = -1; in calculateTwilight()
124 sunrise = -1; in calculateTwilight()
131 sunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
133 if (sunrise < time && sunset > time) { in calculateTwilight()
DTwilightManager.java154 final long todaySunrise = calculator.sunrise; in updateState()
160 final long tomorrowSunrise = calculator.sunrise; in updateState()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightState.java50 public Calendar sunrise() { in sunrise() method in TwilightState
51 final Calendar sunrise = Calendar.getInstance(); in sunrise() local
52 sunrise.setTimeInMillis(mSunriseTimeMillis); in sunrise()
53 return sunrise; in sunrise()
/frameworks/base/services/core/java/com/android/server/display/
DNightDisplayService.java566 final Calendar sunrise = state.sunrise(); in updateActivated() local
571 && (lastActivatedTime.after(sunrise) ^ lastActivatedTime.after(sunset))) { in updateActivated()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNightDisplayServiceTest.java985 final LocalTime sunrise = getLocalTimeRelativeToNow(sunriseOffset); in getTwilightStateRelativeToNow() local
989 long sunriseMillis = sunrise.getDateTimeBefore(now).getTimeInMillis(); in getTwilightStateRelativeToNow()
993 sunriseMillis = sunrise.getDateTimeAfter(now).getTimeInMillis(); in getTwilightStateRelativeToNow()