HomeSort by relevance Sort by last modified time
    Searched refs:date (Results 26 - 50 of 414) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/icu4c/samples/datefmt/answers/
main_3.cpp 42 UDate date; local
44 // The languages in which we will display the date
66 date = cal->getTime(status);
72 // Create a formatter for DATE and TIME
81 // Format the date
83 fmt->format(date, str, status);
85 // Display the formatted date string
86 printf("Date (%s, %s): ", LANGUAGE[i], TIMEZONE[j]);
  /external/icu4c/samples/datefmt/
main.cpp 42 UDate date; local
44 // The languages in which we will display the date
66 date = cal->getTime(status);
72 // Create a formatter for DATE and TIME
81 // Format the date
83 fmt->format(date, str, status);
85 // Display the formatted date string
86 printf("Date (%s, %s): ", LANGUAGE[i], TIMEZONE[j]);
  /frameworks/base/core/tests/coretests/src/android/webkit/
WebkitTest.java 26 import java.util.Date;
39 Date date = new Date(); local
52 date.setTime(time);
53 c.setTime(date);
  /frameworks/base/media/libdrm/mobile1/include/parser/
parser_rel.h 43 #define YMD_HMS_2_INT(year, mon, day, date, hour, min, sec, time) do{\
44 date = year * 10000 + mon * 100 + day;\
54 int32_t date; /**< year * 10000 + mon *100 + day */ member in struct:_T_DRM_DATETIME
92 * Check whether the date and time is valid.
93 * \param year year of the date
94 * \param month month of the date
95 * \param day day of the date
  /packages/apps/Calendar/src/com/android/calendar/
