Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java41 Time t = new Time(Time.TIMEZONE_UTC); in testNormalize0()
190 Time local = new Time("America/Los_Angeles"); in testNormalize1()
281 Time t = new Time(Time.TIMEZONE_UTC); in testSwitchTimezone0()
289 Time t = new Time(Time.TIMEZONE_UTC); in testCtor0()
290 assertEquals(Time.TIMEZONE_UTC, t.timezone); in testCtor0()
295 Time t = new Time(Time.TIMEZONE_UTC); in testGetActualMaximum0()
296 t.getActualMaximum(Time.SECOND); in testGetActualMaximum0()
302 Time t = new Time(Time.TIMEZONE_UTC); in testClear0()
303 t.clear(Time.TIMEZONE_UTC); in testClear0()
308 Time a = new Time(Time.TIMEZONE_UTC); in testCompare0()
[all …]
DTimeMigrationUtilsTest.java108 Time time = new Time(); in formatMillisAsDateTime_matchesOldBehavior()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
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;
151 String tz = Time.TIMEZONE_UTC; in parseRecurrenceDates()
157 Time time = new Time(tz); in parseRecurrenceDates()
198 Time start = new Time(tzidParam == null ? Time.TIMEZONE_UTC : tzid); in populateContentValues()
205 tzid = Time.TIMEZONE_UTC; in populateContentValues()
227 start.timezone = Time.TIMEZONE_UTC; in populateContentValues()
288 Time dtstartTime = null; in populateComponent()
293 dtstartTime = new Time(tzid); in populateComponent()
296 dtstartTime = new Time(Time.TIMEZONE_UTC); in populateComponent()
347 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/java/android/hardware/display/
DTime.java27 public final class Time implements Parcelable { class
34 public Time(LocalTime localTime) { in Time() method in Time
41 public Time(Parcel parcel) { in Time() method in Time
65 …c final @android.annotation.NonNull Parcelable.Creator<Time> CREATOR = new Parcelable.Creator<Time
68 public Time createFromParcel(Parcel source) {
69 return new Time(source);
73 public Time[] newArray(int size) {
74 return new Time[size];
DIColorDisplayManager.aidl19 import android.hardware.display.Time;
38 Time getNightDisplayCustomStartTime(); in getNightDisplayCustomStartTime()
39 boolean setNightDisplayCustomStartTime(in Time time); in setNightDisplayCustomStartTime()
40 Time getNightDisplayCustomEndTime(); in getNightDisplayCustomEndTime()
41 boolean setNightDisplayCustomEndTime(in Time time); in setNightDisplayCustomEndTime()
DColorDisplayManager.java306 return mManager.setNightDisplayCustomStartTime(new Time(startTime)); in setNightDisplayCustomStartTime()
338 return mManager.setNightDisplayCustomEndTime(new Time(endTime)); in setNightDisplayCustomEndTime()
589 Time getNightDisplayCustomStartTime() { in getNightDisplayCustomStartTime()
597 boolean setNightDisplayCustomStartTime(Time startTime) { in setNightDisplayCustomStartTime()
605 Time getNightDisplayCustomEndTime() { in getNightDisplayCustomEndTime()
613 boolean setNightDisplayCustomEndTime(Time endTime) { in setNightDisplayCustomEndTime()
DTime.aidl19 parcelable Time;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMPhoneTest.java.broken100 assertNotNull("Message Time Out", msg);
166 assertNotNull("Message Time Out", msg);
201 assertNotNull("Message Time Out", mGSMTestHandler.waitForMessage(ANY_MESSAGE));
229 assertNotNull("Message Time Out", mGSMTestHandler.waitForMessage(ANY_MESSAGE));
255 assertNotNull("Message Time Out", msg);
306 assertNotNull("Message Time Out", msg);
340 assertNotNull("Message Time Out", mGSMTestHandler.waitForMessage(ANY_MESSAGE));
376 assertNotNull("Message Time Out", msg);
435 assertNotNull("Message Time Out", mGSMTestHandler.waitForMessage(ANY_MESSAGE));
462 assertNotNull("Message Time Out", mGSMTestHandler.waitForMessage(ANY_MESSAGE));
[all …]
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
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()
2455 Time dtstart = new Time(tz); in performanceTextExpand()
2456 Time rangeStart = new Time(tz); in performanceTextExpand()
2457 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.java55 public class Time { class
171 public Time(String timezoneId) { in Time() method in Time
182 public Time() { in Time() method in Time
192 public Time(Time other) { in Time() method in Time
335 public static int compare(Time a, Time b) { in compare()
782 public void set(Time that) { in set()
849 public boolean before(Time that) { in before()
850 return Time.compare(this, that) < 0; in before()
865 public boolean after(Time that) { in after()
866 return Time.compare(this, that) > 0; in after()
[all …]
DDateUtils.java519 Time time = new Time(); in isToday()
830 sNowTime = new Time(); in getRelativeTimeSpanString()
834 sThenTime = new Time(); in getRelativeTimeSpanString()
878 private static Time sNowTime;
879 private static Time sThenTime;
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiTimerRecordSources.java150 public static Time timeOf(int hour, int minute) { in timeOf()
152 return new Time(hour, minute); in timeOf()
217 public static final class Time extends TimeUnit { class in HdmiTimerRecordSources
218 private Time(int hour, int minute) { in Time() method in HdmiTimerRecordSources.Time
271 public static TimerInfo timerInfoOf(int dayOfMonth, int monthOfYear, Time startTime, in timerInfoOf()
322 private final Time mStartTime;
336 private TimerInfo(int dayOfMonth, int monthOfYear, Time startTime, in TimerInfo()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerUtils.java25 import android.text.format.Time;
83 Time time = new Time(tz.getID()); in buildGmtDisplayName()
DTimeZoneInfo.java23 import android.text.format.Time;
52 private Time recycledTime = new Time();
/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/base/core/tests/benchmarks/src/android/text/format/
DAndroidTimeVsOthersBenchmark.java38 Time time = new Time(timezoneId); in toMillis_androidTime()
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java20 import android.text.format.Time;
360 Time time = new Time(); in toString()
/frameworks/base/core/proto/android/server/
Dusagestatsservice.proto48 // Time attributes stored as an offset of the IntervalStats's beginTime.
54 // Time attributes stored as an offset of the IntervalStats's beginTime.
57 // Time attributes stored as an offset of the IntervalStats's beginTime.
/frameworks/rs/script_api/
Drs_time.spec18 summary: Time Functions and Types
30 January 1, 1970, Coordinated Universal Time (UTC)).
/frameworks/base/services/core/java/com/android/server/display/color/
DColorDisplayService.java53 import android.hardware.display.Time;
763 private Time getNightDisplayCustomStartTimeInternal() { in getNightDisplayCustomStartTimeInternal()
770 return new Time(LocalTime.ofSecondOfDay(startTimeValue / 1000)); in getNightDisplayCustomStartTimeInternal()
773 private boolean setNightDisplayCustomStartTimeInternal(Time startTime) { in setNightDisplayCustomStartTimeInternal()
780 private Time getNightDisplayCustomEndTimeInternal() { in getNightDisplayCustomEndTimeInternal()
787 return new Time(LocalTime.ofSecondOfDay(endTimeValue / 1000)); in getNightDisplayCustomEndTimeInternal()
790 private boolean setNightDisplayCustomEndTimeInternal(Time endTime) { in setNightDisplayCustomEndTimeInternal()
1640 public boolean setNightDisplayCustomStartTime(Time startTime) { in setNightDisplayCustomStartTime()
1653 public Time getNightDisplayCustomStartTime() { in getNightDisplayCustomStartTime()
1663 public boolean setNightDisplayCustomEndTime(Time endTime) { in setNightDisplayCustomEndTime()
[all …]
/frameworks/rs/script_api/include/
Drs_time.rsh20 * rs_time.rsh: Time Functions and Types
33 * January 1, 1970, Coordinated Universal Time (UTC)).
65 * Returns: Time in seconds.
/frameworks/base/core/proto/android/os/
Dbatterystats.proto41 // Time (milliseconds) spent in the idle state.
43 // Time (milliseconds) spent in the receive state.
57 // Time spent in this specific transmit level state.
522 // Time spent started.
714 // Time spent executing in user code.
716 // Time spent executing in kernel code.
718 // Time the process was running in the foreground.
741 // Time this uid has any processes in the top state.
743 // Time this uid has any process with a started foreground service, but
746 // Time this uid has any process in an active foreground state, but none in the
[all …]

123