Searched refs:length (Results 1 - 25 of 231) sorted by relevance

12345678910

/art/test/513-array-deopt/src/
H A DMain.java27 return new int[a.length - 5];
39 return new int[a.length - 1];
45 if (result.length != 0) {
46 throw new Error("Expected 0, got " + result.length);
50 if (result.length != 4) {
51 throw new Error("Expected 5, got " + result.length);
/art/test/582-checker-bce-length/src/
H A DMain.java37 a[a.length-3] = 1;
38 a[a.length-2] = 2;
39 a[a.length-1] = 3;
43 a[a.length-0] = 4;
59 a[a.length-4] = -101;
60 a[a.length-3] = -102;
61 a[a.length-2] = -103;
62 a[a.length-1] = -104;
/art/test/525-checker-arrays-and-fields/src/
H A DMain.java95 for (int i = 0; i < sArrZ.length; i++) {
109 for (int i = 0; i < sArrB.length; i++) {
123 for (int i = 0; i < sArrC.length; i++) {
137 for (int i = 0; i < sArrS.length; i++) {
151 for (int i = 0; i < sArrI.length; i++) {
165 for (int i = 0; i < sArrJ.length; i++) {
179 for (int i = 0; i < sArrF.length; i++) {
193 for (int i = 0; i < sArrD.length; i++) {
207 for (int i = 0; i < sArrL.length; i++) {
218 for (int i = 0; i < sArrZ.length;
[all...]
/art/test/023-many-interfaces/src/
H A DMain.java3 boolean timing = (args.length >= 1) && args[0].equals("--timing");
/art/test/022-interface/classes/
H A DMain$1.class ... hashCode () public java.lang.String toString () public int length () public char charAt (int) public java.lang.CharSequence ...
H A DMain$SubInterfaceImpl.class ... 7.0.0_r1/s?defs= " () public int length () public char charAt (int) public java.lang.CharSequence ...
/art/test/096-array-copy-concurrent-gc/src/
H A DMain.java54 for (int i = 0; i < array.length; i+=2) {
62 for (int j = 0; j < array.length; j++) {
63 Object obj = array[array.length - 1];
64 System.arraycopy(array, 0, array, 1, array.length - 1);
72 for (int j = 0; j < array.length; j++) {
74 System.arraycopy(array, 1, array, 0, array.length - 1);
75 array[array.length - 1] = obj;
/art/runtime/native/
H A Dorg_apache_harmony_dalvik_ddmc_DdmServer.cc28 jbyteArray javaData, jint offset, jint length) {
31 DCHECK_LE(offset + length, static_cast<int32_t>(data.size()));
32 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset]));
27 DdmServer_nativeSendChunk(JNIEnv* env, jclass, jint type, jbyteArray javaData, jint offset, jint length) argument
/art/test/021-string2/src/junit/framework/
H A DComparisonCompactor.java40 String result= DELTA_START + source.substring(fPrefix, source.length() - fSuffix + 1) + DELTA_END;
50 int end= Math.min(fExpected.length(), fActual.length());
58 int expectedSuffix= fExpected.length() - 1;
59 int actualSuffix= fActual.length() - 1;
64 fSuffix= fExpected.length() - expectedSuffix;
72 int end= Math.min(fExpected.length() - fSuffix + 1 + fContextLength, fExpected.length());
73 return fExpected.substring(fExpected.length() - fSuffix + 1, end) + (fExpected.length()
[all...]
/art/test/082-inline-execute/src/junit/framework/
H A DComparisonCompactor.java40 String result= DELTA_START + source.substring(fPrefix, source.length() - fSuffix + 1) + DELTA_END;
50 int end= Math.min(fExpected.length(), fActual.length());
58 int expectedSuffix= fExpected.length() - 1;
59 int actualSuffix= fActual.length() - 1;
64 fSuffix= fExpected.length() - expectedSuffix;
72 int end= Math.min(fExpected.length() - fSuffix + 1 + fContextLength, fExpected.length());
73 return fExpected.substring(fExpected.length() - fSuffix + 1, end) + (fExpected.length()
[all...]
/art/test/140-dce-regression/src/
H A DMain.java23 len = arr.length;
/art/test/565-checker-condition-liveness/src/
H A DMain.java42 int x = args.length;
/art/tools/ahat/test/
H A DTests.java23 if (args.length == 0) {
/art/test/427-bounds/src/
H A DMain.java28 // Note that it's ART specific to emit the length.
29 if (exceptionMessage.contains("length")) {
30 if (!exceptionMessage.contains("length=1")) {
31 throw new Error("Wrong length in exception message");
44 // We fetch the length first, to ensure it is in EAX (on x86).
46 // length in ECX, and the optimizing compiler used to write to EAX
47 // before putting the length in ECX.
48 int length = array.length;
/art/test/572-checker-array-get-regression/src/
H A DMain.java49 Integer last_integer = integers[integers.length - 1];
54 for (int i = 0; i < integers.length; ++i) {
/art/test/048-reflect-v8/src/
H A DAnnotationTestHelpers.java43 } else if (annos.length == 0) {
46 for (int i = 0; i < annos.length; ++i) {
49 if (i != annos.length - 1) {
75 for (int i = 0; i < allValues.length; ++i) {
77 if (i != allValues.length - 1) {
/art/test/117-nopatchoat/src/
H A DMain.java44 for (int i = 0; i < arr.length; i++) {
47 return ret.substring(0, ret.length() - 1);
/art/test/412-new-array/src/
H A DMain.java37 assertEquals(1, a.length);
40 assertEquals(2, b.length);
43 assertEquals(3, c.length);
46 assertEquals(4, d.length);
49 assertEquals(5, e.length);
52 assertEquals(6, f.length);
55 assertEquals(7, g.length);
58 assertEquals(8, h.length);
61 assertEquals(9, i.length);
66 assertEquals(1, a.length);
[all...]
/art/tools/dexfuzz/src/dexfuzz/program/
H A DMSwitchInsn.java46 newInsn.keys = new int[keys.length];
47 System.arraycopy(keys, 0, newInsn.keys, 0, keys.length);
/art/test/530-checker-loops1/src/
H A DMain.java36 for (int i = 0; i < x.length; i++) {
50 for (int i = x.length - 1; i >= 0; i--) {
64 for (int i = x.length - 1; i >= 0; i--) {
79 for (int i = 0; i < x.length; i++) {
96 for (int j = 0; j < a.length; j += i) {
112 while (i < x.length) {
126 for (int i = 0; i < x.length; ) {
144 for (int i = 0; i < x.length; ) {
165 // Loop with wrap around (length - 1, 0, 1, 2, ..).
166 int w = x.length
[all...]
/art/test/011-array-copy/src/
H A DMain.java33 for (int i = 0; i < stringArray.length; i++)
37 System.arraycopy(stringArray, 0, objectArray, 0, stringArray.length);
39 System.arraycopy(objectArray, 0, stringArray, 0, stringArray.length);
43 System.arraycopy(objectArray, 0, stringArray, 0,stringArray.length);
82 static void makeCopies(int srcPos, int dstPos, int length) { argument
95 System.arraycopy(byteArray, srcPos, byteArray, dstPos, length);
96 System.arraycopy(shortArray, srcPos, shortArray, dstPos, length);
97 System.arraycopy(intArray, srcPos, intArray, dstPos, length);
98 System.arraycopy(longArray, srcPos, longArray, dstPos, length);
99 System.arraycopy(charArray, srcPos, charArray, dstPos, length);
[all...]
/art/runtime/base/
H A Dstringprintf.cc50 int length = result+1; local
51 char* buf = new char[length];
55 result = vsnprintf(buf, length, format, backup_ap);
58 if (result >= 0 && result < length) {
/art/runtime/interpreter/mterp/arm/
H A Dop_array_length.S2 * Return the length of an array.
10 ldr r3, [r0, #MIRROR_ARRAY_LENGTH_OFFSET] @ r3<- array length
12 SET_VREG r3, r2 @ vB<- length
/art/runtime/interpreter/mterp/mips/
H A Dop_array_length.S2 * Return the length of an array.
10 LOAD_base_offMirrorArray_length(a3, a0) # a3 <- array length
12 SET_VREG_GOTO(a3, a2, t0) # vA <- length
/art/runtime/interpreter/mterp/mips64/
H A Dop_array_length.S2 * Return the length of an array.
9 lw a3, MIRROR_ARRAY_LENGTH_OFFSET(a0) # a3 <- array length
11 SET_VREG a3, a2 # vB <- length

Completed in 858 milliseconds

12345678910