/packages/apps/Settings/tests/unit/src/com/android/settings/notification/zen/ |
D | ZenRuleScheduleHelperTest.java | 90 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/ |
D | ZenRuleScheduleHelper.java | 54 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()
|
D | ZenModeScheduleDaysSelection.java | 40 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
|
D | ZenModeScheduleRuleSettings.java | 210 .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/ |
D | AdapterStateTest.kt | 22 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/ |
D | ZenModeSetSchedulePreferenceControllerTest.java | 88 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()
|
D | ZenModeExitAtAlarmPreferenceControllerTest.java | 63 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/ |
D | DismissedChecker.java | 106 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/ |
D | StringUtil.java | 61 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/ |
D | MainActivity.java | 61 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/ |
D | ZenModeSetSchedulePreferenceController.java | 191 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/ |
D | AlarmUtils.kt | 81 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()
|
D | HandleApiCalls.kt | 576 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/ |
D | DeviceLockNotificationManager.java | 119 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/ |
D | DurationFormatter.kt | 81 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/ |
D | window_size.proto | 36 // 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/ |
D | NetworkCycleChartData.kt | 19 import kotlin.time.Duration.Companion.days 29 val BUCKET_DURATION = 1.days
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/v31/ |
D | DashboardUtils.kt | 119 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/ |
D | expired_source.json | 107 // Rounded to two days (172800 seconds). 183 // to two days.
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | UnusedAppsViewModel.kt | 47 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/ |
D | AppStateUsageStatsBridge.java | 102 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/ |
D | AutoDeleteService.java | 57 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/ |
D | CallLogGroupBuilder.java | 259 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/ |
D | RebootTimingConfigurationTest.java | 159 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/ |
D | flex_event_window_not_started_and_window_passed.json | 25 // Two and four days
|