Searched defs:array (Results 126 - 150 of 218) sorted by relevance

123456789

/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/
H A DList.java112 * Construct a list consisting all elements of given array.
113 * @param array an array; if {@code null} return an empty list
115 public static <A> List<A> from(A[] array) { argument
117 if (array != null)
118 for (int i = array.length - 1; i >= 0; i--)
119 xs = new List<A>(array[i], xs);
/openjdk7/jdk/src/share/native/sun/font/layout/
H A DLETableReference.h265 * it's a specialization that informs the LETableReference subclasses to NOT include the variable array in the size.
282 * define an array with no *known* bound. Will trim to available size.
305 LEReferenceToArrayOf(const LETableReference &parent, LEErrorCode &success, const T* array, le_uint32 count) argument
306 : LETableReference(parent, parent.ptrToOffset(array, success), LE_UINTPTR_MAX, success), fCount(count) {
316 LEReferenceToArrayOf(const LETableReference &parent, LEErrorCode &success, const T* array, size_t offset, le_uint32 count) argument
317 : LETableReference(parent, parent.ptrToOffset(array, success)+offset, LE_UINTPTR_MAX, success), fCount(count) {
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/wrapper/
H A DFunctions.java152 * Converts a byte array to a hexadecimal String. Each byte is presented by
156 * @param value the byte array to be converted
157 * @return the hexadecimal string representation of the byte array
191 * converts a byte array to a binary String
193 * @param value the byte array to be converted
194 * @return the binary string representation of the byte array
452 * @param array1 The first array.
453 * @param array2 The second array.
468 * @param array1 The first array.
469 * @param array2 The second array
515 hashCode(byte[] array) argument
535 hashCode(char[] array) argument
[all...]
/openjdk7/jdk/test/javax/management/descriptor/
H A DDescriptorTest.java142 final boolean array = (testValue instanceof Object[]);
144 array ?
376 return "value should be array with null elements: " +
637 static <T> T[] constantArray(T... array) { argument
638 return array;
/openjdk7/jdk/test/javax/management/openmbean/
H A DBadConstraintTest.java269 private static <T> Set<T> arraySet(T[] array) { argument
270 return new HashSet<T>(Arrays.asList(array));
333 /* Each element of this array contains five Objects:
383 Each element of this array contains two subarrays. The first
384 is an array of OpenTypes that must contain exactly one element.
385 The second is an array of alternating field names and field
H A DConstraintTest.java170 // Legal values in descriptor can be either an array or a set
356 private static <T> Set<T> arraySet(T[] array) { argument
357 return new HashSet<T>(Arrays.asList(array));
397 /* The elements of this array are grouped as follows. Each
402 is an array with one element that is the OpenType that will be
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/io/
H A DValueHandlerImpl.java470 char[] array,
474 out.write_wchar_array(array, offset, length);
483 int[] array = (int[])((Object)obj);
484 length = array.length;
486 out.write_long_array(array, 0, length);
488 byte[] array = (byte[])((Object)obj);
489 length = array.length;
491 out.write_octet_array(array, 0, length);
493 long[] array = (long[])((Object)obj);
494 length = array
469 writeCharArray(org.omg.CORBA_2_3.portable.OutputStream out, char[] array, int offset, int length) argument
582 readCharArray(org.omg.CORBA_2_3.portable.InputStream in, char[] array, int offset, int length) argument
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/orbutil/
H A DORBUtility.java188 /** Unmarshal a byte array to an integer.
190 i.e. array[offset] is the most-significant-byte
191 and array[offset+3] is the least-significant-byte.
192 @param array The array of bytes.
195 public static int bytesToInt(byte[] array, int offset) argument
199 b1 = (array[offset++] << 24) & 0xFF000000;
200 b2 = (array[offset++] << 16) & 0x00FF0000;
201 b3 = (array[offset++] << 8) & 0x0000FF00;
202 b4 = (array[offse
214 intToBytes(int value, byte[] array, int offset) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/utilities/
H A DObjectReader.java290 public Object readPrimitiveArray(final TypeArray array) { argument
292 Object result = getFromObjTable(array);
294 int length = (int) array.getLength();
295 TypeArrayKlass klass = (TypeArrayKlass) array.getKlass();
300 array.iterate(new DefaultOopVisitor() {
303 arrayObj[ifd.getIndex()] = field.getValue(array);
312 array.iterate(new DefaultOopVisitor() {
315 arrayObj[ifd.getIndex()] = field.getValue(array);
324 array.iterate(new DefaultOopVisitor() {
327 arrayObj[ifd.getIndex()] = field.getValue(array);
407 readObjectArray(final ObjArray array) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DUIDefaults.java125 * @param keyValueList an array of objects containing the key/value
361 * @param keyValueList an array of key/value pairs
817 * Returns an array of all the <code>PropertyChangeListener</code>s added
821 * array if no listeners have been added
1045 * @param o an array of <code>Objects</code> to be passed as
1061 * @param o an array of <code>Objects</code> to be passed as
1135 * Coerce the array of class types provided into one which
1171 private String printArgs(Object[] array) { argument
1173 if (array !=null) {
1174 for (int i = 0 ; i < array
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DWrappedPlainView.java839 private int findLine(int[] array, int offset, int min, int max) { argument
844 return (offset < array[mid]) ?
845 findLine(array, offset, min, mid) :
846 findLine(array, offset, mid, max);
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DCopyOnWriteArrayList.java44 * making a fresh copy of the underlying array.
51 * reference to the state of the array at the point that the iterator
52 * was created. This array never changes during the lifetime of the
85 /** The array, accessed only via getArray/setArray. */
86 private volatile transient Object[] array; field in class:CopyOnWriteArrayList
89 * Gets the array. Non-private so as to also be accessible
93 return array;
97 * Sets the array.
100 array = a;
127 * Creates a list holding a copy of the given array
[all...]
H A DScheduledThreadPoolExecutor.java814 * heap array. This eliminates the need to find a task upon
912 * Resize the heap array. Call only when holding lock.
1247 * Snapshot iterator that works off copy of underlying q array.
1250 final RunnableScheduledFuture[] array; field in class:ScheduledThreadPoolExecutor.DelayedWorkQueue.Itr
1254 Itr(RunnableScheduledFuture[] array) { argument
1255 this.array = array;
1259 return cursor < array.length;
1263 if (cursor >= array.length)
1266 return array[curso
[all...]
/openjdk7/hotspot/src/share/vm/gc_implementation/g1/
H A Dg1BlockOffsetTable.cpp43 vm_exit_during_initialization("Could not reserve enough space for heap offset array");
46 vm_exit_during_initialization("Could not reserve enough space for heap offset array");
104 G1BlockOffsetArray::G1BlockOffsetArray(G1BlockOffsetSharedArray* array, argument
108 _array(array), _csp(NULL),
548 err_msg("offset array should have been set - "
558 err_msg("offset array should have been set - "
636 G1BlockOffsetArrayContigSpace(G1BlockOffsetSharedArray* array, argument
638 G1BlockOffsetArray(array, mr, true)
/openjdk7/hotspot/src/share/vm/memory/
H A DblockOffsetTable.cpp46 vm_exit_during_initialization("Could not reserve enough space for heap offset array");
52 vm_exit_during_initialization("Could not reserve enough space for heap offset array");
115 BlockOffsetArray::BlockOffsetArray(BlockOffsetSharedArray* array, argument
118 _array(array)
778 "offset array should have been set");
782 "offset array should have been set");
/openjdk7/hotspot/src/share/vm/oops/
H A DobjArrayKlass.cpp57 assert(obj->is_objArray(), "must be object array");
70 report_java_out_of_memory("Requested array size exceeds VM limit");
87 objArrayOop array = allocate(length, CHECK_NULL); local
88 assert(array->is_parsable(), "Don't handlize unless parsable");
89 objArrayHandle h_array (THREAD, array);
99 // Since this array dimension has zero length, nothing will be
121 assert(bs->has_write_ref_array_opt(), "Barrier set must have ref array opt");
130 // We have to make sure all elements conform to the destination array
171 assert(s->is_objArray(), "must be obj array");
261 // array o
[all...]
H A DoopsHierarchy.hpp162 DEF_OOP(array); variable
/openjdk7/hotspot/src/share/vm/opto/
H A Dparse3.cpp363 // Uncommon Trap when class that array contains is not loaded
402 Node* array = new_array(makecon(TypeKlassPtr::make(array_klass)), length, nargs); local
408 const TypeOopPtr* elemtype = _gvn.type(array)->is_aryptr()->elem()->make_oopptr();
413 Node* eaddr = basic_plus_adr(array, offset);
414 store_oop_to_array(control(), array, eaddr, adr_type, elem, elemtype, T_OBJECT); local
417 return array;
423 // the m-dimensional array
493 // Create a java array for dimension sizes
/openjdk7/jdk/test/java/lang/invoke/
H A DInvokeGenericTest.java260 static <T, E extends T> T[] array(Class<T[]> atype, E... a) { method in class:InvokeGenericTest
/openjdk7/jdk/test/java/util/Locale/
H A DLocaleTest.java537 private boolean searchStringArrayFor(String s, String[] array) { argument
538 for (int i = 0; i < array.length; i++)
539 if (s.equals(array[i]))
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DDevPollArrayWrapper.java35 * Manipulates a native array of pollfd structs on Solaris:
86 // The pollfd array for results from devpoll driver
233 // Populate pollfd array with updated masks
257 // populate pollfd array with updated event
285 private void putPollFD(AllocatedNativeObject array, int index, int fd, argument
289 array.putInt(structIndex + FD_OFFSET, fd);
290 array.putShort(structIndex + EVENT_OFFSET, event);
291 array.putShort(structIndex + REVENT_OFFSET, (short)0);
/openjdk7/jaxp/src/com/sun/xml/internal/stream/dtd/nonvalidating/
H A DDTDGrammar.java279 * array holds the allowed attribute values;
280 * otherwise, this array is null.
322 //Get Grammar index to grammar array
797 private static short[][] resize(short array[][], int newsize) { argument
799 System.arraycopy(array, 0, newarray, 0, array.length);
803 private static int[][] resize(int array[][], int newsize) { argument
805 System.arraycopy(array, 0, newarray, 0, array.length);
809 private static QName[][] resize(QName array[][], in argument
815 resize(String array[][], int newsize) argument
821 resize(String array[][][], int newsize) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/expr/
H A DLValue.java597 * object for the length of an array in the debugee:
601 * However, this doesn't work because the array length isn't
631 final ArrayReference array; field in class:LValue.LValueArrayElement
637 "Must be array type: " + value);
639 this.array = (ArrayReference)value;
646 jdiValue = array.getValue(index);
654 array.setValue(index, val);
/openjdk7/hotspot/src/share/vm/runtime/
H A Dglobals.cpp527 Flag** array = NEW_C_HEAP_ARRAY(Flag*, length, mtInternal); local
529 array[index] = &flagTable[index];
531 qsort(array, length, sizeof(Flag*), compare_flags);
535 if (array[i]->origin /* naked field! */) {
536 array[i]->print_as_flag(out);
541 FREE_C_HEAP_ARRAY(Flag*, array, mtInternal);
563 Flag** array = NEW_C_HEAP_ARRAY(Flag*, length, mtInternal); local
565 array[index] = &flagTable[index];
567 qsort(array, length, sizeof(Flag*), compare_flags);
572 if (array[
[all...]
/openjdk7/hotspot/src/share/vm/services/
H A DdiagnosticFramework.hpp272 GrowableArray<const char*>* array = new GrowableArray<const char*>(0); local
273 return array;
276 GrowableArray<DCmdArgumentInfo*>* array = new GrowableArray<DCmdArgumentInfo*>(0); local
277 return array;

Completed in 94 milliseconds

123456789