/libcore/luni/src/test/java/dalvik/system/ |
D | VMRuntimeTest.java | 30 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, -1); in doTestNewNonMovableArray() local 36 … Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, Integer.MIN_VALUE); in doTestNewNonMovableArray() local 43 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, i); in doTestNewNonMovableArray() local 53 Object array = VMRuntime.getRuntime().newNonMovableArray(null, 0); in testNewNonMovableArray() local 60 Object array = VMRuntime.getRuntime().newNonMovableArray(void.class, 0); in testNewNonMovableArray() local 84 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, -1); in doTestNewUnpaddedArray() local 90 … Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, Integer.MIN_VALUE); in doTestNewUnpaddedArray() local 97 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, i); in doTestNewUnpaddedArray() local 107 Object array = VMRuntime.getRuntime().newUnpaddedArray(null, 0); in testNewUnpaddedArray() local 114 Object array = VMRuntime.getRuntime().newUnpaddedArray(void.class, 0); in testNewUnpaddedArray() local
|
/libcore/luni/src/main/java/java/lang/reflect/ |
D | Array.java | 50 private static RuntimeException badArray(Object array) { in badArray() 70 …public static Object get(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOf… in get() 114 …public static boolean getBoolean(Object array, int index) throws IllegalArgumentException, ArrayIn… in getBoolean() 131 …public static byte getByte(Object array, int index) throws IllegalArgumentException, ArrayIndexOut… in getByte() 148 …public static char getChar(Object array, int index) throws IllegalArgumentException, ArrayIndexOut… in getChar() 166 …public static double getDouble(Object array, int index) throws IllegalArgumentException, ArrayInde… in getDouble() 196 …public static float getFloat(Object array, int index) throws IllegalArgumentException, ArrayIndexO… in getFloat() 224 …public static int getInt(Object array, int index) throws IllegalArgumentException, ArrayIndexOutOf… in getInt() 244 public static int getLength(Object array) { in getLength() 278 …public static long getLong(Object array, int index) throws IllegalArgumentException, ArrayIndexOut… in getLong() [all …]
|
/libcore/json/src/test/java/org/json/ |
D | JSONArrayTest.java | 31 JSONArray array = new JSONArray(); in testEmptyArray() local 77 JSONArray array = new JSONArray(); in testBooleans() local 127 JSONArray array = new JSONArray(); in testCoerceStringToBoolean() local 139 JSONArray array = new JSONArray(); in testNulls() local 181 JSONArray array = new JSONArray("[\"null\",null]"); in testParseNullYieldsJSONObjectNull() local 200 JSONArray array = new JSONArray(); in testNumbers() local 246 JSONArray array = new JSONArray(); in testStrings() local 299 JSONArray array = new JSONArray(); in testJoin() local 315 JSONArray array = new JSONArray(Arrays.asList(5, 6)); in testJoinWithNull() local 320 JSONArray array = new JSONArray(Arrays.asList(5, 6)); in testJoinWithSpecialCharacters() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | PriorityQueueTest.java | 42 Integer[] array = { 2, 45, 7, -12, 9 }; in test_iterator() local 111 Integer[] array = { 2, 45, 7, -12, 9 }; in test_iterator_remove() local 139 String[] array = { "ONE", "TWO", "THREE", "FOUR", "FIVE" }; in test_iterator_removeEquals() local 154 Integer[] array = { 2, 45, 7, -12, 9 }; in test_iterator_remove_illegalState() local 183 int[] array = { 2, 45, 7, -12, 9 }; in test_size() local 256 Integer[] array = { 2, 45, 7, -12, 9 }; in test_ConstructorILjava_util_Comparator_cast() local 267 Integer[] array = { 2, 45, 7, -12, 9 }; in test_ConstructorLjava_util_Colleciton() local 313 String[] array = { "AAAAA", "AA", "AAAA", "AAAAAAAA" }; in test_ConstructorLjava_util_Colleciton_from_priorityqueue() local 332 int[] array = { 3, 5, 79, -17, 5 }; in test_ConstructorLjava_util_Colleciton_from_sortedset() local 353 int[] array = { 2, 45, 7, -12, 9 }; in test_ConstructorLjava_util_PriorityQueue() local [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | Arrays.java | 154 public static <T> List<T> asList(T... array) { in asList() 168 public static int binarySearch(byte[] array, byte value) { in binarySearch() 188 public static int binarySearch(byte[] array, int startIndex, int endIndex, byte value) { in binarySearch() 218 public static int binarySearch(char[] array, char value) { in binarySearch() 238 public static int binarySearch(char[] array, int startIndex, int endIndex, char value) { in binarySearch() 268 public static int binarySearch(double[] array, double value) { in binarySearch() 288 public static int binarySearch(double[] array, int startIndex, int endIndex, double value) { in binarySearch() 329 public static int binarySearch(float[] array, float value) { in binarySearch() 349 public static int binarySearch(float[] array, int startIndex, int endIndex, float value) { in binarySearch() 390 public static int binarySearch(int[] array, int value) { in binarySearch() [all …]
|
D | UnsafeArrayList.java | 28 private T[] array; field in UnsafeArrayList 47 public T[] array() { in array() method in UnsafeArrayList
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | LongBufferTest.java | 51 long array[] = buf.array(); in testArray() local 68 long array[] = buf.array(); in testArrayOffset() local 257 long array[] = new long[1]; in testGetlongArray() local 285 long array[] = new long[buf.capacity()]; in testGetlongArrayintint() local 417 long array[] = new long[1]; in testPutlongArray() local 446 long array[] = new long[buf.capacity()]; in testPutlongArrayintint() local 609 void loadTestData1(long array[], int offset, int length) { in loadTestData1() 615 void loadTestData2(long array[], int offset, int length) { in loadTestData2() 635 void assertContentEquals(LongBuffer buf, long array[], in assertContentEquals() 638 assertEquals(buf.get(i), array[offset + i]); in assertContentEquals() local
|
D | ShortBufferTest.java | 50 short array[] = buf.array(); in testArray() local 67 short array[] = buf.array(); in testArrayOffset() local 256 short array[] = new short[1]; in testGetshortArray() local 277 short array[] = new short[buf.capacity()]; in testGetshortArrayintint() local 403 short array[] = new short[1]; in testPutshortArray() local 432 short array[] = new short[buf.capacity()]; in testPutshortArrayintint() local 589 void loadTestData1(short array[], int offset, int length) { in loadTestData1() 595 void loadTestData2(short array[], int offset, int length) { in loadTestData2() 615 void assertContentEquals(ShortBuffer buf, short array[], in assertContentEquals() 618 assertEquals(buf.get(i), array[offset + i]); in assertContentEquals() local
|
D | IntBufferTest.java | 51 int array[] = buf.array(); in testArray() local 68 int array[] = buf.array(); in testArrayOffset() local 257 int array[] = new int[1]; in testGetintArray() local 284 int array[] = new int[buf.capacity()]; in testGetintArrayintint() local 416 int array[] = new int[1]; in testPutintArray() local 445 int array[] = new int[buf.capacity()]; in testPutintArrayintint() local 602 void loadTestData1(int array[], int offset, int length) { in loadTestData1() 608 void loadTestData2(int array[], int offset, int length) { in loadTestData2() 628 void assertContentEquals(IntBuffer buf, int array[], in assertContentEquals() 631 assertEquals(buf.get(i), array[offset + i]); in assertContentEquals() local
|
D | FloatBufferTest.java | 51 float array[] = buf.array(); in testArray() local 68 float array[] = buf.array(); in testArrayOffset() local 277 float array[] = new float[1]; in testGetfloatArray() local 306 float array[] = new float[buf.capacity()]; in testGetfloatArrayintint() local 440 float array[] = new float[1]; in testPutfloatArray() local 469 float array[] = new float[buf.capacity()]; in testPutfloatArrayintint() local 626 void loadTestData1(float array[], int offset, int length) { in loadTestData1() 632 void loadTestData2(float array[], int offset, int length) { in loadTestData2() 652 void assertContentEquals(FloatBuffer buf, float array[], in assertContentEquals() 655 assertEquals(buf.get(i), array[offset + i], 0.01); in assertContentEquals() local
|
D | DoubleBufferTest.java | 75 double array[] = buf.array(); in testArray() local 92 double array[] = buf.array(); in testArrayOffset() local 287 double array[] = new double[1]; in testGetdoubleArray() local 308 double array[] = new double[buf.capacity()]; in testGetdoubleArrayintint() local 440 double array[] = new double[1]; in testPutdoubleArray() local 463 double array[] = new double[buf.capacity()]; in testPutdoubleArrayintint() local 616 void loadTestData1(double array[], int offset, int length) { in loadTestData1() 622 void loadTestData2(double array[], int offset, int length) { in loadTestData2() 642 private void assertContentEquals(DoubleBuffer buf, double array[], in assertContentEquals() 645 assertEquals(buf.get(i), array[offset + i], 0.01); in assertContentEquals() local
|
D | CharBufferTest.java | 54 char array[] = buf.array(); in testArray() local 71 char array[] = buf.array(); in testArrayOffset() local 319 char array[] = new char[1]; in testGetcharArray() local 340 char array[] = new char[buf.capacity()]; in testGetcharArrayintint() local 459 char array[] = new char[1]; in testPutcharArray() local 488 char array[] = new char[buf.capacity()]; in testPutcharArrayintint() local 798 char array[] = new char[buf.capacity()]; in testPutStringintint() local 808 void loadTestData1(char array[], int offset, int length) { in loadTestData1() 814 void loadTestData2(char array[], int offset, int length) { in loadTestData2() 834 private void assertContentEquals(CharBuffer buf, char array[], int offset, in assertContentEquals() [all …]
|
D | ReadOnlyLongBufferTest.java | 82 long array[] = new long[1]; in testPutlongArray() local 98 long array[] = new long[1]; in testPutlongArrayintint() local
|
D | ReadOnlyDoubleBufferTest.java | 81 double array[] = new double[1]; in testPutdoubleArray() local 97 double array[] = new double[1]; in testPutdoubleArrayintint() local
|
D | ReadOnlyIntBufferTest.java | 82 int array[] = new int[1]; in testPutintArray() local 98 int array[] = new int[1]; in testPutintArrayintint() local
|
D | ReadOnlyFloatBufferTest.java | 82 float array[] = new float[1]; in testPutfloatArray() local 98 float array[] = new float[1]; in testPutfloatArrayintint() local
|
D | ReadOnlyShortBufferTest.java | 82 short array[] = new short[1]; in testPutshortArray() local 98 short array[] = new short[1]; in testPutshortArrayintint() local
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | PriorityBlockingQueue.java | 249 private void tryGrow(Object[] array, int oldCap) { in tryGrow() 288 Object[] array = queue; in dequeue() local 317 private static <T> void siftUpComparable(int k, T x, Object[] array) { in siftUpComparable() 330 private static <T> void siftUpUsingComparator(int k, T x, Object[] array, in siftUpUsingComparator() 353 private static <T> void siftDownComparable(int k, T x, Object[] array, in siftDownComparable() 374 private static <T> void siftDownUsingComparator(int k, T x, Object[] array, in siftDownUsingComparator() 399 Object[] array = queue; in heapify() local 444 Object[] array; in offer() local 575 Object[] array = queue; in indexOf() local 588 Object[] array = queue; in removeAt() local [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | DeepArrayOpsBenchmark.java | 29 private Object[] array; field in DeepArrayOpsBenchmark 95 Object[] array = new Object[16]; in new16ElementObjectarray() local 106 T[] array = (T []) Array.newInstance(type, 16); in new16ElementArray() local
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimSortTest.java | 47 Integer[] array = createBugTriggerData(); in testBug19493779WithComparable() local 54 Integer[] array = createBugTriggerData(); in testBug19493779WithComparator() local
|
D | OldAndroidArrayListTest.java | 30 ArrayList array = new ArrayList(); in testArrayList() local
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLServerSocketTest.java | 42 String[] array = new String[] {socket.getEnabledCipherSuites()[0]}; in testSetEnabledCipherSuitesStoresCopy() local 60 String[] array = new String[] {socket.getEnabledProtocols()[0]}; in testSetEnabledProtocolsStoresCopy() local
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | GenericArrayTypeTest.java | 31 T[] array; field in GenericArrayTypeTest.A 48 B<T>[] array; field in GenericArrayTypeTest.B
|
D | GenericReflectionTestsBase.java | 57 public static void assertLenghtOne(Object[] array) { in assertLenghtOne() 61 public static void assertLenghtZero(Object[] array) { in assertLenghtZero()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldAndroidArrayTest.java | 30 int[] array = (int[]) intArray; in testSingleInt() local 61 String[] array = (String[]) strArray; in testSingle() local
|