/packages/wallpapers/Basic/src/com/android/wallpaper/grass/ |
D | SunCalculator.java | 64 public double computeSunriseTime(double solarZenith, Calendar date) { in computeSunriseTime() argument 65 return computeSolarEventTime(solarZenith, date, true); in computeSunriseTime() 77 public double computeSunsetTime(double solarZenith, Calendar date) { in computeSunsetTime() argument 78 return computeSolarEventTime(solarZenith, date, false); in computeSunsetTime() 121 private double computeSolarEventTime(double solarZenith, Calendar date, boolean isSunrise) { 122 date.setTimeZone(mTimeZone); 123 double longitudeHour = getLongitudeHour(date, isSunrise); 133 return getLocalTime(localMeanTime, date); 151 private double getLongitudeHour(Calendar date, Boolean isSunrise) { 158 return getDayOfYear(date) + addend; [all …]
|
/packages/apps/Email/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/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() 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 …]
|
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()
|
D | DeleteEventHelper.java | 414 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/apps/Contacts/src/com/android/contacts/ |
D | PhoneCallDetails.java | 42 public final long date; field in PhoneCallDetails 63 String countryIso, String geocode, int[] callTypes, long date, long duration) { in PhoneCallDetails() argument 64 this(number, formattedNumber, countryIso, geocode, callTypes, date, duration, "", 0, "", in PhoneCallDetails() 70 String countryIso, String geocode, int[] callTypes, long date, long duration, in PhoneCallDetails() argument 78 this.date = date; in PhoneCallDetails()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | DateUtils.java | 88 Date date = f.parse(string, parsePosition); in parseDate() local 90 return date; in parseDate() 123 Date date; in formatDate() local 127 date = getUtcDate(0, Calendar.FEBRUARY, 29); in formatDate() 131 date = NO_YEAR_DATE_FORMAT.parse(string, parsePosition); in formatDate() 141 return outFormat.format(date); in formatDate() 149 date = f.parse(string, parsePosition); in formatDate() 153 return outFormat.format(date); in formatDate()
|
D | ContactPhotoUtils.java | 71 Date date = new Date(System.currentTimeMillis()); in generateTempPhotoFileName() local 73 return "ContactPhoto-" + dateFormat.format(date) + ".jpg"; in generateTempPhotoFileName()
|
/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/Contacts/tests/src/com/android/contacts/calllog/ |
D | CallLogFragmentTest.java | 470 private void insertWithCachedValues(String number, long date, int duration, int type, in insertWithCachedValues() argument 472 insert(number, date, duration, type); in insertWithCachedValues() 496 private void insert(String number, long date, int duration, int type) { in insert() argument 497 insertValues(getValuesToInsert(number, date, duration, type)); in insert() 515 private Object[] getValuesToInsert(String number, long date, int duration, int type) { in getValuesToInsert() argument 519 values[CallLogQuery.DATE] = date == NOW ? new Date().getTime() : date; in getValuesToInsert() 537 private void insertVoicemail(String number, long date, int duration) { 538 Object[] values = getValuesToInsert(number, date, duration, Calls.VOICEMAIL_TYPE); 550 private void insertPrivate(long date, int duration) { 551 insert(CallerInfo.PRIVATE_NUMBER, date, duration, Calls.INCOMING_TYPE); [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/swipeablelistview/ |
D | LogUtils.java | 324 public static String cleanUpMimeDate(String date) { in cleanUpMimeDate() argument 325 if (TextUtils.isEmpty(date)) { in cleanUpMimeDate() 326 return date; in cleanUpMimeDate() 328 date = DATE_CLEANUP_PATTERN_WRONG_TIMEZONE.matcher(date).replaceFirst("$1"); in cleanUpMimeDate() 329 return date; in cleanUpMimeDate()
|
/packages/apps/Email/src/com/android/mail/utils/ |
D | LogUtils.java | 396 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/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | Utility.java | 349 public static long parseDateTimeToMillis(String date) { in parseDateTimeToMillis() argument 350 GregorianCalendar cal = parseDateTimeToCalendar(date); in parseDateTimeToMillis() 359 public static GregorianCalendar parseDateTimeToCalendar(String date) { in parseDateTimeToCalendar() argument 360 GregorianCalendar cal = new GregorianCalendar(Integer.parseInt(date.substring(0, 4)), in parseDateTimeToCalendar() 361 Integer.parseInt(date.substring(4, 6)) - 1, Integer.parseInt(date.substring(6, 8)), in parseDateTimeToCalendar() 362 Integer.parseInt(date.substring(9, 11)), Integer.parseInt(date.substring(11, 13)), in parseDateTimeToCalendar() 363 Integer.parseInt(date.substring(13, 15))); in parseDateTimeToCalendar() 372 public static long parseEmailDateTimeToMillis(String date) { in parseEmailDateTimeToMillis() argument 373 GregorianCalendar cal = new GregorianCalendar(Integer.parseInt(date.substring(0, 4)), in parseEmailDateTimeToMillis() 374 Integer.parseInt(date.substring(5, 7)) - 1, Integer.parseInt(date.substring(8, 10)), in parseEmailDateTimeToMillis() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | MessageListItemCoordinates.java | 301 TextView date = (TextView) view.findViewById(R.id.date); in forWidth() local 302 coordinates.dateXEnd = getX(date) + date.getWidth(); in forWidth() 303 coordinates.dateY = getY(date); in forWidth() 304 coordinates.dateFontSize = (int) date.getTextSize(); in forWidth() 305 coordinates.dateAscent = Math.round(date.getPaint().ascent()); in forWidth()
|
/packages/apps/Camera/src/com/android/camera/ |
D | Storage.java | 80 long date, Location location, int orientation, byte[] jpeg, in addImage() argument 85 return addImage(resolver, title, date, location, orientation, in addImage() 91 long date, Location location, int orientation, int jpegLength, in addImage() argument 97 values.put(ImageColumns.DATE_TAKEN, date); in addImage() 132 long date, int width, int height) { in newImage() argument 137 values.put(ImageColumns.DATE_TAKEN, date); in newImage()
|
D | PanoUtil.java | 24 Date date = new Date(dateTaken); in createName() local 26 return dateFormat.format(date); in createName()
|
/packages/apps/Email/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()
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
D | ImapStringTest.java | 95 final ImapString date = new ImapSimpleString("01-Jan-2009 11:34:56 -0100"); in testGetDateOrNull() local 97 assertTrue(date.isDate()); in testGetDateOrNull() 98 Date d = date.getDateOrNull(); in testGetDateOrNull()
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | PanoUtil.java | 24 Date date = new Date(dateTaken); in createName() local 26 return dateFormat.format(date); in createName()
|
/packages/apps/Contacts/src/com/android/contacts/calllog/ |
D | CallDetailHistoryAdapter.java | 140 TextView dateView = (TextView) result.findViewById(R.id.date); in getView() 148 CharSequence dateValue = DateUtils.formatDateRange(mContext, details.date, details.date, in getView()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountPreferenceBase.java | 177 protected String formatSyncDate(Date date) { in formatSyncDate() argument 179 return mDateFormat.format(date) + " " + mTimeFormat.format(date); in formatSyncDate()
|
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
D | DownloadAdapter.java | 125 Date date = new Date(mCursor.getLong(mDateColumnId)); in getDateString() local 126 if (date.before(getStartOfToday())) { in getDateString() 127 return mDateFormat.format(date); in getDateString() 129 return mTimeFormat.format(date); in getDateString()
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/ |
D | CalendarUtilities.java | 354 Date date = null; in findTransitionDate() local 359 date = new Date(checkTime); in findTransitionDate() 360 boolean inDaylightTime = tz.inDaylightTime(date); in findTransitionDate() 412 int date; field in CalendarUtilities.RRule 422 date = _date; in RRule() 444 return "FREQ=YEARLY;BYMONTH=" + month + ";BYMONTHDAY=" + date; in toString() 463 int date = calendar.get(Calendar.DAY_OF_MONTH); in inferRRuleFromCalendars() local 493 } else if (date == cal.get(Calendar.DAY_OF_MONTH)) { in inferRRuleFromCalendars() 505 return new RRule(month + 1, date); in inferRRuleFromCalendars() 564 Date date = new Date(startTime); in getDSTCalendars() local [all …]
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
D | SendTransaction.java | 96 long date = System.currentTimeMillis() / 1000L; in run() local 97 sendReq.setDate(date); in run() 101 values.put(Mms.DATE, date); in run()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserBackupAgent.java | 114 mark.date = in.readLong(); in onRestore() 171 values.put(Bookmarks.DATE_MODIFIED, mark.date); in addBookmark() 178 public long date; field in BrowserBackupAgent.Bookmark
|