Searched defs:date (Results 1 - 25 of 38) sorted by relevance

12

/packages/apps/Calendar/tests/src/com/android/calendar/
H A DWeekNumberTest.java33 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/Dialer/src/com/android/dialer/
H A DPhoneCallDetails.java41 /** 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/apps/Email/src/org/apache/james/mime4j/field/
H A DDateTimeField.java35 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/Calendar/src/com/android/calendar/
H A DEventGeometry.java48 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/Camera/src/com/android/camera/
H A DMediaSaver.java65 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 DStorage.java80 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/Contacts/src/com/android/contacts/util/
H A DDateUtils.java39 * 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/Gallery2/src/com/android/gallery3d/ingest/ui/
H A DDateTileView.java83 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/LegacyCamera/src/com/android/camera/
H A DStorage.java52 public static Uri addImage(ContentResolver resolver, String title, long date, argument
74 values.put(ImageColumns.DATE_TAKEN, date);
/packages/apps/Browser/src/com/android/browser/
H A DBrowserBackupAgent.java114 mark.date = in.readLong();
171 values.put(Bookmarks.DATE_MODIFIED, mark.date);
178 public long date; field in class:BrowserBackupAgent.Bookmark
/packages/apps/DeskClock/src/com/android/deskclock/widget/swipeablelistview/
H A DLogUtils.java317 * 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 DLogUtils.java389 * 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/Email/src/org/apache/james/mime4j/field/datetime/
H A DDateTime.java33 private final Date date; field in class:DateTime
44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone);
83 return date;
/packages/apps/Gallery2/src/com/android/camera/
H A DStorage.java81 long date, Location location, int orientation, ExifInterface exif,
94 return addImage(resolver, title, date, location, orientation,
100 long date, Location location, int orientation, int jpegLength,
106 values.put(ImageColumns.DATE_TAKEN, date);
80 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height) argument
99 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height) argument
H A DMediaSaveService.java85 public void addImage(final byte[] data, String title, long date, Location loc, argument
92 ImageSaveTask t = new ImageSaveTask(data, title, date,
127 private long date; field in class:MediaSaveService.ImageSaveTask
135 public ImageSaveTask(byte[] data, String title, long date, Location loc, argument
140 this.date = date;
158 resolver, title, date, loc, orientation, exif, data, width, height);
/packages/apps/Settings/src/com/android/settings/accounts/
H A DAccountPreferenceBase.java177 protected String formatSyncDate(Date date) { argument
179 return mDateFormat.format(date) + " " + mTimeFormat.format(date);
/packages/apps/Dialer/tests/src/com/android/dialer/
H A DPhoneCallDetailsHelperTest.java43 /** The date of the call log entry. */
256 /** Asserts that the date text field contains the given string value. */
300 /** Sets the phone call details with default values and the given date. */
301 private void setPhoneCallDetailsWithDate(long date) { argument
304 TEST_GEOCODE, new int[]{ Calls.INCOMING_TYPE }, date, TEST_DURATION),
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/
H A DDateTimeParser.java156 d = date();
202 final public Date date() throws ParseException { method in class:DateTimeParser
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
H A DCalendarUtilitiesTests.java206 public void testParseEmailDateTimeToMillis(String date) { argument
207 // Format for email date strings is 2010-02-23T16:00:00.000Z
221 public void testParseDateTimeToMillis(String date) { argument
222 // Format for calendar date strings is 20100223T160000000Z
381 // These next two fields should have a date only
825 Date date = new Date(entityValues.getAsLong(Events.DTSTART));
826 String dateTimeString = DateFormat.getDateTimeInstance().format(date);
/packages/apps/Exchange/tests/src/com/android/exchange/utility/
H A DCalendarUtilitiesTests.java216 public void testParseEmailDateTimeToMillis(String date) { argument
217 // Format for email date strings is 2010-02-23T16:00:00.000Z
231 public void testParseDateTimeToMillis(String date) { argument
232 // Format for calendar date strings is 20100223T160000000Z
391 // These next two fields should have a date only
835 Date date = new Date(entityValues.getAsLong(Events.DTSTART));
836 String dateTimeString = DateFormat.getDateTimeInstance().format(date);
/packages/apps/Settings/src/com/android/settings/
H A DZonePicker.java222 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
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
H A DSunCalculator.java56 * 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/Dialer/tests/src/com/android/dialer/calllog/
H A DCallLogFragmentTest.java463 * @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/org/apache/commons/io/
H A DFileUtils.java58 * <li>file last changed date
209 * closed without modifying it, but updating the file date and time.
212 * modified date of the file cannot be set. Also, as from v1.3 this method
542 * Copies a file to a directory preserving the file date.
562 * Copies a file to a directory optionally preserving the file date.
571 * @param preserveFileDate true if the file date of the copy
591 * Copies a file to a new location preserving the file date.
620 * @param preserveFileDate true if the file date of the copy
661 * @param preserveFileDate whether to preserve the file date
760 * @param preserveFileDate true if the file date o
1568 isFileNewer(File file, Date date) argument
1635 isFileOlder(File file, Date date) argument
[all...]
/packages/apps/Phone/src/com/android/phone/
H A DNotificationMgr.java265 * Makes sure phone-related notifications are up to date on a
323 public long date; field in class:NotificationMgr.QueryHandler.NotificationInfo
408 notifyMissedCall(n.name, n.number, n.type, null, null, n.date);
424 notifyMissedCall(n.name, n.number, n.type, photo, photoIcon, n.date);
436 n.date = cursor.getLong(cursor.getColumnIndexOrThrow(Calls.DATE));
480 * @param date the time when the missed call happened
483 String name, String number, String type, Drawable photo, Bitmap photoIcon, long date) {
499 + ", date: " + date);
536 .setWhen(date)
482 notifyMissedCall( String name, String number, String type, Drawable photo, Bitmap photoIcon, long date) argument
[all...]

Completed in 467 milliseconds

12