/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 141 int day = 7 * row + column - mOffset + 1; in getDayAt() local 143 return (day > mNumDaysInMonth) ? in getDayAt() 144 day - mNumDaysInMonth : day; in getDayAt() 150 public int getRowOf(int day) { in getRowOf() argument 151 return (day + mOffset - 1) / 7; in getRowOf() 157 public int getColumnOf(int day) { in getColumnOf() argument 158 return (day + mOffset - 1) % 7; in getColumnOf() 190 int day = 7 * row + column - mOffset + 1; in isWithinCurrentMonth() local 191 if (day > mNumDaysInMonth) { in isWithinCurrentMonth()
|
/frameworks/base/core/java/android/widget/ |
D | SimpleMonthView.java | 507 final int day = col - offset + 1; in onFocusChanged() local 508 mHighlightedDay = day < 1 ? day + DAYS_IN_WEEK : day; in onFocusChanged() 514 final int day = col - offset + (DAYS_IN_WEEK * maxWeeks) + 1; in onFocusChanged() 515 mHighlightedDay = day > mDaysInMonth ? day - DAYS_IN_WEEK : day; in onFocusChanged() 610 private boolean isFirstDayOfWeek(int day) { in isFirstDayOfWeek() argument 612 return (offset + day - 1) % DAYS_IN_WEEK == 0; in isFirstDayOfWeek() 615 private boolean isLastDayOfWeek(int day) { in isLastDayOfWeek() argument 617 return (offset + day) % DAYS_IN_WEEK == 0; in isLastDayOfWeek() 684 for (int day = 1, col = findDayOffset(); day <= mDaysInMonth; day++) { in drawDays() 695 final boolean isDayEnabled = isDayEnabled(day); in drawDays() [all …]
|
D | DayPickerPagerAdapter.java | 111 public boolean getBoundsForDate(Calendar day, Rect outBounds) { in getBoundsForDate() argument 112 final int position = getPositionForDay(day); in getBoundsForDate() 117 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH); in getBoundsForDate() 127 public void setSelectedDay(@Nullable Calendar day) { in setSelectedDay() argument 129 final int newPosition = getPositionForDay(day); in setSelectedDay() 143 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH); in setSelectedDay() 148 mSelectedDay = day; in setSelectedDay() 213 private int getPositionForDay(@Nullable Calendar day) { in getPositionForDay() argument 214 if (day == null) { in getPositionForDay() 218 final int yearOffset = day.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR); in getPositionForDay() [all …]
|
D | CalendarViewMaterialDelegate.java | 134 public void onDaySelected(DayPickerView view, Calendar day) { 136 final int year = day.get(Calendar.YEAR); 137 final int month = day.get(Calendar.MONTH); 138 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH);
|
D | DatePickerCalendarDelegate.java | 238 public void onDaySelected(DayPickerView view, Calendar day) { 239 mCurrentDate.setTimeInMillis(day.getTimeInMillis()); 255 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH); 258 if (day > daysInMonth) { 541 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH); in onSaveInstanceState() local 553 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), in onSaveInstanceState()
|
D | DatePicker.java | 711 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument 713 this(superState, year, month, day, minDate, maxDate, 0, 0, 0); in SavedState() 719 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument 724 mSelectedDay = day; in SavedState()
|
D | DayPickerView.java | 172 public void onDaySelected(DayPickerPagerAdapter adapter, Calendar day) { in DayPickerView() 174 mOnDaySelectedListener.onDaySelected(DayPickerView.this, day); in DayPickerView() 451 void onDaySelected(DayPickerView view, Calendar day);
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | EventRecurrence.java | 166 public static int calendarDay2Day(int day) in calendarDay2Day() argument 168 switch (day) in calendarDay2Day() 185 throw new RuntimeException("bad day of week: " + day); in calendarDay2Day() 189 public static int timeDay2Day(int day) in timeDay2Day() argument 191 switch (day) in timeDay2Day() 208 throw new RuntimeException("bad day of week: " + day); in timeDay2Day() 211 public static int day2TimeDay(int day) in day2TimeDay() argument 213 switch (day) in day2TimeDay() 230 throw new RuntimeException("bad day of week: " + day); in day2TimeDay() 239 public static int day2CalendarDay(int day) in day2CalendarDay() argument [all …]
|
D | RecurrenceProcessor.java | 428 boolean get(Time iterator, int day) in get() argument 439 + "/" + iterator.getYear() + " day=" + day); in get() 441 if (day < 1 || day > 28) { in get() 444 t.set(day, realMonth, realYear); in get() 448 day = t.getDay(); in get() 464 t.set(day, realMonth, realYear); in get() 480 return (mDays & (1<<day)) != 0; in get() 938 int day; in expand() local 944 day = dayIndex; in expand() 947 day = iteratorDay; in expand() [all …]
|
D | Time.java | 156 public void set(int day, int month, int year) { in set() argument 158 mCalendar.set(year, month, day); in set() 162 public void set(int second, int minute, int hour, int day, int month, int year) { in set() argument 164 mCalendar.set(year, month, day, hour, minute, second); in set() 319 public void setDay(int day) { in setDay() argument 320 this.monthDay = day; in setDay() 321 mCalendar.set(Calendar.DAY_OF_MONTH, day); in setDay()
|
/frameworks/base/services/accessibility/ |
D | OWNERS | 11 # day-to-day changes for code review:
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | MissedIncomingCallSmsFilter.java | 128 private long getEpochTime(String year, String month, String day, String hour, String minute) { in getEpochTime() argument 141 time = LocalDateTime.parse(year + month + day + hour + minute, formatter); in getEpochTime() 181 String year = null, month = null, day = null, hour = null, minute = null; in processSms() local 185 day = matcher.group(SMS_DAY_TAG); in processSms() 189 Rlog.v(TAG, "month=" + month + ", day=" + day + ", hour=" + hour in processSms() 209 missedCallTime = getEpochTime(year, month, day, hour, minute); in processSms()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleCalendarTest.java | 869 Calendar day = getDaylightSavingsForwardDay(); in testClosestActualTime_regularTimesAndSkippedTime() local 870 day.set(Calendar.HOUR_OF_DAY, 15); in testClosestActualTime_regularTimesAndSkippedTime() 871 day.set(Calendar.MINUTE, 25); in testClosestActualTime_regularTimesAndSkippedTime() 872 day.set(Calendar.SECOND, 0); in testClosestActualTime_regularTimesAndSkippedTime() 873 day.set(Calendar.MILLISECOND, 0); in testClosestActualTime_regularTimesAndSkippedTime() 874 assertEquals(day.getTimeInMillis(), in testClosestActualTime_regularTimesAndSkippedTime() 875 mScheduleCalendar.getClosestActualTime(day.getTimeInMillis(), 15, 25)); in testClosestActualTime_regularTimesAndSkippedTime() 878 day.add(Calendar.DATE, 1); in testClosestActualTime_regularTimesAndSkippedTime() 879 day.set(Calendar.HOUR_OF_DAY, 3); in testClosestActualTime_regularTimesAndSkippedTime() 880 day.set(Calendar.MINUTE, 0); in testClosestActualTime_regularTimesAndSkippedTime() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineTestSupport.java | 185 Builder setActualTimeUtc(int year, int monthInYear, int day, int hourOfDay, in setActualTimeUtc() argument 187 mActualTimeMillis = createUnixEpochTime(year, monthInYear, day, hourOfDay, minute, in setActualTimeUtc() 282 private static long createUnixEpochTime(int year, int monthInYear, int day, int hourOfDay, in createUnixEpochTime() argument 286 cal.set(year, monthInYear - 1, day, hourOfDay, minute, second); in createUnixEpochTime()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 561 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() local 562 if (day != julianDay) { in disableTestGetJulianDay() 563 Log.e("TimeTest", "Julian day: " + day + " at time " in disableTestGetJulianDay() 568 assertEquals(day, julianDay); in disableTestGetJulianDay() 607 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestSetJulianDay() local 608 if (day != julianDay) { in disableTestSetJulianDay() 614 assertEquals(day, julianDay); in disableTestSetJulianDay()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 57 int year, month, day, hour, minute, second; in parseDateTime() local 59 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime() 82 tm.tm_mday = day; in parseDateTime()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsCbEtwsInfo.java | 186 int day = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[2]); in getPrimaryNotificationTimestamp() local 210 day, in getPrimaryNotificationTimestamp()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncLogger.java | 221 final long day = now % DateUtils.DAY_IN_MILLIS; in openLogLocked() local 222 if ((mLogWriter != null) && (day == mCurrentLogFileDayTimestamp)) { in openLogLocked() 229 mCurrentLogFileDayTimestamp = day; in openLogLocked()
|
/frameworks/base/core/java/android/text/style/ |
D | TtsSpan.java | 1157 Integer day, in DateBuilder() argument 1164 if (day != null) { in DateBuilder() 1165 setDay(day); in DateBuilder() 1192 public DateBuilder setDay(int day) { in setDay() argument 1193 return setIntArgument(TtsSpan.ARG_DAY, day); in setDay()
|
/frameworks/base/core/proto/android/server/ |
D | syncstorageengine.proto | 29 optional int32 day = 1; // day of the year - defined by SyncStorageEngine#getCurrentDayLocked() field
|
/frameworks/base/core/java/android/app/ |
D | DatePickerDialog.java | 219 final int day = savedInstanceState.getInt(DAY); in onRestoreInstanceState() local 220 mDatePicker.init(year, month, day, this); in onRestoreInstanceState()
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 172 final int day = ((getDayOfWeek(time) - 1) + (daysOffset % n) + n) % n + 1; in isInSchedule() local 175 return mDays.contains(day) && time >= start && time < end; in isInSchedule()
|
D | SystemZenRules.java | 160 final int day = daysOfWeek[i]; in getShortDaysSummary() local 168 if (day == days[j]) { in getShortDaysSummary()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | DatePicker.java | 104 mDayPicker = findViewById(R.id.day); in DatePicker() 297 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, in SavedState() argument 302 mDay = day; in SavedState()
|
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/ |
D | PersistLogSection.java | 242 int day = getDigit(line, 3) * 10 + getDigit(line, 4); in getEpochSec() local 244 int mmdd = month * 100 + day; in getEpochSec() 248 calendar.set(Calendar.DAY_OF_MONTH, day); in getEpochSec()
|