/packages/apps/UnifiedEmail/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/Dialer/src/com/android/dialer/ |
H A D | PhoneCallDetails.java | 43 /** The date of the call, in milliseconds since the epoch. */ 44 public final long date; field in class:PhoneCallDetails 66 int[] callTypes, long date, long duration) { 68 callTypes, date, duration, "", 0, "", null, null); 74 int[] callTypes, long date, long duration, CharSequence name, 83 this.date = date; 64 PhoneCallDetails(CharSequence number, int numberPresentation, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration) argument 72 PhoneCallDetails(CharSequence number, int numberPresentation, 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/Camera/src/com/android/camera/ |
H A D | MediaSaver.java | 65 public void addImage(final byte[] data, String title, long date, Location loc, argument 69 r.date = date; 113 Uri uri = storeImage(r.data, r.title, r.date, r.loc, r.width, r.height, 132 private Uri storeImage(final byte[] data, String title, long date, argument 134 Uri uri = Storage.addImage(mContentResolver, title, date, loc, 143 long date; field in class:MediaSaver.SaveRequest
|
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); 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
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
H A D | DateTileView.java | 83 public void setDate(SimpleDate date) { argument 84 setDate(date.getDay(), date.getMonth(), date.getYear()); 87 public void setDate(int date, int month, int year) { argument 88 if (date != mDate) { 89 mDate = date;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AlarmTimelineView.java | 108 public Date date; field in class:AlarmTimelineView.AlarmTimeNode 111 public AlarmTimeNode(Date date, boolean isRepeating) { argument 112 this.date = date; 118 * Retrieves alarms from the content provider and generates an alarm node tree sorted by date. 137 Date date = mCalendar.getTime(); 139 if (!mAlarmTimes.containsKey(date)) { 140 // Add alarm if there is no other alarm with this date. 141 mAlarmTimes.put(date, new AlarmTimeNode(date, fals 359 convertToDistance(final Date date, final Date firstDate) argument [all...] |
/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) {
|
/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/Camera2/src/com/android/camera/ |
H A D | Storage.java | 95 public static Uri addImage(ContentResolver resolver, String title, long date, argument 99 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, 104 public static Uri addImage(ContentResolver resolver, String title, long date, argument 110 return addImage(resolver, title, date, location, orientation, 116 long date, Location location, int orientation, int jpegLength, 122 values.put(ImageColumns.DATE_TAKEN, date); 140 long date, Location location, int orientation, int jpegLength, 144 getContentValuesForData(title, date, location, orientation, jpegLength, path, 152 public static void updateImage(Uri imageUri, ContentResolver resolver, String title, long date, argument 157 updateImage(imageUri, resolver, title, date, locatio 115 getContentValuesForData(String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument 139 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument 163 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument [all...] |
H A D | MediaSaveService.java | 88 public void addImage(final byte[] data, String title, long date, Location loc, argument 95 ImageSaveTask t = new ImageSaveTask(data, title, date, 106 public void addImage(final byte[] data, String title, long date, Location loc, argument 111 addImage(data, title, date, loc, 0, 0, orientation, exif, l, resolver); 144 private long date; field in class:MediaSaveService.ImageSaveTask 152 public ImageSaveTask(byte[] data, String title, long date, Location loc, argument 157 this.date = date; 183 resolver, title, date, loc, orientation, exif, data, width, height);
|
H A D | PanoUtil.java | 24 Date date = new Date(dateTaken); 26 return dateFormat.format(date);
|
/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/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | DateUtils.java | 38 * When parsing a date without a year, the system assumes 1970, which wasn't a leap-year. 43 // Variations of ISO 8601 date format. Do not change the order - it does affect the 64 * Parses the supplied string to see if it looks like a date. 66 * @param string The string representation of the provided date 67 * @param mustContainYear If true, the string is parsed as a date containing a year. If false, 68 * the string is parsed into a valid date even if the year field is missing. 69 * @return A Calendar object corresponding to the date if the string is successfully parsed. 74 Date date; 82 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition); 88 return getUtcDate(date, tru 104 getUtcDate(Date date, boolean noYear) argument [all...] |
/packages/apps/UnifiedEmail/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/Contacts/src/com/android/contacts/util/ |
H A D | ContactPhotoUtils.java | 78 final Date date = new Date(System.currentTimeMillis()); 80 return "ContactPhoto-" + dateFormat.format(date) + ".jpg"; 84 final Date date = new Date(System.currentTimeMillis()); 86 return "ContactPhoto-" + dateFormat.format(date) + "-cropped.jpg";
|
/packages/apps/UnifiedEmail/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/Dialer/tests/src/com/android/dialer/calllog/ |
H A D | CallLogFragmentTest.java | 462 * @param date In millisec since epoch. Use NOW to use the current time. 469 private void insertWithCachedValues(String number, long date, int duration, int type, argument 471 insert(number, Calls.PRESENTATION_ALLOWED, date, duration, type); 492 * @param date In millisec since epoch. Use NOW to use the current time. 496 private void insert(String number, int presentation, long date, int duration, int type) { argument 497 insertValues(getValuesToInsert(number, presentation, date, duration, type)); 512 * @param date In millisec since epoch. Use NOW to use the current time. 517 long date, int duration, int type) { 522 values[CallLogQuery.DATE] = date == NOW ? new Date().getTime() : date; 516 getValuesToInsert(String number, int presentation, long date, int duration, int type) argument 540 insertVoicemail(String number, int presentation, long date, int duration) argument 553 insertPrivate(long date, int duration) argument 562 insertUnknown(long date, int duration) argument 571 insertCalltoVoicemail(long date, int duration) argument [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | Utility.java | 336 * Generate a time in milliseconds from a date string that represents a date/time in GMT 337 * @param date string in format 20090211T180303Z (rfc2445, iCalendar). 340 public static long parseDateTimeToMillis(String date) { argument 341 GregorianCalendar cal = parseDateTimeToCalendar(date); 346 * Generate a GregorianCalendar from a date string that represents a date/time in GMT 347 * @param date string in format 20090211T180303Z (rfc2445, iCalendar). 350 public static GregorianCalendar parseDateTimeToCalendar(String date) { argument 351 GregorianCalendar cal = new GregorianCalendar(Integer.parseInt(date 364 parseEmailDateTimeToMillis(String date) argument 494 cleanUpMimeDate(String date) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMapAppParams.java | 559 Date date = new Date(filterPeriodBegin); 560 return format.format(date); // Format to YYYYMMDDTHHMMSS local time 569 Date date = format.parse(filterPeriodBegin); 570 this.filterPeriodBegin = date.getTime(); 579 Date date = new Date(filterPeriodEnd); 580 return format.format(date); // Format to YYYYMMDDTHHMMSS local time 589 Date date = format.parse(filterPeriodEnd); 590 this.filterPeriodEnd = date.getTime(); 785 Date date = new Date(getMseTime()); 786 return format.format(date); // Forma [all...] |
/packages/apps/Dialer/src/com/android/dialer/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);
|