Home
last modified time | relevance | path

Searched refs:HOUR_IN_MILLIS (Results 1 – 18 of 18) 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/services/core/java/com/android/server/twilight/
DTwilightService.java67 private static final long TWILIGHT_ADJUSTMENT_TIME = DateUtils.HOUR_IN_MILLIS * 2;
77 private static final long RESET_TIME = DateUtils.HOUR_IN_MILLIS * 2;
295 private static final long LOCATION_UPDATE_MS = 24 * DateUtils.HOUR_IN_MILLIS;
522 nextUpdate = now + 12 * DateUtils.HOUR_IN_MILLIS; in updateTwilightState()
/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/support/v7/appcompat/src/android/support/v7/app/
DTwilightManager.java148 nextUpdate = now + 12 * DateUtils.HOUR_IN_MILLIS; in updateState()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java57 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
1433 return new Config(getGlobalLong(NETSTATS_DEV_BUCKET_DURATION, HOUR_IN_MILLIS), in getDevConfig()
1443 return new Config(getGlobalLong(NETSTATS_UID_BUCKET_DURATION, 2 * HOUR_IN_MILLIS), in getUidConfig()
1449 return new Config(getGlobalLong(NETSTATS_UID_TAG_BUCKET_DURATION, 2 * HOUR_IN_MILLIS), in getUidTagConfig()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt30085 field public static final long HOUR_IN_MILLIS = 3600000L; // 0x36ee80L
/frameworks/base/api/
Dcurrent.txt38708 field public static final long HOUR_IN_MILLIS = 3600000L; // 0x36ee80L
Dsystem-current.txt41708 field public static final long HOUR_IN_MILLIS = 3600000L; // 0x36ee80L
Dtest-current.txt38787 field public static final long HOUR_IN_MILLIS = 3600000L; // 0x36ee80L