/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 | 29 import java.time.Duration; 166 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; 599 final Duration eventDeliveryDeadline = Duration.ofSeconds(5); in testEventDelivery() 640 final Duration intentDeliveryDeadline = Duration.ofSeconds(5); in testIntentOnExcessiveWrite() 662 final Duration intentDeliveryDeadline = Duration.ofSeconds(5); in testIntentOnExcessiveFsync() 684 final Duration eventDeliveryDeadline = Duration.ofSeconds(5); in testZeroWindowDisablesCollection() 746 boolean waitForEvent(Duration duration) { in waitForEvent() 861 private final List<Pair<Runnable, Duration>> mActionsList = new ArrayList<>(); 872 public void scheduleActionForBootCompleted(Runnable action, Duration delay) { 878 for (Pair<Runnable, Duration> action : mActionsList) {
|
D | MockedCarTestBase.java | 66 import java.time.Duration; 419 public void scheduleActionForBootCompleted(Runnable action, Duration delay) {} in scheduleActionForBootCompleted()
|
/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 | 39 import java.time.Duration; 54 private static final Duration TEST_TIME_OUT = Duration.ofMinutes(10);
|
/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 | 26 import java.time.Duration; 48 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiDppUtils.java | 40 import java.time.Duration; 101 private static final Duration VIBRATE_DURATION_QR_CODE_RECOGNITION = Duration.ofMillis(3);
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppUtils.java | 40 import java.time.Duration; 101 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/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/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/service/src/com/android/car/storagemonitoring/ |
D | WearHistory.java | 26 import java.time.Duration; 106 Duration.ofHours(acceptableHoursPerOnePercentFlashWear).toMillis(); in toWearEstimateChanges()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 59 import java.time.Duration; 500 if (Duration.between(Estimate.getLastCacheUpdateTime(mContext), Instant.now()) in getEnhancedEstimate() 501 .compareTo(Duration.ofSeconds(10)) < 0) { in getEnhancedEstimate()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | IoStatsTrackerTest.java | 29 import java.time.Duration; 310 public void scheduleActionForBootCompleted(Runnable action, Duration delay) { in scheduleActionForBootCompleted()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarInstancesHelper.java | 20 import com.android.calendarcommon2.Duration; 189 Duration duration = new Duration(); in performInstanceExpansion()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EventInfoFragment.java | 99 import com.android.calendarcommon2.Duration; 656 Duration d = new Duration(); in updateEvent()
|