/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
D | MonthAdapter.java | 55 int day; field in MonthAdapter.CalendarDay 68 day = calendar.get(Calendar.DAY_OF_MONTH); in CalendarDay() 71 public CalendarDay(int year, int month, int day) { in CalendarDay() argument 72 setDay(year, month, day); in CalendarDay() 78 day = date.day; in set() 81 public void setDay(int year, int month, int day) { in setDay() argument 84 this.day = day; in setDay() 102 day = calendar.get(Calendar.DAY_OF_MONTH); in setTime() 114 return day; in getDay() 131 public void setSelectedDay(CalendarDay day) { in setSelectedDay() argument [all …]
|
D | MonthView.java | 267 final int day = getDayFromLocation(event.getX(), event.getY()); in onTouchEvent() local 268 if (day >= 0) { in onTouchEvent() 269 onDayClick(day); in onTouchEvent() 380 final int day = i + 1; in setMonthParams() local 381 if (sameDay(day, today)) { in setMonthParams() 383 mToday = day; in setMonthParams() 392 public void setSelectedDay(int day) { in setSelectedDay() argument 393 mSelectedDay = day; in setSelectedDay() 408 private boolean sameDay(int day, Time today) { in sameDay() argument 411 day == today.monthDay; in sameDay() [all …]
|
D | DayPickerView.java | 178 … public boolean goTo(CalendarDay day, boolean animate, boolean setSelected, boolean forceScroll) { in goTo() argument 182 mSelectedDay.set(day); in goTo() 185 mTempDay.set(day); in goTo() 186 final int position = (day.year - mController.getMinYear()) in goTo() 187 * MonthAdapter.MONTHS_IN_YEAR + day.month; in goTo() 405 private boolean restoreAccessibilityFocus(CalendarDay day) { in restoreAccessibilityFocus() argument 406 if (day == null) { in restoreAccessibilityFocus() 414 if (((MonthView) child).restoreAccessibilityFocus(day)) { in restoreAccessibilityFocus() 440 private static String getMonthAndYearString(CalendarDay day) { in getMonthAndYearString() argument 442 cal.set(day.year, day.month, day.day); in getMonthAndYearString() [all …]
|
D | SimpleMonthView.java | 31 public void drawMonthDay(Canvas canvas, int year, int month, int day, in drawMonthDay() argument 33 if (mSelectedDay == day) { in drawMonthDay() 39 if (isOutOfRange(year, month, day)) { in drawMonthDay() 41 } else if (mHasToday && mToday == day) { in drawMonthDay() 46 canvas.drawText(String.format("%d", day), x, y, mMonthNumPaint); in drawMonthDay()
|
D | DatePickerController.java | 31 void onDayOfMonthSelected(int year, int month, int day); in onDayOfMonthSelected() argument
|
D | DatePickerDialog.java | 432 int day = mCalendar.get(Calendar.DAY_OF_MONTH); in adjustDayInMonthIfNeeded() local 434 if (day > daysInMonth) { in adjustDayInMonthIfNeeded() 459 public void onDayOfMonthSelected(int year, int month, int day) { in onDayOfMonthSelected() argument 462 mCalendar.set(Calendar.DAY_OF_MONTH, day); in onDayOfMonthSelected()
|
/frameworks/base/core/java/android/widget/ |
D | SimpleMonthView.java | 495 final int day = col - offset + 1; in onFocusChanged() local 496 mHighlightedDay = day < 1 ? day + DAYS_IN_WEEK : day; in onFocusChanged() 502 final int day = col - offset + (DAYS_IN_WEEK * maxWeeks) + 1; in onFocusChanged() 503 mHighlightedDay = day > mDaysInMonth ? day - DAYS_IN_WEEK : day; in onFocusChanged() 594 private boolean isFirstDayOfWeek(int day) { in isFirstDayOfWeek() argument 596 return (offset + day - 1) % DAYS_IN_WEEK == 0; in isFirstDayOfWeek() 599 private boolean isLastDayOfWeek(int day) { in isLastDayOfWeek() argument 601 return (offset + day) % DAYS_IN_WEEK == 0; in isLastDayOfWeek() 668 for (int day = 1, col = findDayOffset(); day <= mDaysInMonth; day++) { in drawDays() 679 final boolean isDayEnabled = isDayEnabled(day); in drawDays() [all …]
|
D | DayPickerPagerAdapter.java | 115 public void setSelectedDay(@Nullable Calendar day) { in setSelectedDay() argument 117 final int newPosition = getPositionForDay(day); in setSelectedDay() 131 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH); in setSelectedDay() 136 mSelectedDay = day; in setSelectedDay() 201 private int getPositionForDay(@Nullable Calendar day) { in getPositionForDay() argument 202 if (day == null) { in getPositionForDay() 206 final int yearOffset = day.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR); in getPositionForDay() 207 final int monthOffset = day.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); in getPositionForDay() 304 public void onDayClick(SimpleMonthView view, Calendar day) { 305 if (day != null) { [all …]
|
D | CalendarViewMaterialDelegate.java | 114 public void onDaySelected(DayPickerView view, Calendar day) { 116 final int year = day.get(Calendar.YEAR); 117 final int month = day.get(Calendar.MONTH); 118 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH);
|
D | DatePicker.java | 590 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument 592 this(superState, year, month, day, minDate, maxDate, 0, 0, 0); in SavedState() 598 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument 603 mSelectedDay = day; in SavedState()
|
D | DatePickerCalendarDelegate.java | 243 public void onDaySelected(DayPickerView view, Calendar day) { 244 mCurrentDate.setTimeInMillis(day.getTimeInMillis()); 260 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH); 263 if (day > daysInMonth) { 543 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH); in onSaveInstanceState() local 555 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), in onSaveInstanceState()
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 140 int day = 7 * row + column - mOffset + 1; in getDayAt() local 142 return (day > mNumDaysInMonth) ? in getDayAt() 143 day - mNumDaysInMonth : day; in getDayAt() 149 public int getRowOf(int day) { in getRowOf() argument 150 return (day + mOffset - 1) / 7; in getRowOf() 156 public int getColumnOf(int day) { in getColumnOf() argument 157 return (day + mOffset - 1) % 7; in getColumnOf() 189 int day = 7 * row + column - mOffset + 1; in isWithinCurrentMonth() local 190 if (day > mNumDaysInMonth) { in isWithinCurrentMonth()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | EventRecurrence.java | 168 public static int calendarDay2Day(int day) in calendarDay2Day() argument 170 switch (day) in calendarDay2Day() 187 throw new RuntimeException("bad day of week: " + day); in calendarDay2Day() 191 public static int timeDay2Day(int day) in timeDay2Day() argument 193 switch (day) in timeDay2Day() 210 throw new RuntimeException("bad day of week: " + day); in timeDay2Day() 213 public static int day2TimeDay(int day) in day2TimeDay() argument 215 switch (day) in day2TimeDay() 232 throw new RuntimeException("bad day of week: " + day); in day2TimeDay() 241 public static int day2CalendarDay(int day) in day2CalendarDay() argument [all …]
|
D | RecurrenceProcessor.java | 430 boolean get(Time iterator, int day) in get() argument 441 + "/" + iterator.year + " day=" + day); in get() 443 if (day < 1 || day > 28) { in get() 446 t.set(day, realMonth, realYear); in get() 450 day = t.monthDay; in get() 466 t.set(day, realMonth, realYear); in get() 482 return (mDays & (1<<day)) != 0; in get() 940 int day; in expand() local 946 day = dayIndex; in expand() 949 day = iteratorDay; in expand() [all …]
|
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
D | DatePickerBindingAdapter.java | 35 public static void setListeners(DatePicker view, int year, int month, int day, in setListeners() argument 41 if (day == 0) { in setListeners() 42 day = view.getDayOfMonth(); in setListeners() 45 view.init(year, month, day, listener); in setListeners() 53 view.init(year, month, day, oldListener); in setListeners()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 37 int year, month, day, hour, minute, second; in parseDateTime() local 39 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime() 62 tm.tm_mday = day; in parseDateTime()
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 533 private static String getDayOfWeekString(LocaleData ld, int day, int count, int kind) { in getDayOfWeekString() argument 536 return standalone ? ld.tinyStandAloneWeekdayNames[day] : ld.tinyWeekdayNames[day]; in getDayOfWeekString() 538 return standalone ? ld.longStandAloneWeekdayNames[day] : ld.longWeekdayNames[day]; in getDayOfWeekString() 540 return standalone ? ld.shortStandAloneWeekdayNames[day] : ld.shortWeekdayNames[day]; in getDayOfWeekString()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 551 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() local 552 if (day != julianDay) { in disableTestGetJulianDay() 553 Log.e("TimeTest", "Julian day: " + day + " at time " in disableTestGetJulianDay() 558 assertEquals(day, julianDay); in disableTestGetJulianDay() 597 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestSetJulianDay() local 598 if (day != julianDay) { in disableTestSetJulianDay() 604 assertEquals(day, julianDay); in disableTestSetJulianDay()
|
/frameworks/opt/telephony/src/java/android/telephony/ |
D | SmsCbEtwsInfo.java | 152 int day = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[2]); in getPrimaryNotificationTimestamp() local 174 time.monthDay = day; in getPrimaryNotificationTimestamp()
|
/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/services/core/java/com/android/server/notification/ |
D | ScheduleCalendar.java | 96 final int day = ((getDayOfWeek(time) - 1) + (daysOffset % n) + n) % n + 1; in isInSchedule() local 99 return mDays.contains(day) && time >= start && time < end; in isInSchedule()
|
/frameworks/base/docs/html/design/auto/ |
D | index.jd | 57 user’s location, time of day, and so on. The user can also use this screen to view 157 <p>All the UIs support different color schemes for day and night. The platform 158 provides the state (day or night) and makes adjustments automatically.</p> 162 <img src="{@docRoot}auto/images/ui/gearhead_day.png" alt="Audio app in day mode" /> 165 <strong>Figure 8.</strong> Example of the Google Play Music app in day mode.
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | TimeStatsAggregator.java | 107 private static String getDayOfWeek(int day) { in getDayOfWeek() argument 108 switch (day) { in getDayOfWeek()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncStorageEngine.java | 326 public final int day; field in SyncStorageEngine.DayStats 332 public DayStats(int day) { in DayStats() argument 333 this.day = day; in DayStats() 1101 int day = getCurrentDayLocked(); in stopSyncEvent() local 1103 mDayStats[0] = new DayStats(day); in stopSyncEvent() 1104 } else if (day != mDayStats[0].day) { in stopSyncEvent() 1106 mDayStats[0] = new DayStats(day); in stopSyncEvent() 2110 int day = in.readInt(); in readStatisticsLocked() local 2112 day = day - 2009 + 14245; // Magic! in readStatisticsLocked() 2114 DayStats ds = new DayStats(day); in readStatisticsLocked() [all …]
|
/frameworks/base/core/java/android/app/ |
D | DatePickerDialog.java | 217 final int day = savedInstanceState.getInt(DAY); in onRestoreInstanceState() local 218 mDatePicker.init(year, month, day, this); in onRestoreInstanceState()
|