Home
last modified time | relevance | path

Searched refs:Duration (Results 1 – 25 of 46) 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.java31 import java.time.Duration;
175 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;
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/
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.java44 import java.time.Duration;
62 private static final Duration TEST_TIME_OUT = Duration.ofMinutes(3);
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DTutorialHandAnimation.java30 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/
DEvent.java21 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/
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.java27 import java.time.Duration;
52 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/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/
DRemoteFeature.java45 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/
DWifiDppUtils.java37 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/
DProgramItemViewTest.java57 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/
DBatteryTipPolicy.java26 import java.time.Duration;
238 Duration.ofHours(2).toMillis()); in BatteryTipPolicy()
/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/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DCarBlePeripheralManagerTest.java57 import java.time.Duration;
74 private static final Duration RECONNECT_ADVERTISEMENT_DURATION = Duration.ofSeconds(2);
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java38 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/
DWearHistory.java26 import java.time.Duration;
106 Duration.ofHours(acceptableHoursPerOnePercentFlashWear).toMillis(); in toWearEstimateChanges()
/packages/apps/Car/Calendar/src/com/android/car/calendar/
DCarCalendarView.java42 import java.time.Duration;
156 if (event.isAllDay() || event.getDuration().compareTo(Duration.ofDays(1)) >= 0) { in updateRecyclerViewItems()

12