| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/algorithms/alg.sorting/alg.sort/partial.sort/ |
| partial_sort.pass.cpp | 29 int* array = new int[N]; local 31 array[i] = i; 32 std::shuffle(array, array+N, randomness); 33 std::partial_sort(array, array+M, array+N); 37 assert(array[i] == i); 39 delete [] array;
|
| /frameworks/base/core/java/android/os/ |
| HwParcel.java | 120 * Writes an array of boolean values to the end of the parcel. 125 * Writes an array of byte values to the end of the parcel. 130 * Writes an array of short values to the end of the parcel. 135 * Writes an array of int values to the end of the parcel. 140 * Writes an array of long values to the end of the parcel. 145 * Writes an array of float values to the end of the parcel. 150 * Writes an array of double values to the end of the parcel. 155 * Writes an array of String values to the end of the parcel. 169 boolean[] array = new boolean[n]; 171 array[i] = val.get(i) 197 short[] array = new short[n]; local 211 int[] array = new int[n]; local 225 long[] array = new long[n]; local 239 float[] array = new float[n]; local 253 double[] array = new double[n]; local 387 Boolean[] array = HwBlob.wrapArray(readBoolVectorAsArray()); local 398 Byte[] array = HwBlob.wrapArray(readInt8VectorAsArray()); local 409 Short[] array = HwBlob.wrapArray(readInt16VectorAsArray()); local 420 Integer[] array = HwBlob.wrapArray(readInt32VectorAsArray()); local 431 Long[] array = HwBlob.wrapArray(readInt64VectorAsArray()); local 442 Float[] array = HwBlob.wrapArray(readFloatVectorAsArray()); local 453 Double[] array = HwBlob.wrapArray(readDoubleVectorAsArray()); local [all...] |
| /art/test/712-varhandle-invocations/src/ |
| VarHandleUnitTestHelpers.java | 56 public static boolean getBytesAs_boolean(byte[] array, int index, ByteOrder order) { 57 return getBytesAs_boolean(ByteBuffer.wrap(array), index, order); 60 public static byte getBytesAs_byte(byte[] array, int index, ByteOrder order) { 61 return getBytesAs_byte(ByteBuffer.wrap(array), index, order); 64 public static char getBytesAs_char(byte[] array, int index, ByteOrder order) { 65 return getBytesAs_char(ByteBuffer.wrap(array), index, order); 68 public static short getBytesAs_short(byte[] array, int index, ByteOrder order) { 69 return getBytesAs_short(ByteBuffer.wrap(array), index, order); 72 public static int getBytesAs_int(byte[] array, int index, ByteOrder order) { 73 return getBytesAs_int(ByteBuffer.wrap(array), index, order) [all...] |
| /cts/tests/sample/src/android/sample/cts/ |
| SampleDeviceResultTest.java | 61 * Measures the time taken to sort an array. 67 * The size of the array to sort. 70 private int[] array; 73 array = createArray(ARRAY_SIZE); 77 Arrays.sort(array); 78 assertTrue("Array not sorted", isSorted(array)); 97 * Creates an array filled with random numbers of the given size. 100 int[] array = new int[size]; local 102 array[i] = random.nextInt() [all...] |
| /external/fonttools/Lib/fontTools/ttLib/tables/ |
| _l_o_c_a.py | 5 import array 18 locations = array.array(format) 23 l = array.array("I") 38 locations = array.array("H") 43 locations = array.array("I", self.locations) 50 self.locations = array.array("I", locations [all...] |
| /external/python/cpython2/Lib/ctypes/test/ |
| test_varsize_struct.py | 8 ("array", c_int * 1)] 13 x.array[0] = 100 20 self.assertEqual((x.item, x.array[0]), (42, 100)) 26 self.assertEqual((x.item, x.array[0]), (42, 100)) 32 self.assertEqual((x.item, x.array[0]), (42, 100)) 40 array = (c_int * 0)() 42 self.assertRaises(IndexError, array.__setitem__, 0, None) 43 self.assertRaises(IndexError, array.__getitem__, 0) 44 self.assertRaises(IndexError, array.__setitem__, 1, None) 45 self.assertRaises(IndexError, array.__getitem__, 1 [all...] |
| /external/python/cpython3/Lib/ctypes/test/ |
| test_varsize_struct.py | 8 ("array", c_int * 1)] 13 x.array[0] = 100 20 self.assertEqual((x.item, x.array[0]), (42, 100)) 26 self.assertEqual((x.item, x.array[0]), (42, 100)) 32 self.assertEqual((x.item, x.array[0]), (42, 100)) 40 array = (c_int * 0)() 42 self.assertRaises(IndexError, array.__setitem__, 0, None) 43 self.assertRaises(IndexError, array.__getitem__, 0) 44 self.assertRaises(IndexError, array.__setitem__, 1, None) 45 self.assertRaises(IndexError, array.__getitem__, 1 [all...] |
| /frameworks/base/core/java/android/hardware/camera2/utils/ |
| ArrayUtils.java | 26 * Various assortment of array utilities. 33 /** Return the index of {@code needle} in the {@code array}, or else {@code -1} */ 34 public static <T> int getArrayIndex(T[] array, T needle) { 35 if (array == null) { 40 for (T elem : array) { 50 /** Return the index of {@code needle} in the {@code array}, or else {@code -1} */ 51 public static int getArrayIndex(int[] array, int needle) { 52 if (array == null) { 55 for (int i = 0; i < array.length; ++i) { 56 if (array[i] == needle) [all...] |
| /libcore/luni/src/test/java/libcore/java/lang/reflect/ |
| OldAndroidArrayTest.java | 19 import java.lang.reflect.Array; 23 * Test java.lang.reflect.Array methods. 28 Object intArray = Array.newInstance(Integer.TYPE, 2); 30 int[] array = (int[]) intArray; local 31 array[0] = 5; 32 Array.setInt(intArray, 1, 6); 34 assertEquals(5, Array.getInt(intArray, 0)); 35 assertEquals(6, array[1]); 38 array[2] = 27; 44 assertEquals(2, array.length) 61 String[] array = (String[]) strArray; local [all...] |
| /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
| CollectionUtilsTests.java | 41 final String[] array = { "0", "1" }; local 44 CollectionUtils.arrayAsList(array, -1, 1); 47 assertEquals("Invalid start: -1 end: 1 with array.length: 2", e.getMessage()); 51 CollectionUtils.arrayAsList(array, 1, -1); 54 assertEquals("Invalid start: 1 end: -1 with array.length: 2", e.getMessage()); 56 // end > array.length 58 CollectionUtils.arrayAsList(array, 1, 3); 59 fail("Failed to catch end > array.length"); 61 assertEquals("Invalid start: 1 end: 3 with array.length: 2", e.getMessage()); 72 final String[] array = { "0", "1", "2", "3", "4" } local [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
| test_varsize_struct.py | 8 ("array", c_int * 1)] 13 x.array[0] = 100 20 self.assertEqual((x.item, x.array[0]), (42, 100)) 26 self.assertEqual((x.item, x.array[0]), (42, 100)) 32 self.assertEqual((x.item, x.array[0]), (42, 100)) 40 array = (c_int * 0)() 42 self.assertRaises(IndexError, array.__setitem__, 0, None) 43 self.assertRaises(IndexError, array.__getitem__, 0) 44 self.assertRaises(IndexError, array.__setitem__, 1, None) 45 self.assertRaises(IndexError, array.__getitem__, 1 [all...] |
| /prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/ |
| test_varsize_struct.py | 8 ("array", c_int * 1)] 13 x.array[0] = 100 20 self.assertEqual((x.item, x.array[0]), (42, 100)) 26 self.assertEqual((x.item, x.array[0]), (42, 100)) 32 self.assertEqual((x.item, x.array[0]), (42, 100)) 40 array = (c_int * 0)() 42 self.assertRaises(IndexError, array.__setitem__, 0, None) 43 self.assertRaises(IndexError, array.__getitem__, 0) 44 self.assertRaises(IndexError, array.__setitem__, 1, None) 45 self.assertRaises(IndexError, array.__getitem__, 1 [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
| test_varsize_struct.py | 8 ("array", c_int * 1)] 13 x.array[0] = 100 20 self.assertEqual((x.item, x.array[0]), (42, 100)) 26 self.assertEqual((x.item, x.array[0]), (42, 100)) 32 self.assertEqual((x.item, x.array[0]), (42, 100)) 40 array = (c_int * 0)() 42 self.assertRaises(IndexError, array.__setitem__, 0, None) 43 self.assertRaises(IndexError, array.__getitem__, 0) 44 self.assertRaises(IndexError, array.__setitem__, 1, None) 45 self.assertRaises(IndexError, array.__getitem__, 1 [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
| test_varsize_struct.py | 8 ("array", c_int * 1)] 13 x.array[0] = 100 20 self.assertEqual((x.item, x.array[0]), (42, 100)) 26 self.assertEqual((x.item, x.array[0]), (42, 100)) 32 self.assertEqual((x.item, x.array[0]), (42, 100)) 40 array = (c_int * 0)() 42 self.assertRaises(IndexError, array.__setitem__, 0, None) 43 self.assertRaises(IndexError, array.__getitem__, 0) 44 self.assertRaises(IndexError, array.__setitem__, 1, None) 45 self.assertRaises(IndexError, array.__getitem__, 1 [all...] |
| /external/dhcpcd-6.8.2/ |
| dhcpcd-definitions.conf | 18 define 33 request array ipaddress static_routes 19 define 3 request array ipaddress routers 21 define 4 array ipaddress time_servers 22 define 5 array ipaddress ien116_name_servers 23 define 6 array ipaddress domain_name_servers 24 define 7 array ipaddress log_servers 25 define 8 array ipaddress cookie_servers 26 define 9 array ipaddress lpr_servers 27 define 10 array ipaddress impress_servers 28 define 11 array ipaddress resource_location_server [all...] |
| /libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
| DoubleNodeTest.java | 43 double[] array = new double[size]; local 44 for (int i = 0; i < array.length; i++) { 45 array[i] = i; 50 nodes.add(Nodes.node(array)); 51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); 52 nodes.add(tree(toList(array), l -> Nodes.node(toDoubleArray(l)))); 53 nodes.add(fill(array, Nodes.doubleBuilder(array.length))); 54 nodes.add(fill(array, Nodes.doubleBuilder())); 57 params.add(new Object[]{array, node}) 125 assertEquals(n.asPrimitiveArray(), array); local 130 assertEquals(Nodes.flattenDouble(n).asPrimitiveArray(), array); local [all...] |
| IntNodeTest.java | 43 int[] array = new int[size]; local 44 for (int i = 0; i < array.length; i++) { 45 array[i] = i; 50 nodes.add(Nodes.node(array)); 51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); 52 nodes.add(tree(toList(array), l -> Nodes.node(toIntArray(l)))); 53 nodes.add(fill(array, Nodes.intBuilder(array.length))); 54 nodes.add(fill(array, Nodes.intBuilder())); 57 params.add(new Object[]{array, node}) 125 assertEquals(n.asPrimitiveArray(), array); local 130 assertEquals(Nodes.flattenInt(n).asPrimitiveArray(), array); local [all...] |
| LongNodeTest.java | 43 long[] array = new long[size]; local 44 for (int i = 0; i < array.length; i++) { 45 array[i] = i; 50 nodes.add(Nodes.node(array)); 51 nodes.add(degenerateTree(Spliterators.iterator(Arrays.spliterator(array)))); 52 nodes.add(tree(toList(array), l -> Nodes.node(toLongArray(l)))); 53 nodes.add(fill(array, Nodes.longBuilder(array.length))); 54 nodes.add(fill(array, Nodes.longBuilder())); 57 params.add(new Object[]{array, node}) 125 assertEquals(n.asPrimitiveArray(), array); local 130 assertEquals(Nodes.flattenLong(n).asPrimitiveArray(), array); local [all...] |
| /prebuilts/go/darwin-x86/test/ |
| slice3err.go | 9 var array *[10]int var 16 _ = array[:] 17 _ = array[i:] 18 _ = array[:j] 19 _ = array[i:j] 20 _ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice" 21 _ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice" 22 _ = array[:j:] // ERROR "final index required in 3-index slice" 23 _ = array[i:j:] // ERROR "final index required in 3-index slice" 24 _ = array[::k] // ERROR "middle index required in 3-index slice [all...] |
| /prebuilts/go/linux-x86/test/ |
| slice3err.go | 9 var array *[10]int var 16 _ = array[:] 17 _ = array[i:] 18 _ = array[:j] 19 _ = array[i:j] 20 _ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice" 21 _ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice" 22 _ = array[:j:] // ERROR "final index required in 3-index slice" 23 _ = array[i:j:] // ERROR "final index required in 3-index slice" 24 _ = array[::k] // ERROR "middle index required in 3-index slice [all...] |
| /art/test/058-enum-order/src/ |
| Main.java | 26 Muffin[] array = Muffin.class.getEnumConstants(); local 27 for (Muffin m : array) {
|
| /art/test/431-type-propagation/src/ |
| Main.java | 24 int[] array = new int[7]; local 25 Object[] arguments = { array };
|
| /art/test/498-type-propagation/src/ |
| Main.java | 25 int[] array = new int[7]; local 26 Object[] arguments = { array };
|
| /art/test/520-equivalent-phi/src/ |
| Main.java | 26 int[] array = new int[7]; local 27 Object[] arguments = { array };
|
| /external/clang/test/ASTMerge/Inputs/ |
| init-ctors-classes.cpp | 16 int array[2]; member in class:A 17 A(int _x) : A_base(_x), y(0), z(1), array{{2},{3}} {
|