Searched refs:date (Results 1 - 25 of 70) sorted by relevance

123

/packages/apps/Email/emailcommon/src/org/apache/james/mime4j/field/
H A DDateTimeField.java34 private Date date; field in class:DateTimeField
37 protected DateTimeField(String name, String body, String raw, Date date, ParseException parseException) { argument
39 this.date = date;
44 return date;
55 Date date = null;
61 date = DateTime.parse(body).getDate();
69 return new DateTimeField(name, body, raw, date, parseException);
/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/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/Contacts/src/com/android/contacts/util/
H A DDateUtils.java44 // Variations of ISO 8601 date format. Do not change the order - it does affect the
73 * Parses the supplied string to see if it looks like a date. If so,
74 * returns the date. Otherwise, returns null.
82 Date date = f.parse(string, parsePosition);
84 return date;
92 * Parses the supplied string to see if it looks like a date. If so,
93 * returns the same date in a cleaned-up format for the user. Otherwise, returns
108 Date date;
111 date = NO_YEAR_DATE_FORMAT.parse(string, parsePosition);
119 return outFormat.format(date);
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarViewAdapter.java49 // 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
115 // Sets a thread to run 1 second after midnight and update the current date
116 // This is used to display correctly the date of yesterday/today/tomorrow
174 TextView date = (TextView)v.findViewById(R.id.top_button_date);
180 date.setText(buildFullDate());
189 date.setText(buildMonthYearDate());
193 date.setText(buildMonthYearDate());
198 date
[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) {
H A DDeleteEventHelper.java412 Time date = new Time();
414 date.timezone = Time.TIMEZONE_UTC;
416 date.set(mStartMillis);
417 date.second--;
418 date.normalize(false);
422 date.switchTimezone(Time.TIMEZONE_UTC);
423 eventRecurrence.until = date.format2445();
H A DCalendarUtils.java154 * Formats a date or a time range according to the local conventions.
156 * This formats a date/time range using Calendar's time zone and the
167 * @return a string containing the formatted date/time range.
171 String date;
180 date = DateUtils.formatDateRange(context, mF, startMillis, endMillis, flags,
183 return 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/panorama/
H A DPanoUtil.java24 Date date = new Date(dateTaken);
26 return dateFormat.format(date);
/packages/apps/Email/src/com/android/email/activity/
H A DMessageListItemCoordinates.java294 TextView date = (TextView) view.findViewById(R.id.date);
295 coordinates.dateXEnd = getX(date) + date.getWidth();
296 coordinates.dateY = getY(date);
297 coordinates.dateFontSize = (int) date.getTextSize();
298 coordinates.dateAscent = Math.round(date.getPaint().ascent());
300 // The x-value is computed relative to the date.
/packages/apps/Email/emailcommon/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/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/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
373 parseEmailDateTimeToMillis(String date) argument
503 cleanUpMimeDate(String date) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/calllog/
H A DCallDetailHistoryAdapter.java134 TextView dateView = (TextView) result.findViewById(R.id.date);
141 // Set the date.
142 CharSequence dateValue = DateUtils.formatDateRange(mContext, details.date, details.date,
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
H A DImapStringTest.java95 final ImapString date = new ImapSimpleString("01-Jan-2009 11:34:56 -0100");
97 assertTrue(date.isDate());
98 Date d = date.getDateOrNull();
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
H A DDownloadAdapter.java118 Date date = new Date(mCursor.getLong(mDateColumnId));
119 if (date.before(getStartOfToday())) {
120 return mDateFormat.format(date);
122 return mTimeFormat.format(date);
/packages/apps/Camera/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/Exchange/src/com/android/exchange/utility/
H A DCalendarUtilities.java218 // Internal structure for storing a time zone date from a SYSTEMTIME structure
219 // This date represents either the start or the end time for DST
312 * @return a GregorianCalendar with the given time zone and date
338 Date date = null;
343 date = new Date(checkTime);
344 boolean inDaylightTime = tz.inDaylightTime(date);
396 int date; field in class:CalendarUtilities.RRule
399 * Create an RRULE based on month and date
401 * @param _date the date in the month (1-31)
406 date
883 convertEmailDateTimeToCalendarDateTime(String date) argument
[all...]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastListItem.java64 mDateView = (TextView) findViewById(R.id.date);
101 // Speak the date first, then channel name, then message body
/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/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/widget/
H A DCalendarAppWidgetProvider.java137 final String date = Utils.formatDateRange(context, millis, millis,
141 views.setTextViewText(R.id.date, date);
/packages/apps/Mms/src/com/android/mms/transaction/
H A DSendTransaction.java97 // Update the 'date' field of the PDU right before sending it.
98 long date = System.currentTimeMillis() / 1000L;
99 sendReq.setDate(date);
101 // Persist the new date value into database.
103 values.put(Mms.DATE, date);
/packages/apps/Mms/src/com/android/mms/ui/
H A DConversationListItem.java85 mDateView = (TextView) findViewById(R.id.date);
191 // When there is not an error icon, the attachment icon is left of the date text.
196 attachmentLayout.addRule(RelativeLayout.LEFT_OF, R.id.date);
220 (hasError ? R.id.error : R.id.date));

Completed in 1162 milliseconds

123