Searched refs:date (Results 26 - 50 of 92) sorted by relevance

1234

/frameworks/base/core/java/android/widget/
H A DCalendarViewLegacyDelegate.java249 * The start date of the range supported by this picker.
254 * The end date of the range supported by this picker.
277 throw new IllegalArgumentException("Max date cannot be before min date.");
327 // go to today or whichever is close to today min or max date
497 // make sure the current date is not earlier than
498 // the new min date since the latter is used for
501 Calendar date = mAdapter.mSelectedDate;
502 if (date.before(mMinDate)) {
505 // reinitialize the adapter since its range depends on min date
581 setDate(long date) argument
586 setDate(long date, boolean animate, boolean center) argument
605 getBoundsForDate(long date, Rect outBounds) argument
795 goTo(Calendar date, boolean animate, boolean setSelected, boolean forceScroll) argument
947 getWeeksSinceMinDate(Calendar date) argument
1375 getBoundsForDate(Calendar date, Rect outBounds) argument
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java111 // last "until" date or "rdate".
621 * value. Returns an array of longs where each element is a date in UTC
632 * @return an array of dates, each date is in UTC milliseconds
645 // do so) because the "until" date string is specified in UTC and that
714 * strings containing the start date/times of the occurrences; the output
721 * @param dtstart the dtstart date as defined in RFC2445. This
724 * @param rangeStartDateValue the first date-time you care about, inclusive
725 * @param rangeEndDateValue the last date-time you care about, not inclusive (so
836 // Ensure that the "until" date string is specified in UTC.
838 // 15 is length of date
1138 unsafeNormalize(Time date) argument
1308 setTimeFromLongValue(Time date, long val) argument
[all...]
/frameworks/base/core/java/android/app/admin/
H A DFreezePeriod.java31 * inclusive. If the end date is earlier than the start date, the period is considered wrapped
58 * Creates a freeze period by its start and end dates. If the end date is earlier than the start
59 * date, the freeze period is considered wrapping year-end.
69 * Returns the start date (inclusive) of this freeze period.
76 * Returns the end date (inclusive) of this freeze period.
133 * Instantiate the current interval to real calendar dates, given a calendar date
185 LocalDate date = LocalDate.ofYearDay(DUMMY_YEAR, dayOfYear);
186 return MonthDay.of(date.getMonth(), date
193 dayOfYearDisregardLeapYear(LocalDate date) argument
[all...]
H A DSystemUpdatePolicy.java515 throw new IllegalArgumentException("Given date is inside a freeze period");
663 private static LocalDate roundUpLeapDay(LocalDate date) { argument
664 if (date.isLeapYear() && date.getMonthValue() == 2 && date.getDayOfMonth() == 28) {
665 return date.plusDays(1);
667 return date;
/frameworks/base/tools/preload2/src/com/android/preload/
H A DDumpDataIO.java61 sb.append("<data package=\"" + d.packageName + "\" date=\"" +
62 DateFormat.getDateTimeInstance().format(d.date) +"\">\n");
101 String dateString = attributes.getValue("date");
108 Date date = DateFormat.getDateTimeInstance().parse(dateString);
109 openData = new DumpData(pkg, new HashMap<String, String>(), date);
H A DDumpTableModel.java83 return d.date;
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/picker/
H A DDatePicker.java39 * This class is a widget for selecting a date. The date can be selected by a
113 private boolean parseDate(String date, Calendar outDate) { argument
115 outDate.setTime(mDateFormat.parse(date));
118 Log.w(LOG_TAG, "Date: " + date + " not in format: " + DATE_FORMAT);
124 * Returns the best localized representation of the date for the given date format and the
127 * @param datePickerFormat The date format skeleton (e.g. "dMy") used to gather the
128 * appropriate representation of the date in the current locale.
130 * @return The best localized representation of the date fo
[all...]
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/
H A DTestDatabase.java75 public Long dateToTimestamp(Date date) { argument
76 if (date == null) {
79 return date.getTime();
/frameworks/base/core/java/android/util/apk/
H A DWrappedX509Certificate.java68 public void checkValidity(Date date) argument
70 mWrapped.checkValidity(date);
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DObjectViewer.java142 Date date = new Date(info.getDateCreated() * 1000);
143 view.setText(date.toString());
145 date = new Date(info.getDateModified() * 1000);
146 view.setText(date.toString());
/frameworks/base/services/core/java/com/android/server/net/watchlist/
H A DWatchlistLoggingHandler.java434 java.util.Calendar date = new GregorianCalendar();
436 date.set(java.util.Calendar.HOUR_OF_DAY, 0);
437 date.set(java.util.Calendar.MINUTE, 0);
438 date.set(java.util.Calendar.SECOND, 0);
439 date.set(java.util.Calendar.MILLISECOND, 0);
440 date.add(java.util.Calendar.DAY_OF_MONTH, -daysBefore);
441 return date.getTimeInMillis();
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
H A DCustomConverterProcessorTest.kt96 val date = Date::class.typeName()
97 singleClass(createConverter(string, date)) { converter, _ ->
99 assertThat(converter?.toTypeName, `is`(date as TypeName))
117 val date = Date::class.typeName()
119 val map = ParameterizedTypeName.get(Map::class.typeName(), string, date)
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DDayPickerView.java17 package com.android.datetimepicker.date;
35 import com.android.datetimepicker.date.DatePickerDialog.OnDateChangedListener;
36 import com.android.datetimepicker.date.MonthAdapter.CalendarDay;
271 protected void setMonthDisplayed(CalendarDay date) { argument
272 mCurrentMonthDisplayed = date.month;
374 * Attempts to return the date that has accessibility focus.
376 * @return The date that has accessibility focus, or {@code null} if no date
399 * Attempts to restore accessibility focus to a given date. No-op if
402 * @param day The date tha
[all...]
H A DYearPickerView.java17 package com.android.datetimepicker.date;
32 import com.android.datetimepicker.date.DatePickerDialog.OnDateChangedListener;
H A DTextViewWithCircularIndicator.java17 package com.android.datetimepicker.date;
/frameworks/base/core/java/android/net/http/
H A DSslCertificate.java50 * SimpleDateFormat pattern for an ISO 8601 date
65 * Not-before date from the validity period
70 * Not-after date from the validity period
149 * @param validNotBefore The not-before date from the certificate
151 * @param validNotAfter The not-after date from the certificate
165 * @param validNotBefore The not-before date from the certificate validity period
166 * @param validNotAfter The not-after date from the certificate validity period
199 * @return Not-before date from the certificate validity period or
207 * @return Not-before date from the certificate validity period in
218 * @return Not-after date fro
320 formatDate(Date date) argument
330 cloneDate(Date date) argument
[all...]
/frameworks/base/keystore/java/android/security/keystore/
H A DKeyGenParameterSpec.java410 * Returns the start date to be used on the X.509 certificate that will be put in the
419 * Returns the end date to be used on the X.509 certificate that will be put in the
876 * <p>By default, this date is {@code Jan 1 1970}.
879 public Builder setCertificateNotBefore(@NonNull Date date) { argument
880 if (date == null) {
881 throw new NullPointerException("date == null");
883 mCertificateNotBefore = Utils.cloneIfNotNull(date);
891 * <p>By default, this date is {@code Jan 1 2048}.
894 public Builder setCertificateNotAfter(@NonNull Date date) { argument
895 if (date
[all...]
H A DDelegatingX509Certificate.java73 public void checkValidity(Date date) throws CertificateExpiredException, argument
75 mDelegate.checkValidity(date);
H A DParcelableKeyGenParameterSpec.java50 private static void writeOptionalDate(Parcel out, Date date) { argument
51 if (date != null) {
53 out.writeLong(date.getTime());
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DSystemUpdatePolicyTest.java442 // "MM-DD" format for date
446 for (String date : dates) {
447 MonthDay currentDate = parseMonthDay(date);
498 private MonthDay parseMonthDay(String date) { argument
499 return MonthDay.of(Integer.parseInt(date.substring(0, 2)),
500 Integer.parseInt(date.substring(3, 5)));
504 private LocalDate parseLocalDate(String date) { argument
505 return parseMonthDay(date.substring(5)).atYear(Integer.parseInt(date.substring(0, 4)));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DNitzData.java94 int date = Integer.parseInt(nitzSubs[2]);
95 c.set(Calendar.DATE, date);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCarrierKeyDownloadMgrTest.java70 private String mJsonStr = "{ \"carrier-keys\": [ { \"certificate\": \"" + CERT + "\", \"key-type\": \"WLAN\", \"key-identifier\": \"key1=value\", \"expiration-date\": 1502577746000 }, { \"certificate\": \"" + CERT + "\", \"key-type\": \"WLAN\", \"key-identifier\": \"key1=value\", \"expiration-date\": 1502577746000 }]}";
72 private String mJsonStr1 = "{ \"carrier-keys\": [ { \"public-key\": \"" + CERT + "\", \"key-type\": \"WLAN\", \"key-identifier\": \"key1=value\", \"expiration-date\": 1502577746000 }, { \"public-key\": \"" + CERT + "\", \"key-type\": \"WLAN\", \"key-identifier\": \"key1=value\", \"expiration-date\": 1502577746000 }]}";
104 /* Checks if the expiration date is calculated correctly
105 * In this case the expiration date should be the next day.
115 Date date = cal.getTime();
120 "keyIdentifier", publicKey, date);
127 * Checks if the expiration date is calculated correctly
128 * In this case the expiration date shoul
[all...]
H A DImsiEncryptionInfoTest.java90 Date date = mImsiEncryptionInfo.getExpirationTime();
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DTwoWayBindingAdapterTest.java146 assertTrue(mBindingObject.date.get() != 0);
147 assertDatesMatch(mBindingObject.date.get(), mBinder.calendarView.getDate());
150 final long[] date = new long[2];
154 // Just randomly poke at the CalendarView to set the date
160 date[0] = mBinder.calendarView.getDate();
161 if (date[1] == 0) {
162 date[1] = date[0];
166 } while (date[0] == date[
[all...]
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/wizard/
H A DGuidedDatePickerTest.java136 // now scroll right or left to the corresponding date field as indicated by the input field
154 * @param field The date field over which the scrolling is performed
156 * @param columnIndices The date field indices corresponding to day, month, and the year
263 .date(initialDate.getTime())
309 .date(initialDate.getTime())
355 .date(initialDate.getTime())
401 .date(initialDate.getTime())
447 .date(initialDate.getTime())
493 .date(initialDate.getTime())
539 .date(initialDat
[all...]

Completed in 759 milliseconds

1234