Home
last modified time | relevance | path

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

1234

/packages/apps/Settings/tests/unit/src/com/android/settings/notification/zen/
DZenRuleScheduleHelperTest.java90 mScheduleInfo.days = new int[] {}; in getDaysDescription()
94 mScheduleInfo.days = new int[] {Calendar.FRIDAY}; in getDaysDescription()
98 mScheduleInfo.days = new int[] {Calendar.MONDAY, Calendar.TUESDAY, Calendar.WEDNESDAY, in getDaysDescription()
104 mScheduleInfo.days = new int[] {Calendar.SUNDAY, Calendar.WEDNESDAY, Calendar.THURSDAY, in getDaysDescription()
114 mScheduleInfo.days = new int[]{}; in getShortDaysSummary_noOrSingleDays()
118 mScheduleInfo.days = new int[]{Calendar.SUNDAY}; in getShortDaysSummary_noOrSingleDays()
122 mScheduleInfo.days = new int[]{Calendar.THURSDAY}; in getShortDaysSummary_noOrSingleDays()
126 mScheduleInfo.days = new int[]{Calendar.SATURDAY}; in getShortDaysSummary_noOrSingleDays()
133 mScheduleInfo.days = new int[] {Calendar.SUNDAY, Calendar.MONDAY, Calendar.TUESDAY, in getShortDaysSummary_oneGroup()
140 mScheduleInfo.days = new int[] {Calendar.SUNDAY, Calendar.MONDAY, Calendar.TUESDAY, in getShortDaysSummary_oneGroup()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRuleScheduleHelper.java54 final int[] days = schedule.days; in getDaysDescription() local
55 if (days != null && days.length > 0) { in getDaysDescription()
61 for (int j = 0; j < days.length; j++) { in getDaysDescription()
62 if (day == days[j]) { in getDaysDescription()
87 final int[] days = schedule.days; in getShortDaysSummary() local
88 if (days != null && days.length > 0) { in getShortDaysSummary()
106 for (int j = 0; j < days.length; j++) { in getShortDaysSummary()
107 if (day == days[j]) { in getShortDaysSummary()
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
DZenModeScheduleRuleSettings.java210 .setView(new ZenModeScheduleDaysSelection(mContext, mSchedule.days) { in showDaysDialog()
212 protected void onChanged(final int[] days) { in showDaysDialog()
214 if (Arrays.equals(days, mSchedule.days)) return; in showDaysDialog()
215 if (DEBUG) Log.d(TAG, "days.onChanged days=" + Arrays.toString(days)); in showDaysDialog()
216 mSchedule.days = days; in showDaysDialog()
/packages/modules/Bluetooth/service/src/
DAdapterStateTest.kt22 import kotlin.time.Duration.Companion.days
65 assertThat(runBlocking { mState.waitForState(100.days, state) }).isTrue() in <lambda>()
68 @Test fun expectTimeout() = runTest { assertThat(mState.waitForState(100.days, -1)).isFalse() } in <lambda>()
78 val waiter = async { mState.waitForState(100.days, state) } in <lambda>()
89 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, state0) } in <lambda>()
91 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, state1) } in <lambda>()
93 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, state2) } in <lambda>()
95 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, -1) } in <lambda>()
115 async(start = CoroutineStart.UNDISPATCHED) { mState.waitForState(100.days, state0) } in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeSetSchedulePreferenceControllerTest.java88 scheduleInfo.days = new int[] { Calendar.MONDAY }; in updateScheduleRule_updatesConditionAndTriggerDescription()
115 assertThat(schedule.days).hasLength(2); in testUpdateScheduleDays()
116 assertThat(schedule.days).asList().containsExactly(Calendar.MONDAY, Calendar.FRIDAY); in testUpdateScheduleDays()
121 assertThat(schedule.days).hasLength(1); in testUpdateScheduleDays()
122 assertThat(schedule.days).asList().containsExactly(Calendar.FRIDAY); in testUpdateScheduleDays()
130 schedule.days = new int[] { Calendar.SUNDAY, Calendar.TUESDAY, Calendar.FRIDAY }; in testSetupDayToggles_daysOfWeekOrder()
DZenModeExitAtAlarmPreferenceControllerTest.java63 scheduleInfo.days = new int[] { Calendar.MONDAY }; in testUpdateState()
92 scheduleInfo.days = new int[] { Calendar.MONDAY }; in testOnPreferenceChange()
/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/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DStringUtil.java61 int days = 0, hours = 0, minutes = 0; in formatElapsedTime() local
63 days = seconds / SECONDS_PER_DAY; in formatElapsedTime()
64 seconds -= days * SECONDS_PER_DAY; in formatElapsedTime()
76 if (days > 0) { in formatElapsedTime()
77 measureList.add(new Measure(days, MeasureUnit.DAY)); in formatElapsedTime()
/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/Settings/src/com/android/settings/notification/modes/
DZenModeSetSchedulePreferenceController.java191 if (schedule.days != null) {
192 for (int idx = 0; idx < schedule.days.length; idx++) {
193 if (schedule.days[idx] == day) {
228 if (schedule.days != null) {
229 for (int i = 0; i < schedule.days.length; i++) {
230 daySet.add(schedule.days[i]);
247 schedule.days = out;
/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()
DHandleApiCalls.kt576 val days: List<Int>? = intent.getIntegerArrayListExtra(AlarmClock.EXTRA_DAYS) in getDaysFromIntent() constant
577 if (days != null) { in getDaysFromIntent()
578 val daysArray = IntArray(days.size) in getDaysFromIntent()
579 for (i in days.indices) { in getDaysFromIntent()
580 daysArray[i] = days[i] in getDaysFromIntent()
/packages/modules/DeviceLock/DeviceLockController/src/com/android/devicelockcontroller/activities/
DDeviceLockNotificationManager.java119 public void sendDeviceResetNotification(Context context, int days) { in sendDeviceResetNotification() argument
120 sendDeviceResetNotification(context, days, /* ongoing= */ false); in sendDeviceResetNotification()
190 private void sendDeviceResetNotification(Context context, int days, boolean ongoing) { in sendDeviceResetNotification() argument
196 channelId -> createDeviceResetNotification(context, days, ongoing, channelId), in sendDeviceResetNotification()
268 int days, boolean ongoing, String channelId) { in createDeviceResetNotification() argument
278 .setContentTitle(StringUtil.getPluralString(context, days, in createDeviceResetNotification()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DDurationFormatter.kt81 val days = duration.toDays() in formatDurationDaysOrHours() constant
85 context.getString(R.string.day_duration_accessibility), mapOf("count" to days)) in formatDurationDaysOrHours()
90 return if (days > 0) { // Shows as: X day(s) in formatDurationDaysOrHours()
/packages/modules/AdServices/adservices/libraries/cobalt/proto/
Dwindow_size.proto36 // Window size of 7 days.
39 // Window size of 28 days.
42 // Window size of 30 days.
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkCycleChartData.kt19 import kotlin.time.Duration.Companion.days
29 val BUCKET_DURATION = 1.days
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/
DDashboardUtils.kt119 StringUtils.getIcuPluralsString(context, R.string.days, timeDiffAndUnit.first.toInt()) in getTimeDiffStr()
177 val days = hours / 24 in calculateTimeDiffAndUnit() constant
178 return Pair.create(days, DAYS) in calculateTimeDiffAndUnit()
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_interop_tests/
Dexpired_source.json107 // Rounded to two days (172800 seconds).
183 // to two days.
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DUnusedAppsViewModel.kt47 import kotlin.time.Duration.Companion.days in <lambda>()
66 ONE_MONTH(30.days), in <lambda>()
67 THREE_MONTHS(90.days), in <lambda>()
68 SIX_MONTHS(180.days); in <lambda>()
/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()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DAutoDeleteService.java57 public static void setRecordRetentionPeriodInDays(int days) { in setRecordRetentionPeriodInDays() argument
59 .insertOrReplacePreference(AUTO_DELETE_DURATION_RECORDS_KEY, String.valueOf(days)); in setRecordRetentionPeriodInDays()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogGroupBuilder.java259 int days = DateUtils.getDayDifference(TIME_ZONE, date, now); in getDayGroup() local
261 if (days == 0) { in getDayGroup()
263 } else if (days == 1) { in getDayGroup()
/packages/modules/ConfigInfrastructure/service/javatests/src/com/android/server/deviceconfig/
DRebootTimingConfigurationTest.java159 private void mockRebootFrequencyDays(int days) { in mockRebootFrequencyDays() argument
161 .thenReturn(days); in mockRebootFrequencyDays()
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/flex_event/
Dflex_event_window_not_started_and_window_passed.json25 // Two and four days

1234