Home
last modified time | relevance | path

Searched refs:Duration (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsReleaseStorage.java38 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/
DSystemStateInterface.java33 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()
DSystemInterface.java29 import java.time.Duration;
166 public void scheduleActionForBootCompleted(Runnable action, Duration delay) { in scheduleActionForBootCompleted()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarStorageMonitoringTest.java66 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) {
DMockedCarTestBase.java66 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/
DDigitalWellBeingToast.java48 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/
DLinearVhalEventGenerator.java27 import java.time.Duration;
34 private Duration mInterval;
46 mInterval = Duration.ofSeconds(1); in reset()
54 mInterval = Duration.ofMillis(intervalMs); in setIntervalMs()
DCarDiagnosticTest.java41 import java.time.Duration;
50 private static final Duration TEST_TIME_OUT = Duration.ofMinutes(5);
DCarPropertyTest.java39 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/
DHighUsageDataParserTest.java28 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/
DDigitalWellBeingToastTest.java26 import java.time.Duration;
48 Duration.ofSeconds(600), Duration.ofSeconds(300), in testToast()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java58 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/
DMainActivity.java31 import java.time.Duration;
60 private String durationToString(Duration duration) {
101 Duration.ofMillis(wearEstimateChange.uptimeAtChange));
/packages/apps/Stk/src/com/android/stk/
DStkApp.java21 import com.android.internal.telephony.cat.Duration;
51 public static int calculateDurationInMilis(Duration duration) { in calculateDurationInMilis()
/packages/apps/Messaging/src/com/android/messaging/ui/
DSmsStorageLowWarningFragment.java39 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/
DWifiDppUtils.java40 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/
DWifiDppUtils.java40 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/
DProgramItemViewTest.java57 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/
DBatteryTipPolicy.java26 import java.time.Duration;
238 Duration.ofHours(2).toMillis()); in BatteryTipPolicy()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipPolicy.java26 import java.time.Duration;
238 Duration.ofHours(2).toMillis()); in BatteryTipPolicy()
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearHistory.java26 import java.time.Duration;
106 Duration.ofHours(acceptableHoursPerOnePercentFlashWear).toMillis(); in toWearEstimateChanges()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java59 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/
DIoStatsTrackerTest.java29 import java.time.Duration;
310 public void scheduleActionForBootCompleted(Runnable action, Duration delay) { in scheduleActionForBootCompleted()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarInstancesHelper.java20 import com.android.calendarcommon2.Duration;
189 Duration duration = new Duration(); in performInstanceExpansion()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoFragment.java99 import com.android.calendarcommon2.Duration;
656 Duration d = new Duration(); in updateEvent()

12