/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | DateBucket.java | 12 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/ |
D | CalendarViewAdapter.java | 180 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() 255 TextView date = (TextView)v.findViewById(R.id.button_date); in getDropDownView() local 260 date.setText(buildMonthDayDate()); in getDropDownView() 266 date.setText(buildWeekDate()); in getDropDownView() 272 date.setText(buildMonthDate()); in getDropDownView() 333 String date = DateUtils.formatDateRange(mContext, mFormatter, mMilliTime, mMilliTime, in buildFullDate() local 335 return date; in buildFullDate() [all …]
|
D | EventGeometry.java | 48 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()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/ |
D | DateTimeField.java | 35 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/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | Utility.java | 229 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/Camera2/src/com/android/camera/ |
D | MediaSaverImpl.java | 69 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()
|
D | Storage.java | 91 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/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAppParams.java | 858 Date date = new Date(mFilterPeriodBegin); in getFilterPeriodBeginString() local 859 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterPeriodBeginString() 868 Date date = format.parse(filterPeriodBegin); in setFilterPeriodBegin() local 869 this.mFilterPeriodBegin = date.getTime(); in setFilterPeriodBegin() 878 Date date = new Date(mFilterPeriodBegin); in getFilterLastActivityBeginString() local 879 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterLastActivityBeginString() 888 Date date = format.parse(filterPeriodBegin); in setFilterLastActivityBegin() local 889 this.mFilterPeriodBegin = date.getTime(); in setFilterLastActivityBegin() 902 Date date = new Date(mFilterPeriodEnd); in getFilterLastActivityEndString() local 903 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterLastActivityEndString() [all …]
|
D | BluetoothMapSmsPdu.java | 232 public void cdmaChangeToDeliverPdu(long date) { in cdmaChangeToDeliverPdu() argument 374 Date date = new Date(time); in gsmWriteDate() local 375 String timeStr = format.format(date); // Format to YYMMDDTHHMMSS UTC time in gsmWriteDate() 420 public void gsmChangeToDeliverPdu(long date, String originator) { in gsmChangeToDeliverPdu() argument 446 gsmWriteDate(newPdu, date); in gsmChangeToDeliverPdu() 610 public static ArrayList<SmsPdu> getDeliverPdus(String messageText, String address, long date) { in getDeliverPdus() argument 622 currentPdu.cdmaChangeToDeliverPdu(date); in getDeliverPdus() 624 currentPdu.gsmChangeToDeliverPdu(date, address); in getDeliverPdus()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
D | DateTileView.java | 87 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/Calendar/tests/src/com/android/calendar/ |
D | WeekNumberTest.java | 33 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/Bluetooth/tests/unit/src/com/android/bluetooth/pbapclient/ |
D | PbapParserTest.java | 164 private boolean verifyCallLog(String number, String date, String type) { in verifyCallLog() argument 169 if (date != null) { in verifyCallLog() 170 date = adjDate(date); in verifyCallLog() 176 if ((number == null || number.equals(foundNumber)) && (date == null || date.equals( in verifyCallLog() 187 private static String adjDate(String date) { in adjDate() argument 189 long dt = Long.valueOf(date) - tz.getRawOffset(); in adjDate()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | DateUtils.java | 73 Date date; in parseDate() local 81 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition); in parseDate() 87 return getUtcDate(date, true); in parseDate() 94 date = f.parse(string, parsePosition); in parseDate() 96 return getUtcDate(date, false); in parseDate() 103 private static final Calendar getUtcDate(Date date, boolean noYear) { in getUtcDate() argument 105 calendar.setTime(date); in getUtcDate()
|
D | ContactPhotoUtils.java | 80 final Date date = new Date(System.currentTimeMillis()); in generateTempPhotoFileName() local 82 return "ContactPhoto-" + dateFormat.format(date) + ".jpg"; in generateTempPhotoFileName() 86 final Date date = new Date(System.currentTimeMillis()); in generateTempCroppedPhotoFileName() local 88 return "ContactPhoto-" + dateFormat.format(date) + "-cropped.jpg"; in generateTempCroppedPhotoFileName()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationItemViewCoordinates.java | 390 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/DeskClock/src/com/android/alarmclock/ |
D | DigitalAppWidgetProvider.java | 219 rv.setCharSequence(R.id.date, "setFormat12Hour", dateFormat); in relayoutWidget() 220 rv.setCharSequence(R.id.date, "setFormat24Hour", dateFormat); in relayoutWidget() 259 rv.setTextViewTextSize(R.id.date, COMPLEX_UNIT_PX, sizes.mFontSizePx); in relayoutWidget() 299 final TextClock date = (TextClock) sizer.findViewById(R.id.date); in optimizeSizes() local 300 date.setFormat12Hour(dateFormat); in optimizeSizes() 301 date.setFormat24Hour(dateFormat); in optimizeSizes() 403 final TextClock date = (TextClock) sizer.findViewById(R.id.date); in measure() local 412 date.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mFontSizePx); in measure()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | LogUtils.java | 397 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/apps/Messaging/tools/messagegen/ |
D | fillsms | 204 …date=$(( ( 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,… 221 … date=$(( $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/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | AdminActionPreferenceControllerTestBase.java | 58 public abstract void setDate(Date date); in setDate() argument 70 final Date date = new GregorianCalendar(2011 /* year */, 10 /* month */, 9 /* dayOfMonth */, in testUpdateState() local 72 setDate(date); in testUpdateState() 75 mContext, date.getTime(), DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE)); in testUpdateState()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | PhoneCallDetailsHelper.java | 518 details.date, in getCallDate() 539 getGranularDate(details.date), in getGranularDateTime() 540 DateUtils.formatDateTime(context, details.date, DateUtils.FORMAT_SHOW_TIME)); in getGranularDateTime() 546 private String getGranularDate(long date) { in getGranularDate() argument 547 if (DateUtils.isToday(date)) { in getGranularDate() 552 date, in getGranularDate() 555 | (shouldShowYear(date) ? DateUtils.FORMAT_SHOW_YEAR : DateUtils.FORMAT_NO_YEAR)); in getGranularDate() 563 private boolean shouldShowYear(long date) { in shouldShowYear() argument 566 calendar.setTimeInMillis(date); in shouldShowYear()
|
D | CallLogGroupBuilder.java | 162 final long date = cursor.getLong(CallLogQuery.DATE); in addGroups() local 163 groupDayGroup = getDayGroup(date, currentTime); in addGroups() 257 private int getDayGroup(long date, long now) { in getDayGroup() argument 258 int days = DateUtils.getDayDifference(TIME, date, now); in getDayGroup()
|
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceController.java | 375 Date date = new Date(); in getSummary() local 376 date.setTime(successEndTime); in getSummary() 377 String timeString = formatSyncDate(date); in getSummary() 384 String formatSyncDate(Date date) { in formatSyncDate() argument 385 return DateFormat.getDateFormat(getContext()).format(date) + " " + DateFormat.getTimeFormat( in formatSyncDate() 386 getContext()).format(date); in formatSyncDate()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | MediaSaver.java | 86 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
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | UtilityTest.java | 36 private void testParseDateTimesHelper(String date, int year, int month, in testParseDateTimesHelper() argument 38 GregorianCalendar cal = Utility.parseDateTimeToCalendar(date); in testParseDateTimesHelper() 59 private void testParseEmailDateTimeHelper(String date, int year, int month, in testParseEmailDateTimeHelper() argument 64 long timeInMillis = Utility.parseEmailDateTimeToMillis(date); in testParseEmailDateTimeHelper()
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/ |
D | DateTime.java | 33 private final Date date; field in DateTime 44 this.date = convertToDate(year, month, day, hour, minute, second, timeZone); in DateTime() 83 return date; in getDate()
|