Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 167) sorted by relevance

1234567

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DDateBucket.java12 final SimpleDate date; field in DateBucket
18 public DateBucket(SimpleDate date, int unifiedStartIndex, int unifiedEndIndex, in DateBucket() argument
20 this.date = date; in DateBucket()
29 return date.toString(); in toString()
34 return date.hashCode(); in hashCode()
49 if (date == null) { in equals()
50 if (other.date != null) { in equals()
53 } else if (!date.equals(other.date)) { in equals()
61 return this.date.compareTo(another.date); in compareTo()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarViewAdapter.java180 TextView date = (TextView) v.findViewById(R.id.top_button_date); in getView() local
186 date.setText(buildFullDate()); in getView()
195 date.setText(buildMonthYearDate()); in getView()
199 date.setText(buildMonthYearDate()); in getView()
204 date.setText(buildFullDate()); in getView()
263 TextView date = (TextView)v.findViewById(R.id.button_date); in getDropDownView() local
268 date.setText(buildMonthDayDate()); in getDropDownView()
274 date.setText(buildWeekDate()); in getDropDownView()
280 date.setText(buildMonthDate()); in getDropDownView()
286 date.setText(buildMonthDayDate()); in getDropDownView()
[all …]
DEventGeometry.java48 public boolean computeEventRect(int date, int left, int top, int cellWidth, Event event) { in computeEventRect() argument
57 if (startDay > date || endDay < date) { in computeEventRect()
66 if (startDay < date) { in computeEventRect()
72 if (endDay > date) { in computeEventRect()
DDeleteEventHelper.java414 Time date = new Time(); in deleteRepeatingEvent() local
416 date.timezone = Time.TIMEZONE_UTC; in deleteRepeatingEvent()
418 date.set(mStartMillis); in deleteRepeatingEvent()
419 date.second--; in deleteRepeatingEvent()
420 date.normalize(false); in deleteRepeatingEvent()
424 date.switchTimezone(Time.TIMEZONE_UTC); in deleteRepeatingEvent()
425 eventRecurrence.until = date.format2445(); in deleteRepeatingEvent()
/packages/services/Telephony/src/org/apache/james/mime4j/field/
DDateTimeField.java35 private Date date; field in DateTimeField
38 …protected DateTimeField(String name, String body, String raw, Date date, ParseException parseExcep… in DateTimeField() argument
40 this.date = date; in DateTimeField()
45 return date; in getDate()
56 Date date = null; in parse() local
62 date = DateTime.parse(body).getDate(); in parse()
70 return new DateTimeField(name, body, raw, date, parseException); in parse()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/
DDateTimeField.java35 private Date date; field in DateTimeField
38 …protected DateTimeField(String name, String body, String raw, Date date, ParseException parseExcep… in DateTimeField() argument
40 this.date = date; in DateTimeField()
45 return date; in getDate()
56 Date date = null; in parse() local
62 date = DateTime.parse(body).getDate(); in parse()
70 return new DateTimeField(name, body, raw, date, parseException); in parse()
/packages/apps/Camera2/src/com/android/camera/
DMediaSaverImpl.java69 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage() argument
71 addImage(data, title, date, loc, width, height, orientation, exif, l, in addImage()
76 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage() argument
83 ImageSaveTask t = new ImageSaveTask(data, title, date, in addImage()
95 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, in addImage() argument
99 addImage(data, title, date, loc, 0, 0, orientation, exif, l, in addImage()
140 private final long date; field in MediaSaverImpl.ImageSaveTask
149 public ImageSaveTask(byte[] data, String title, long date, Location loc, in ImageSaveTask() argument
155 this.date = date; in ImageSaveTask()
183 resolver, title, date, loc, orientation, exif, data, width, height, in doInBackground()
DStorage.java91 public static Uri addImage(ContentResolver resolver, String title, long date, in addImage() argument
95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage()
120 public static Uri addImage(ContentResolver resolver, String title, long date, in addImage() argument
127 return addImageToMediaStore(resolver, title, date, location, orientation, fileLength, in addImage()
149 public static Uri addImageToMediaStore(ContentResolver resolver, String title, long date, in addImageToMediaStore() argument
154 getContentValuesForData(title, date, location, orientation, jpegLength, path, width, in addImageToMediaStore()
173 long date, Location location, int orientation, long jpegLength, in getContentValuesForData() argument
182 values.put(ImageColumns.DATE_TAKEN, date); in getContentValuesForData()
269 public static Uri updateImage(Uri imageUri, ContentResolver resolver, String title, long date, in updateImage() argument
274 … return updateImage(imageUri, resolver, title, date, location, orientation, jpeg.length, path, in updateImage()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DDateTileView.java87 public void setDate(SimpleDate date) { in setDate() argument
88 setDate(date.getDay(), date.getMonth(), date.getYear()); in setDate()
91 public void setDate(int date, int month, int year) { in setDate() argument
92 if (date != mDate) { in setDate()
93 mDate = date; in setDate()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java229 public Date parse(String date) throws ParseException { in parse() argument
230 return super.get().parse(date); in parse()
239 public static long parseDateTimeToMillis(String date) throws ParseException { in parseDateTimeToMillis() argument
240 return parseDateTimeToCalendar(date).getTimeInMillis(); in parseDateTimeToMillis()
256 public static GregorianCalendar parseDateTimeToCalendar(String date) throws ParseException { in parseDateTimeToCalendar() argument
258 if (date.length() <= 8) { in parseDateTimeToCalendar()
259 cal.setTime(mAbbrevDateTimeFormat.parse(date)); in parseDateTimeToCalendar()
261 cal.setTime(mFullDateTimeFormat.parse(date)); in parseDateTimeToCalendar()
281 public static long parseEmailDateTimeToMillis(String date) throws ParseException { in parseEmailDateTimeToMillis() argument
283 if (date.length() <= 10) { in parseEmailDateTimeToMillis()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java844 Date date = new Date(mFilterPeriodBegin); in getFilterPeriodBeginString() local
845 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterPeriodBeginString()
854 Date date = format.parse(filterPeriodBegin); in setFilterPeriodBegin() local
855 this.mFilterPeriodBegin = date.getTime(); in setFilterPeriodBegin()
863 Date date = new Date(mFilterPeriodBegin); in getFilterLastActivityBeginString() local
864 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterLastActivityBeginString()
872 Date date = format.parse(filterPeriodBegin); in setFilterLastActivityBegin() local
873 this.mFilterPeriodBegin = date.getTime(); in setFilterLastActivityBegin()
884 Date date = new Date(mFilterPeriodEnd); in getFilterLastActivityEndString() local
885 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterLastActivityEndString()
[all …]
DBluetoothMapSmsPdu.java226 public void cdmaChangeToDeliverPdu(long date){ in cdmaChangeToDeliverPdu() argument
359 Date date = new Date(time); in gsmWriteDate() local
360 String timeStr = format.format(date); // Format to YYMMDDTHHMMSS UTC time in gsmWriteDate()
400 public void gsmChangeToDeliverPdu(long date, String originator) in gsmChangeToDeliverPdu() argument
422 gsmWriteDate(newPdu, date); in gsmChangeToDeliverPdu()
576 public static ArrayList<SmsPdu> getDeliverPdus(String messageText, String address, long date){ in getDeliverPdus() argument
588 currentPdu.cdmaChangeToDeliverPdu(date); in getDeliverPdus()
590 currentPdu.gsmChangeToDeliverPdu(date, address); in getDeliverPdus()
/packages/apps/Calendar/tests/src/com/android/calendar/
DWeekNumberTest.java33 public Time date; field in WeekNumberTest.DateAndWeekNumber
38 date = new Time(); in DateAndWeekNumber()
41 date.set(0, 0, 0, day, month, year); in DateAndWeekNumber()
42 date.normalize(true /* ignore isDst */); in DateAndWeekNumber()
209 int weekNumber = test.date.getWeekNumber(); in testAll()
211 long millis = test.date.toMillis(false /* use isDst */); in testAll()
223 long millis = test.date.toMillis(false /* use isDst */); in testAll()
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DUtilsTest_GetDurationString.java54 private static long getJanOfThisYearInMillis(int date, int hour, int minutes) { in getJanOfThisYearInMillis() argument
55 return new GregorianCalendar(getThisYear(), Calendar.JANUARY, date, hour, minutes) in getJanOfThisYearInMillis()
59 private static long getJanOfThisYearInMillis(int date, int hour) { in getJanOfThisYearInMillis() argument
60 return getJanOfThisYearInMillis(date, hour, 0); in getJanOfThisYearInMillis()
66 private static long getFebOfThisYearInMillis(int date, int hour, int minutes) { in getFebOfThisYearInMillis() argument
67 return new GregorianCalendar(getThisYear(), Calendar.FEBRUARY, date, hour, minutes) in getFebOfThisYearInMillis()
71 private static long getFebOfThisYearInMillis(int date, int hour) { in getFebOfThisYearInMillis() argument
72 return getFebOfThisYearInMillis(date, hour, 0); in getFebOfThisYearInMillis()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DPhoneCallDetailsHelper.java244 return DateUtils.getRelativeTimeSpanString(details.date, getCurrentTimeMillis(), in getCallDate()
263 getGranularDate(details.date), in getGranularDateTime()
264 DateUtils.formatDateTime(mContext, details.date, DateUtils.FORMAT_SHOW_TIME)); in getGranularDateTime()
270 private String getGranularDate(long date) { in getGranularDate() argument
271 if (DateUtils.isToday(date)) { in getGranularDate()
274 return DateUtils.formatDateTime(mContext, date, DateUtils.FORMAT_SHOW_DATE in getGranularDate()
276 | (shouldShowYear(date) ? DateUtils.FORMAT_SHOW_YEAR : DateUtils.FORMAT_NO_YEAR)); in getGranularDate()
284 private boolean shouldShowYear(long date) { in shouldShowYear() argument
287 mCalendar.setTimeInMillis(date); in shouldShowYear()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DSmsInteraction.java56 Long date = getDate(); in getInteractionDate() local
57 return date == null ? -1 : date; in getInteractionDate()
76 Long date = getDate(); in getViewFooter() local
77 return date == null ? null : ContactInteractionUtil.formatDateStringFromTimestamp( in getViewFooter()
78 date, context); in getViewFooter()
DCallLogInteraction.java74 Long date = getDate(); in getInteractionDate() local
75 return date == null ? -1 : date; in getInteractionDate()
90 Long date = getDate(); in getViewFooter() local
91 return date == null ? null : ContactInteractionUtil.formatDateStringFromTimestamp( in getViewFooter()
92 date, context); in getViewFooter()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DDateUtils.java75 Date date; in parseDate() local
83 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition); in parseDate()
89 return getUtcDate(date, true); in parseDate()
96 date = f.parse(string, parsePosition); in parseDate()
98 return getUtcDate(date, false); in parseDate()
105 private static final Calendar getUtcDate(Date date, boolean noYear) { in getUtcDate() argument
107 calendar.setTime(date); in getUtcDate()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewCoordinates.java390 final TextView date = (TextView) view.findViewById(R.id.date); in ConversationItemViewCoordinates() local
391 dateX = getX(date); in ConversationItemViewCoordinates()
392 dateXRight = dateX + date.getWidth(); in ConversationItemViewCoordinates()
393 dateY = getY(date); in ConversationItemViewCoordinates()
394 datePaddingStart = ViewUtils.getPaddingStart(date); in ConversationItemViewCoordinates()
395 dateFontSize = date.getTextSize(); in ConversationItemViewCoordinates()
396 dateYBaseline = dateY + getLatinTopAdjustment(date) + date.getBaseline(); in ConversationItemViewCoordinates()
/packages/apps/Messaging/tools/messagegen/
Dfillsms204date=$(( ( 1000 * $timestamp ) - $half_timestamp_inc * ( 2 * ($sms_per_thread - $j) + ( $i % 2 ) )…
207 …ype,body,read,seen) values ($message_id, $thread_id, '$phone', '$phone', $date, -1, $message_type,…
221date=$(( $timestamp - $half_timestamp_inc * ( 2 * ($mms_per_thread - $j) + ( ($i+1) % 2 ) ) ))
230 …i,rr,tr_id,d_rpt,locked,seen,text_only) values ($message_id, $thread_id, $date, 0, $message_type, …
232 …,m_size,pri,rr,tr_id,d_rpt,locked,seen) values ($message_id, $thread_id, $date, $message_type, 1, …
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DLogUtils.java397 public static String cleanUpMimeDate(String date) { in cleanUpMimeDate() argument
398 if (TextUtils.isEmpty(date)) { in cleanUpMimeDate()
399 return date; in cleanUpMimeDate()
401 date = DATE_CLEANUP_PATTERN_WRONG_TIMEZONE.matcher(date).replaceFirst("$1"); in cleanUpMimeDate()
402 return date; in cleanUpMimeDate()
/packages/services/Telephony/src/com/android/phone/common/mail/utils/
DLogUtils.java396 public static String cleanUpMimeDate(String date) { in cleanUpMimeDate() argument
397 if (TextUtils.isEmpty(date)) { in cleanUpMimeDate()
398 return date; in cleanUpMimeDate()
400 date = DATE_CLEANUP_PATTERN_WRONG_TIMEZONE.matcher(date).replaceFirst("$1"); in cleanUpMimeDate()
401 return date; in cleanUpMimeDate()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DMapTestData.java124 long date = TEST_ACTIVITY_BEGIN; in insertTestMessages() local
125 Log.i(TAG, "Preparing messages... with data = " + date); in insertTestMessages()
132 item.put("date", date+=TEST_ACTIVITY_INTERVAL); in insertTestMessages()
144 item.put("date", date += TEST_ACTIVITY_INTERVAL); in insertTestMessages()
156 item.put("date", date += TEST_ACTIVITY_INTERVAL); in insertTestMessages()
169 item.put("date", date += TEST_ACTIVITY_INTERVAL); in insertTestMessages()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DCallLogPullRequest.java82 Date date = null; in onPullComplete() local
87 date = parser.parse(pair.second); in onPullComplete()
97 if (date != null) { in onPullComplete()
98 values.put(CallLog.Calls.DATE, date.getTime()); in onPullComplete()
/packages/apps/Camera2/src/com/android/camera/app/
DMediaSaver.java86 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage() argument
108 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage() argument
126 void addImage(byte[] data, String title, long date, Location loc, int orientation, in addImage() argument

1234567