/packages/apps/Email/src/org/apache/james/mime4j/field/ |
H A D | DateTimeField.java | 35 private Date date;
field in class:DateTimeField 38 protected DateTimeField(String name, String body, String raw, Date date, ParseException parseException) {
argument 40 this.date = date;
45 return date;
56 Date date = null;
62 date = DateTime.parse(body).getDate();
70 return new DateTimeField(name, body, raw, date, parseException);
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | PhoneCallDetails.java | 41 /** The date of the call, in milliseconds since the epoch. */ 42 public final long date; field in class:PhoneCallDetails 63 String countryIso, String geocode, int[] callTypes, long date, long duration) { 64 this(number, formattedNumber, countryIso, geocode, callTypes, date, duration, "", 0, "", 70 String countryIso, String geocode, int[] callTypes, long date, long duration, 78 this.date = date; 62 PhoneCallDetails(CharSequence number, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration) argument 69 PhoneCallDetails(CharSequence number, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration, CharSequence name, int numberType, CharSequence numberLabel, Uri contactUri, Uri photoUri) argument
|
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
H A D | SunCalculator.java | 56 * Computes the sunrise time for the given zenith at the given date. 60 * @param date <code>Calendar</code> object representing the date to 64 public double computeSunriseTime(double solarZenith, Calendar date) { argument 65 return computeSolarEventTime(solarZenith, date, true); 69 * Computes the sunset time for the given zenith at the given date. 73 * @param date <code>Calendar</code> object representing the date to compute 77 public double computeSunsetTime(double solarZenith, Calendar date) { argument 78 return computeSolarEventTime(solarZenith, date, fals 121 computeSolarEventTime(double solarZenith, Calendar date, boolean isSunrise) argument 151 getLongitudeHour(Calendar date, Boolean isSunrise) argument 277 getLocalTime(double localMeanTime, Calendar date) argument 284 adjustForDST(double localMeanTime, Calendar date) argument 299 getDayOfYear(Calendar date) argument 303 getUTCOffSet(Calendar date) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | DateUtils.java | 39 * When parsing a date without a year, the system assumes 1970, which wasn't a leap-year. 50 // Variations of ISO 8601 date format. Do not change the order - it does affect the 79 * Parses the supplied string to see if it looks like a date. If so, 80 * returns the date. Otherwise, returns null. 88 Date date = f.parse(string, parsePosition); 90 return date; 106 * Parses the supplied string to see if it looks like a date. If so, 107 * returns the same date in a cleaned-up format for the user. Otherwise, returns 123 Date date; 127 date [all...] |
H A D | ContactPhotoUtils.java | 71 Date date = new Date(System.currentTimeMillis()); 73 return "ContactPhoto-" + dateFormat.format(date) + ".jpg";
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | CalendarViewAdapter.java | 49 // Day view: show day of the week + full date underneath 52 // Agenda view: show day of the week + full date underneath 66 // The current selected event's time, used to calculate the date and day of the week 76 private final boolean mShowDate; // Spinner mode indicator (view name or view name with date) 119 // Sets a thread to run 1 second after midnight and update the current date 120 // This is used to display correctly the date of yesterday/today/tomorrow 180 TextView date = (TextView) v.findViewById(R.id.top_button_date); 186 date.setText(buildFullDate()); 195 date.setText(buildMonthYearDate()); 199 date [all...] |
H A D | EventGeometry.java | 48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { argument 57 if (startDay > date || endDay < date) { 66 if (startDay < date) { 72 if (endDay > date) {
|
H A D | DeleteEventHelper.java | 414 Time date = new Time(); 416 date.timezone = Time.TIMEZONE_UTC; 418 date.set(mStartMillis); 419 date.second--; 420 date.normalize(false); 424 date.switchTimezone(Time.TIMEZONE_UTC); 425 eventRecurrence.until = date.format2445();
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | 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 */); 209 int weekNumber = test.date.getWeekNumber(); 211 long millis = test.date.toMillis(false /* use isDst */); 215 + " date: " + output 223 long millis = test.date.toMillis(false /* use isDst */); 227 + " date: " + output
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | PanoUtil.java | 24 Date date = new Date(dateTaken); 26 return dateFormat.format(date);
|
H A D | Storage.java | 80 long date, Location location, int orientation, byte[] jpeg, 85 return addImage(resolver, title, date, location, orientation, 91 long date, Location location, int orientation, int jpegLength, 97 values.put(ImageColumns.DATE_TAKEN, date); 132 long date, int width, int height) { 137 values.put(ImageColumns.DATE_TAKEN, date); 79 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) argument 90 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height) argument 131 newImage(ContentResolver resolver, String title, long date, int width, int height) argument
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
H A D | PanoUtil.java | 24 Date date = new Date(dateTaken); 26 return dateFormat.format(date);
|
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/ |
H A D | DateTime.java | 33 private final Date date;
field in class:DateTime 44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
83 return date;
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/swipeablelistview/ |
H A D | LogUtils.java | 317 * Try to make a date MIME(RFC 2822/5322)-compliant. 322 * We got a report saying eBay sends a date in this format 324 public static String cleanUpMimeDate(String date) { argument 325 if (TextUtils.isEmpty(date)) { 326 return date; 328 date = DATE_CLEANUP_PATTERN_WRONG_TIMEZONE.matcher(date).replaceFirst("$1"); 329 return date;
|
/packages/apps/Email/src/com/android/mail/utils/ |
H A D | LogUtils.java | 389 * Try to make a date MIME(RFC 2822/5322)-compliant. 394 * We got a report saying eBay sends a date in this format 396 public static String cleanUpMimeDate(String date) { argument 397 if (TextUtils.isEmpty(date)) { 398 return date; 400 date = DATE_CLEANUP_PATTERN_WRONG_TIMEZONE.matcher(date).replaceFirst("$1"); 401 return date;
|
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
H A D | CallLogFragmentTest.java | 463 * @param date In millisec since epoch. Use NOW to use the current time. 470 private void insertWithCachedValues(String number, long date, int duration, int type, argument 472 insert(number, date, duration, type); 492 * @param date In millisec since epoch. Use NOW to use the current time. 496 private void insert(String number, long date, int duration, int type) { argument 497 insertValues(getValuesToInsert(number, date, duration, type)); 511 * @param date In millisec since epoch. Use NOW to use the current time. 515 private Object[] getValuesToInsert(String number, long date, int duration, int type) { argument 519 values[CallLogQuery.DATE] = date == NOW ? new Date().getTime() : date; 537 insertVoicemail(String number, long date, int duration) argument 550 insertPrivate(long date, int duration) argument 559 insertUnknown(long date, int duration) argument 568 insertCalltoVoicemail(long date, int duration) argument [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
H A D | MessageListItemCoordinates.java | 301 TextView date = (TextView) view.findViewById(R.id.date); 302 coordinates.dateXEnd = getX(date) + date.getWidth(); 303 coordinates.dateY = getY(date); 304 coordinates.dateFontSize = (int) date.getTextSize(); 305 coordinates.dateAscent = Math.round(date.getPaint().ascent()); 307 // The x-value is computed relative to the date.
|
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
H A D | CallDetailHistoryAdapter.java | 140 TextView dateView = (TextView) result.findViewById(R.id.date); 147 // Set the date. 148 CharSequence dateValue = DateUtils.formatDateRange(mContext, details.date, details.date,
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
H A D | ImapStringTest.java | 95 final ImapString date = new ImapSimpleString("01-Jan-2009 11:34:56 -0100"); 97 assertTrue(date.isDate()); 98 Date d = date.getDateOrNull();
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
H A D | AccountPreferenceBase.java | 177 protected String formatSyncDate(Date date) { argument 179 return mDateFormat.format(date) + " " + mTimeFormat.format(date);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | Utility.java | 345 * Generate a time in milliseconds from a date string that represents a date/time in GMT 346 * @param date string in format 20090211T180303Z (rfc2445, iCalendar). 349 public static long parseDateTimeToMillis(String date) { argument 350 GregorianCalendar cal = parseDateTimeToCalendar(date); 355 * Generate a GregorianCalendar from a date string that represents a date/time in GMT 356 * @param date string in format 20090211T180303Z (rfc2445, iCalendar). 359 public static GregorianCalendar parseDateTimeToCalendar(String date) { argument 360 GregorianCalendar cal = new GregorianCalendar(Integer.parseInt(date 372 parseEmailDateTimeToMillis(String date) argument 502 cleanUpMimeDate(String date) argument [all...] |
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
H A D | DownloadAdapter.java | 125 Date date = new Date(mCursor.getLong(mDateColumnId)); 126 if (date.before(getStartOfToday())) { 127 return mDateFormat.format(date); 129 return mTimeFormat.format(date);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Storage.java | 52 public static Uri addImage(ContentResolver resolver, String title, long date, argument 74 values.put(ImageColumns.DATE_TAKEN, date);
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastListItem.java | 55 mDateView = (TextView) findViewById(R.id.date); 92 // Speak the date first, then channel name, then message body
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | ZonePicker.java | 222 final long date = Calendar.getInstance().getTimeInMillis(); 238 addItem(myData, id, displayName, date); 256 List<HashMap<String, Object>> myData, String id, String displayName, long date) { 261 final int offset = tz.getOffset(date); 255 addItem( List<HashMap<String, Object>> myData, String id, String displayName, long date) argument
|