/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | Duration.java | 29 public class Duration implements Parcelable { class 55 public Duration(int timeInterval, TimeUnit timeUnit) { in Duration() method in Duration 60 private Duration(Parcel in) { in Duration() method in Duration 76 public static final Parcelable.Creator<Duration> CREATOR = new Parcelable.Creator<Duration>() { 78 public Duration createFromParcel(Parcel in) { 79 return new Duration(in); 83 public Duration[] newArray(int size) { 84 return new Duration[size];
|
D | ToneSettings.java | 27 public Duration duration; 31 public ToneSettings(Duration duration, Tone tone, boolean vibrate) { in ToneSettings() 38 duration = in.readParcelable(Duration.class.getClassLoader()); in ToneSettings()
|
D | ValueParser.java | 22 import com.android.internal.telephony.cat.Duration.TimeUnit; 88 static Duration retrieveDuration(ComprehensionTlv ctlv) throws ResultException { in retrieveDuration() 101 return new Duration(timeInterval, timeUnit); in retrieveDuration()
|
D | TextMessage.java | 34 public Duration duration = null;
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuThreadReaderEndToEndTest.java | 35 import java.time.Duration; 72 final Duration targetDuration = Duration.ofMillis(millis); in testTimedWork() 74 Duration resultDuration = getAverageWorkTime( in testTimedWork() 92 final Duration lowResultDuration = in testIterativeWork() 94 final Duration highResultDuration = in testIterativeWork() 107 private Duration getAverageWorkTime( in getAverageWorkTime() 154 return Duration.ofMillis((long) averageWorkTimeMillis.getAsDouble()); in getAverageWorkTime() 160 private Runnable timedWork(Duration duration) { in timedWork()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SysUIToast.java | 18 import static android.widget.Toast.Duration; 26 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) { in makeText() 30 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
D | PowerUtilTest.java | 32 import java.time.Duration; 38 private static final long SEVENTEEN_MIN_MILLIS = Duration.ofMinutes(17).toMillis(); 39 private static final long FIVE_MINUTES_MILLIS = Duration.ofMinutes(5).toMillis(); 40 private static final long TEN_MINUTES_MILLIS = Duration.ofMinutes(10).toMillis(); 41 private static final long THREE_DAYS_MILLIS = Duration.ofDays(3).toMillis(); 42 private static final long THIRTY_HOURS_MILLIS = Duration.ofHours(30).toMillis();
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | HdmiTimerRecordSources.java | 172 public static Duration durationOf(int hour, int minute) { in durationOf() 174 return new Duration(hour, minute); in durationOf() 228 public static final class Duration extends TimeUnit { class in HdmiTimerRecordSources 229 private Duration(int hour, int minute) { in Duration() method in HdmiTimerRecordSources.Duration 272 Duration duration, int recordingSequence) { in timerInfoOf() 327 private final Duration mDuration; 337 Duration duration, int recordingSequence) { in TimerInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 60 import java.time.Duration; 73 private static final long ONE_HOUR_MILLIS = Duration.ofHours(1).toMillis(); 78 private static final long ABOVE_CHARGE_CYCLE_THRESHOLD = Duration.ofHours(8).toMillis(); 351 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testMaybeShowHybridWarning() 362 state.mTimeRemainingMillis = Duration.ofMinutes(10).toMillis(); in testMaybeShowHybridWarning() 372 state.mTimeRemainingMillis = Duration.ofDays(1).toMillis(); in testMaybeShowHybridWarning() 389 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testShouldShowHybridWarning_lowLevelWarning() 417 state.mTimeRemainingMillis = Duration.ofHours(1000).toMillis(); in testShouldShowHybridWarning_lowLevelWarning() 429 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testShouldShowHybridWarning_lowLevelWarning() 454 state.mTimeRemainingMillis = Duration.ofMinutes(1).toMillis(); in testShouldShowHybridWarning_severeLevelWarning() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | Estimate.kt | 21 import java.time.Duration 47 return if (Duration.between(lastUpdateTime, in getCachedEstimateIfAvailable() 48 Instant.now()).compareTo(Duration.ofMinutes(1)) > 0) { in getCachedEstimateIfAvailable()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/prediction/ |
D | SharesheetModelScorerTest.java | 47 import java.time.Duration; 63 NOW - Duration.ofHours(23).toMillis(), 64 NOW - Duration.ofHours(22).toMillis()); 66 NOW - Duration.ofHours(50).toMillis(), 67 NOW - Duration.ofHours(49).toMillis()); 69 NOW - Duration.ofDays(6).toMillis(), 70 NOW - Duration.ofDays(5).toMillis()); 72 NOW - Duration.ofDays(9).toMillis(), 73 NOW - Duration.ofDays(8).toMillis()); 75 NOW - Duration.ofDays(13).toMillis(), [all …]
|
/frameworks/base/services/people/java/com/android/server/people/prediction/ |
D | SharesheetModelScorer.java | 34 import java.time.Duration; 333 Duration duration = Duration.ofMillis(elapsedTimeMillis); in getFreqDecayedOnElapsedTime() 334 if (duration.compareTo(Duration.ofDays(1)) <= 0) { in getFreqDecayedOnElapsedTime() 336 } else if (duration.compareTo(Duration.ofDays(3)) <= 0) { in getFreqDecayedOnElapsedTime() 338 } else if (duration.compareTo(Duration.ofDays(7)) <= 0) { in getFreqDecayedOnElapsedTime() 340 } else if (duration.compareTo(Duration.ofDays(14)) <= 0) { in getFreqDecayedOnElapsedTime()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | DurationTest.java | 30 Duration duration = new Duration(); in verifyDuration()
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoUtils.java | 20 import android.util.Duration; 58 proto.write(Duration.START_MS, startMs); in toDuration() 59 proto.write(Duration.END_MS, endMs); in toDuration()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Duration.java | 29 public class Duration class 38 public Duration() in Duration() method in Duration
|
/frameworks/base/core/java/android/widget/ |
D | Toast.java | 92 public @interface Duration {} annotation in Toast 284 public void setDuration(@Duration int duration) { in setDuration() 293 @Duration 479 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() 490 @NonNull CharSequence text, @Duration int duration) { in makeText() 517 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) in makeText()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | TimedQuotaManagerTest.java | 33 import java.time.Duration; 41 private static final long DAY_MILLIS = Duration.ofDays(1).toMillis();
|
/frameworks/base/core/proto/android/util/ |
D | common.proto | 43 * Very basic data structure to represent Duration. 45 message Duration { message
|
/frameworks/base/startop/iorap/functional_tests/src/com/google/android/startop/iorap/ |
D | IorapWorkFlowTest.java | 49 import java.time.Duration; 74 private static final Duration TIMEOUT = Duration.ofSeconds(300L); 346 private boolean retryWithTimeout(Duration timeout, BooleanSupplier supplier) throws Exception {
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 40 import java.time.Duration; 868 @NonNull String[] observedEntities, @NonNull Duration timeLimit, in registerUsageSessionObserver() 869 @NonNull Duration sessionThresholdTime, in registerUsageSessionObserver() 949 @NonNull Duration timeLimit, @NonNull Duration timeUsed, in registerAppUsageLimitObserver()
|
/frameworks/base/core/proto/android/server/ |
D | activitymanagerservice.proto | 441 optional .android.util.Duration create_real_time = 14; 442 optional .android.util.Duration starting_bg_timeout = 15; 443 optional .android.util.Duration last_activity_time = 16; 444 optional .android.util.Duration restart_time = 17; 464 optional .android.util.Duration executing_start = 3; 468 optional .android.util.Duration destory_time = 21; 474 optional .android.util.Duration restart_delay = 2; 475 optional .android.util.Duration next_restart_time = 3; 484 optional .android.util.Duration duration = 2; 738 optional .android.util.Duration last_idle_time = 58; [all …]
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
D | UsageStatsActivity.java | 44 import java.time.Duration; 200 Duration.ofSeconds(60), Duration.ofSeconds(0), in callSetAppUsageLimit()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | TimeDetectorStrategyImplTest.java | 39 import java.time.Duration; 161 long slotIndex2TimeMillis = ARBITRARY_TEST_TIME_MILLIS + Duration.ofDays(1).toMillis(); in testSuggestTelephonyTime_multipleSlotIndexsAndBucketing() 444 long manualTimeMillis = testTimeMillis + Duration.ofDays(1).toMillis(); in testSuggestManualTime_retainsAutoSignal() 524 long networkTimeMillis2 = ARBITRARY_TEST_TIME_MILLIS + Duration.ofDays(30).toMillis(); in testSuggestNetworkTime_telephonySuggestionsBeatNetworkSuggestions() 525 long telephonyTimeMillis = ARBITRARY_TEST_TIME_MILLIS + Duration.ofDays(60).toMillis(); in testSuggestNetworkTime_telephonySuggestionsBeatNetworkSuggestions()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | KeyValueListParser.java | 22 import java.time.Duration; 208 return Duration.parse(value).toMillis(); in getDurationMillis()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | LinkProbeManager.java | 32 import java.time.Duration; 60 @VisibleForTesting static final long PERIOD_MILLIS = Duration.ofDays(1).toMillis();
|