Home
last modified time | relevance | path

Searched refs:BASE_BYTES (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java92 private static final long BASE_BYTES = 7 * MB_IN_BYTES; field in NetworkStatsObserversTest
243 .insertEntry(TEST_IFACE, BASE_BYTES, 8L, BASE_BYTES, 16L); in testUpdateStats_initialSample_doesNotNotify()
267 .insertEntry(TEST_IFACE, BASE_BYTES, 8L, BASE_BYTES, 16L); in testUpdateStats_belowThreshold_doesNotNotify()
274 .insertEntry(TEST_IFACE, BASE_BYTES + 1024L, 10L, BASE_BYTES + 2048L, 20L); in testUpdateStats_belowThreshold_doesNotNotify()
297 .insertEntry(TEST_IFACE, BASE_BYTES, 8L, BASE_BYTES, 16L); in testUpdateStats_deviceAccess_notifies()
304 .insertEntry(TEST_IFACE, BASE_BYTES + THRESHOLD_BYTES, 12L, in testUpdateStats_deviceAccess_notifies()
305 BASE_BYTES + THRESHOLD_BYTES, 22L); in testUpdateStats_deviceAccess_notifies()
330 DEFAULT_NETWORK_YES, BASE_BYTES, 2L, BASE_BYTES, 2L, 0L); in testUpdateStats_defaultAccess_notifiesSameUid()
337 DEFAULT_NETWORK_NO, BASE_BYTES + THRESHOLD_BYTES, 2L, in testUpdateStats_defaultAccess_notifiesSameUid()
338 BASE_BYTES + THRESHOLD_BYTES, 2L, 0L); in testUpdateStats_defaultAccess_notifiesSameUid()
[all …]
/frameworks/base/core/tests/utiltests/src/android/util/
DAtomicFileTest.java59 private static final byte[] BASE_BYTES = "base".getBytes(StandardCharsets.UTF_8); field in AtomicFileTest
94 { "base + none = base", new String[] { BASE_NAME }, null, BASE_BYTES }, in data()
97 { "base + fail = base", new String[] { BASE_NAME }, WriteAction.FAIL, BASE_BYTES }, in data()
99 BASE_BYTES }, in data()
113 BASE_BYTES }, in data()
117 WriteAction.FAIL, BASE_BYTES }, in data()
119 WriteAction.ABORT, BASE_BYTES }, in data()
209 writeBytes(mBaseFile, BASE_BYTES); in testAtomicFile()