Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 465) sorted by relevance

12345678910>>...19

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DCoreMathVerifier.java224 static private Target.Floaty pi(Target t) { in pi() argument
225 return t.newFloaty(Math.PI); in pi()
228 static private Target.Floaty pi32(Target t) { in pi32() argument
229 return t.new32((float) Math.PI); in pi32()
232 static private Target.Floaty any(Target t) { in any() argument
233 return t.newFloaty(Double.NEGATIVE_INFINITY, Double.NaN, Double.POSITIVE_INFINITY); in any()
236 static private Target.Floaty any32(Target t) { in any32() argument
237 return t.new32(Float.NEGATIVE_INFINITY, Float.NaN, Float.POSITIVE_INFINITY); in any32()
240 static private Target.Floaty acos(double d, Target t) { in acos() argument
241 Target.Floaty in = t.newFloaty(d); in acos()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int_lit8/
DTest_rsub_int_lit8.java36 T_rsub_int_lit8_1 t = new T_rsub_int_lit8_1(); in testN1() local
37 assertEquals("Subtest_1 is failed", -4, t.run(8)); in testN1()
38 assertEquals("Subtest_2 is failed",45, t.run1(15)); in testN1()
39 assertEquals("Subtest_3 is failed",0, t.run2(20)); in testN1()
40 assertEquals("Subtest_4 is failed",-35, t.run3(10)); in testN1()
41 assertEquals("Subtest_5 is failed",-20, t.run4(-50)); in testN1()
42 assertEquals("Subtest_6 is failed",20, t.run5(-70)); in testN1()
49 T_rsub_int_lit8_2 t = new T_rsub_int_lit8_2(); in testN2() local
50 assertEquals("Subtest_1 is failed",123, t.run(0)); in testN2()
51 assertEquals("Subtest_2 is failed",-123, t.run1(0)); in testN2()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int/
DTest_rsub_int.java36 T_rsub_int_1 t = new T_rsub_int_1(); in testN1() local
37 assertEquals("Subtest_1 is failed", -4, t.run(8)); in testN1()
38 assertEquals("Subtest_2 is failed",45, t.run1(15)); in testN1()
39 assertEquals("Subtest_3 is failed",0, t.run2(20)); in testN1()
40 assertEquals("Subtest_4 is failed",-35, t.run3(10)); in testN1()
41 assertEquals("Subtest_5 is failed",-20, t.run4(-50)); in testN1()
42 assertEquals("Subtest_6 is failed",20, t.run5(-70)); in testN1()
49 T_rsub_int_2 t = new T_rsub_int_2(); in testN2() local
50 assertEquals("Subtest_1 is failed",255, t.run(0)); in testN2()
51 assertEquals("Subtest_2 is failed",-32768, t.run1(0)); in testN2()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_int_lit8/
DAddIntLit8.java25 AddIntLit8_1 t = new AddIntLit8_1(); in testN1() local
26 assertEquals(12, t.run()); in testN1()
33 AddIntLit8_2 t = new AddIntLit8_2(); in testN2() local
34 assertEquals(-1, t.run()); in testN2()
41 AddIntLit8_3 t = new AddIntLit8_3(); in testN3() local
42 assertEquals(-128, t.run()); in testN3()
49 AddIntLit8_4 t = new AddIntLit8_4(); in testN4() local
50 assertEquals(-2147483647, t.run()); in testN4()
57 AddIntLit8_5 t = new AddIntLit8_5(); in testN5() local
58 assertEquals(-2147483648, t.run()); in testN5()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_int_lit16/
DAddIntLit16Test.java25 AddIntLit16_1 t = new AddIntLit16_1(); in testN1() local
26 assertEquals(12, t.run()); in testN1()
33 AddIntLit16_2 t = new AddIntLit16_2(); in testN2() local
34 assertEquals(255, t.run()); in testN2()
41 AddIntLit16_3 t = new AddIntLit16_3(); in testN3() local
42 assertEquals(-32768, t.run()); in testN3()
49 AddIntLit16_4 t = new AddIntLit16_4(); in testN4() local
50 assertEquals(-2147483647, t.run()); in testN4()
57 AddIntLit16_5 t = new AddIntLit16_5(); in testN5() local
58 assertEquals(-2147483648, t.run()); in testN5()
[all …]
/cts/tests/tests/text/src/android/text/format/cts/
DTimeTest.java171 Time t = new Time(); in testParseNull() local
172 t.parse(null); in testParseNull()
177 Time t = new Time(); in testParse3339Null() local
178 t.parse3339(null); in testParse3339Null()
186 Time t = new Time(); in testBug16002() local
189 t.parse3339("xxx"); in testBug16002()
201 Time t = new Time(); in testBug22225() local
204 t.parse("xxx"); in testBug22225()
439 Time t = new Time(originalTz); in testSwitchTimezone_simpleUtc() local
440 Fields.set(t, 2006, 9, 5, 12, 0, 0, -1 /* isDst */, 0, 0, 0); in testSwitchTimezone_simpleUtc()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/int_to_byte/
DTest_int_to_byte.java30 T_int_to_byte_1 t = new T_int_to_byte_1(); in testN1() local
31 assertEquals(1, t.run(1)); in testN1()
38 T_int_to_byte_1 t = new T_int_to_byte_1(); in testN2() local
39 assertEquals(-1, t.run(-1)); in testN2()
46 T_int_to_byte_1 t = new T_int_to_byte_1(); in testN3() local
47 assertEquals(16, t.run(16)); in testN3()
54 T_int_to_byte_1 t = new T_int_to_byte_1(); in testN4() local
55 assertEquals(-32, t.run(-32)); in testN4()
62 T_int_to_byte_1 t = new T_int_to_byte_1(); in testN5() local
63 assertEquals(-122, t.run(134)); in testN5()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_int_2addr/
DAddInt2AddrTest.java25 AddInt2Addr_1 t = new AddInt2Addr_1(); in testN1() local
26 assertEquals(12, t.run(8, 4)); in testN1()
33 AddInt2Addr_1 t = new AddInt2Addr_1(); in testN2() local
34 assertEquals(255, t.run(0, 255)); in testN2()
41 AddInt2Addr_1 t = new AddInt2Addr_1(); in testN3() local
42 assertEquals(-65536, t.run(0, -65536)); in testN3()
49 AddInt2Addr_1 t = new AddInt2Addr_1(); in testN4() local
50 assertEquals(-2147483647, t.run(0, -2147483647)); in testN4()
57 AddInt2Addr_1 t = new AddInt2Addr_1(); in testN5() local
58 assertEquals(-2147483648, t.run(0x7ffffffe, 2)); in testN5()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_int/
DAddIntTest.java25 AddInt_1 t = new AddInt_1(); in testN1() local
26 assertEquals(12, t.run(8, 4)); in testN1()
33 AddInt_1 t = new AddInt_1(); in testN2() local
34 assertEquals(255, t.run(0, 255)); in testN2()
41 AddInt_1 t = new AddInt_1(); in testN3() local
42 assertEquals(-65536, t.run(0, -65536)); in testN3()
49 AddInt_1 t = new AddInt_1(); in testN4() local
50 assertEquals(-2147483647, t.run(0, -2147483647)); in testN4()
57 AddInt_1 t = new AddInt_1(); in testN5() local
58 assertEquals(-2147483648, t.run(0x7ffffffe, 2)); in testN5()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_float/
DAddFloatTest.java26 AddFloat_1 t = new AddFloat_1(); in testN1() local
27 assertEquals(5.84f, t.run(2.7f, 3.14f)); in testN1()
34 AddFloat_1 t = new AddFloat_1(); in testN2() local
35 assertEquals(-3.14f, t.run(0, -3.14f)); in testN2()
42 AddFloat_1 t = new AddFloat_1(); in testN3() local
43 assertEquals(-5.84f, t.run(-3.14f, -2.7f)); in testN3()
50 AddFloat_1 t = new AddFloat_1(); in testB1() local
51 assertEquals(Float.POSITIVE_INFINITY, t.run(3.3028235E38f, 0.11E38f)); in testB1()
59 AddFloat_1 t = new AddFloat_1(); in testB2() local
60 assertTrue(Float.isNaN(t.run(Float.POSITIVE_INFINITY, in testB2()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_float_2addr/
DAddFloat2AddrTest.java25 AddFloat2Addr_1 t = new AddFloat2Addr_1(); in testN1() local
26 assertEquals(5.84f, t.run(2.7f, 3.14f)); in testN1()
33 AddFloat2Addr_1 t = new AddFloat2Addr_1(); in testN2() local
34 assertEquals(-3.14f, t.run(0, -3.14f)); in testN2()
41 AddFloat2Addr_1 t = new AddFloat2Addr_1(); in testN3() local
42 assertEquals(-5.84f, t.run(-3.14f, -2.7f)); in testN3()
49 AddFloat2Addr_1 t = new AddFloat2Addr_1(); in testB1() local
50 assertEquals(Float.POSITIVE_INFINITY, t.run(3.3028235E38f, 0.11E38f)); in testB1()
58 AddFloat2Addr_1 t = new AddFloat2Addr_1(); in testB2() local
59 assertTrue(Float.isNaN(t.run(Float.POSITIVE_INFINITY, in testB2()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_double/
DAddDoubleTest.java26 AddDouble_1 t = new AddDouble_1(); in testN1() local
27 assertEquals(5.84d, t.run(2.7d, 3.14d)); in testN1()
34 AddDouble_1 t = new AddDouble_1(); in testN2() local
35 assertEquals(-3.14d, t.run(0, -3.14d)); in testN2()
42 AddDouble_1 t = new AddDouble_1(); in testN3() local
43 assertEquals(-5.84d, t.run(-3.14d, -2.7d)); in testN3()
50 AddDouble_1 t = new AddDouble_1(); in testB1() local
51 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1()
59 AddDouble_1 t = new AddDouble_1(); in testB2() local
60 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY)); in testB2()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_double_2addr/
DAddDouble2AddrTest.java26 AddDouble2Addr_1 t = new AddDouble2Addr_1(); in testN1() local
27 assertEquals(5.84d, t.run(2.7d, 3.14d)); in testN1()
34 AddDouble2Addr_1 t = new AddDouble2Addr_1(); in testN2() local
35 assertEquals(-3.14d, t.run(0, -3.14d)); in testN2()
42 AddDouble2Addr_1 t = new AddDouble2Addr_1(); in testN3() local
43 assertEquals(-5.84d, t.run(-3.14d, -2.7d)); in testN3()
50 AddDouble2Addr_1 t = new AddDouble2Addr_1(); in testB1() local
51 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1()
59 AddDouble2Addr_1 t = new AddDouble2Addr_1(); in testB2() local
60 assertEquals(Double.NaN, t.run(Double.POSITIVE_INFINITY, in testB2()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/format/f1/
DTest_f1.java32 } catch (Throwable t) { in testVFE1()
33 DxUtil.checkVerifyException(t); in testVFE1()
45 } catch (Throwable t) { in testVFE2()
46 DxUtil.checkVerifyException(t); in testVFE2()
58 } catch (Throwable t) { in testVFE3()
59 DxUtil.checkVerifyException(t); in testVFE3()
71 } catch (Throwable t) { in testVFE4()
72 DxUtil.checkVerifyException(t); in testVFE4()
84 } catch (Throwable t) { in testVFE5()
85 DxUtil.checkVerifyException(t); in testVFE5()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_long/
DAddLongTest.java26 AddLong_1 t = new AddLong_1(); in testN1() local
27 assertEquals(99999999l, t.run(12345678l, 87654321l)); in testN1()
34 AddLong_1 t = new AddLong_1(); in testN2() local
35 assertEquals(87654321l, t.run(0l, 87654321l)); in testN2()
42 AddLong_1 t = new AddLong_1(); in testN3() local
43 assertEquals(-12345678l, t.run(-12345678l, 0l)); in testN3()
50 AddLong_1 t = new AddLong_1(); in testB1() local
51 assertEquals(9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1()
58 AddLong_1 t = new AddLong_1(); in testB2() local
59 assertEquals(-9223372036854775808L, t.run(0l, Long.MIN_VALUE)); in testB2()
[all …]
/cts/tests/vm/src/android/vm/cts/opcodes/add_long_2addr/
DAddLong2AddrTest.java25 AddLong2Addr_1 t = new AddLong2Addr_1(); in testN1() local
26 assertEquals(99999999l, t.run(12345678l, 87654321l)); in testN1()
33 AddLong2Addr_1 t = new AddLong2Addr_1(); in testN2() local
34 assertEquals(87654321l, t.run(0l, 87654321l)); in testN2()
41 AddLong2Addr_1 t = new AddLong2Addr_1(); in testN3() local
42 assertEquals(-12345678l, t.run(-12345678l, 0l)); in testN3()
49 AddLong2Addr_1 t = new AddLong2Addr_1(); in testB1() local
50 assertEquals(9223372036854775807L, t.run(0l, Long.MAX_VALUE)); in testB1()
57 AddLong2Addr_1 t = new AddLong2Addr_1(); in testB2() local
58 assertEquals(-9223372036854775808L, t.run(0l, Long.MIN_VALUE)); in testB2()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_float/
DTest_sub_float.java31 T_sub_float_1 t = new T_sub_float_1(); in testN1() local
32 assertEquals(-0.44000006f, t.run(2.7f, 3.14f)); in testN1()
39 T_sub_float_1 t = new T_sub_float_1(); in testN2() local
40 assertEquals(3.14f, t.run(0, -3.14f)); in testN2()
47 T_sub_float_1 t = new T_sub_float_1(); in testN3() local
48 assertEquals(-0.44000006f, t.run(-3.14f, -2.7f)); in testN3()
55 T_sub_float_1 t = new T_sub_float_1(); in testB1() local
56 assertEquals(Float.NaN, t.run(Float.MAX_VALUE, Float.NaN)); in testB1()
64 T_sub_float_1 t = new T_sub_float_1(); in testB2() local
65 assertEquals(Float.POSITIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, in testB2()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_float_2addr/
DTest_sub_float_2addr.java29 T_sub_float_2addr_1 t = new T_sub_float_2addr_1(); in testN1() local
30 assertEquals(-0.44000006f, t.run(2.7f, 3.14f)); in testN1()
37 T_sub_float_2addr_1 t = new T_sub_float_2addr_1(); in testN2() local
38 assertEquals(3.14f, t.run(0, -3.14f)); in testN2()
45 T_sub_float_2addr_1 t = new T_sub_float_2addr_1(); in testN3() local
46 assertEquals(-0.44000006f, t.run(-3.14f, -2.7f)); in testN3()
53 T_sub_float_2addr_1 t = new T_sub_float_2addr_1(); in testB1() local
54 assertEquals(Float.NaN, t.run(Float.MAX_VALUE, Float.NaN)); in testB1()
62 T_sub_float_2addr_1 t = new T_sub_float_2addr_1(); in testB2() local
63 assertEquals(Float.POSITIVE_INFINITY, t.run(Float.POSITIVE_INFINITY, in testB2()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_double_2addr/
DTest_sub_double_2addr.java29 T_sub_double_2addr_1 t = new T_sub_double_2addr_1(); in testN1() local
30 assertEquals(-0.43999999999999995d, t.run(2.7d, 3.14d)); in testN1()
37 T_sub_double_2addr_1 t = new T_sub_double_2addr_1(); in testN2() local
38 assertEquals(3.14d, t.run(0, -3.14d)); in testN2()
45 T_sub_double_2addr_1 t = new T_sub_double_2addr_1(); in testN3() local
46 assertEquals(-0.43999999999999995d, t.run(-3.14d, -2.7d)); in testN3()
53 T_sub_double_2addr_1 t = new T_sub_double_2addr_1(); in testB1() local
54 assertEquals(Double.NaN, t.run(Double.MAX_VALUE, Double.NaN)); in testB1()
62 T_sub_double_2addr_1 t = new T_sub_double_2addr_1(); in testB2() local
63 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.POSITIVE_INFINITY, in testB2()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_int/
DTest_sub_int.java30 T_sub_int_1 t = new T_sub_int_1(); in testN1() local
31 assertEquals(4, t.run(8, 4)); in testN1()
38 T_sub_int_1 t = new T_sub_int_1(); in testN2() local
39 assertEquals(-255, t.run(0, 255)); in testN2()
46 T_sub_int_1 t = new T_sub_int_1(); in testN3() local
47 assertEquals(65536, t.run(0, -65536)); in testN3()
54 T_sub_int_1 t = new T_sub_int_1(); in testN4() local
55 assertEquals(Integer.MAX_VALUE, t.run(0, -2147483647)); in testN4()
62 T_sub_int_1 t = new T_sub_int_1(); in testB1() local
63 assertEquals(-2147483647, t.run(0, Integer.MAX_VALUE)); in testB1()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/sub_int_2addr/
DTest_sub_int_2addr.java29 T_sub_int_2addr_1 t = new T_sub_int_2addr_1(); in testN1() local
30 assertEquals(4, t.run(8, 4)); in testN1()
37 T_sub_int_2addr_1 t = new T_sub_int_2addr_1(); in testN2() local
38 assertEquals(-255, t.run(0, 255)); in testN2()
45 T_sub_int_2addr_1 t = new T_sub_int_2addr_1(); in testN3() local
46 assertEquals(65536, t.run(0, -65536)); in testN3()
53 T_sub_int_2addr_1 t = new T_sub_int_2addr_1(); in testN4() local
54 assertEquals(Integer.MAX_VALUE, t.run(0, -2147483647)); in testN4()
61 T_sub_int_2addr_1 t = new T_sub_int_2addr_1(); in testB1() local
62 assertEquals(-2147483647, t.run(0, Integer.MAX_VALUE)); in testB1()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_int_2addr/
DTest_add_int_2addr.java29 T_add_int_2addr_1 t = new T_add_int_2addr_1(); in testN1() local
30 assertEquals(12, t.run(8, 4)); in testN1()
37 T_add_int_2addr_1 t = new T_add_int_2addr_1(); in testN2() local
38 assertEquals(255, t.run(0, 255)); in testN2()
45 T_add_int_2addr_1 t = new T_add_int_2addr_1(); in testN3() local
46 assertEquals(-65536, t.run(0, -65536)); in testN3()
53 T_add_int_2addr_1 t = new T_add_int_2addr_1(); in testN4() local
54 assertEquals(-2147483647, t.run(0, -2147483647)); in testN4()
61 T_add_int_2addr_1 t = new T_add_int_2addr_1(); in testN5() local
62 assertEquals(-2147483648, t.run(0x7ffffffe, 2)); in testN5()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_long/
DTest_div_long.java30 T_div_long_1 t = new T_div_long_1(); in testN1() local
31 assertEquals(2l, t.run(100000000000l, 40000000000l)); in testN1()
38 T_div_long_1 t = new T_div_long_1(); in testN2() local
39 assertEquals(8l, t.run(98765432123456l, 12345678912345l)); in testN2()
46 T_div_long_1 t = new T_div_long_1(); in testN3() local
47 assertEquals(0l, t.run(0l, 98765432123456l)); in testN3()
54 T_div_long_1 t = new T_div_long_1(); in testN4() local
55 assertEquals(-8, t.run(-98765432123456l, 12345678912345l)); in testN4()
62 T_div_long_1 t = new T_div_long_1(); in testN5() local
63 assertEquals(-8, t.run(98765432123456l, -12345678912345l)); in testN5()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/div_long_2addr/
DTest_div_long_2addr.java29 T_div_long_2addr_1 t = new T_div_long_2addr_1(); in testN1() local
30 assertEquals(2l, t.run(100000000000l, 40000000000l)); in testN1()
37 T_div_long_2addr_1 t = new T_div_long_2addr_1(); in testN2() local
38 assertEquals(8l, t.run(98765432123456l, 12345678912345l)); in testN2()
45 T_div_long_2addr_1 t = new T_div_long_2addr_1(); in testN3() local
46 assertEquals(0l, t.run(0l, 98765432123456l)); in testN3()
53 T_div_long_2addr_1 t = new T_div_long_2addr_1(); in testN4() local
54 assertEquals(-8, t.run(-98765432123456l, 12345678912345l)); in testN4()
61 T_div_long_2addr_1 t = new T_div_long_2addr_1(); in testN5() local
62 assertEquals(-8, t.run(98765432123456l, -12345678912345l)); in testN5()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/add_int/
DTest_add_int.java29 T_add_int_1 t = new T_add_int_1(); in testN1() local
30 assertEquals(12, t.run(8, 4)); in testN1()
37 T_add_int_1 t = new T_add_int_1(); in testN2() local
38 assertEquals(255, t.run(0, 255)); in testN2()
45 T_add_int_1 t = new T_add_int_1(); in testN3() local
46 assertEquals(-65536, t.run(0, -65536)); in testN3()
53 T_add_int_1 t = new T_add_int_1(); in testN4() local
54 assertEquals(-2147483647, t.run(0, -2147483647)); in testN4()
61 T_add_int_1 t = new T_add_int_1(); in testN5() local
62 assertEquals(-2147483648, t.run(0x7ffffffe, 2)); in testN5()
[all …]

12345678910>>...19