Searched defs:date (Results 1 - 25 of 54) sorted by relevance

123

/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
H A DObexTime.java80 public ObexTime(Date date) { argument
81 mDate = date;
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
H A DBugReportsPreferenceControllerTest.java47 public void setDate(Date date) { argument
49 .thenReturn(date);
H A DNetworkLogsPreferenceControllerTest.java47 public void setDate(Date date) { argument
49 .thenReturn(date);
H A DSecurityLogsPreferenceControllerTest.java47 public void setDate(Date date) { argument
49 .thenReturn(date);
H A DAdminActionPreferenceControllerBaseTest.java49 public void setDate(Date date) { argument
50 mDate = 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));
/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/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/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/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/Bluetooth/tests/src/com/android/bluetooth/pbapclient/
H A DPbapParserTest.java114 // Find Entries in call log with type matching number and date.
115 // If number or date is null it will match any number or date respectively.
116 boolean verifyCallLog(String number, String date, String type) { argument
125 && (date == null || date.equals(foundDate))) {
/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/Calendar/src/com/android/calendar/
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/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/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...]
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DUtilityTest.java36 private void testParseDateTimesHelper(String date, int year, int month, argument
38 GregorianCalendar cal = Utility.parseDateTimeToCalendar(date);
59 private void testParseEmailDateTimeHelper(String date, int year, int month, argument
64 long timeInMillis = Utility.parseEmailDateTimeToMillis(date);
/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/LegacyCamera/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/TV/tests/unit/src/com/android/tv/util/
H A DUtilsTest_GetDurationString.java54 private static long getJanOfThisYearInMillis(int date, int hour, int minutes) { argument
55 return new GregorianCalendar(getThisYear(), Calendar.JANUARY, date, hour, minutes)
59 private static long getJanOfThisYearInMillis(int date, int hour) { argument
60 return getJanOfThisYearInMillis(date, hour, 0);
66 private static long getFebOfThisYearInMillis(int date, int hour, int minutes) { argument
67 return new GregorianCalendar(getThisYear(), Calendar.FEBRUARY, date, hour, minutes)
71 private static long getFebOfThisYearInMillis(int date, int hour) { argument
72 return getFebOfThisYearInMillis(date, hour, 0);
/packages/apps/UnifiedEmail/src/com/android/mail/print/
H A DHtmlPrintTemplates.java80 public void appendMessage(String senderName, String senderAddress, String date, argument
82 append(mMessage, senderName, senderAddress, date, recipients, bodyHtml, attachments);
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
H A DCallLogBackupAgentTest.java219 private static Call makeCall(int id, long date, long duration, String number) { argument
222 c.date = 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...]
/packages/apps/Dialer/java/com/android/contacts/common/util/
H A DDateUtils.java36 * When parsing a date without a year, the system assumes 1970, which wasn't a leap-year. Let's
41 // Variations of ISO 8601 date format. Do not change the order - it does affect the
62 * Parses the supplied string to see if it looks like a date.
64 * @param string The string representation of the provided date
65 * @param mustContainYear If true, the string is parsed as a date containing a year. If false, the
66 * string is parsed into a valid date even if the year field is missing.
67 * @return A Calendar object corresponding to the date if the string is successfully parsed. If
72 Date date;
80 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition);
86 return getUtcDate(date, tru
102 getUtcDate(Date date, boolean noYear) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
H A DCallLogGroupBuilder.java144 final long date = cursor.getLong(CallLogQuery.DATE);
145 groupDayGroup = getDayGroup(date, currentTime);
217 * Given a call date and the current date, determine which date group the call belongs in.
219 * @param date The call date.
220 * @param now The current date.
221 * @return The date group the call belongs in.
223 private int getDayGroup(long date, lon argument
[all...]
H A DPhoneCallDetailsHelper.java105 // Set the call count, location, date and if voicemail, set the duration.
164 * Builds a string containing the call location and date. For voicemail logs only the call date is
168 * @return The call location and date string.
184 // The date of this call
187 // Create a comma separated list from the call type or location, and call date.
251 * Get the call date/time of the call. For the call log this is relative to the current time. e.g.
263 details.date,
270 * Get the granular version of the call date/time of the call. The result is always in the form
271 * 'DATE at TIME'. The date valu
291 getGranularDate(long date) argument
308 shouldShowYear(long date) argument
[all...]

Completed in 614 milliseconds

123