Searched refs:array (Results 1 - 25 of 65) sorted by relevance

123

/dalvik/dx/src/com/android/dx/io/instructions/
H A DShortArrayCodeInput.java26 /** source array to read from */
27 private final short[] array; field in class:ShortArrayCodeInput
32 public ShortArrayCodeInput(short[] array) { argument
33 if (array == null) {
34 throw new NullPointerException("array == null");
37 this.array = array;
42 return cursor() < array.length;
48 int value = array[cursor()];
H A DShortArrayCodeOutput.java24 /** array to write to */
25 private final short[] array; field in class:ShortArrayCodeOutput
37 this.array = new short[maxSize];
41 * Gets the array. The returned array contains exactly the data
47 if (cursor == array.length) {
48 return array;
52 System.arraycopy(array, 0, result, 0, cursor);
58 array[cursor()] = codeUnit;
/dalvik/dx/src/com/android/dx/dex/file/
H A DEncodedArrayItem.java24 * Encoded array of constant values.
30 /** {@code non-null;} the array to represent */
31 private final CstArray array; field in class:EncodedArrayItem
42 * @param array {@code non-null;} array to represent
44 public EncodedArrayItem(CstArray array) { argument
51 if (array == null) {
52 throw new NullPointerException("array == null");
55 this.array = array;
[all...]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DEncodedArrayItem.java33 * Encoded array of constant values.
39 /** {@code non-null;} the array to represent */
40 private final CstArray array; field in class:EncodedArrayItem
51 * @param array {@code non-null;} array to represent
53 public EncodedArrayItem(CstArray array) { argument
60 if (array == null) {
61 throw new NullPointerException("array == null");
64 this.array = array;
[all...]
/dalvik/tests/049-show-object/src/
H A DMain.java27 Object[] array = new Object[5];
28 showObject(array);
31 array = niftyStrings;
32 showObject(array);
/dalvik/tests/058-enum-order/src/
H A DMain.java26 Muffin[] array = Muffin.class.getEnumConstants();
27 for (Muffin m : array) {
/dalvik/vm/mterp/x86-atom/
H A DOP_ARRAY_LENGTH.S19 * Code: 32-bit array length operation.
21 * For: array-length
23 * Description: Store the length of the indicated array in the given
35 cmp $$0, %eax # check for null array object
36 je common_errNullObject # handle null array object
38 movl offArrayObject_length(%eax), %eax # %eax<- array length
39 movl %eax, (rFP, rINST, 4) # vA<- %eax; array length
H A DOP_AGET_WIDE.S19 * Code: 64-bit array get operation.
23 * Description: Perform an array get operation at the identified index
24 * of a given array; load the array value into the destination
36 cmp $$0, %ecx # check for null array object
37 je common_errNullObject # handle null array object
H A DOP_APUT.S19 * Code: Generic 32-bit array put operation. Provides a "scale" variable
20 * to specify a scale value which depends on the width of the array
22 * move performed also dependent on the type of the array element.
27 * Description: Perform an array put operation from the value register;
29 * given array. vBB[vCC] <- vAA
42 cmp $$0, %ecx # check for null array object
43 je common_errNullObject # handle null array object
H A DOP_APUT_WIDE.S19 * Code: 64-bit array put operation.
23 * Description: Perform an array put operation from the value register;
25 * given array. vBB[vCC] <- vAA.
36 cmp $$0, %ecx # check for null array object
37 je common_errNullObject # handle null array object
H A DOP_APUT_OBJECT.S19 * Code: 32-bit array put operation. Provides an "scale" variable
20 * specify a scale value which depends on the width of the array
22 * mov performed also dependent on the type of the array element.
27 * Description: Perform an array put operation from the value register;
29 * given array. vBB[vCC] <- vAA
40 cmp $$0, %eax # check for null array object
41 je common_errNullObject # handle null array object
59 call dvmCanPutArrayElement # test object type vs. array type
63 testl %eax, %eax # check for invalid array value
64 je common_errArrayStore # handle invalid array valu
[all...]
H A DOP_AGET.S19 * Code: Generic 32-bit array "get" operation. Provides a "scale" variable
20 * to specify a scale value which depends on the width of the array
22 * mov performed also dependent on the type of the array element.
26 * Description: Perform an array get operation at the identified index
27 * of a given array; load the array value into the value
41 cmp $$0, %ecx # check for null array object
42 je common_errNullObject # handle null array object
/dalvik/tests/081-hot-exceptions/src/
H A DMain.java19 int[] array; field in class:Main.ArrayObj
22 return array[i];
/dalvik/tests/045-reflect-array/src/
H A DMain.java28 int[] array = (int[]) intArray;
29 array[0] = 5;
34 if (array[1] != 6)
37 array[2] = 27;
44 if (array.length != Array.getLength(intArray) ||
45 array.length != 2)
74 char[] array = (char[]) charArray;
75 array[0] = '0';
76 array[1] = 'W';
77 array[
[all...]
/dalvik/vm/mterp/armv5te/
H A DOP_FILL_ARRAY_DATA.S2 /* fill-array-data vAA, +BBBBBBBB */
7 GET_VREG(r0, r3) @ r0<- vAA (array object)
8 add r1, rPC, r1, lsl #1 @ r1<- PC + BBBBbbbb*2 (array data off.)
10 bl dvmInterpHandleFillArrayData@ fill the array with predefined data
H A DOP_AGET.S15 GET_VREG(r0, r2) @ r0<- vBB (array object)
17 cmp r0, #0 @ null array object?
H A DOP_APUT.S15 GET_VREG(r0, r2) @ r0<- vBB (array object)
17 cmp r0, #0 @ null array object?
H A DOP_APUT_OBJECT.S3 * Store an object into an array. vBB[vCC] <- vAA.
10 GET_VREG(rINST, r2) @ rINST<- vBB (array object)
12 cmp rINST, #0 @ null array object?
26 * r10 = offset into array (vBB + vCC * width)
33 bl dvmCanPutArrayElement @ test object type vs. array type
H A DOP_ARRAY_LENGTH.S3 * Return the length of an array.
12 ldr r3, [r0, #offArrayObject_length] @ r3<- array length
/dalvik/tests/011-array-copy/src/
H A DMain.java51 static void initByteArray(byte[] array) { argument
53 array[i] = (byte) i;
56 static void initShortArray(short[] array) { argument
58 array[i] = (short) i;
61 static void initIntArray(int[] array) { argument
63 array[i] = (int) i;
66 static void initLongArray(long[] array) { argument
68 array[i] = (long) i;
73 * Perform an array copy operation on primitive arrays with different
/dalvik/vm/mterp/x86/
H A DOP_AGET.S11 GET_VREG_R %eax %eax # eax<- vBB (array object)
13 testl %eax,%eax # null array object?
H A DOP_AGET_WIDE.S9 GET_VREG_R %eax %eax # eax<- vBB (array object)
11 testl %eax,%eax # null array object?
H A DOP_APUT.S11 GET_VREG_R %eax %eax # eax<- vBB (array object)
13 testl %eax,%eax # null array object?
H A DOP_APUT_WIDE.S9 GET_VREG_R %eax %eax # eax<- vBB (array object)
11 testl %eax,%eax # null array object?
H A DOP_APUT_OBJECT.S10 GET_VREG_R %eax %eax # eax<- vBB (array object)
13 testl %eax,%eax # null array object?
20 * eax<- array object
36 call dvmCanPutArrayElement # test object type vs. array type
54 movl rINST,(%ecx) # store into array

Completed in 216 milliseconds

123