/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_long/ |
D | Test_add_long.java | 54 assertEquals(9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1() 62 assertEquals(-9223372036854775808L, t.run(0l, Long.MIN_VALUE)); in testB2() 78 assertEquals(-2, t.run(Long.MAX_VALUE, Long.MAX_VALUE)); in testB4() 86 assertEquals(-1l, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); in testB5() 94 assertEquals(0l, t.run(Long.MIN_VALUE, Long.MIN_VALUE)); in testB6() 102 assertEquals(-9223372036854775807l, t.run(Long.MIN_VALUE, 1l)); in testB7() 110 assertEquals(-9223372036854775808l, t.run(Long.MAX_VALUE, 1l)); in testB8()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_long_2addr/ |
D | Test_add_long_2addr.java | 54 assertEquals(9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1() 62 assertEquals(-9223372036854775808L, t.run(0l, Long.MIN_VALUE)); in testB2() 78 assertEquals(-2, t.run(Long.MAX_VALUE, Long.MAX_VALUE)); in testB4() 86 assertEquals(-1l, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); in testB5() 94 assertEquals(0l, t.run(Long.MIN_VALUE, Long.MIN_VALUE)); in testB6() 102 assertEquals(-9223372036854775807l, t.run(Long.MIN_VALUE, 1l)); in testB7() 110 assertEquals(-9223372036854775808l, t.run(Long.MAX_VALUE, 1l)); in testB8()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | InitialValueVerification.java | 41 private static final Map<Integer, Pair<Float, Long>> DEFAULTS = 42 new HashMap<Integer, Pair<Float, Long>>(12); 80 Pair<Float, Long> maxAbsoluteDeltaAndInitialWindowLength = DEFAULTS.get(sensorType); in getDefault() 161 new Pair<Float, Long>(Float.MAX_VALUE, DEFAULT_INITIAL_WINDOW_LENGTH)); in setDefaults() 163 new Pair<Float, Long>(Float.MAX_VALUE, DEFAULT_INITIAL_WINDOW_LENGTH)); in setDefaults() 165 new Pair<Float, Long>(Float.MAX_VALUE, DEFAULT_INITIAL_WINDOW_LENGTH)); in setDefaults() 167 new Pair<Float, Long>(Float.MAX_VALUE, DEFAULT_INITIAL_WINDOW_LENGTH)); in setDefaults() 169 new Pair<Float, Long>(Float.MAX_VALUE, DEFAULT_INITIAL_WINDOW_LENGTH)); in setDefaults() 171 new Pair<Float, Long>(Float.MAX_VALUE, DEFAULT_INITIAL_WINDOW_LENGTH)); in setDefaults() 174 new Pair<Float, Long>(3f, DEFAULT_INITIAL_WINDOW_LENGTH)); in setDefaults() [all …]
|
D | JitterVerification.java | 59 private final List<Long> mTimestamps = new LinkedList<Long>(); 112 List<Long> deltas = getDeltaValues(); in verify() 113 List<Long> percentileValues = in verify() 160 List<Long> getDeltaValues() { in getDeltaValues() 161 List<Long> deltas = new ArrayList<Long>(mTimestamps.size() - 1); in getDeltaValues()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_long_2addr/ |
D | Test_mul_long_2addr.java | 55 assertEquals(0, t.run(0, Long.MAX_VALUE)); in testB1() 63 assertEquals(9223372036854775807L, t.run(Long.MAX_VALUE, 1)); in testB2() 71 assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, 1)); in testB3() 79 assertEquals(-9223372036854775808L, t.run(Long.MAX_VALUE, in testB4() 80 Long.MIN_VALUE)); in testB4() 96 assertEquals(-9223372036854775807L, t.run(Long.MAX_VALUE, -1)); in testB6() 104 assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, -1)); in testB7()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/mul_long/ |
D | Test_mul_long.java | 55 assertEquals(0, t.run(0, Long.MAX_VALUE)); in testB1() 63 assertEquals(9223372036854775807L, t.run(Long.MAX_VALUE, 1)); in testB2() 71 assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, 1)); in testB3() 79 assertEquals(-9223372036854775808L, t.run(Long.MAX_VALUE, in testB4() 80 Long.MIN_VALUE)); in testB4() 96 assertEquals(-9223372036854775807L, t.run(Long.MAX_VALUE, -1)); in testB6() 104 assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, -1)); in testB7()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_long_2addr/ |
D | Test_div_long_2addr.java | 78 assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, -1)); in testB1() 86 assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, 1)); in testB2() 94 assertEquals(9223372036854775807L, t.run(Long.MAX_VALUE, 1)); in testB3() 102 assertEquals(-1, t.run(Long.MIN_VALUE, Long.MAX_VALUE)); in testB4() 110 assertEquals(0, t.run(1, Long.MAX_VALUE)); in testB5() 118 assertEquals(0, t.run(1, Long.MIN_VALUE)); in testB6()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_long/ |
D | Test_rem_long.java | 79 assertEquals(0l, t.run(Long.MIN_VALUE, -1l)); in testB1() 87 assertEquals(0l, t.run(Long.MIN_VALUE, 1l)); in testB2() 95 assertEquals(0l, t.run(Long.MAX_VALUE, 1l)); in testB3() 103 assertEquals(-1l, t.run(Long.MIN_VALUE, Long.MAX_VALUE)); in testB4() 111 assertEquals(1l, t.run(1l, Long.MAX_VALUE)); in testB5() 119 assertEquals(1l, t.run(1l, Long.MIN_VALUE)); in testB6()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rem_long_2addr/ |
D | Test_rem_long_2addr.java | 79 assertEquals(0l, t.run(Long.MIN_VALUE, -1l)); in testB1() 87 assertEquals(0l, t.run(Long.MIN_VALUE, 1l)); in testB2() 95 assertEquals(0l, t.run(Long.MAX_VALUE, 1l)); in testB3() 103 assertEquals(-1l, t.run(Long.MIN_VALUE, Long.MAX_VALUE)); in testB4() 111 assertEquals(1l, t.run(1l, Long.MAX_VALUE)); in testB5() 119 assertEquals(1l, t.run(1l, Long.MIN_VALUE)); in testB6()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_long/ |
D | Test_div_long.java | 79 assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, -1)); in testB1() 87 assertEquals(-9223372036854775808L, t.run(Long.MIN_VALUE, 1)); in testB2() 95 assertEquals(9223372036854775807L, t.run(Long.MAX_VALUE, 1)); in testB3() 103 assertEquals(-1, t.run(Long.MIN_VALUE, Long.MAX_VALUE)); in testB4() 111 assertEquals(0, t.run(1, Long.MAX_VALUE)); in testB5() 119 assertEquals(0, t.run(1, Long.MIN_VALUE)); in testB6()
|
/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | ProtoOutputStreamFixed64Test.java | 56 po.writeFixed64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testWrite() 57 po.writeFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite() 99 testWriteCompat(Long.MIN_VALUE); in testWriteCompat() 100 testWriteCompat(Long.MAX_VALUE); in testWriteCompat() 151 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 152 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 159 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 160 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 231 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat() 299 writePackedFixed64(po, 6, Long.MIN_VALUE); in testPacked() [all …]
|
D | ProtoOutputStreamSInt64Test.java | 56 po.writeSInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testWrite() 57 po.writeSInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite() 95 testWriteCompat(Long.MIN_VALUE); in testWriteCompat() 96 testWriteCompat(Long.MAX_VALUE); in testWriteCompat() 147 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 148 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 155 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 156 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 217 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat() 284 writePackedSInt64(po, 6, Long.MIN_VALUE); in testPacked() [all …]
|
D | ProtoOutputStreamSFixed64Test.java | 56 po.writeSFixed64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testWrite() 57 po.writeSFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite() 99 testWriteCompat(Long.MIN_VALUE); in testWriteCompat() 100 testWriteCompat(Long.MAX_VALUE); in testWriteCompat() 151 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 152 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 159 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 160 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 230 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat() 298 writePackedSFixed64(po, 6, Long.MIN_VALUE); in testPacked() [all …]
|
D | ProtoOutputStreamUInt64Test.java | 56 po.writeUInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testWrite() 57 po.writeUInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite() 96 testWriteCompat(Long.MIN_VALUE); in testWriteCompat() 97 testWriteCompat(Long.MAX_VALUE); in testWriteCompat() 148 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 149 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 156 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 157 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 221 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat() 288 writePackedUInt64(po, 6, Long.MIN_VALUE); in testPacked() [all …]
|
D | ProtoOutputStreamInt64Test.java | 56 po.writeInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testWrite() 57 po.writeInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite() 96 testWriteCompat(Long.MIN_VALUE); in testWriteCompat() 97 testWriteCompat(Long.MAX_VALUE); in testWriteCompat() 148 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 149 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 156 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(6, fieldFlags), Long.MIN_VALUE); in testRepeated() 157 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated() 221 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat() 288 writePackedInt64(po, 6, Long.MIN_VALUE); in testPacked() [all …]
|
/cts/tests/tests/os/src/android/os/health/cts/ |
D | TimerStatTest.java | 46 TimerStat timer = new TimerStat(Integer.MAX_VALUE, Long.MAX_VALUE); in testSetCount() 53 Assert.assertEquals(Long.MAX_VALUE, timer.getTime()); in testSetCount() 61 TimerStat timer = new TimerStat(Integer.MAX_VALUE, Long.MAX_VALUE); in testSetTime() 76 TimerStat timer = new TimerStat(Integer.MAX_VALUE, Long.MAX_VALUE); in testParceling() 79 Assert.assertEquals(Long.MAX_VALUE, timer.getTime()); in testParceling() 90 Assert.assertEquals(Long.MAX_VALUE, readback.getTime()); in testParceling()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_DeletedContacts.java | 70 if (Long.parseLong(record[0]) == ids.mContactId) { in testQuery_returnsProperColumns() 72 assertTrue(Long.parseLong(record[1]) > start); in testQuery_returnsProperColumns() 104 HashSet<Long> beforeIds = new HashSet<Long>(); in testQuerySinceTimestamp() 111 HashSet<Long> afterIds = new HashSet<Long>(); in testQuerySinceTimestamp() 124 long contactId = Long.parseLong(record[0]); in testQuerySinceTimestamp() 129 assertTrue(Long.parseLong(record[1]) > start); in testQuerySinceTimestamp()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_long/ |
D | Test_sub_long.java | 55 assertEquals(-9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1() 63 assertEquals(0l, t.run(9223372036854775807L, Long.MAX_VALUE)); in testB2() 71 assertEquals(-9223372036854775808L, t.run(Long.MAX_VALUE, -1l)); in testB3() 79 assertEquals(9223372036854775807L, t.run(Long.MIN_VALUE, 1l)); in testB4() 95 assertEquals(-9223372036854775808L, t.run(0l, -Long.MIN_VALUE)); in testB6()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_long_2addr/ |
D | Test_sub_long_2addr.java | 55 assertEquals(-9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1() 63 assertEquals(0l, t.run(9223372036854775807L, Long.MAX_VALUE)); in testB2() 71 assertEquals(-9223372036854775808L, t.run(Long.MAX_VALUE, -1l)); in testB3() 79 assertEquals(9223372036854775807L, t.run(Long.MIN_VALUE, 1l)); in testB4() 95 assertEquals(-9223372036854775808L, t.run(0l, -Long.MIN_VALUE)); in testB6()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/xor_long/ |
D | Test_xor_long.java | 62 assertEquals(0xffffffff, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); in testB2() 70 assertEquals(0l, t.run(Long.MAX_VALUE, Long.MAX_VALUE)); in testB3()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/xor_long_2addr/ |
D | Test_xor_long_2addr.java | 63 assertEquals(0xffffffff, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); in testB2() 71 assertEquals(0l, t.run(Long.MAX_VALUE, Long.MAX_VALUE)); in testB3()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | GnssLocationUpdateIntervalTest.java | 117 List<Long> activeDeltas = getTimeBetweenFixes(LocationManager.GPS_PROVIDER, in validateLocationUpdateInterval() 125 List<Long> passiveDeltas = getTimeBetweenFixes(LocationManager.PASSIVE_PROVIDER, in validateLocationUpdateInterval() 136 private static List<Long> getTimeBetweenFixes(String provider, List<Location> locations, in getTimeBetweenFixes() 138 List<Long> deltas = new ArrayList(locations.size()); in getTimeBetweenFixes() 168 int fixIntervalMillis, List<Long> deltas, double minMeanRatio) { in assertMeanAndStdev() 183 private static double computeMean(List<Long> deltas) { in computeMean() 191 private static double computeStdev(double mean, List<Long> deltas) { in computeStdev()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/cmp_long/ |
D | Test_cmp_long.java | 54 assertEquals(1, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); in testB1() 62 assertEquals(-1, t.run(Long.MIN_VALUE, Long.MAX_VALUE)); in testB2()
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/not_long/ |
D | Test_not_long.java | 56 assertEquals(Long.MIN_VALUE, t.run(Long.MAX_VALUE)); in testB1() 64 assertEquals(Long.MAX_VALUE, t.run(Long.MIN_VALUE)); in testB2()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | LongSparseArrayTest.java | 178 LongSparseArray<Long> sparseArray = new LongSparseArray<>(); in testIterationOrder() 180 sparseArray.put(1L, Long.valueOf(2L)); in testIterationOrder() 181 sparseArray.put(10L, Long.valueOf(20L)); in testIterationOrder() 182 sparseArray.put(5L, Long.valueOf(40L)); in testIterationOrder() 183 sparseArray.put(Long.MAX_VALUE, Long.valueOf(Long.MIN_VALUE)); in testIterationOrder() 188 assertEquals(Long.MAX_VALUE, sparseArray.keyAt(3)); in testIterationOrder() 193 assertEquals(Long.MIN_VALUE, sparseArray.valueAt(3).longValue()); in testIterationOrder()
|