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

123

/dalvik/tests/096-array-copy-concurrent-gc/src/
H A DMain.java22 * Size of array and amount of garbage created is based on experimental
45 Object [] array = new Object[10000]; field in class:Main
48 // We want many references in the array
54 for (int i = 0; i < array.length; i+=2) {
55 array[i] = new String("Creating some garbage" + i);
62 for (int j = 0; j < array.length; j++) {
63 Object obj = array[array.length - 1];
64 System.arraycopy(array, 0, array,
[all...]
/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/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
/dalvik/vm/mterp/mips/
H A DOP_FILL_ARRAY_DATA.S2 /* fill-array-data vAA, +BBBBBBBB */
8 GET_VREG(a0, a3) # a0 <- vAA (array object)
9 EAS1(a1, rPC, a1) # a1 <- PC + BBBBbbbb*2 (array data off.)
11 JAL(dvmInterpHandleFillArrayData) # fill the array with predefined data
H A DOP_FILLED_NEW_ARRAY_JUMBO.S3 %verify "unimplemented array type"
5 * Create a new array with elements filled from registers.
10 /* filled-new-array/jumbo {vCCCC..v(CCCC+BBBB-1)}, type@AAAAAAAA */
35 * a0 holds array class
43 seq t0, rINST, 'I' # array of ints?
44 seq t1, rINST, 'L' # array of objects?
46 seq t1, rINST, '[' # array of arrays?
55 sw v0, offThread_retval(rSELF) # retval.l <- new array
62 # copy values from registers into the array
63 # a0=array, a
[all...]
H A DOP_AGET.S15 GET_VREG(a0, a2) # a0 <- vBB (array object)
17 # null array object?
H A DOP_AGET_WIDE.S12 GET_VREG(a0, a2) # a0 <- vBB (array object)
14 # null array object?
H A DOP_APUT.S11 GET_VREG(a0, a2) # a0 <- vBB (array object)
13 # null array object?
H A DOP_APUT_WIDE.S12 GET_VREG(a0, a2) # a0 <- vBB (array object)
14 # null array object?
/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 241 milliseconds

123