EventGeometry.java 48 boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) {
57 if (startDay > date || endDay < date) {
66 if (startDay < date) {
72 if (endDay > date) {
  /packages/apps/Calendar/tests/src/com/android/calendar/
WeekNumberTest.java 33 public Time date; field in class:WeekNumberTest.DateAndWeekNumber
38 date = new Time();
41 date.set(0, 0, 0, day, month, year);
42 date.normalize(true /* ignore isDst */);
208 int weekNumber = test.date.getWeekNumber();
210 long millis = test.date.toMillis(false /* use isDst */);
214 + " date: " + output
222 long millis = test.date.toMillis(false /* use isDst */);
226 + " date: " + output
  /dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/
DateFormatTest.java 33 import java.util.Date;
49 public Date parse(String source, ParsePosition pos) {
55 public StringBuffer format(Date date, StringBuffer toAppendTo,
105 * @tests java.text.DateFormat#format(java.util.Date) Test of method
106 * java.text.DateFormat#format(java.util.Date).
112 args = {java.util.Date.class}
118 Date current = new Date();
121 assertTrue("Incorrect date format", sdf.format(current).equals(dtf))
373 SimpleDateFormat date = (SimpleDateFormat) DateFormat.getDateInstance( local
428 SimpleDateFormat date = (SimpleDateFormat) DateFormat.getDateInstance( local
796 Date date = format.parse(format.format(current).toString()); local
829 Date date = format.parse(format.format(current).toString()); local
857 Date date = format.parse(format.format(current).toString()); local
871 Date date = format.parse(format.format(current).toString()); local
885 Date date = format.parse(format.format(current).toString()); local
904 Date date = format.parse(format.format(current).toString()); local
931 Date date = format.parse(format.format(current).toString()); local
    [all...]
Support_MessageFormat.java 24 import java.util.Date;
48 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} litres of coke. That was {0,choice,1#just enough|1<more than enough} food!";
51 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); local
54 hamburgers, date, date };
75 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} litres of coke. That was {0,choice,1#just enough|1<more than enough} food!";
78 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); local
81 hamburgers, date, date }
    [all...]
SimpleDateFormatTest.java 35 import java.util.Date;
90 public void parse(String pattern, String input, Date expected,
95 Date result = pFormat.parse(input, position);
104 String expected2, Date date) {
108 format.format(date));
112 format.format(date));
134 f2.format(new Date()).getClass() == String.class);
156 f2.format(new Date()).getClass() == String.class);
161 "this is an invalid simple date format")
726 Date date = f1.get2DigitYearStart(); local
913 Date date = df.parse(output); local
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/
RecentCallsListActivityTests.java 34 import java.util.Date;
56 Calls.DATE,
143 * Check the date of the current list item.
144 * @param date That should be present in the call log list
147 private void checkDate(long date) {
148 if (NOW == date) {
263 * @param date In millisec since epoch. Use NOW to use the current time.
267 private void insert(String number, long date, int duration, int type) {
272 if (NOW == date) {
273 row.add(new Date().getTime())
    [all...]
  /dalvik/libcore/support/src/test/java/tests/support/
Support_MessageFormat.java 24 import java.util.Date;
47 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} litres of coke. That was {0,choice,1#just enough|1<more than enough} food!";
50 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); local
53 hamburgers, date, date };
74 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} hamburger{2,choice,1#|1<s} and drank {1, number} litres of coke. That was {0,choice,1#just enough|1<more than enough} food!";
77 Date date = new GregorianCalendar(2005, 1, 28, 14, 20, 16).getTime(); local
80 hamburgers, date, date }
    [all...]
  /frameworks/base/core/java/android/net/http/
SslCertificate.java 23 import java.util.Date;
37 * SimpleDateFormat pattern for an ISO 8601 date
52 * Not-before date from the validity period
54 private Date mValidNotBefore;
57 * Not-after date from the validity period
59 private Date mValidNotAfter;
111 * @param validNotBefore The not-before date from the certificate validity period in ISO 8601 format
112 * @param validNotAfter The not-after date from the certificate validity period in ISO 8601 format
113 * @deprecated Use {@link #SslCertificate(String, String, Date, Date)}
    [all...]
  /build/core/
version_defaults.mk 95 # from this date/time" value. Make it start with a non-digit so that
97 BUILD_NUMBER := eng.$(USER).$(shell date +%Y%m%d.%H%M%S)
  /dalvik/libcore/luni/src/main/java/java/util/
Date.java 31 * {@code Date} represents a specific moment in time, to the millisecond.
39 public class Date implements Serializable, Cloneable, Comparable<Date> {
44 private static int creationYear = new Date().getYear();
56 * Initializes this {@code Date} instance to the current time.
58 public Date() {
63 * Constructs a new {@code Date} initialized to midnight in the default {@code TimeZone} on
64 * the specified date.
77 public Date(int year, int month, int day) {
84 * Constructs a new {@code Date} initialized to the specified date and time in th
389 int year = -1, month = -1, date = -1; local
    [all...]
  /external/icu4c/samples/uresb/
resources.mak 15 @echo All targets are up to date
  /external/icu4c/test/intltest/
tsdate.h 40 * perform tests using date and fFormat, called in many variations
42 void tryDate(UDate date);
62 // Values in milliseconds (== Date)
73 DATE,
tsdate.cpp 91 fTestName = (UnicodeString) "Date test " + (int32_t) dateStyle + " (" + localeName + ")";
150 UDate date[DEPTH]; local
161 date[0] = theDate;
167 date[i] = fFormat->parse(string[i-1], status);
175 fFormat->format(date[i], string[i]);
176 if (dateMatch == 0 && date[i] == date[i-1])
178 else if (dateMatch > 0 && date[i] != date[i-1])
181 errln("**** FAIL: Date mismatch after match for " + string[i])
    [all...]
  /external/opencore/fileformats/mp4/parser/src/
movieheaderatom.cpp 123 OSCL_HeapString<OsclMemAllocator> date; local
206 // Considering a situation where by the date is 1st Jan of any year
232 date += buf;
238 oscl_UTF8ToUnicode(date.get_cstr(),
239 (int32)(date.get_size()),
  /external/qemu/distrib/sdl-1.2.12/src/video/xbios/
SDL_xbios_sb3.h 69 unsigned char date[8]; /* Date of program build */ member in struct:__anon4521
  /cts/tests/tests/text/src/android/text/format/cts/
DateFormatTest.java 32 import java.util.Date;
41 // Date: 12-18-2008 5:30AM
123 args = {CharSequence.class, Date.class}
139 Date date = new Date(YEAR_FROM_1900, MONTH, DAY, HOUR, MINUTE); local
140 String source = dateFormat.format(date);
141 Date parseDate = dateFormat.parse(source);
142 assertEquals(date.getYear(), parseDate.getYear());
143 assertEquals(date.getMonth(), parseDate.getMonth())
    [all...]
  /external/icu4c/i18n/
datefmt.cpp 11 * Date Name Description
117 // if the type of the Formattable is double or long, treat it as if it were a Date
118 UDate date = 0;
122 date = obj.getDate();
125 date = (UDate)obj.getDouble();
128 date = (UDate)obj.getLong();
139 return format(date, appendTo, fieldPosition);
145 DateFormat::format(UDate date, UnicodeString& appendTo, FieldPosition& fieldPosition) const {
149 fCalendar->setTime(date, ec);
160 DateFormat::format(UDate date, UnicodeString& appendTo) cons
    [all...]
  /packages/apps/IM/src/com/android/im/app/
MessageView.java 22 import java.util.Date;
63 public void bindIncomingMessage(String contact, String body, Date date,
65 CharSequence message = formatMessage(contact, body, date, smileyRes, scrolling);
70 public void bindOutgoingMessage(String body, Date date, Markup smileyRes, boolean scrolling) {
72 CharSequence message = formatMessage(contact, body, date, smileyRes, scrolling);
90 Date date, Markup smileyRes, boolean scrolling) {
108 if (date != null)
    [all...]
  /external/bluetooth/glib/tests/
testglib.c 1279 GTimeVal ref_date, date; local
    [all...]
  /packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
RecurrenceProcessorTest.java 40 for (long date : dates) {
41 time.set(date);
163 throw new RuntimeException("expected last occurrence date does not match."
552 // BUG 1658567: UNTIL=date
2446 Time date = new Time(tz); local
    [all...]
  /cts/tests/tests/webkit/src/android/webkit/cts/
CookieManagerTest.java 31 import java.util.Date;
228 Date date = new Date(); local
229 date.setTime(date.getTime() + 1000 * 600);
230 String value2 = cookie2 + "; expires=" + date.toGMTString();
234 date = new Date();
235 date.setTime(date.getTime() + expiration)
    [all...]

Completed in 1478 milliseconds

12 3 4 5 6 7 8 91011>>