Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 25 of 72) sorted by relevance

123

/cts/tools/vm-tests-tf/src/dot/junit/opcodes/fill_array_data/
DTest_fill_array_data.java29 int arr[] = new int[5]; in testN1() local
31 t.run(arr); in testN1()
33 assertEquals(i + 1, arr[i]); in testN1()
40 double arr[] = new double[5]; in testN2() local
42 t.run(arr); in testN2()
44 assertEquals((double)(i + 1), arr[i]); in testN2()
52 int arr[] = new int[10]; in testN3() local
54 t.run(arr); in testN3()
56 assertEquals(i + 1, arr[i]); in testN3()
58 assertEquals(0, arr[i]); in testN3()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_wide/
DTest_aget_wide.java33 long[] arr = new long[2]; in testN1() local
34 arr[1] = 1000000000000000000l; in testN1()
35 assertEquals(1000000000000000000l, t.run(arr, 1)); in testN1()
43 long[] arr = new long[2]; in testN2() local
44 arr[0] = 1000000000000000000l; in testN2()
45 assertEquals(1000000000000000000l, t.run(arr, 0)); in testN2()
53 double[] arr = new double[2]; in testN3() local
54 arr[0] = 3.1415d; in testN3()
55 assertEquals(3.1415d, t.run(arr, 0)); in testN3()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_wide/
DTest_aput_wide.java33 long[] arr = new long[2]; in testN1() local
34 t.run(arr, 1, 100000000000l); in testN1()
35 assertEquals(100000000000l, arr[1]); in testN1()
43 long[] arr = new long[2]; in testN2() local
44 t.run(arr, 0, 100000000000l); in testN2()
45 assertEquals(100000000000l, arr[0]); in testN2()
53 double[] arr = new double[2]; in testN3() local
54 t.run(arr, 0, 3.1415d); in testN3()
55 assertEquals(3.1415d, arr[0]); in testN3()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/filled_new_array/
DTest_filled_new_array.java32 int[] arr = t.run(1, 2, 3, 4, 5); in testN1() local
33 assertNotNull(arr); in testN1()
34 assertEquals(5, arr.length); in testN1()
36 assertEquals(i + 1, arr[i]); in testN1()
45 Object[] arr = t.run(t, s); in testN2() local
46 assertNotNull(arr); in testN2()
47 assertEquals(2, arr.length); in testN2()
48 assertEquals(t, arr[0]); in testN2()
49 assertEquals(s, arr[1]); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/filled_new_array_range/
DTest_filled_new_array_range.java32 int[] arr = t.run(1, 2, 3, 4, 5); in testN1() local
33 assertNotNull(arr); in testN1()
34 assertEquals(5, arr.length); in testN1()
36 assertEquals(i + 1, arr[i]); in testN1()
45 Object[] arr = t.run(t, s); in testN2() local
46 assertNotNull(arr); in testN2()
47 assertEquals(2, arr.length); in testN2()
48 assertEquals(t, arr[0]); in testN2()
49 assertEquals(s, arr[1]); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_object/
DTest_aput_object.java33 String[] arr = new String[2]; in testN1() local
34 t.run(arr, 0, "hello"); in testN1()
35 assertEquals("hello", arr[0]); in testN1()
44 String[] arr = new String[2]; in testN2() local
46 t.run(arr, 1, value[i]); in testN2()
47 assertEquals(value[i], arr[1]); in testN2()
56 Integer[] arr = new Integer[2]; in testN3() local
58 t.run(arr, 0, value); in testN3()
59 assertEquals(value, arr[0]); in testN3()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_boolean/
DTest_aput_boolean.java30 boolean[] arr = new boolean[2]; in testN1()
31 t.run(arr, 1, true); in testN1()
32 assertEquals(true, arr[1]); in testN1()
40 boolean[] arr = new boolean[2]; in testN2()
41 t.run(arr, 0, true); in testN2()
42 assertEquals(true, arr[0]); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_char/
DTest_aput_char.java31 char[] arr = new char[2]; in testN1() local
32 t.run(arr, 1, 'g'); in testN1()
33 assertEquals('g', arr[1]); in testN1()
41 char[] arr = new char[2]; in testN2() local
42 t.run(arr, 0, 'g'); in testN2()
43 assertEquals('g', arr[0]); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_char/
DTest_aget_char.java30 char[] arr = new char[2]; in testN1() local
31 arr[1] = 'g'; in testN1()
32 assertEquals('g', t.run(arr, 1)); in testN1()
40 char[] arr = new char[2]; in testN2() local
41 arr[0] = 'g'; in testN2()
42 assertEquals('g', t.run(arr, 0)); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_short/
DTest_aget_short.java30 short[] arr = new short[2]; in testN1() local
31 arr[1] = 10000; in testN1()
32 assertEquals(10000, t.run(arr, 1)); in testN1()
40 short[] arr = new short[2]; in testN2() local
41 arr[0] = 10000; in testN2()
42 assertEquals(10000, t.run(arr, 0)); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput/
DTest_aput.java31 int[] arr = new int[2]; in testN1() local
32 t.run(arr, 1, 100000000); in testN1()
33 assertEquals(100000000, arr[1]); in testN1()
41 int[] arr = new int[2]; in testN2() local
42 t.run(arr, 0, 100000000); in testN2()
43 assertEquals(100000000, arr[0]); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_boolean/
DTest_aget_boolean.java30 boolean[] arr = new boolean[2]; in testN1()
31 arr[1] = true; in testN1()
32 assertEquals(true, t.run(arr, 1)); in testN1()
40 boolean[] arr = new boolean[2]; in testN2()
41 arr[0] = true; in testN2()
42 assertEquals(true, t.run(arr, 0)); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_byte/
DTest_aput_byte.java30 byte[] arr = new byte[2]; in testN1()
31 t.run(arr, 1, (byte) 100); in testN1()
32 assertEquals(100, arr[1]); in testN1()
40 byte[] arr = new byte[2]; in testN2()
41 t.run(arr, 0, (byte) 100); in testN2()
42 assertEquals(100, arr[0]); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aput_short/
DTest_aput_short.java30 short[] arr = new short[2]; in testN1() local
31 t.run(arr, 1, (short) 10000); in testN1()
32 assertEquals(10000, arr[1]); in testN1()
40 short[] arr = new short[2]; in testN2() local
41 t.run(arr, 0, (short) 10000); in testN2()
42 assertEquals(10000, arr[0]); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget/
DTest_aget.java30 int[] arr = new int[2]; in testN1() local
31 arr[1] = 100000000; in testN1()
32 assertEquals(100000000, t.run(arr, 1)); in testN1()
40 int[] arr = new int[2]; in testN2() local
41 arr[0] = 100000000; in testN2()
42 assertEquals(100000000, t.run(arr, 0)); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_byte/
DTest_aget_byte.java31 byte[] arr = new byte[2]; in testN1()
32 arr[1] = 100; in testN1()
33 assertEquals(100, t.run(arr, 1)); in testN1()
41 byte[] arr = new byte[2]; in testN2()
42 arr[0] = 100; in testN2()
43 assertEquals(100, t.run(arr, 0)); in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/move_result_object/d/
DT_move_result_object_8.java22 int arr[] = new int[2]; in run() local
23 arr[0] = 1; in run()
24 arr[1] = 2; in run()
25 return arr; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/move_result_object/
DTest_move_result_object.java38 int[] arr = t.run(); in testN2() local
39 if(arr.length != 2 || arr[0] != 1 || arr[1] != 2) in testN2()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_object/
DTest_aget_object.java31 String[] arr = new String[] {"a", "b"}; in testN1() local
32 assertEquals("a", t.run(arr, 0)); in testN1()
40 String[] arr = new String[] {"a", "b"}; in testN2() local
41 assertEquals("b", t.run(arr, 1)); in testN2()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0484/
Dpoc.cpp55 const uint8_t arr[16] = {}; in main() local
56 data.write(arr, 16); in main()
58 data.writeUnpadded(arr, 1); in main()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/array_length/d/
DT_array_length_4.java21 public int run(double[] arr) { in run() argument
22 return arr.length; in run()
/cts/tests/tests/util/src/android/util/cts/
DEventLogTest.java63 Object[] arr = (Object[]) events.get(4).getData(); in testWriteEvent() local
64 assertEquals(4, arr.length); in testWriteEvent()
65 assertEquals(12345, arr[0]); in testWriteEvent()
66 assertEquals(23456L, arr[1]); in testWriteEvent()
67 assertEquals(42.4242f, arr[2]); in testWriteEvent()
68 assertEquals("Test", arr[3]); in testWriteEvent()
176 Object[] arr = (Object[]) events.get(1).getData(); in testWriteNullEvent() local
177 assertEquals(2, arr.length); in testWriteNullEvent()
178 assertEquals(12345, arr[0]); in testWriteNullEvent()
179 assertEquals("NULL", arr[1]); in testWriteNullEvent()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_wide/d/
DT_aget_wide_1.java21 public long run(long[] arr, int idx) { in run() argument
22 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_boolean/d/
DT_aget_boolean_1.java20 public boolean run(boolean[] arr, int idx) { in run() argument
21 return arr[idx]; in run()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/aget_char/d/
DT_aget_char_1.java20 public char run(char[] arr, int idx) { in run() argument
21 return arr[idx]; in run()

123