Searched defs:date (Results 1 - 25 of 30) sorted by path

12

/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/Calendar/src/com/android/calendar/
H A DDayView.java547 /** Top of the scrollable region i.e. below date labels and all day events */
1192 // Set the base date to the beginning of the week if we are displaying
1342 // When we change the base date, the number of all-day events may
1364 * views. They differ in their base date.
1620 Time date = view.mBaseDate;
1621 date.set(mBaseDate);
1623 date.monthDay -= mNumDays;
1625 date.monthDay += mNumDays;
1627 date.normalize(true /* ignore isDst */);
1632 Time end = new Time(date);
3089 drawEvents(int date, int dayIndex, int top, Canvas canvas, Paint p) argument
[all...]
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/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/Camera/src/com/android/camera/
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);
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/Contacts/src/com/android/contacts/
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/Contacts/tests/src/com/android/contacts/
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/Contacts/tests/src/com/android/contacts/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/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/emailcommon/src/com/android/emailcommon/utility/
H A DUtility.java345 * 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/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/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/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/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/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/src/com/android/exchange/utility/
H A DCalendarUtilities.java234 // Internal structure for storing a time zone date from a SYSTEMTIME structure
235 // This date represents either the start or the end time for DST
328 * @return a GregorianCalendar with the given time zone and date
354 Date date = null;
359 date = new Date(checkTime);
360 boolean inDaylightTime = tz.inDaylightTime(date);
412 int date; field in class:CalendarUtilities.RRule
415 * Create an RRULE based on month and date
417 * @param _date the date in the month (1-31)
422 date
914 convertEmailDateTimeToCalendarDateTime(String date) argument
[all...]
/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/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/Mms/src/com/android/mms/ui/
H A DComposeMessageActivity.java3527 void undeliveredMessageDialog(long date) { argument
3530 if (date >= 0) {
3532 MessageUtils.formatTimeStampString(this, date));
/packages/apps/Phone/src/com/android/phone/
H A DCallNotifier.java578 if (VDBG) log("- CallerInfo already up to date, using available data");
1008 + ", date = " + c.getCreateTime());
1146 final long date = c.getCreateTime();
1207 callLogType, date, duration);
1216 showMissedCallNotification(c, date);
1793 final long date = c.getCreateTime();
1818 callLogType, date, duration);
1824 showMissedCallNotification(c, date);
1863 private void showMissedCallNotification(Connection c, final long date) { argument
1865 PhoneUtils.startGetCallerInfo(mApplication, c, this, Long.valueOf(date));
[all...]
H A DNotificationMgr.java266 * Makes sure phone-related notifications are up to date on a
324 public long date; field in class:NotificationMgr.QueryHandler.NotificationInfo
409 notifyMissedCall(n.name, n.number, n.type, null, null, n.date);
425 notifyMissedCall(n.name, n.number, n.type, photo, photoIcon, n.date);
437 n.date = cursor.getLong(cursor.getColumnIndexOrThrow(Calls.DATE));
481 * @param date the time when the missed call happened
484 String name, String number, String type, Drawable photo, Bitmap photoIcon, long date) {
500 + ", date: " + date);
537 .setWhen(date)
483 notifyMissedCall( String name, String number, String type, Drawable photo, Bitmap photoIcon, long date) argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DZonePicker.java211 final long date = Calendar.getInstance().getTimeInMillis();
227 addItem(myData, id, displayName, date);
245 List<HashMap<String, Object>> myData, String id, String displayName, long date) {
250 final int offset = tz.getOffset(date);
244 addItem( List<HashMap<String, Object>> myData, String id, String displayName, long date) argument
/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/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DCalendarProvider2Test.java341 * a start date).
342 * If you just want to verify that an instance exists in a given date
361 // Convert all the instance date strings to UTC milliseconds
412 String date = DateUtils.formatDateRange(mContext, begin, begin, flags);
415 title, date);
429 * the given date range.
439 * contains a specific instance of an event (specified by "date").
441 * @param startDate the beginning of the date range
442 * @param endDate the end of the date range
443 * @param date th
445 VerifyInstance(String startDate, String endDate, String date) argument
[all...]

Completed in 362 milliseconds

12