/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | SmsReleaseStorage.java | 38 public static class Duration { class in SmsReleaseStorage 49 public Duration(final int count, final int unit) { in Duration() method in SmsReleaseStorage.Duration 57 private static final Duration DEFAULT_DURATION = new Duration(1, Duration.UNIT_MONTH); 65 public static Duration parseMessageRetainingDuration() { in parseMessageRetainingDuration() 73 return new Duration( in parseMessageRetainingDuration() 91 public static String getMessageRetainingDurationString(final Duration duration) { in getMessageRetainingDurationString() 94 case Duration.UNIT_WEEK: in getMessageRetainingDurationString() 97 case Duration.UNIT_MONTH: in getMessageRetainingDurationString() 100 case Duration.UNIT_YEAR: in getMessageRetainingDurationString() 119 public static long durationToTimeInMillis(final Duration duration) { in durationToTimeInMillis() [all …]
|
/packages/services/Car/service/src/com/android/car/systeminterface/ |
D | SystemStateInterface.java | 33 import java.time.Duration; 52 void scheduleActionForBootCompleted(Runnable action, Duration delay); in scheduleActionForBootCompleted() 81 private static final Duration MIN_BOOT_COMPLETE_ACTION_DELAY = Duration.ofSeconds(10); 88 private List<Pair<Runnable, Duration>> mActionsList = new ArrayList<>(); 94 for (Pair<Runnable, Duration> action : mActionsList) { 158 public void scheduleActionForBootCompleted(Runnable action, Duration delay) { in scheduleActionForBootCompleted()
|
D | SystemInterface.java | 31 import java.time.Duration; 175 public void scheduleActionForBootCompleted(Runnable action, Duration delay) { in scheduleActionForBootCompleted()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarStorageMonitoringTest.java | 66 import java.time.Duration; 600 final Duration eventDeliveryDeadline = Duration.ofSeconds(5); in testEventDelivery() 641 final Duration intentDeliveryDeadline = Duration.ofSeconds(5); in testIntentOnExcessiveWrite() 665 final Duration intentDeliveryDeadline = Duration.ofSeconds(5); in testIntentOnExcessiveFsync() 689 final Duration eventDeliveryDeadline = Duration.ofSeconds(5); in testZeroWindowDisablesCollection() 751 boolean waitForEvent(Duration duration) { in waitForEvent() 895 private final List<Pair<Runnable, Duration>> mActionsList = new ArrayList<>(); 906 public void scheduleActionForBootCompleted(Runnable action, Duration delay) { 912 for (Pair<Runnable, Duration> action : mActionsList) {
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | DigitalWellBeingToast.java | 48 import java.time.Duration; 141 Duration duration, in getReadableDuration() 173 if (duration.compareTo(Duration.ZERO) > 0) { in getReadableDuration() 184 Duration duration, in getReadableDuration() 195 final Duration duration = Duration.ofMillis( in getRoundedUpToMinuteReadableDuration()
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | LinearVhalEventGenerator.java | 27 import java.time.Duration; 34 private Duration mInterval; 46 mInterval = Duration.ofSeconds(1); in reset() 54 mInterval = Duration.ofMillis(intervalMs); in setIntervalMs()
|
D | CarDiagnosticTest.java | 41 import java.time.Duration; 50 private static final Duration TEST_TIME_OUT = Duration.ofMinutes(5);
|
D | CarPropertyTest.java | 44 import java.time.Duration; 62 private static final Duration TEST_TIME_OUT = Duration.ofMinutes(3);
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | TutorialHandAnimation.java | 30 import java.time.Duration; 36 private static final Duration ANIMATION_START_DELAY = Duration.ofMillis(300L);
|
/packages/apps/Car/Calendar/src/com/android/car/calendar/common/ |
D | Event.java | 21 import java.time.Duration; 132 public Duration getDuration() { in getDuration() 133 return Duration.between(getStartInstant(), getEndInstant()); in getDuration()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | HighUsageDataParserTest.java | 28 import java.time.Duration; 34 private static final long PERIOD_ONE_MINUTE_MS = Duration.ofMinutes(1).toMillis(); 35 private static final long PERIOD_ONE_HOUR_MS = Duration.ofHours(1).toMillis();
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | DigitalWellBeingToastTest.java | 27 import java.time.Duration; 52 Duration.ofSeconds(600), Duration.ofSeconds(300), in testToast()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryInfoTest.java | 58 import java.time.Duration; 142 Estimate estimate = new Estimate(Duration.ofHours(4).toMillis(), in testGetBatteryInfo_basedOnUsageTrueMoreThanFifteenMinutes_usesCorrectString() 162 Estimate estimate = new Estimate(Duration.ofMinutes(7).toMillis(), in testGetBatteryInfo_basedOnUsageTrueLessThanSevenMinutes_usesCorrectString() 182 Estimate estimate = new Estimate(Duration.ofDays(3).toMillis(), in getBatteryInfo_MoreThanOneDay_suggestionLabelIsCorrectString() 195 Estimate estimate = new Estimate(Duration.ofMinutes(10).toMillis(), in testGetBatteryInfo_basedOnUsageTrueBetweenSevenAndFifteenMinutes_usesCorrectString()
|
/packages/services/Car/tests/DefaultStorageMonitoringCompanionApp/src/com/google/android/car/defaultstoragemonitoringcompanionapp/ |
D | MainActivity.java | 31 import java.time.Duration; 60 private String durationToString(Duration duration) { 101 Duration.ofMillis(wearEstimateChange.uptimeAtChange));
|
/packages/apps/Stk/src/com/android/stk/ |
D | StkApp.java | 21 import com.android.internal.telephony.cat.Duration; 51 public static int calculateDurationInMilis(Duration duration) { in calculateDurationInMilis()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | SmsStorageLowWarningFragment.java | 39 import com.android.messaging.sms.SmsReleaseStorage.Duration; 161 private Duration mDuration; 257 final Duration duration = SmsReleaseStorage.parseMessageRetainingDuration(); in loadFreeStorageActions()
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/ |
D | RemoteFeature.java | 45 import java.time.Duration; 62 private static final Duration BIND_RETRY_DURATION = Duration.ofSeconds(1);
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiDppUtils.java | 37 import java.time.Duration; 99 private static final Duration VIBRATE_DURATION_QR_CODE_RECOGNITION = Duration.ofMillis(3);
|
/packages/apps/TV/tests/robotests/src/com/android/tv/guide/ |
D | ProgramItemViewTest.java | 57 import java.time.Duration; 130 .setEndTimeUtcMillis(eightPM + Duration.ofHours(1).toMillis()) 286 eightPM + Duration.ofHours(1).toMillis(), in create30MinuteTableEntryFor()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipPolicy.java | 26 import java.time.Duration; 238 Duration.ofHours(2).toMillis()); in BatteryTipPolicy()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | BatteryTipPolicy.java | 26 import java.time.Duration; 238 Duration.ofHours(2).toMillis()); in BatteryTipPolicy()
|
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/ |
D | CarBlePeripheralManagerTest.java | 57 import java.time.Duration; 74 private static final Duration RECONNECT_ADVERTISEMENT_DURATION = Duration.ofSeconds(2);
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppUtils.java | 38 import java.time.Duration; 100 private static final Duration VIBRATE_DURATION_QR_CODE_RECOGNITION = Duration.ofMillis(3);
|
/packages/services/Car/service/src/com/android/car/storagemonitoring/ |
D | WearHistory.java | 26 import java.time.Duration; 106 Duration.ofHours(acceptableHoursPerOnePercentFlashWear).toMillis(); in toWearEstimateChanges()
|
/packages/apps/Car/Calendar/src/com/android/car/calendar/ |
D | CarCalendarView.java | 42 import java.time.Duration; 156 if (event.isAllDay() || event.getDuration().compareTo(Duration.ofDays(1)) >= 0) { in updateRecyclerViewItems()
|