Home
last modified time | relevance | path

Searched refs:MAX_VALUE (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DStandardDeviationVerification.java216 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE}); in setDefaults()
218 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE}); in setDefaults()
220 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE}); in setDefaults()
222 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE}); in setDefaults()
224 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE}); in setDefaults()
226 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, in setDefaults()
227 Float.MAX_VALUE}); in setDefaults()
229 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, in setDefaults()
230 Float.MAX_VALUE, Float.MAX_VALUE}); in setDefaults()
232 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, in setDefaults()
[all …]
DMeanVerification.java136 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE}}); in setDefaults()
141 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE}}); in setDefaults()
145 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE}}); in setDefaults()
149 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, in setDefaults()
150 Float.MAX_VALUE}}); in setDefaults()
154 new float[]{Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, Float.MAX_VALUE, in setDefaults()
155 Float.MAX_VALUE, Float.MAX_VALUE}}); in setDefaults()
DJitterVerification.java172 DEFAULTS.put(Sensor.TYPE_ACCELEROMETER, Integer.MAX_VALUE); in setDefaults()
173 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD, Integer.MAX_VALUE); in setDefaults()
174 DEFAULTS.put(Sensor.TYPE_MAGNETIC_FIELD_UNCALIBRATED, Integer.MAX_VALUE); in setDefaults()
175 DEFAULTS.put(Sensor.TYPE_GYROSCOPE, Integer.MAX_VALUE); in setDefaults()
176 DEFAULTS.put(Sensor.TYPE_GYROSCOPE_UNCALIBRATED, Integer.MAX_VALUE); in setDefaults()
177 DEFAULTS.put(Sensor.TYPE_ORIENTATION, Integer.MAX_VALUE); in setDefaults()
178 DEFAULTS.put(Sensor.TYPE_PRESSURE, Integer.MAX_VALUE); in setDefaults()
179 DEFAULTS.put(Sensor.TYPE_GRAVITY, Integer.MAX_VALUE); in setDefaults()
180 DEFAULTS.put(Sensor.TYPE_LINEAR_ACCELERATION, Integer.MAX_VALUE); in setDefaults()
181 DEFAULTS.put(Sensor.TYPE_ROTATION_VECTOR, Integer.MAX_VALUE); in setDefaults()
[all …]
/cts/tests/tests/os/src/android/os/health/cts/
DTimerStatTest.java46 TimerStat timer = new TimerStat(Integer.MAX_VALUE, Long.MAX_VALUE); in testSetCount()
48 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); 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()
63 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); in testSetTime()
67 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); in testSetTime()
76 TimerStat timer = new TimerStat(Integer.MAX_VALUE, Long.MAX_VALUE); in testParceling()
78 Assert.assertEquals(Integer.MAX_VALUE, timer.getCount()); in testParceling()
79 Assert.assertEquals(Long.MAX_VALUE, timer.getTime()); in testParceling()
89 Assert.assertEquals(Integer.MAX_VALUE, readback.getCount()); in testParceling()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int_lit8/
DTest_rsub_int_lit8.java63 assertEquals(-Integer.MAX_VALUE, t.run(Integer.MAX_VALUE)); in testB1()
64 assertEquals(-Byte.MAX_VALUE, t.run(Byte.MAX_VALUE)); in testB1()
94 assertEquals(Byte.MAX_VALUE, t.run(0)); in testB4()
108 assertEquals(-2147483520, t.run(Integer.MAX_VALUE)); in testB5()
133 assertEquals(2147483521, t.run(Integer.MAX_VALUE)); in testB7()
135 assertEquals(-255, t.run(Byte.MAX_VALUE)); in testB7()
145 assertEquals(Integer.MAX_VALUE, t.run(Integer.MIN_VALUE)); in testB8()
146 assertEquals(Byte.MAX_VALUE, t.run(Byte.MIN_VALUE)); in testB8()
156 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE)); in testB9()
157 assertEquals(Byte.MIN_VALUE, t.run(Byte.MAX_VALUE)); in testB9()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int/
DTest_rsub_int.java63 assertEquals(-Integer.MAX_VALUE, t.run(Integer.MAX_VALUE)); in testB1()
64 assertEquals(-Short.MAX_VALUE, t.run(Short.MAX_VALUE)); in testB1()
94 assertEquals(Short.MAX_VALUE, t.run(0)); in testB4()
108 assertEquals(-2147450880, t.run(Integer.MAX_VALUE)); in testB5()
133 assertEquals(2147450881, t.run(Integer.MAX_VALUE)); in testB7()
135 assertEquals(-65535, t.run(Short.MAX_VALUE)); in testB7()
145 assertEquals(Integer.MAX_VALUE, t.run(Integer.MIN_VALUE)); in testB8()
146 assertEquals(Short.MAX_VALUE, t.run(Short.MIN_VALUE)); in testB8()
156 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE)); in testB9()
157 assertEquals(-32768, t.run(Short.MAX_VALUE)); in testB9()
[all …]
/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DSampleDeviceInfo.java33 double[] doubles = {Double.MAX_VALUE, Double.MIN_VALUE}; in collectDeviceInfo()
34 int[] ints = {Integer.MAX_VALUE, Integer.MIN_VALUE}; in collectDeviceInfo()
35 long[] longs = {Long.MAX_VALUE, Long.MIN_VALUE}; in collectDeviceInfo()
36 float[] floats = {Float.MAX_VALUE, Float.MIN_VALUE, Float.NaN}; in collectDeviceInfo()
56 store.addResult("foo_double", Double.MAX_VALUE); in collectDeviceInfo()
57 store.addResult("foo_int", Integer.MAX_VALUE); in collectDeviceInfo()
58 store.addResult("foo_long", Long.MAX_VALUE); in collectDeviceInfo()
61 store.addResult("foo_float_max", Float.MAX_VALUE + 1); in collectDeviceInfo()
/cts/tests/tests/net/src/android/net/cts/
DCredentialsTest.java33 cred = new Credentials(Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE); in testCredentials()
34 assertEquals(Integer.MAX_VALUE, cred.getGid()); in testCredentials()
35 assertEquals(Integer.MAX_VALUE, cred.getPid()); in testCredentials()
36 assertEquals(Integer.MAX_VALUE, cred.getUid()); in testCredentials()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_int_2addr/
DTest_sub_int_2addr.java54 assertEquals(Integer.MAX_VALUE, t.run(0, -2147483647)); in testN4()
62 assertEquals(-2147483647, t.run(0, Integer.MAX_VALUE)); in testB1()
70 assertEquals(0, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); in testB2()
78 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, -1)); in testB3()
86 assertEquals(Integer.MAX_VALUE, t.run(Integer.MIN_VALUE, 1)); in testB4()
110 assertEquals(2147483646, t.run(Integer.MAX_VALUE, 1)); in testB7()
126 assertEquals(-1, t.run(Integer.MAX_VALUE, Integer.MIN_VALUE)); in testB9()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_int/
DTest_sub_int.java55 assertEquals(Integer.MAX_VALUE, t.run(0, -2147483647)); in testN4()
63 assertEquals(-2147483647, t.run(0, Integer.MAX_VALUE)); in testB1()
71 assertEquals(0, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); in testB2()
79 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, -1)); in testB3()
87 assertEquals(Integer.MAX_VALUE, t.run(Integer.MIN_VALUE, 1)); in testB4()
111 assertEquals(2147483646, t.run(Integer.MAX_VALUE, 1)); in testB7()
127 assertEquals(-1, t.run(Integer.MAX_VALUE, Integer.MIN_VALUE)); in testB9()
/cts/tests/tests/util/src/android/util/cts/
DMutableTest.java58 mut = new MutableDouble(Double.MAX_VALUE); in testMutableDouble()
59 assertEquals(Double.MAX_VALUE, mut.value, 0); in testMutableDouble()
66 mut = new MutableFloat(Float.MAX_VALUE); in testMutableFloat()
67 assertEquals(Float.MAX_VALUE, mut.value, 0); in testMutableFloat()
74 mut = new MutableShort(Short.MAX_VALUE); in testMutableShort()
75 assertEquals(Short.MAX_VALUE, mut.value); in testMutableShort()
/cts/tests/tests/print/src/android/print/cts/
DClassParametersTest.java115 Resolution testResolution3 = new Resolution("testId3", "testLabel3", Integer.MAX_VALUE, in legalPrintAttributesResolution()
116 Integer.MAX_VALUE); in legalPrintAttributesResolution()
119 assertEquals(Integer.MAX_VALUE, testResolution3.getHorizontalDpi()); in legalPrintAttributesResolution()
120 assertEquals(Integer.MAX_VALUE, testResolution3.getVerticalDpi()); in legalPrintAttributesResolution()
200 MediaSize testMediaSize3 = new MediaSize("testId3", "testLabel3", Integer.MAX_VALUE, in legalPrintAttributesMediaSize()
201 Integer.MAX_VALUE - 1); in legalPrintAttributesMediaSize()
204 assertEquals(Integer.MAX_VALUE, testMediaSize3.getWidthMils()); in legalPrintAttributesMediaSize()
205 assertEquals(Integer.MAX_VALUE - 1, testMediaSize3.getHeightMils()); in legalPrintAttributesMediaSize()
211 assertEquals(Integer.MAX_VALUE, testMediaSize3L.getWidthMils()); in legalPrintAttributesMediaSize()
212 assertEquals(Integer.MAX_VALUE - 1, testMediaSize3L.getHeightMils()); in legalPrintAttributesMediaSize()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_long/
DAddLongTest.java51 assertEquals(9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1()
75 assertEquals(-2, t.run(Long.MAX_VALUE, Long.MAX_VALUE)); in testB4()
83 assertEquals(-1l, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); in testB5()
107 assertEquals(-9223372036854775808l, t.run(Long.MAX_VALUE, 1l)); in testB8()
/cts/tests/vm/src/android/vm/cts/opcodes/add_long_2addr/
DAddLong2AddrTest.java50 assertEquals(9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1()
74 assertEquals(-2, t.run(Long.MAX_VALUE, Long.MAX_VALUE)); in testB4()
82 assertEquals(-1l, t.run(Long.MAX_VALUE, Long.MIN_VALUE)); in testB5()
106 assertEquals(-9223372036854775808l, t.run(Long.MAX_VALUE, 1l)); in testB8()
/cts/tests/tests/database/src/android/database/cts/
DCursorJoinerTest.java37 private static final int MAX_VALUE = 20; field in CursorJoinerTest
38 private static final int EQUAL_VALUE_COUNT = MAX_VALUE - EQUAL_START + 1;
124 assertEquals(getOrderNumberString(DEFAULT_TABLE1_VALUE_BEGINS + i, MAX_VALUE), in testCursorJoinerAndIterator()
149 assertEquals(getOrderNumberString(DEFAULT_TABLE1_VALUE_BEGINS + i, MAX_VALUE), cursor1 in testNext()
151 assertEquals(getOrderNumberString(DEFAULT_TABLE2_VALUE_BEGINS, MAX_VALUE), cursor2 in testNext()
158 assertEquals(getOrderNumberString(EQUAL_START, MAX_VALUE), cursor1.getString(0)); in testNext()
159 assertEquals(getOrderNumberString(DEFAULT_TABLE2_VALUE_BEGINS + i, MAX_VALUE), cursor2 in testNext()
166 assertEquals(getOrderNumberString(EQUAL_START + i, MAX_VALUE), cursor1.getString(0)); in testNext()
167 assertEquals(getOrderNumberString(EQUAL_START + i, MAX_VALUE), cursor2.getString(0)); in testNext()
198 addValuesIntoTable(TABLE_NAME_1, DEFAULT_TABLE2_VALUE_BEGINS + UNIQUE_COUNT, MAX_VALUE); in initializeTables()
[all …]
/cts/tests/tests/proto/src/android/util/proto/cts/
DProtoOutputStreamSInt64Test.java55 po.writeSInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testWrite()
57 po.writeSInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite()
94 testWriteCompat(Integer.MAX_VALUE); in testWriteCompat()
96 testWriteCompat(Long.MAX_VALUE); in testWriteCompat()
146 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
148 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
154 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
156 po.writeRepeatedSInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
216 testRepeatedCompat(new long[] { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE, in testRepeatedCompat()
217 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat()
[all …]
DProtoOutputStreamInt64Test.java55 po.writeInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testWrite()
57 po.writeInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite()
95 testWriteCompat(Integer.MAX_VALUE); in testWriteCompat()
97 testWriteCompat(Long.MAX_VALUE); in testWriteCompat()
147 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
149 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
155 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
157 po.writeRepeatedInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
220 testRepeatedCompat(new long[] { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE, in testRepeatedCompat()
221 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat()
[all …]
DProtoOutputStreamSFixed64Test.java55 po.writeSFixed64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testWrite()
57 po.writeSFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite()
98 testWriteCompat(Integer.MAX_VALUE); in testWriteCompat()
100 testWriteCompat(Long.MAX_VALUE); in testWriteCompat()
150 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
152 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
158 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
160 po.writeRepeatedSFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
229 testRepeatedCompat(new long[] { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE, in testRepeatedCompat()
230 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat()
[all …]
DProtoOutputStreamFixed64Test.java55 po.writeFixed64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testWrite()
57 po.writeFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite()
98 testWriteCompat(Integer.MAX_VALUE); in testWriteCompat()
100 testWriteCompat(Long.MAX_VALUE); in testWriteCompat()
150 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
152 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
158 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
160 po.writeRepeatedFixed64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
230 testRepeatedCompat(new long[] { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE, in testRepeatedCompat()
231 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat()
[all …]
DProtoOutputStreamUInt64Test.java55 po.writeUInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testWrite()
57 po.writeUInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testWrite()
95 testWriteCompat(Integer.MAX_VALUE); in testWriteCompat()
97 testWriteCompat(Long.MAX_VALUE); in testWriteCompat()
147 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
149 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
155 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(5, fieldFlags), Integer.MAX_VALUE); in testRepeated()
157 po.writeRepeatedUInt64(ProtoOutputStream.makeFieldId(7, fieldFlags), Long.MAX_VALUE); in testRepeated()
220 testRepeatedCompat(new long[] { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE, in testRepeatedCompat()
221 Long.MIN_VALUE, Long.MAX_VALUE }); in testRepeatedCompat()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_int_2addr/
DAddInt2AddrTest.java74 assertEquals(Integer.MAX_VALUE, t.run(0, Integer.MAX_VALUE)); in testB1()
82 assertEquals(-2, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); in testB2()
90 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, 1)); in testB3()
/cts/tests/vm/src/android/vm/cts/opcodes/add_int/
DAddIntTest.java75 assertEquals(Integer.MAX_VALUE, t.run(0, Integer.MAX_VALUE)); in testB1()
83 assertEquals(-2, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); in testB2()
91 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, 1)); in testB3()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_long_2addr/
DTest_add_long_2addr.java54 assertEquals(9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1()
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()
110 assertEquals(-9223372036854775808l, t.run(Long.MAX_VALUE, 1l)); in testB8()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_int/
DTest_add_int.java79 assertEquals(Integer.MAX_VALUE, t.run(0, Integer.MAX_VALUE)); in testB1()
87 assertEquals(-2, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); in testB2()
95 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, 1)); in testB3()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_int_2addr/
DTest_add_int_2addr.java78 assertEquals(Integer.MAX_VALUE, t.run(0, Integer.MAX_VALUE)); in testB1()
86 assertEquals(-2, t.run(Integer.MAX_VALUE, Integer.MAX_VALUE)); in testB2()
94 assertEquals(Integer.MIN_VALUE, t.run(Integer.MAX_VALUE, 1)); in testB3()

12345678910>>...12