/libcore/luni/src/main/java/java/nio/ |
H A D | MemoryBlock.java | 64 * Losing the strong reference to the array is sufficient 68 private byte[] array; field in class:MemoryBlock.NonMovableHeapBlock 70 private NonMovableHeapBlock(byte[] array, long address, long byteCount) { argument 72 this.array = array; 75 @Override public byte[] array() { method in class:MemoryBlock.NonMovableHeapBlock 76 return array; 80 array = null; 131 byte[] array = (byte[]) runtime.newNonMovableArray(byte.class, byteCount); 132 long address = runtime.addressOf(array); 148 public byte[] array() { method in class:MemoryBlock [all...] |
/libcore/luni/src/main/java/java/text/ |
H A D | DateFormatSymbols.java | 142 * Returns an array of locales for which custom {@code DateFormatSymbols} instances 233 * Returns the array of strings which represent AM and PM. Use the 235 * {@code Calendar.PM} as indices for the array. 237 * @return an array of strings. 244 * Returns the array of strings which represent BC and AD. Use the 246 * {@code GregorianCalendar.AD} as indices for the array. 248 * @return an array of strings. 263 * Returns the array of strings containing the full names of the months. Use 265 * indices for the array. 267 * @return an array o 344 clone2dStringArray(String[][] array) argument [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | ArrayList.java | 29 * ArrayList is an implementation of {@link List}, backed by an array. 62 transient Object[] array; field in class:ArrayList 75 array = (capacity == 0 ? EmptyArray.OBJECT : new Object[capacity]); 82 array = EmptyArray.OBJECT; 103 array = a; 115 Object[] a = array; 122 array = a = newArray; 144 Object[] a = array; 157 array = a = newArray; 193 Object[] a = array; [all...] |
H A D | Arrays.java | 144 * Returns a {@code List} of the objects in the specified array. The size of the 147 * array. 149 * @param array 150 * the array. 151 * @return a {@code List} of the elements of the specified array. 154 public static <T> List<T> asList(T... array) { argument 155 return new ArrayList<T>(array); 159 * Performs a binary search for {@code value} in the ascending sorted array {@code array}. 160 * Searching in an unsorted array ha 168 binarySearch(byte[] array, byte value) argument 188 binarySearch(byte[] array, int startIndex, int endIndex, byte value) argument 218 binarySearch(char[] array, char value) argument 238 binarySearch(char[] array, int startIndex, int endIndex, char value) argument 268 binarySearch(double[] array, double value) argument 288 binarySearch(double[] array, int startIndex, int endIndex, double value) argument 329 binarySearch(float[] array, float value) argument 349 binarySearch(float[] array, int startIndex, int endIndex, float value) argument 390 binarySearch(int[] array, int value) argument 410 binarySearch(int[] array, int startIndex, int endIndex, int value) argument 440 binarySearch(long[] array, long value) argument 460 binarySearch(long[] array, int startIndex, int endIndex, long value) argument 493 binarySearch(Object[] array, Object value) argument 516 binarySearch(Object[] array, int startIndex, int endIndex, Object value) argument 552 binarySearch(T[] array, T value, Comparator<? super T> comparator) argument 577 binarySearch(T[] array, int startIndex, int endIndex, T value, Comparator<? super T> comparator) argument 612 binarySearch(short[] array, short value) argument 632 binarySearch(short[] array, int startIndex, int endIndex, short value) argument 669 fill(byte[] array, byte value) argument 691 fill(byte[] array, int start, int end, byte value) argument 706 fill(short[] array, short value) argument 728 fill(short[] array, int start, int end, short value) argument 743 fill(char[] array, char value) argument 765 fill(char[] array, int start, int end, char value) argument 780 fill(int[] array, int value) argument 802 fill(int[] array, int start, int end, int value) argument 817 fill(long[] array, long value) argument 839 fill(long[] array, int start, int end, long value) argument 854 fill(float[] array, float value) argument 876 fill(float[] array, int start, int end, float value) argument 891 fill(double[] array, double value) argument 913 fill(double[] array, int start, int end, double value) argument 928 fill(boolean[] array, boolean value) argument 950 fill(boolean[] array, int start, int end, boolean value) argument 965 fill(Object[] array, Object value) argument 987 fill(Object[] array, int start, int end, Object value) argument 1010 hashCode(boolean[] array) argument 1038 hashCode(int[] array) argument 1066 hashCode(short[] array) argument 1094 hashCode(char[] array) argument 1122 hashCode(byte[] array) argument 1150 hashCode(long[] array) argument 1182 hashCode(float[] array) argument 1213 hashCode(double[] array) argument 1250 hashCode(Object[] array) argument 1295 deepHashCode(Object[] array) argument 1689 sort(byte[] array) argument 1707 sort(byte[] array, int start, int end) argument 1746 sort(char[] array) argument 1764 sort(char[] array, int start, int end) argument 1775 sort(double[] array) argument 1795 sort(double[] array, int start, int end) argument 1806 sort(float[] array) argument 1826 sort(float[] array, int start, int end) argument 1836 sort(int[] array) argument 1854 sort(int[] array, int start, int end) argument 1864 sort(long[] array) argument 1882 sort(long[] array, int start, int end) argument 1892 sort(short[] array) argument 1910 sort(short[] array, int start, int end) argument 1956 sort(Object[] array) argument 1974 sort(Object[] array, int start, int end) argument 1997 sort(T[] array, int start, int end, Comparator<? super T> comparator) argument 2009 sort(T[] array, Comparator<? super T> comparator) argument 2025 toString(boolean[] array) argument 2055 toString(byte[] array) argument 2085 toString(char[] array) argument 2115 toString(double[] array) argument 2145 toString(float[] array) argument 2175 toString(int[] array) argument 2205 toString(long[] array) argument 2235 toString(short[] array) argument 2265 toString(Object[] array) argument 2300 deepToString(Object[] array) argument 2325 deepToStringImpl(Object[] array, Object[] origArrays, StringBuilder sb) argument 2407 deepToStringImplContains(Object[] origArrays, Object array) argument [all...] |
H A D | Date.java | 354 private static int parse(String string, String[] array) { argument 355 for (int i = 0, alength = array.length, slength = string.length(); i < alength; i++) { 356 if (string.regionMatches(true, 0, array[i], 0, slength)) {
|
H A D | EnumMap.java | 374 public Object[] toArray(Object[] array) { argument 377 Object[] entryArray = array; 378 if (size > array.length) { 379 Class<?> clazz = array.getClass().getComponentType(); 388 if (index < array.length) {
|
H A D | IdentityHashMap.java | 49 * The internal data structure to hold key value pairs This array holds keys 286 * Create a new element array 290 * @return Reference to the element array 426 private int findIndex(Object key, Object[] array) { argument 427 int length = array.length; 431 if (array[index] == key || (array[index] == null)) {
|
H A D | Locale.java | 976 * Returns the system's installed locales. This array always includes {@code 1228 * Returns an array of strings containing all the two-letter ISO 3166 country codes that can be 1236 * Returns an array of strings containing all the two-letter ISO 639-1 language codes that can be 1437 * This method returns a two element String array. The first element is a string 1506 * Builds a string by concatenating array elements within the range [start, end). 1509 private static String concatenateRange(String[] array, int start, int end) { argument 1515 builder.append(array[i]);
|
H A D | Collections.java | 456 @Override public <T> T[] toArray(T[] array) { argument 458 return c.toArray(array); 549 final Object[] array; 552 array = new Object[size]; 553 list.toArray(array); 557 if (object.equals(array[i])) { 563 if (array[i] == null) { 573 final Object[] array; 576 array = new Object[size]; 577 list.toArray(array); 989 toArray(T[] array) argument 3228 toArray(T[] array) argument [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | CopyOnWriteArrayList.java | 66 * contents of an array after it has been assigned to this field. 95 * Creates a new instance containing the elements of {@code array}. 97 public CopyOnWriteArrayList(E[] array) { argument 98 this.elements = Arrays.copyOf(array, array.length, Object[].class); 378 * array and copy in the surviving elements one by one. 467 * - the elements array of the full list 469 * - the expected elements array (to detect concurrent modification) 664 * Throws if {@code index} doesn't identify an element in the array. 674 * array [all...] |
H A D | PriorityBlockingQueue.java | 75 * The implementation uses an array-based binary heap, with public 91 * Default array capacity. 96 * The maximum size of array to allocate. 97 * Some VMs reserve some header words in an array. 99 * OutOfMemoryError: Requested array size exceeds VM limit 241 * Tries to grow array to accommodate at least one more element 246 * @param array the heap array 247 * @param oldCap the length of the array 249 private void tryGrow(Object[] array, in argument 317 siftUpComparable(int k, T x, Object[] array) argument 330 siftUpUsingComparator(int k, T x, Object[] array, Comparator<? super T> cmp) argument 353 siftDownComparable(int k, T x, Object[] array, int n) argument 374 siftDownUsingComparator(int k, T x, Object[] array, int n, Comparator<? super T> cmp) argument 845 final Object[] array; // Array of all elements field in class:PriorityBlockingQueue.Itr 849 Itr(Object[] array) argument [all...] |
H A D | ScheduledThreadPoolExecutor.java | 783 * heap array. This eliminates the need to find a task upon 881 * Resizes the heap array. Call only when holding lock. 1220 * Snapshot iterator that works off copy of underlying q array. 1223 final RunnableScheduledFuture[] array; field in class:ScheduledThreadPoolExecutor.DelayedWorkQueue.Itr 1227 Itr(RunnableScheduledFuture[] array) { argument 1228 this.array = array; 1232 return cursor < array.length; 1236 if (cursor >= array.length) 1239 return array[curso [all...] |
H A D | ForkJoinPool.java | 177 * array-based queue (see for example ArrayDeque). Updates to the 249 * protecting updates to the workQueues array, as well as to 256 * "workQueues" array that is created upon first use and expanded 257 * if necessary. Updates to the array while recording new workers 259 * by a lock but the array is otherwise concurrently readable, and 261 * array size is always a power of two, and all readers must 264 * slots, to limit growth even if array needs to expand to add 274 * array (which is one source of some of the messy code 275 * constructions here). In essence, the workQueues array serves as 282 * case it is OK to give up. All uses of the workQueues array 639 ForkJoinTask<?>[] array; // the elements (initially unallocated) field in class:ForkJoinPool.WorkQueue [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | LocaleTest.java | 178 private static void assertOnce(Locale element, Locale[] array) { argument 180 for (Locale l : array) {
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | RecursiveActionTest.java | 1196 final long[] array; final int lo, hi; field in class:RecursiveActionTest.SortTask 1197 SortTask(long[] array, int lo, int hi) { argument 1198 this.array = array; this.lo = lo; this.hi = hi; 1200 SortTask(long[] array) { this(array, 0, array.length); } argument 1206 invokeAll(new SortTask(array, lo, mid), 1207 new SortTask(array, mid, hi)); 1214 Arrays.sort(array, l [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
H A D | ByteBufferTest.java | 56 byte array[] = buf.array(); 57 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 59 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 60 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 62 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 63 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 66 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 73 buf.array(); 1991 loadTestData1(byte array[], int offset, int length) argument 1997 loadTestData2(byte array[], int offset, int length) argument 2017 assertContentEquals(ByteBuffer buf, byte array[], int offset, int length) argument [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | ObjectOutputStream.java | 606 * Writes {@code count} bytes from the byte array {@code buffer} starting at 903 // Either array or Object 1093 * Write array {@code array} of class {@code arrayClass} with 1095 * assumed the array has not been dumped yet. Returns 1096 * the handle for this object (array) which is dumped here. 1098 * @param array 1099 * The array object to dump 1102 * array 1104 * A {@code java.lang.Class} representing the array 1111 writeNewArray(Object array, Class<?> arrayClass, ObjectStreamClass arrayClDesc, Class<?> componentType, boolean unshared) argument [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
H A D | ObjectInputStreamTest.java | 865 // dynamically create serialization byte array for the next hierarchy: 1345 assertTrue(java.util.Arrays.equals(strings, testArray.array)); 1351 assertTrue(java.util.Arrays.equals(integers, testArray.array)); 1474 public Object[] array; field in class:TestArray 1476 public TestArray(Object[] array) { argument 1477 this.array = array;
|
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | X509CertSelectorTest.java | 463 // Used to generate following byte array 1624 public TestCert(byte[] array) { argument 1625 setKeyIdentifier(array);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/ |
H A D | X500PrincipalTest.java | 263 private byte[] getByteArray(byte[] array) { argument 266 ByteArrayInputStream is = new ByteArrayInputStream(array); 458 * Inits X500Principal with byte array 472 * Inits X500Principal with byte array 487 * Inits X500Principal with byte array 512 * Inits X500Principal with byte array, where Oid does fall into any keyword, but not given as a keyword 527 * Inits X500Principal with byte array, where Oid does fall into any keyword, but not given as a keyword 542 * Inits X500Principal with byte array, where Oid does fall into any keyword, but not given as a keyword 557 * Inits X500Principal with byte array, where Oid does not fall into any keyword 573 * Inits X500Principal with byte array, wher [all...] |
/libcore/luni/src/main/native/ |
H A D | org_apache_harmony_xml_ExpatParser.cpp | 63 StringStack() : array(new jstring[DEFAULT_CAPACITY]), capacity(DEFAULT_CAPACITY), size(0) { 67 delete[] array; 78 memcpy(newArray, array, capacity * sizeof(jstring)); 80 delete[] array; 81 array = newArray; 85 array[size++] = s; 89 return (size == 0) ? NULL : array[--size]; 95 jstring* array; member in class:StringStack 1095 * @param attributePointer to the attribute array 1108 * @param attributePointer to the attribute array [all...] |
/libcore/benchmarks/libs/ |
H A D | caliper.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ... |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | ArraysTest.java | 77 "Array and List converted from array do not contain identical elements", 92 "Array and List converted from array do not contain identical elements", 112 assertEquals("Binary search succeeded for value not present in array 1", 115 "Binary search succeeded for value not present in array 2", 134 assertEquals("Binary search succeeded for value not present in array 1", 137 "Binary search succeeded for value not present in array 2", 150 assertEquals("Binary search succeeded for value not present in array 1", 153 "Binary search succeeded for value not present in array 2", 184 assertEquals("Binary search succeeded for value not present in array 1", 187 "Binary search succeeded for value not present in array 1883 sort(Object array) argument 1904 checkSorted(Object array) argument 1985 checkSum(Object array) argument [all...] |