/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
H A D | DateBucket.java | 12 final SimpleDate date; field in class:DateBucket 18 public DateBucket(SimpleDate date, int unifiedStartIndex, int unifiedEndIndex, argument 20 this.date = date; 29 return date.toString(); 34 return date.hashCode(); 49 if (date == null) { 50 if (other.date != null) { 53 } else if (!date.equals(other.date)) { [all...] |
/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 | 46 /** The date of the call, in milliseconds since the epoch. */ 47 public final long date; field in class:PhoneCallDetails 97 int[] callTypes, long date, long duration) { 99 callTypes, date, duration, "", 0, "", null, null, 0, null, null, 0, null, null); 105 int[] callTypes, long date, long duration, String accountLabel, Drawable accountIcon, 108 callTypes, date, duration, "", 0, "", null, null, 0, accountLabel, accountIcon, 115 int[] callTypes, long date, long duration, CharSequence name, 125 this.date = date; 95 PhoneCallDetails(CharSequence number, int numberPresentation, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration) argument 103 PhoneCallDetails(CharSequence number, int numberPresentation, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration, String accountLabel, Drawable accountIcon, int features, Long dataUsage, String transcription) argument 113 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, int sourceType, String accountLabel, Drawable accountIcon, int features, Long dataUsage, String transcription) argument
|
/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 | 32 * Displays a date in a square tile. 87 public void setDate(SimpleDate date) { argument 88 setDate(date.getDay(), date.getMonth(), date.getYear()); 91 public void setDate(int date, int month, int year) { argument 92 if (date != mDate) { 93 mDate = date;
|
/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/Contacts/src/com/android/contacts/interactions/ |
H A D | SmsInteraction.java | 54 Long date = getDate(); 55 return date == null ? -1 : date; 74 Long date = getDate(); 75 return date == null ? null : ContactInteractionUtil.formatDateStringFromTimestamp( 76 date, context);
|
H A D | CallLogInteraction.java | 72 Long date = getDate(); 73 return date == null ? -1 : date; 88 Long date = getDate(); 89 return date == null ? null : ContactInteractionUtil.formatDateStringFromTimestamp( 90 date, context);
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | MediaSaverImpl.java | 58 public void addImage(final byte[] data, String title, long date, Location loc, int width, argument 65 ImageSaveTask t = new ImageSaveTask(data, title, date, 77 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, argument 81 addImage(data, title, date, loc, 0, 0, orientation, exif, l, resolver); 123 private final long date; field in class:MediaSaverImpl.ImageSaveTask 131 public ImageSaveTask(byte[] data, String title, long date, Location loc, argument 136 this.date = date; 162 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);
|
H A D | Storage.java | 70 * @param date The date fo the media file. 80 public static Uri addImage(ContentResolver resolver, String title, long date, argument 84 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, 97 * @param date The date fo the media file. 109 private static Uri addImage(ContentResolver resolver, String title, long date, argument 116 return addImageToMediaStore(resolver, title, date, location, orientation, fileLength, 127 * @param date The date f 138 addImageToMediaStore(ContentResolver resolver, String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument 161 getContentValuesForData(String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument 238 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument 308 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...] |
/packages/apps/Camera2/src/com/android/camera/app/ |
H A D | MediaSaver.java | 70 * @param date The date when the image is created. 84 void addImage(byte[] data, String title, long date, Location loc, int width, int height, argument 94 * @param date The date when the image is created. 104 void addImage(byte[] data, String title, long date, Location loc, int orientation, 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/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | DateUtils.java | 39 * When parsing a date without a year, the system assumes 1970, which wasn't a leap-year. 44 // Variations of ISO 8601 date format. Do not change the order - it does affect the 65 * Parses the supplied string to see if it looks like a date. 67 * @param string The string representation of the provided date 68 * @param mustContainYear If true, the string is parsed as a date containing a year. If false, 69 * the string is parsed into a valid date even if the year field is missing. 70 * @return A Calendar object corresponding to the date if the string is successfully parsed. 75 Date date; 83 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition); 89 return getUtcDate(date, tru 105 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 | 81 final Date date = new Date(System.currentTimeMillis()); 83 return "ContactPhoto-" + dateFormat.format(date) + ".jpg"; 87 final Date date = new Date(System.currentTimeMillis()); 89 return "ContactPhoto-" + dateFormat.format(date) + "-cropped.jpg";
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | CallLogGroupBuilder.java | 155 final long date = cursor.getLong(CallLogQuery.DATE); 176 currentGroupDayGroup = getDayGroup(date, currentTime); 251 * Given a call date and the current date, determine which date group the call belongs in. 253 * @param date The call date. 254 * @param now The current date. 255 * @return The date group the call belongs in. 257 private int getDayGroup(long date, lon argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | LogUtils.java | 390 * Try to make a date MIME(RFC 2822/5322)-compliant. 395 * We got a report saying eBay sends a date in this format 397 public static String cleanUpMimeDate(String date) { argument 398 if (TextUtils.isEmpty(date)) { 399 return date; 401 date = DATE_CLEANUP_PATTERN_WRONG_TIMEZONE.matcher(date).replaceFirst("$1"); 402 return date;
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/ |
H A D | CallLogFragmentTest.java | 469 * @param date In millisec since epoch. Use NOW to use the current time. 476 private void insertWithCachedValues(String number, long date, int duration, int type, argument 478 insert(number, Calls.PRESENTATION_ALLOWED, date, duration, type); 499 * @param date In millisec since epoch. Use NOW to use the current time. 503 private void insert(String number, int presentation, long date, int duration, int type) { argument 504 insertValues(getValuesToInsert(number, presentation, date, duration, type)); 519 * @param date In millisec since epoch. Use NOW to use the current time. 524 long date, int duration, int type) { 529 values[CallLogQuery.DATE] = date == NOW ? new Date().getTime() : date; 523 getValuesToInsert(String number, int presentation, long date, int duration, int type) argument 547 insertVoicemail(String number, int presentation, long date, int duration) argument 560 insertPrivate(long date, int duration) argument 569 insertUnknown(long date, int duration) argument 578 insertCalltoVoicemail(long date, int duration) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | ConversationItemViewCoordinates.java | 428 final TextView date = (TextView) view.findViewById(R.id.date); 429 dateX = getX(date); 430 dateXRight = dateX + date.getWidth(); 431 dateY = getY(date); 432 datePaddingStart = ViewUtils.getPaddingStart(date); 433 dateFontSize = date.getTextSize(); 434 dateYBaseline = dateY + getLatinTopAdjustment(date) + date.getBaseline();
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | Utility.java | 229 public Date parse(String date) throws ParseException { argument 230 return super.get().parse(date); 235 * Generate a time in milliseconds from a date string that represents a date/time in GMT 236 * @param date string in format 20090211T180303Z (rfc2445, iCalendar). 239 public static long parseDateTimeToMillis(String date) throws ParseException { argument 240 return parseDateTimeToCalendar(date).getTimeInMillis(); 250 * Generate a GregorianCalendar from a date string that represents a date/time in GMT 251 * @param date strin 256 parseDateTimeToCalendar(String date) argument 281 parseEmailDateTimeToMillis(String date) argument 405 cleanUpMimeDate(String date) argument [all...] |