Home
last modified time | relevance | path

Searched refs:days (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/notification/
DZenModeScheduleRuleSettings.java153 final int[] days = mSchedule.days; in updateDays() local
154 if (days != null && days.length > 0) { in updateDays()
160 for (int j = 0; j < days.length; j++) { in updateDays()
161 if (day == days[j]) { in updateDays()
229 .setView(new ZenModeScheduleDaysSelection(mContext, mSchedule.days) { in showDaysDialog()
231 protected void onChanged(final int[] days) { in showDaysDialog()
233 if (Arrays.equals(days, mSchedule.days)) return; in showDaysDialog()
234 if (DEBUG) Log.d(TAG, "days.onChanged days=" + Arrays.asList(days)); in showDaysDialog()
235 mSchedule.days = days; in showDaysDialog()
DZenModeScheduleDaysSelection.java40 public ZenModeScheduleDaysSelection(Context context, int[] days) { in ZenModeScheduleDaysSelection() argument
47 if (days != null) { in ZenModeScheduleDaysSelection()
48 for (int i = 0; i < days.length; i++) { in ZenModeScheduleDaysSelection()
49 mDays.put(days[i], true); in ZenModeScheduleDaysSelection()
100 protected void onChanged(int[] days) { in onChanged() argument
DZenRuleSelectionDialog.java157 schedule.days = ZenModeConfig.ALL_DAYS; in defaultNewSchedule()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeScheduleRuleSettings.java153 final int[] days = mSchedule.days; in updateDays() local
154 if (days != null && days.length > 0) { in updateDays()
160 for (int j = 0; j < days.length; j++) { in updateDays()
161 if (day == days[j]) { in updateDays()
229 .setView(new ZenModeScheduleDaysSelection(mContext, mSchedule.days) { in showDaysDialog()
231 protected void onChanged(final int[] days) { in showDaysDialog()
233 if (Arrays.equals(days, mSchedule.days)) return; in showDaysDialog()
234 if (DEBUG) Log.d(TAG, "days.onChanged days=" + Arrays.asList(days)); in showDaysDialog()
235 mSchedule.days = days; in showDaysDialog()
DZenModeScheduleDaysSelection.java40 public ZenModeScheduleDaysSelection(Context context, int[] days) { in ZenModeScheduleDaysSelection() argument
47 if (days != null) { in ZenModeScheduleDaysSelection()
48 for (int i = 0; i < days.length; i++) { in ZenModeScheduleDaysSelection()
49 mDays.put(days[i], true); in ZenModeScheduleDaysSelection()
100 protected void onChanged(int[] days) { in onChanged() argument
DZenRuleSelectionDialog.java157 schedule.days = ZenModeConfig.ALL_DAYS; in defaultNewSchedule()
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/
DMainActivity.java61 final long days = duration.toDays();
62 duration = duration.minusDays(days);
68 if (days >= 7) {
69 return days + " days";
73 final String daysHours = durationPairToString(days, "days", hours, "hours");
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DDismissedChecker.java106 final String[] days = ((String) firstAppearRule).split(","); in parseAppearDay() local
107 return Integer.parseInt(days[0]); in parseAppearDay()
116 long days = daysDelay * DateUtils.DAY_IN_MILLIS; in getFirstAppearTimeMillis() local
117 return setupTime + days; in getFirstAppearTimeMillis()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestUserEventLogger.java181 public void logNumDaysDailyRotationFailed(int days) { in logNumDaysDailyRotationFailed() argument
182 mNumDaysDailyRotationFailed = days; in logNumDaysDailyRotationFailed()
192 public void logNumDaysDailyRotationNotAttempted(int days) { in logNumDaysDailyRotationNotAttempted() argument
193 mNumDaysDailyRotationNotAttempted = days; in logNumDaysDailyRotationNotAttempted()
DTestWallpaperPreferences.java430 public void setNumDaysDailyRotationFailed(int days) { in setNumDaysDailyRotationFailed() argument
431 mNumDaysDailyRotationFailed = days; in setNumDaysDailyRotationFailed()
449 public void setNumDaysDailyRotationNotAttempted(int days) { in setNumDaysDailyRotationNotAttempted() argument
450 mNumDaysDailyRotationNotAttempted = days; in setNumDaysDailyRotationNotAttempted()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmUtils.kt81 val days = hours / 24 in formatElapsedTimeUntilAlarm() constant
84 val daySeq = Utils.getNumberFormattedQuantityString(context, R.plurals.days, days) in formatElapsedTimeUntilAlarm()
88 val showDays = days > 0 in formatElapsedTimeUntilAlarm()
DAlarmUtils.java78 final int days = hours / 24; in formatElapsedTimeUntilAlarm() local
81 String daySeq = Utils.getNumberFormattedQuantityString(context, R.plurals.days, days); in formatElapsedTimeUntilAlarm()
85 final boolean showDays = days > 0; in formatElapsedTimeUntilAlarm()
DHandleApiCalls.java552 final List<Integer> days = intent.getIntegerArrayListExtra(AlarmClock.EXTRA_DAYS); in getDaysFromIntent() local
553 if (days != null) { in getDaysFromIntent()
554 final int[] daysArray = new int[days.size()]; in getDaysFromIntent()
555 for (int i = 0; i < days.size(); i++) { in getDaysFromIntent()
556 daysArray[i] = days.get(i); in getDaysFromIntent()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridge.java102 long days = (TimeUnit.MILLISECONDS.toDays(mClock.getCurrentTime() - lastUsed)); in getDaysSinceLastUse() local
103 if (days > DAYS_IN_A_TYPICAL_YEAR) { in getDaysSinceLastUse()
106 return days; in getDaysSinceLastUse()
DAppsAsyncLoader.java391 long days = (TimeUnit.MILLISECONDS.toDays(mClock.getCurrentTime() - lastUsed)); in getDaysSinceLastUse() local
392 if (days > DAYS_IN_A_TYPICAL_YEAR) { in getDaysSinceLastUse()
395 return days; in getDaysSinceLastUse()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DNoOpUserEventLogger.java105 public void logNumDaysDailyRotationFailed(int days) { in logNumDaysDailyRotationFailed() argument
114 public void logNumDaysDailyRotationNotAttempted(int days) { in logNumDaysDailyRotationNotAttempted() argument
DUserEventLogger.java129 void logNumDaysDailyRotationFailed(int days); in logNumDaysDailyRotationFailed() argument
135 void logNumDaysDailyRotationNotAttempted(int days); in logNumDaysDailyRotationNotAttempted() argument
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogGroupBuilder.java258 int days = DateUtils.getDayDifference(TIME, date, now); in getDayGroup() local
260 if (days == 0) { in getDayGroup()
262 } else if (days == 1) { in getDayGroup()
/packages/apps/Car/Cluster/src/android/car/cluster/
DNavStateController.java165 long days = seconds / (3600 * 24); in formatEta() local
167 if (days > 0) { in formatEta()
168 return String.format("%d d %d hr", days, hours); in formatEta()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/
DUtils.java612 long days = hours / 24; in getTimeDiffStr() local
613 return context.getResources().getQuantityString(R.plurals.days, (int) days, days); in getTimeDiffStr()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java234 duration.days = 0; in performInstanceExpansion()
305 duration.days = 1; in performInstanceExpansion()
315 duration.days = 0; in performInstanceExpansion()
DCalendarDatabaseHelper.java2658 int days = (seconds + DAY_IN_SECONDS - 1) / DAY_IN_SECONDS; in upgradeToVersion69() local
2659 duration = "P" + days + "D"; in upgradeToVersion69()
/packages/apps/Calendar/src/com/android/calendar/
DEvent.java223 public static void loadEvents(Context context, ArrayList<Event> events, int startDay, int days, in loadEvents() argument
235 int endDay = startDay + days - 1; in loadEvents()
DUtils.java1433 int days = startDay - currentDay; in isTodayOrTomorrow() local
1434 if (days == 1) { in isTodayOrTomorrow()
1436 } else if (days == 0) { in isTodayOrTomorrow()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java615 long days = 1; in init() local
617 days = (mDtend - mDtstart) / DateUtils.DAY_IN_MILLIS; in init()
619 mDuration = "P" + days + "D"; in init()

12