Home
last modified time | relevance | path

Searched refs:HOUR_IN_MILLIS (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java30 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
92 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordSingleBucket()
104 final long bucketDuration = HOUR_IN_MILLIS; in testRecordEqualBuckets()
113 assertValues(stats, 0, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); in testRecordEqualBuckets()
114 assertValues(stats, 1, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); in testRecordEqualBuckets()
138 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordGapBuckets()
156 final long middleEnd = middleStart + (HOUR_IN_MILLIS * 2); in testRecordGapBuckets()
163 assertValues(stats, 1, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); in testRecordGapBuckets()
164 assertValues(stats, 2, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); in testRecordGapBuckets()
169 final long BUCKET_SIZE = HOUR_IN_MILLIS; in testRecordOverlapBuckets()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java20 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
145 touch("file1", HOUR_IN_MILLIS); in testDeleteOlderTypical()
146 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
147 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
148 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
149 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
155 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture()
156 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture()
161 touch("file1", -HOUR_IN_MILLIS); in testDeleteOlderInFuture()
162 touch("file2", HOUR_IN_MILLIS); in testDeleteOlderInFuture()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsServiceTest.java40 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
245 incrementCurrentTime(HOUR_IN_MILLIS); in testNetworkStatsWifi()
300 incrementCurrentTime(HOUR_IN_MILLIS); in testStatsRebootPersist()
378 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS); in testStatsBucketResize()
390 incrementCurrentTime(2 * HOUR_IN_MILLIS); in testStatsBucketResize()
392 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS); in testStatsBucketResize()
404 assertEquals(HOUR_IN_MILLIS, history.getBucketDuration()); in testStatsBucketResize()
443 incrementCurrentTime(HOUR_IN_MILLIS); in testUidStatsAcrossNetworks()
468 incrementCurrentTime(HOUR_IN_MILLIS); in testUidStatsAcrossNetworks()
487 incrementCurrentTime(HOUR_IN_MILLIS); in testUidStatsAcrossNetworks()
[all …]
DNetworkStatsCollectionTest.java24 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
147 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); in testStartEndAtomicBuckets()
157 assertEquals(2 * HOUR_IN_MILLIS, collection.getEndMillis()); in testStartEndAtomicBuckets()
161 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); in testAccessLevels()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DChartDataLoader.java24 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
107 data.detailDefault = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
108 data.detailForeground = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
109 data.detail = new NetworkStatsHistory(HOUR_IN_MILLIS); in loadInBackground()
/frameworks/base/core/java/android/widget/
DDateTimeView.java20 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
239 } else if (duration < HOUR_IN_MILLIS) {
248 count = (int)(duration / HOUR_IN_MILLIS);
254 millisIncrease = HOUR_IN_MILLIS;
349 } else if (duration < HOUR_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal()
359 count = (int)(duration / HOUR_IN_MILLIS); in onInitializeAccessibilityNodeInfoInternal()
/frameworks/base/core/java/android/text/format/
DDateUtils.java50 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; field in DateUtils
51 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24;
360 if (millis >= HOUR_IN_MILLIS) { in formatDuration()
361 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); in formatDuration()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java20 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
237 mBasePath, PREFIX, HOUR_IN_MILLIS, YEAR_IN_MILLIS); in testQueryMatch()
334 mBasePath, PREFIX, HOUR_IN_MILLIS, DAY_IN_MILLIS); in testFuzz()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneInfo.java137 cacheKey = (int) (gmtOffset + 36 * DateUtils.HOUR_IN_MILLIS); in getGmtDisplayName()
139 cacheKey = (int) (gmtOffset - 36 * DateUtils.HOUR_IN_MILLIS); in getGmtDisplayName()
DTimeZonePickerUtils.java131 sb.append(p / DateUtils.HOUR_IN_MILLIS); // Hour in appendGmtOffset()
DTimeZoneData.java295 int index = OFFSET_ARRAY_OFFSET + (int) (offsetMillis / DateUtils.HOUR_IN_MILLIS); in indexByOffsets()
/frameworks/base/core/tests/coretests/src/android/util/
DTokenBucketTest.java58 drain(new TokenBucket((int)DateUtils.HOUR_IN_MILLIS, 10), 10); in testInitialCapacity()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightManager.java166 nextUpdate = now + 12 * DateUtils.HOUR_IN_MILLIS; in updateState()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMetricsLoggerService.java66 private final long THROTTLING_TIME_INTERVAL_MILLIS = DateUtils.HOUR_IN_MILLIS;
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java58 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
1493 return new Config(getGlobalLong(NETSTATS_DEV_BUCKET_DURATION, HOUR_IN_MILLIS), in getDevConfig()
1503 return new Config(getGlobalLong(NETSTATS_UID_BUCKET_DURATION, 2 * HOUR_IN_MILLIS), in getUidConfig()
1509 return new Config(getGlobalLong(NETSTATS_UID_TAG_BUCKET_DURATION, 2 * HOUR_IN_MILLIS), in getUidTagConfig()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java49 private static final long TEMPERATURE_LOGGING_INTERVAL = DateUtils.HOUR_IN_MILLIS;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt30085 field public static final long HOUR_IN_MILLIS = 3600000L; // 0x36ee80L
/frameworks/base/api/
Dcurrent.txt38869 field public static final long HOUR_IN_MILLIS = 3600000L; // 0x36ee80L
Dsystem-current.txt42046 field public static final long HOUR_IN_MILLIS = 3600000L; // 0x36ee80L
Dtest-current.txt38955 field public static final long HOUR_IN_MILLIS = 3600000L; // 0x36ee80L