/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 | 24 import com.android.internal.telephony.cat.Duration.TimeUnit; 90 static Duration retrieveDuration(ComprehensionTlv ctlv) throws ResultException { in retrieveDuration() 103 return new Duration(timeInterval, timeUnit); in retrieveDuration()
|
D | TextMessage.java | 34 public Duration duration = null;
|
D | Input.java | 39 public Duration duration;
|
/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/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/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 55 import java.time.Duration; 66 private static final long ONE_HOUR_MILLIS = Duration.ofHours(1).toMillis(); 71 private static final long ABOVE_CHARGE_CYCLE_THRESHOLD = Duration.ofHours(8).toMillis(); 330 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testMaybeShowHybridWarning() 341 state.mTimeRemainingMillis = Duration.ofMinutes(10).toMillis(); in testMaybeShowHybridWarning() 351 state.mTimeRemainingMillis = Duration.ofDays(1).toMillis(); in testMaybeShowHybridWarning() 368 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testShouldShowHybridWarning_lowLevelWarning() 396 state.mTimeRemainingMillis = Duration.ofHours(1000).toMillis(); in testShouldShowHybridWarning_lowLevelWarning() 408 state.mTimeRemainingMillis = Duration.ofHours(2).toMillis(); in testShouldShowHybridWarning_lowLevelWarning() 433 state.mTimeRemainingMillis = Duration.ofMinutes(1).toMillis(); in testShouldShowHybridWarning_severeLevelWarning() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SysUIToast.java | 18 import static android.widget.Toast.Duration; 27 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) { in makeText() 31 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText()
|
/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/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/core/java/android/util/proto/ |
D | ProtoUtils.java | 20 import android.util.Duration; 48 proto.write(Duration.START_MS, startMs); in toDuration() 49 proto.write(Duration.END_MS, endMs); in toDuration()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | DurationTest.java | 30 Duration duration = new Duration(); in verifyDuration()
|
/frameworks/base/core/java/android/widget/ |
D | Toast.java | 81 public @interface Duration {} annotation in Toast 179 public void setDuration(@Duration int duration) { in setDuration() 188 @Duration 275 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() 285 @NonNull CharSequence text, @Duration int duration) { in makeText() 311 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 | 32 import java.time.Duration; 40 private static final long DAY_MILLIS = Duration.ofDays(1).toMillis();
|
/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/proto/android/util/ |
D | common.proto | 38 * Very basic data structure to represent Duration. 40 message Duration { message
|
/frameworks/base/core/java/android/app/usage/ |
D | UsageStatsManager.java | 38 import java.time.Duration; 716 @NonNull String[] observedEntities, @NonNull Duration timeLimit, in registerUsageSessionObserver() 717 @NonNull Duration sessionThresholdTime, in registerUsageSessionObserver() 797 @NonNull Duration timeLimit, @NonNull Duration timeUsed, in registerAppUsageLimitObserver()
|
/frameworks/base/core/proto/android/server/ |
D | activitymanagerservice.proto | 511 optional .android.util.Duration create_real_time = 14; 512 optional .android.util.Duration starting_bg_timeout = 15; 513 optional .android.util.Duration last_activity_time = 16; 514 optional .android.util.Duration restart_time = 17; 534 optional .android.util.Duration executing_start = 3; 538 optional .android.util.Duration destory_time = 21; 544 optional .android.util.Duration restart_delay = 2; 545 optional .android.util.Duration next_restart_time = 3; 554 optional .android.util.Duration duration = 2; 808 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/base/core/proto/android/os/ |
D | batterystats.proto | 409 // Duration and number of times trying to acquire a signal 539 // Duration spent BLE scanning blamed on this App (i.e. apportioned to this 611 // Duration is pooled/apportioned. 613 // Duration is pooled/apportioned. 615 // Duration is pooled/apportioned. 617 // Duration is not pooled/apportioned. 619 // Duration is not pooled/apportioned. 621 // Duration is not pooled/apportioned. 623 // Duration is pooled/apportioned. 865 // Duration holding Wifi-lock. This time is apportioned. [all …]
|
/frameworks/base/core/java/android/util/ |
D | KeyValueListParser.java | 22 import java.time.Duration; 207 return Duration.parse(value).toMillis(); in getDurationMillis()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | LinkProbeManager.java | 34 import java.time.Duration; 62 @VisibleForTesting static final long PERIOD_MILLIS = Duration.ofDays(1).toMillis();
|
/frameworks/base/core/java/android/net/ |
D | NetworkAgent.java | 41 import java.time.Duration; 511 Duration.ofSeconds(msg.arg2) /* interval */, in handleMessage() 883 public void onStartSocketKeepalive(int slot, @NonNull Duration interval, in onStartSocketKeepalive()
|