Lines Matching full:time
55 import android.text.format.Time;
109 // duration of the scroll to go to a specified time
131 * explicitly scrolls to an empty time slot, changes views, or deletes the event.
161 Time mBaseDate;
162 private Time mCurrentTime;
163 //Update the current time line every five minutes if the window is left open that long
497 /** Width of the time line (list of hours) to the left. */
580 // Animates the current time marker when Today is pressed
736 mCurrentTime = new Time(Utils.getTimeZone(context, mTZUpdater));
742 mTodayJulianDay = Time.getJulianDay(currentTime, mCurrentTime.gmtoff);
839 mBaseDate = new Time(Utils.getTimeZone(context, mTZUpdater));
885 * Returns the start of the selected time in milliseconds since the epoch.
887 * @return selected time in UTC milliseconds since the epoch.
890 Time time = new Time(mBaseDate);
891 time.setJulianDay(mSelectionDay);
892 time.hour = mSelectionHour;
895 // out the correct DST value and not adjust the selected time based
897 return time.normalize(true /* ignore isDst */);
900 Time getSelectedTime() {
901 Time time = new Time(mBaseDate);
902 time.setJulianDay(mSelectionDay);
903 time.hour = mSelectionHour;
906 // out the correct DST value and not adjust the selected time based
908 time.normalize(true /* ignore isDst */);
909 return time;
913 * Returns the start of the selected time in minutes since midnight,
914 * local time. The derived class must ensure that this is consistent
930 public void setSelected(Time time, boolean ignoreTime, boolean animateToday) {
931 mBaseDate.set(time);
936 mSelectionDay = Time.getJulianDay(millis, mBaseDate.gmtoff);
1028 public Time getSelectedDay() {
1029 Time time = new Time(mBaseDate);
1030 time.setJulianDay(mSelectionDay);
1031 time.hour = mSelectionHour;
1034 // out the correct DST value and not adjust the selected time based
1036 time.normalize(true /* ignore isDst */);
1037 return time;
1041 Time start = new Time(mBaseDate);
1043 Time end = new Time(start);
1065 * return a negative number if "time" is comes before the visible time
1066 * range, a positive number if "time" is after the visible time range, and 0
1067 * if it is in the visible time range.
1069 public int compareToVisibleTimeRange(Time time) {
1081 Log.d(TAG, "Diff " + time.toString());
1085 int diff = Time.compare(time, mBaseDate);
1090 diff = Time.compare(time, mBaseDate);
1097 // in visible time
1115 // 7 days at a time.
1121 mFirstJulianDay = Time.getJulianDay(start, mBaseDate.gmtoff);
1124 mMonthLength = mBaseDate.getActualMaximum(Time.MONTH_DAY);
1129 private void adjustToBeginningOfWeek(Time time) {
1130 int dayOfWeek = time.weekDay;
1136 time.monthDay -= diff;
1137 time.normalize(true /* ignore isDst */);
1542 Time date = view.mBaseDate;
1554 Time end = new Time(date);
1560 Time date = new Time(mBaseDate);
1708 private final Time mStart;
1709 private final Time mEnd;
1711 public GotoBroadcaster(Time start, Time end) {
1764 final Time start = new Time(mBaseDate.timezone);
1773 Time newSelected = start;
1776 newSelected = new Time(start);
1780 final Time end = new Time(start);
1783 // We have to allocate these animation objects each time we switch views
1866 // If the selected hour is at least 2 time slots from the top and
1926 // Make sure our time zones are up to date
1934 Time weekStart = new Time(Utils.getTimeZone(mContext, mTZUpdater));
2278 if (dayOfWeek == Time.SATURDAY) {
2280 } else if (dayOfWeek == Time.SUNDAY) {
2357 // And the current time shows up somewhere on the screen
2418 String time = mHourStrs[i];
2419 canvas.drawText(time, HOURS_LEFT_MARGIN, y, p);
2542 // Draw a white background for the time later than current time
2555 // Draw today with a white background for the time later than current time
3516 TextView timeView = (TextView) mPopupView.findViewById(R.id.time);
3700 Time selectedTime = new Time(mBaseDate);
3745 // Select time
3746 Time startTime = new Time(mBaseDate);
3751 Time endTime = new Time(startTime);
3925 Time date = view.mBaseDate;
4600 mTodayJulianDay = Time.getJulianDay(currentTime, mCurrentTime.gmtoff);
4659 long time = getSelectedTimeInMillis();
4666 mLongPressTitle = Utils.formatDateRange(mContext, time, time, flags);