Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 257) sorted by relevance

1234567891011

/frameworks/base/core/java/android/security/keymaster/
DKeymasterDateArgument.java29 public final Date date; field in KeymasterDateArgument
31 public KeymasterDateArgument(int tag, Date date) { in KeymasterDateArgument() argument
39 this.date = date; in KeymasterDateArgument()
45 date = new Date(in.readLong()); in KeymasterDateArgument()
50 out.writeLong(date.getTime()); in writeValue()
/frameworks/base/services/people/java/com/android/server/people/data/
DCallLogQueryHelper.java81 long date = cursor.getLong(dateIndex); in querySince() local
91 mLastCallTimestamp = Math.max(mLastCallTimestamp, date); in querySince()
92 if (addEvent(phoneNumber, date, durationSeconds, callType)) { in querySince()
107 private boolean addEvent(String phoneNumber, long date, long durationSeconds, int callType) { in addEvent() argument
108 if (!validateEvent(phoneNumber, date, callType)) { in addEvent()
112 Event event = new Event.Builder(date, eventType) in addEvent()
119 private boolean validateEvent(String phoneNumber, long date, int callType) { in validateEvent() argument
121 && date > 0L in validateEvent()
DSmsQueryHelper.java84 long date = cursor.getLong(dateIndex); in querySince() local
95 mLastMessageTimestamp = Math.max(mLastMessageTimestamp, date); in querySince()
96 if (address != null && addEvent(address, date, type)) { in querySince()
111 private boolean addEvent(String phoneNumber, long date, int type) { in addEvent() argument
112 if (!validateEvent(phoneNumber, date, type)) { in addEvent()
116 mEventConsumer.accept(phoneNumber, new Event(date, eventType)); in addEvent()
120 private boolean validateEvent(String phoneNumber, long date, int type) { in validateEvent() argument
122 && date > 0L in validateEvent()
DMmsQueryHelper.java90 long date = cursor.getLong(dateIndex) * MILLIS_PER_SECONDS; in querySince() local
96 mLastMessageTimestamp = Math.max(mLastMessageTimestamp, date); in querySince()
98 if (address != null && addEvent(address, date, msgBox)) { in querySince()
143 private boolean addEvent(String phoneNumber, long date, int msgBox) { in addEvent() argument
144 if (!validateEvent(phoneNumber, date, msgBox)) { in addEvent()
148 mEventConsumer.accept(phoneNumber, new Event(date, eventType)); in addEvent()
152 private boolean validateEvent(String phoneNumber, long date, int msgBox) { in validateEvent() argument
154 && date > 0L in validateEvent()
/frameworks/base/core/java/android/widget/
DCalendarView.java546 public void setDate(long date) { in setDate() argument
547 mDelegate.setDate(date); in setDate()
564 public void setDate(long date, boolean animate, boolean center) { in setDate() argument
565 mDelegate.setDate(date, animate, center); in setDate()
577 public boolean getBoundsForDate(long date, Rect outBounds) { in getBoundsForDate() argument
578 return mDelegate.getBoundsForDate(date, outBounds); in getBoundsForDate()
638 void setDate(long date); in setDate() argument
639 void setDate(long date, boolean animate, boolean center); in setDate() argument
642 boolean getBoundsForDate(long date, Rect outBounds); in getBoundsForDate() argument
791 public static boolean parseDate(String date, Calendar outDate) { in parseDate() argument
[all …]
DCalendarViewMaterialDelegate.java94 public void setDate(long date) { in setDate() argument
95 mDayPickerView.setDate(date, true); in setDate()
99 public void setDate(long date, boolean animate, boolean center) { in setDate() argument
100 mDayPickerView.setDate(date, animate); in setDate()
114 public boolean getBoundsForDate(long date, Rect outBounds) { in getBoundsForDate() argument
115 boolean result = mDayPickerView.getBoundsForDate(date, outBounds); in getBoundsForDate()
DCalendarViewLegacyDelegate.java499 Calendar date = mAdapter.mSelectedDate; in setMinDate() local
500 if (date.before(mMinDate)) { in setMinDate()
505 if (date.before(mMinDate)) { in setMinDate()
512 goTo(date, false, true, false); in setMinDate()
530 Calendar date = mAdapter.mSelectedDate; in setMaxDate() local
531 if (date.after(mMaxDate)) { in setMaxDate()
538 goTo(date, false, true, false); in setMaxDate()
579 public void setDate(long date) { in setDate() argument
580 setDate(date, false, false); in setDate()
584 public void setDate(long date, boolean animate, boolean center) { in setDate() argument
[all …]
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DRecurrenceProcessorTest.java39 for (long date : dates) { in getFormattedDates()
40 time.set(date); in getFormattedDates()
2478 for (long date : dates) { in performanceTextExpand()
2480 if (date == -1) { in performanceTextExpand()
2499 Time date = new Time(tz); in performanceTestNormalize() local
2500 date.parse("20090404T100000"); in performanceTestNormalize()
2505 date.add(Time.MONTH, 1); in performanceTestNormalize()
2506 date.add(Time.MONTH_DAY, 100); in performanceTestNormalize()
2507 date.normalize(); in performanceTestNormalize()
2508 date.add(Time.MONTH, -1); in performanceTestNormalize()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DZipUtils.h73 const uint32_t date = when >> 16; in zipTimeToTimespec() local
76 timespec->tm_year = ((date >> 9) & 0x7F) + 80; // Zip is years since 1980 in zipTimeToTimespec()
77 timespec->tm_mon = ((date >> 5) & 0x0F) - 1; in zipTimeToTimespec()
78 timespec->tm_mday = date & 0x1F; in zipTimeToTimespec()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DCombinedShadeHeadersConstraintManagerImpl.kt42 connect(R.id.date, ConstraintSet.END, R.id.barrier, ConstraintSet.START) in emptyCutoutConstraints()
50 connect(R.id.shade_header_system_icons, ConstraintSet.START, R.id.date, in emptyCutoutConstraints()
52 connect(R.id.privacy_container, ConstraintSet.START, R.id.date, ConstraintSet.END) in emptyCutoutConstraints()
54 constrainedWidth(R.id.date, true) in emptyCutoutConstraints()
85 connect(R.id.date, ConstraintSet.END, centerStart, ConstraintSet.START) in centerCutoutConstraints()
98 constrainedWidth(R.id.date, true) in centerCutoutConstraints()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java1122 static void unsafeNormalize(Time date) { in unsafeNormalize() argument
1123 int second = date.getSecond(); in unsafeNormalize()
1124 int minute = date.getMinute(); in unsafeNormalize()
1125 int hour = date.getHour(); in unsafeNormalize()
1126 int monthDay = date.getDay(); in unsafeNormalize()
1127 int month = date.getMonth(); in unsafeNormalize()
1128 int year = date.getYear(); in unsafeNormalize()
1189 date.setSecond(second); in unsafeNormalize()
1190 date.setMinute(minute); in unsafeNormalize()
1191 date.setHour(hour); in unsafeNormalize()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DAmbientBrightnessStatsTrackerTest.java199 LocalDate date = mTestInjector.getLocalDate(); in testReadAmbientBrightnessStats() local
206 + date.minusDays(AmbientBrightnessStatsTracker.MAX_DAYS_TO_TRACK) in testReadAmbientBrightnessStats()
212 + date.minusDays(1) in testReadAmbientBrightnessStats()
217 + "<ambient-brightness-day-stats user=\"10\" local-date=\"" + date in testReadAmbientBrightnessStats()
225 assertEquals(new AmbientBrightnessDayStats(date.minusDays(1), in testReadAmbientBrightnessStats()
228 assertEquals(new AmbientBrightnessDayStats(date, in testReadAmbientBrightnessStats()
236 LocalDate date = mTestInjector.getLocalDate(); in testFailedReadAmbientBrightnessStatsWithException() local
243 + "<ambient-brightness-day-stats user=\"10\" local-date=\"" + date in testFailedReadAmbientBrightnessStatsWithException()
260 + date.minusDays(1) in testFailedReadAmbientBrightnessStatsWithException()
265 + "<ambient-brightness-day-stats user=\"10\" local-date=\"" + date in testFailedReadAmbientBrightnessStatsWithException()
[all …]
/frameworks/native/libs/ui/tests/
DDisplayIdentification_test.cpp351 const auto& date = std::get<ManufactureWeekAndYear>(info.manufactureOrModelDate); in TEST() local
352 EXPECT_EQ(2012, date.year); in TEST()
353 EXPECT_EQ(2, date.week); in TEST()
365 const auto& date = std::get<ManufactureWeekAndYear>(info.manufactureOrModelDate); in TEST() local
366 EXPECT_EQ(2011, date.year); in TEST()
367 EXPECT_EQ(41, date.week); in TEST()
379 const auto& date = std::get<ManufactureYear>(info.manufactureOrModelDate); in TEST() local
380 EXPECT_EQ(2019, date.year); in TEST()
392 const auto& date = std::get<ManufactureWeekAndYear>(info.manufactureOrModelDate); in TEST() local
393 EXPECT_EQ(2019, date.year); in TEST()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DCombinedShadeHeaderConstraintsTest.kt95 assertThat(getConstraint(R.id.date).layout.startToStart).isEqualTo(PARENT_ID) in <lambda>()
96 assertThat(getConstraint(R.id.date).layout.horizontalBias).isEqualTo(0.5f) in <lambda>()
179 assertThat(getConstraint(R.id.date).layout.endToStart).isEqualTo(R.id.barrier) in <lambda>()
181 .isEqualTo(R.id.date) in <lambda>()
182 assertThat(getConstraint(R.id.privacy_container).layout.startToEnd).isEqualTo(R.id.date) in <lambda>()
269 assertThat(getConstraint(R.id.date).layout.endToStart).isEqualTo(R.id.center_left) in <lambda>()
280 assertThat(getConstraint(R.id.date).layout.endToStart).isNotEqualTo(R.id.center_left) in <lambda>()
281 assertThat(getConstraint(R.id.date).layout.endToStart).isNotEqualTo(R.id.center_right) in <lambda>()
308 assertThat(getConstraint(R.id.date).layout.endToStart).isEqualTo(R.id.center_right) in <lambda>()
319 assertThat(getConstraint(R.id.date).layout.endToStart).isNotEqualTo(R.id.center_left) in <lambda>()
[all …]
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.sh32 date > /data/loopreport.txt
34 date >> /data/loopreport.txt
/frameworks/base/core/java/android/provider/
DTelephony.java439 Long date, boolean read, boolean deliveryReport) { in addMessageToUri() argument
441 resolver, uri, address, body, subject, date, read, deliveryReport, -1L); in addMessageToUri()
462 Long date, boolean read, boolean deliveryReport) { in addMessageToUri() argument
464 date, read, deliveryReport, -1L); in addMessageToUri()
485 Long date, boolean read, boolean deliveryReport, long threadId) { in addMessageToUri() argument
488 date, read, deliveryReport, threadId); in addMessageToUri()
510 Long date, boolean read, boolean deliveryReport, long threadId) { in addMessageToUri() argument
516 if (date != null) { in addMessageToUri()
517 values.put(DATE, date); in addMessageToUri()
628 String address, String body, String subject, Long date, in addMessage() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DPowerUtil.java178 Date date = Date.from(Instant.ofEpochMilli(roundedTimeOfDayMs)); in getDateTimeStringFromMs() local
179 return fmt.format(date); in getDateTimeStringFromMs()
192 Date date = Date.from(Instant.ofEpochMilli(roundedTimeOfDayMs)); in getRegularTimeRemainingShortString() local
193 CharSequence timeString = fmt.format(date); in getRegularTimeRemainingShortString()
238 Date date = Date.from(Instant.ofEpochMilli(targetTimeMs)); in getTargetTimeShortString() local
239 return fmt.format(date); in getTargetTimeShortString()
/frameworks/av/services/audioflinger/afutils/
DNBAIO_Tee.cpp152 const char *date = name + prefixLen; in isManagedFilename() local
153 return std::all_of(date, date + 8, isdigit) in isManagedFilename()
154 && date[8] == '_' in isManagedFilename()
155 && std::all_of(date + 9, date + 15, isdigit) in isManagedFilename()
156 && date[15] == '_' in isManagedFilename()
157 && std::all_of(date + 16, date + 19, isdigit); in isManagedFilename()
/frameworks/base/core/java/android/service/autofill/
DDateValueSanitizer.java72 final Date date = new Date(value.getDateValue()); in sanitize() local
75 final String converted = mDateFormat.format(date); in sanitize()
76 if (sDebug) Log.d(TAG, "Transformed " + date + " to " + converted); in sanitize()
DDateTransformation.java79 final Date date = new Date(value.getDateValue()); in apply() local
80 final String transformed = mDateFormat.format(date); in apply()
81 if (sDebug) Log.d(TAG, "Transformed " + date + " to " + transformed); in apply()
/frameworks/ex/common/java/com/android/common/
DLegacyHttpDateTime.java88 int date = 1; in parse() local
95 date = getDate(rfcMatcher.group(1)); in parse()
103 date = getDate(ansicMatcher.group(2)); in parse()
115 calendar.set(Calendar.DAY_OF_MONTH, date); in parse()
/frameworks/native/libs/ui/
DDisplayIdentification.cpp82 DeviceProductInfo::ManufactureYear date; in buildDeviceProductInfo() local
83 date.year = year; in buildDeviceProductInfo()
84 info.manufactureOrModelDate = date; in buildDeviceProductInfo()
86 DeviceProductInfo::ManufactureWeekAndYear date; in buildDeviceProductInfo() local
87 date.year = year; in buildDeviceProductInfo()
88 date.week = edid.manufactureWeek; in buildDeviceProductInfo()
89 info.manufactureOrModelDate = date; in buildDeviceProductInfo()
/frameworks/base/packages/SystemUI/plugin/
Dupdate_plugin_lib.sh13 mv SystemUIPluginLib.jar ./SystemUIPluginLib-`date +%m-%d-%Y`.jar
15 ln -s SystemUIPluginLib-`date +%m-%d-%Y`.jar SystemUIPluginLib-latest.jar
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistLoggingHandler.java450 java.util.Calendar date = new GregorianCalendar(); in getMidnightTimestamp() local
452 date.set(java.util.Calendar.HOUR_OF_DAY, 0); in getMidnightTimestamp()
453 date.set(java.util.Calendar.MINUTE, 0); in getMidnightTimestamp()
454 date.set(java.util.Calendar.SECOND, 0); in getMidnightTimestamp()
455 date.set(java.util.Calendar.MILLISECOND, 0); in getMidnightTimestamp()
456 date.add(java.util.Calendar.DAY_OF_MONTH, -daysBefore); in getMidnightTimestamp()
457 return date.getTimeInMillis(); in getMidnightTimestamp()
/frameworks/base/core/java/android/app/admin/
DFreezePeriod.java185 LocalDate date = LocalDate.ofYearDay(SENTINEL_YEAR, dayOfYear); in dayOfYearToMonthDay() local
186 return MonthDay.of(date.getMonth(), date.getDayOfMonth()); in dayOfYearToMonthDay()
193 private static int dayOfYearDisregardLeapYear(LocalDate date) { in dayOfYearDisregardLeapYear() argument
194 return date.withYear(SENTINEL_YEAR).getDayOfYear(); in dayOfYearDisregardLeapYear()

1234567891011