/frameworks/av/media/mtp/ |
H A D | MtpUtils.cpp | 32 DD replaced by the day (01-31), T is a constant character 'T' delimiting time from date, 38 int year, month, day, hour, minute, second; local 42 &year, &month, &day, &hour, &minute, &second) != 6) 58 tm.tm_mday = day;
|
/frameworks/base/core/java/android/app/ |
H A D | DatePickerDialog.java | 47 private static final String DAY = "day"; 65 * @param dayOfMonth The day of the month that was set. 75 * @param dayOfMonth The initial day of the dialog. 101 * @param dayOfMonth The initial day of the dialog. 124 public void onDateChanged(DatePicker view, int year, int month, int day) { argument 125 mDatePicker.init(year, month, day, this); 126 updateTitle(year, month, day); 158 * @param dayOfMonth The date day of month. 164 private void updateTitle(int year, int month, int day) { argument 168 mCalendar.set(Calendar.DAY_OF_MONTH, day); [all...] |
/frameworks/base/core/java/android/service/notification/ |
H A D | ZenModeConfig.java | 263 final int day = tryParseInt(tokens[i], -1); 264 if (day == -1) return null; 265 rt[i] = day;
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 316 int day = value.indexOf('d'); 319 if (month >= 0 && day >= 0 && year >= 0) { 321 if (year < month && year < day) { 322 if (month < day) { 327 } else if (month < day) { 328 if (day < year) { 333 } else { // day < month 372 * array containing the day ({@code 'd'}), month ({@code 'M'}), and year ({@code 'y'})) 376 * not just the day, month, and year, and not necessarily in the same 539 case 'H': // hour in day ( 588 getDayOfWeekString(LocaleData ld, int day, int count, int kind) argument [all...] |
H A D | DateUtils.java | 178 * Return a string for the day of the week. 388 // above a week or exact dates below a day, so clamp 411 * Returns a string describing a day relative to the current day. For example if the day is 412 * today this function returns "Today", if the day was a week ago it returns "7 days ago", and 413 * if the day is in 2 weeks it returns "in 14 days". 416 * @param day the relative day to describe in UTC milliseconds 419 private static final String getRelativeDayString(Resources r, long day, lon argument [all...] |
H A D | TimeFormatter.java | 285 int day = (wallTime.getWeekDay() == 0) ? DAYSPERWEEK : wallTime.getWeekDay(); 286 numberFormatter.format("%d", day);
|
/frameworks/base/core/java/android/text/style/ |
H A D | TtsSpan.java | 330 * Argument used to specify the day of the month of a date. The value should 334 public static final String ARG_DAY = "android.arg.day"; 1147 Integer day, 1154 if (day != null) { 1155 setDay(day); 1178 * @param day The value to be set for day. See {@link #ARG_DAY}. 1182 public DateBuilder setDay(int day) { argument 1183 return setIntArgument(TtsSpan.ARG_DAY, day); 1146 DateBuilder(Integer weekday, Integer day, Integer month, Integer year) argument
|
/frameworks/base/core/java/android/util/ |
H A D | MonthDisplayHelper.java | 44 * @param weekStartDay What day of the week the week should start. 85 * @return The first day of the month using a constants such as 102 * box. For example, if the calendar is set to display the first day of 132 * @return The day at a particular row, column 140 int day = 7 * row + column - mOffset + 1; 142 return (day > mNumDaysInMonth) ? 143 day - mNumDaysInMonth : day; 147 * @return Which row day is in. 149 public int getRowOf(int day) { argument 156 getColumnOf(int day) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | CalendarViewLegacyDelegate.java | 56 * The number of milliseconds in a day.e 61 * The number of day in a week. 155 * The number of day per week to be shown. 185 * The header with week day names. 190 * Cached abbreviations for day of week names. 195 * Cached full-length day of week names. 200 * The first day of the week. 230 * Listener for changes in the selected day. 245 * The first day of the focused month. 794 // Check if the selected day i 1120 onDateTapped(Calendar day) argument [all...] |
H A D | CalendarViewMaterialDelegate.java | 251 public void onDaySelected(DayPickerView view, Calendar day) { 253 final int year = day.get(Calendar.YEAR); 254 final int month = day.get(Calendar.MONTH); 255 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH);
|
H A D | DatePicker.java | 57 * set to {@code spinner}, the date can be selected using year, month, and day 64 * set to {@code calendar}, the month and day can be selected using a 113 * @param dayOfMonth The day of the month that was set. 171 * @param dayOfMonth The initial day of the month. 185 * @param dayOfMonth The day of the month. 206 * @return The selected day of month. 316 * Sets the first day of week. 318 * @param firstDayOfWeek The first day of the week conforming to the 338 * Gets the first day of week. 340 * @return The first day o 1163 SavedState(Parcelable superState, int year, int month, int day) argument [all...] |
H A D | DatePickerCalendarDelegate.java | 46 * A delegate for picking up a date (day / month / year). 70 /** Layout that contains the current month, day, and year. */ 73 /** Clickable layout that contains the current day and year. */ 130 // Layout that contains the current date and day name header. 532 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH); 544 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), 597 // Auto-advance to month and day view. 601 // If the newly selected month / year does not contain the currently selected day number, 602 // change the selected day number to the last day o 689 SavedState(Parcelable superState, int year, int month, int day, long minDate, long maxDate, int currentView, int listPosition, int listPositionOffset) argument [all...] |
H A D | DayPickerView.java | 144 * Sets the listener to call when the user selects a day. 199 * @param day The day to move to 207 private boolean goTo(long day, boolean animate, boolean setSelected, boolean forceScroll) { argument 209 // Set the selected day 211 mSelectedDay.setTimeInMillis(day); 214 mTempDay.setTimeInMillis(day); 215 final int position = getPositionFromDay(day); 241 // Check if the selected day is now outside of our visible range 423 * {@code day} i 428 restoreAccessibilityFocus(Calendar day) argument 468 getMonthAndYearString(Calendar day) argument 534 onDaySelected(DayPickerView view, Calendar day) argument [all...] |
H A D | SimpleMonthAdapter.java | 68 * Updates the selected day and related parameters. 70 * @param day The day to highlight 72 public void setSelectedDay(Calendar day) { argument 73 mSelectedDay = day; 79 * Sets the listener to call when the user selects a day. 199 public void onDayClick(SimpleMonthView view, Calendar day) { 200 if (day != null && isCalendarInRange(day)) { 201 setSelectedDay(day); 211 onDaySelected(SimpleMonthAdapter view, Calendar day) argument [all...] |
H A D | SimpleMonthView.java | 51 * A calendar-like view displaying a specified month and the appropriate selectable day numbers 77 /** Single-letter (when available) formatter for the day of week label. */ 105 // Which day is selected [0-6] or -1 if no day is selected 108 // Which day is today [0-6] or -1 if no day is today 111 // Which day of the week to start on [0-6] 122 // First enabled day 125 // Last enabled day 135 // Optional listener for handling day clic 302 isValidDayOfWeek(int day) argument 409 sameDay(int day, Time today) argument 524 onDayClick(int day) argument 564 restoreAccessibilityFocus(Calendar day) argument 655 getItemBounds(int day, Rect rect) argument 677 getItemDescription(int day) argument 694 onDayClick(SimpleMonthView view, Calendar day) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/text/format/ |
H A D | TimeTest.java | 99 // Use normalize(true) with these tests to change the date by 1 day. 103 // Nov 4, 12am + 0 day = Nov 4, 12am 104 // Nov 5, 12am + 0 day = Nov 5, 12am 108 // Nov 3, 12am + 1 day = Nov 4, 12am 109 // Nov 4, 12am + 1 day = Nov 5, 12am 110 // Nov 5, 12am + 1 day = Nov 6, 12am 115 // Nov 3, 1am + 1 day = Nov 4, 1am 116 // Nov 4, 1am + 1 day = Nov 5, 1am 117 // Nov 5, 1am + 1 day = Nov 6, 1am 122 // Nov 3, 2am + 1 day [all...] |
/frameworks/base/services/core/java/com/android/server/content/ |
H A D | SyncManager.java | 486 // Pick a random second in a day to seed all periodic syncs 1797 int today = dses[0].day; 1801 // Print each day in the current week. 1805 int delta = today-ds.day; 1823 int delta = weekDay-ds.day;
|
H A D | SyncStorageEngine.java | 87 private static final long DEFAULT_POLL_FREQUENCY_SECONDS = 60 * 60 * 24; // One day 354 // Old version is one sync a day. Empty bundle gets replaced by any addPeriodicSync() 389 public final int day; field in class:SyncStorageEngine.DayStats 395 public DayStats(int day) { argument 396 this.day = day; 1360 int day = getCurrentDayLocked(); 1362 mDayStats[0] = new DayStats(day); 1363 } else if (day != mDayStats[0].day) { [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | DowntimeCalendar.java | 87 final int day = ((getDayOfWeek(time) - 1) + (daysOffset % n) + n) % n + 1; 90 return mDays.contains(day) && time >= start && time < end;
|
H A D | NotificationUsageStats.java | 614 // Bucket by day by looking at 'floor((nowMs - eventTimeMs) / dayMs)' 616 "AS day, " + 621 "GROUP BY " + COL_EVENT_USER_ID + ", day, " + COL_PKG; 628 int day = cursor.getInt(2); 631 ",day=" + day + ",count=" + count + "}");
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | DatePicker.java | 41 * A view for selecting a month / year / day based on a calendar like layout. 81 * @param dayOfMonth The day of the month that was set. 104 mDayPicker = (NumberPicker) findViewById(R.id.day); 143 // Adjust max day of the month 154 // Adjust max day for leap years if needed 297 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, argument 302 mDay = day; 395 * @param dayOfMonth The initial day of the month. 407 * @param dayOfMonth The initial day of the month.
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | TimeStatsAggregator.java | 107 private static String getDayOfWeek(int day) { argument 108 switch (day) { 183 // get all possible day values 188 // set the fake time of day 194 // set the fake day of week 195 // set to "" to disable the fake day
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | EventRecurrence.java | 168 public static int calendarDay2Day(int day) argument 170 switch (day) 187 throw new RuntimeException("bad day of week: " + day); 191 public static int timeDay2Day(int day) argument 193 switch (day) 210 throw new RuntimeException("bad day of week: " + day); 213 public static int day2TimeDay(int day) argument 215 switch (day) 241 day2CalendarDay(int day) argument 274 day2String(int day) argument [all...] |
H A D | RecurrenceProcessor.java | 321 * Compute the day of the week for the first day of the month. "instance" has a 322 * day number and a DotW, so we compute the DotW of the 1st from that. Note DotW 325 * The basic calculation is to take the instance's "day of the week" number, subtract 326 * (day of the month - 1) mod 7, and then make sure it's positive. We can simplify 341 * Generate a set according to the BYDAY rules. For each day of the month, determine 342 * if its day of the week is included. If so, append it to the day set. 349 // For each month day, see if it's part of the set. (This makes some assumptions 430 boolean get(Time iterator, int day) argument 1264 weekDay(int year, int month, int day) argument 1280 yearDay(int year, int month, int day) argument [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | DatePickerController.java | 31 void onDayOfMonthSelected(int year, int month, int day); argument
|