Home
last modified time | relevance | path

Searched refs:Time (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java21 import android.text.format.Time;
31 Time t = new Time(Time.TIMEZONE_UTC); in testNormalize0()
180 Time local = new Time("America/Los_Angeles"); in testNormalize1()
271 Time t = new Time(Time.TIMEZONE_UTC); in testSwitchTimezone0()
279 Time t = new Time(Time.TIMEZONE_UTC); in testCtor0()
280 assertEquals(Time.TIMEZONE_UTC, t.timezone); in testCtor0()
285 Time t = new Time(Time.TIMEZONE_UTC); in testGetActualMaximum0()
286 int r = t.getActualMaximum(Time.SECOND); in testGetActualMaximum0()
292 Time t = new Time(Time.TIMEZONE_UTC); in testClear0()
293 t.clear(Time.TIMEZONE_UTC); in testClear0()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java20 import static android.text.format.Time.MONTH_DAY;
28 import android.text.format.Time;
134 final Time now = new Time(Time.TIMEZONE_UTC); in computeLastCycleBoundary()
138 final Time cycle = new Time(now); in computeLastCycleBoundary()
142 if (Time.compare(cycle, now) >= 0) { in computeLastCycleBoundary()
145 final Time lastMonth = new Time(now); in computeLastCycleBoundary()
160 final Time now = new Time(Time.TIMEZONE_UTC); in computeNextCycleBoundary()
164 final Time cycle = new Time(now); in computeNextCycleBoundary()
168 if (Time.compare(cycle, now) <= 0) { in computeNextCycleBoundary()
171 final Time nextMonth = new Time(now); in computeNextCycleBoundary()
[all …]
/frameworks/opt/calendar/src/com/android/calendarcommon/
DRecurrenceProcessor.java20 import android.text.format.Time;
28 private Time mIterator = new Time(Time.TIMEZONE_UTC);
29 private Time mUntil = new Time(Time.TIMEZONE_UTC);
31 private Time mGenerated = new Time(Time.TIMEZONE_UTC);
60 public long getLastOccurence(Time dtstart, in getLastOccurence()
82 public long getLastOccurence(Time dtstart, Time maxtime, in getLastOccurence()
195 private static int filter(EventRecurrence r, Time iterator) in filter()
216 iterator.getActualMaximum(Time.WEEK_NUM)); in filter()
226 iterator.yearDay, iterator.getActualMaximum(Time.YEAR_DAY)); in filter()
235 iterator.getActualMaximum(Time.MONTH_DAY)); in filter()
[all …]
DRecurrenceSet.java23 import android.text.format.Time;
142 String tz = Time.TIMEZONE_UTC; in parseRecurrenceDates()
148 Time time = new Time(tz); in parseRecurrenceDates()
188 Time start = new Time(tzidParam == null ? Time.TIMEZONE_UTC : tzid); in populateContentValues()
195 tzid = Time.TIMEZONE_UTC; in populateContentValues()
217 start.timezone = Time.TIMEZONE_UTC; in populateContentValues()
273 Time dtstartTime = null; in populateComponent()
278 dtstartTime = new Time(tzid); in populateComponent()
281 dtstartTime = new Time(Time.TIMEZONE_UTC); in populateComponent()
332 Time dtstartTime = null; in populateComponent()
[all …]
DEventRecurrence.java20 import android.text.format.Time;
49 public Time startDate; // set by setStartDate(), not parse()
159 public void setStartDate(Time date) { in setStartDate()
195 case Time.SUNDAY: in timeDay2Day()
197 case Time.MONDAY: in timeDay2Day()
199 case Time.TUESDAY: in timeDay2Day()
201 case Time.WEDNESDAY: in timeDay2Day()
203 case Time.THURSDAY: in timeDay2Day()
205 case Time.FRIDAY: in timeDay2Day()
207 case Time.SATURDAY: in timeDay2Day()
[all …]
/frameworks/base/core/jni/
DTime.cpp8 dump(const Time& t) in dump()
21 Time::Time() in Time() function in android::Time
44 Time::compare(Time& a, Time& b) in compare()
81 Time::switchTimezone(const char* timezone) in switchTimezone()
88 Time::format(const char *format, const struct strftime_locale *locale) const in format()
114 Time::format2445(short* buf, bool hasTime) const in format2445()
154 Time::toString() const in toString()
166 (int)(((Time*)this)->toMillis(false /* use isDst */)/1000)); in toString()
172 Time::setToNow() in setToNow()
180 Time::toMillis(bool ignoreDst) in toMillis()
[all …]
DTimeUtils.h38 class Time
57 static int compare(Time& a, Time& b);
59 Time();
Dandroid_text_format_Time.cpp60 static inline bool java2time(JNIEnv* env, Time* t, jobject o) in java2time()
83 static inline void time2java(JNIEnv* env, jobject o, const Time &t) in time2java()
111 Time t; in android_text_format_Time_normalize()
126 Time t; in android_text_format_Time_switchTimezone()
145 Time a, b; in android_text_format_Time_compare()
153 int result = Time::compare(a, b); in android_text_format_Time_compare()
163 Time t; in android_text_format_Time_format2445()
200 Time t; in android_text_format_Time_format()
310 Time t; in android_text_format_Time_toString()
324 Time t; in android_text_format_Time_setToNow()
[all …]
/frameworks/opt/calendar/tests/src/com/android/calendarcommon/
DRecurrenceProcessorTest.java25 import android.text.format.Time;
37 private static String[] getFormattedDates(long[] dates, Time time) { in getFormattedDates()
89 Time dtstart = new Time(tz); in verifyRecurrence()
90 Time rangeStart = new Time(tz); in verifyRecurrence()
91 Time rangeEnd = new Time(tz); in verifyRecurrence()
92 Time outCal = new Time(tz); in verifyRecurrence()
156 Time expectedLast = new Time(tz); in verifyRecurrence()
2447 Time dtstart = new Time(tz); in performanceTextExpand()
2448 Time rangeStart = new Time(tz); in performanceTextExpand()
2449 Time rangeEnd = new Time(tz); in performanceTextExpand()
[all …]
DRRuleTest.java27 import android.text.format.Time;
45 private static String[] getFormattedDates(long[] dates, Time time, boolean truncate) { in getFormattedDates()
98 Time dtstart = new Time(tz); in runRecurrenceIteratorTest()
99 Time rangeStart = new Time(tz); in runRecurrenceIteratorTest()
100 Time rangeEnd = new Time(tz); in runRecurrenceIteratorTest()
101 Time outCal = new Time(tz); in runRecurrenceIteratorTest()
/frameworks/base/core/java/android/text/format/
DTime.java31 public class Time { class
160 public Time(String timezone) { in Time() method in Time
176 public Time() { in Time() method in Time
186 public Time(Time other) { in Time() method in Time
296 public static int compare(Time a, Time b) { in compare()
306 private static native int nativeCompare(Time a, Time b); in nativeCompare()
316 synchronized (Time.class) { in format()
575 public void set(Time that) { in set()
638 public boolean before(Time that) { in before()
639 return Time.compare(this, that) < 0; in before()
[all …]
DDateUtils.java538 sThenTime = new Time(); in getNumberOfDaysPassed()
541 int day1 = Time.getJulianDay(date1, sThenTime.gmtoff); in getNumberOfDaysPassed()
543 int day2 = Time.getJulianDay(date2, sThenTime.gmtoff); in getNumberOfDaysPassed()
611 Time startTime = new Time(); in getRelativeDayString()
613 Time currentTime = new Time(); in getRelativeDayString()
616 int startDay = Time.getJulianDay(day, startTime.gmtoff); in getRelativeDayString()
617 int currentDay = Time.getJulianDay(today, currentTime.gmtoff); in getRelativeDayString()
834 Time time = new Time(); in isToday()
1189 Time startDate; in formatDateRange()
1191 startDate = new Time(timeZone); in formatDateRange()
[all …]
/frameworks/base/core/java/com/android/internal/http/
DHttpDateTime.java19 import android.text.format.Time;
118 Time time = new Time(Time.TIMEZONE_UTC); in parse()
/frameworks/base/core/java/android/widget/
DAnalogClock.java29 import android.text.format.Time;
42 private Time mCalendar;
89 mCalendar = new Time(); in AnalogClock()
114 mCalendar = new Time(); in onAttachedToWindow()
241 mCalendar = new Time(TimeZone.getTimeZone(tz).getID());
250 private void updateContentDescription(Time time) { in updateContentDescription()
DDateTimeView.java26 import android.text.format.Time;
95 Time t = new Time(); in setTime()
113 Time t = new Time(); in update()
/frameworks/base/telephony/java/android/telephony/
DSmsCbMessage.java19 import android.text.format.Time;
432 Time time = new Time(Time.TIMEZONE_UTC); in getTimestampMillis()
/frameworks/base/sax/tests/saxtests/src/android/sax/
DSafeSaxTest.java29 import android.text.format.Time;
228 video.dateAdded = new Time(Time.TIMEZONE_UTC); in newContentHandler()
475 video.dateAdded = new Time(Time.TIMEZONE_UTC); in endElement()
535 public Time dateAdded;
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java21 import android.text.format.Time;
333 Time time = new Time(); in toString()
/frameworks/base/services/java/com/android/server/
DEventLogTags.logtags84 2825 backup_success (Packages|1|1),(Time|1|3)
91 2834 restore_success (Packages|1|1),(Time|1|3)
128 32000 imf_force_reconnect_ime (IME|4),(Time Since Connect|2|3),(Showing|1|1)
DUiModeManagerService.java50 import android.text.format.Time;
727 Time currentTime = new Time();
/frameworks/base/media/libstagefright/codecs/common/include/
DvoType.h192 VO_S64 Time; /*!< The time of the buffer */ member
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java73 import android.text.format.Time;
692 final Time result = new Time(); in parseTime()
809 final Time time = new Time(Time.TIMEZONE_UTC); in formatTime()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsMessage.java21 import android.text.format.Time;
566 Time time = new Time(Time.TIMEZONE_UTC); in getSCTimestampMillis()
/frameworks/base/libs/rs/scriptc/
Drs_time.rsh29 * January 1, 1970, Coordinated Universal Time (UTC)).
106 * @return Time in seconds.
/frameworks/compile/libbcc/
DREADME.rst12 * it implements both AOT (Ahead-of-Time) and JIT (Just-in-Time)
49 binaries. Just-in-Time compilation are oftentimes Just-too-Late,

12