/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
H A D | ObexTime.java | 80 public ObexTime(Date date) { argument 81 mDate = date;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
H A D | BugReportsPreferenceControllerTest.java | 47 public void setDate(Date date) { argument 49 .thenReturn(date);
|
H A D | NetworkLogsPreferenceControllerTest.java | 47 public void setDate(Date date) { argument 49 .thenReturn(date);
|
H A D | SecurityLogsPreferenceControllerTest.java | 47 public void setDate(Date date) { argument 49 .thenReturn(date);
|
H A D | AdminActionPreferenceControllerBaseTest.java | 49 public void setDate(Date date) { argument 50 mDate = date;
|
H A D | AdminActionPreferenceControllerTestBase.java | 57 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 D | ShadowTimeZoneNames.java | 32 public String getDisplayName(String tzID, TimeZoneNames.NameType type, long date) { argument
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | WeekNumberTest.java | 33 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 D | NewestFirstComparator.java | 35 * 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 D | DateTimeField.java | 35 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 D | PbapParserTest.java | 114 // 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 D | DateBucket.java | 12 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 D | EventGeometry.java | 48 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 D | MediaSaver.java | 74 * @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 D | DateUtils.java | 37 * 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 D | UtilityTest.java | 36 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 D | DateTileView.java | 32 * 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 D | Storage.java | 52 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 D | UtilsTest_GetDurationString.java | 54 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 D | HtmlPrintTemplates.java | 80 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 D | CallLogBackupAgentTest.java | 219 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 D | MediaSaverImpl.java | 69 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 D | DateUtils.java | 36 * 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 D | CallLogGroupBuilder.java | 144 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 D | PhoneCallDetailsHelper.java | 105 // 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...] |