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

12345

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
H A DDateBucket.java12 final SimpleDate date; field in class:DateBucket
18 public DateBucket(SimpleDate date, int unifiedStartIndex, int unifiedEndIndex, argument
20 this.date = date;
29 return date.toString();
34 return date.hashCode();
49 if (date == null) {
50 if (other.date != null) {
53 } else if (!date.equals(other.date)) {
[all...]
/packages/apps/UnifiedEmail/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/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowTimeZoneNames.java32 public String getDisplayName(String tzID, TimeZoneNames.NameType type, long date) { argument
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
H A DDateTileView.java32 * Displays a date in a square tile.
87 public void setDate(SimpleDate date) { argument
88 setDate(date.getDay(), date.getMonth(), date.getYear());
91 public void setDate(int date, int month, int year) { argument
92 if (date != mDate) {
93 mDate = date;
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
H A DAdminActionPreferenceControllerBaseTest.java47 public void setDate(Date date) { argument
48 mDate = date;
H A DBugReportsPreferenceControllerTest.java46 public void setDate(Date date) { argument
48 .thenReturn(date);
H A DAdminActionPreferenceControllerTestBase.java57 public abstract void setDate(Date date); argument
69 final Date date = new GregorianCalendar(2011 /* year */, 10 /* month */, 9 /* dayOfMonth */,
71 setDate(date);
74 mContext, date.getTime(), DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE));
H A DNetworkLogsPreferenceControllerTest.java46 public void setDate(Date date) { argument
48 .thenReturn(date);
H A DSecurityLogsPreferenceControllerTest.java46 public void setDate(Date date) { argument
48 .thenReturn(date);
/packages/apps/Camera2/src/com/android/camera/app/
H A DMediaSaver.java74 * @param date The date when the image is created.
86 void addImage(byte[] data, String title, long date, Location loc, int width, int height, argument
95 * @param date The date when the image is created.
108 void addImage(byte[] data, String title, long date, Location loc, int width, int height, argument
118 * @param date The date when the image is created.
126 void addImage(byte[] data, String title, long date, Location loc, int orientation, argument
/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
76 private final boolean mShowDate; // Spinner mode indicator (view name or view name with date)
119 // Sets a thread to run 1 second after midnight and update the current date
120 // This is used to display correctly the date of yesterday/today/tomorrow
180 TextView date = (TextView) v.findViewById(R.id.top_button_date);
186 date.setText(buildFullDate());
195 date.setText(buildMonthYearDate());
199 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) {
/packages/apps/Camera2/src/com/android/camera/
H A DMediaSaverImpl.java69 public void addImage(final byte[] data, String title, long date, Location loc, int width, argument
71 addImage(data, title, date, loc, width, height, orientation, exif, l,
76 public void addImage(final byte[] data, String title, long date, Location loc, int width, argument
83 ImageSaveTask t = new ImageSaveTask(data, title, date,
95 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, argument
99 addImage(data, title, date, loc, 0, 0, orientation, exif, l,
140 private final long date; field in class:MediaSaverImpl.ImageSaveTask
149 public ImageSaveTask(byte[] data, String title, long date, Location loc, argument
155 this.date = date;
[all...]
H A DPanoUtil.java24 Date date = new Date(dateTaken);
26 return dateFormat.format(date);
H A DStorage.java81 * @param date The date for the media file.
91 public static Uri addImage(ContentResolver resolver, String title, long date, argument
95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height,
108 * @param date The date for the media file.
120 public static Uri addImage(ContentResolver resolver, String title, long date, argument
127 return addImageToMediaStore(resolver, title, date, location, orientation, fileLength,
138 * @param date The date fo
149 addImageToMediaStore(ContentResolver resolver, String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument
172 getContentValuesForData(String title, long date, Location location, int orientation, long jpegLength, String path, int width, int height, String mimeType) argument
269 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, int height, String mimeType) argument
395 updateImage(Uri imageUri, ContentResolver resolver, String title, long date, Location location, int orientation, int jpegLength, String path, int width, int height, String mimeType) argument
[all...]
/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/Contacts/src/com/android/contacts/interactions/
H A DSmsInteraction.java56 Long date = getDate();
57 return date == null ? -1 : date;
76 Long date = getDate();
77 return date == null ? null : ContactInteractionUtil.formatDateStringFromTimestamp(
78 date, context);
/packages/apps/Camera2/src/com/android/camera/data/
H A DNewestFirstComparator.java35 * creation dates using the supplied current date as a baseline.
37 * @param now present date to be used in comparisons to rule out dates in
52 // If creation date is in future, fall back to modified, b/19565464.
70 * Normal date comparison will sort these oldest first,
78 * Is the Date in the future from a base date. If the date is in the future
79 * (larger) than the base date provided, return true.
81 * @param date The date to check whether it is in the future
82 * @param base The date t
85 isFuture(Date date) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoUtil.java24 Date date = new Date(dateTaken);
26 return dateFormat.format(date);
/packages/apps/TV/tests/unit/src/com/android/tv/util/
H A DUtilsTest_GetDurationString.java65 private static long getJanOfThisYearInMillis(int date, int hour, int minutes) { argument
66 return new GregorianCalendar(getThisYear(), Calendar.JANUARY, date, hour, minutes)
70 private static long getJanOfThisYearInMillis(int date, int hour) { argument
71 return getJanOfThisYearInMillis(date, hour, 0);
77 private static long getFebOfThisYearInMillis(int date, int hour, int minutes) { argument
78 return new GregorianCalendar(getThisYear(), Calendar.FEBRUARY, date, hour, minutes)
82 private static long getFebOfThisYearInMillis(int date, int hour) { argument
83 return getFebOfThisYearInMillis(date, hour, 0);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DDateUtils.java37 * When parsing a date without a year, the system assumes 1970, which wasn't a leap-year.
42 // Variations of ISO 8601 date format. Do not change the order - it does affect the
63 * Parses the supplied string to see if it looks like a date.
65 * @param string The string representation of the provided date
66 * @param mustContainYear If true, the string is parsed as a date containing a year. If false,
67 * the string is parsed into a valid date even if the year field is missing.
68 * @return A Calendar object corresponding to the date if the string is successfully parsed.
73 Date date;
81 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition);
87 return getUtcDate(date, tru
103 getUtcDate(Date date, boolean noYear) argument
[all...]
H A DContactPhotoUtils.java81 final Date date = new Date(System.currentTimeMillis());
83 return "ContactPhoto-" + dateFormat.format(date) + ".jpg";
87 final Date date = new Date(System.currentTimeMillis());
89 return "ContactPhoto-" + dateFormat.format(date) + "-cropped.jpg";
/packages/apps/UnifiedEmail/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/Bluetooth/src/com/android/bluetooth/mapclient/obex/
H A DObexTime.java80 public ObexTime(Date date) { argument
81 mDate = date;
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapAppParams.java843 Date date = new Date(mFilterPeriodBegin);
844 return format.format(date); // Format to YYYYMMDDTHHMMSS local time
853 Date date = format.parse(filterPeriodBegin);
854 this.mFilterPeriodBegin = date.getTime();
862 Date date = new Date(mFilterPeriodBegin);
863 return format.format(date); // Format to YYYYMMDDTHHMMSS local time
871 Date date = format.parse(filterPeriodBegin);
872 this.mFilterPeriodBegin = date.getTime();
883 Date date = new Date(mFilterPeriodEnd);
884 return format.format(date); // Forma
[all...]

Completed in 2395 milliseconds

12345