/art/test/513-array-deopt/src/ |
H A D | Main.java | 27 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/023-many-interfaces/src/ |
H A D | Main.java | 3 boolean timing = (args.length >= 1) && args[0].equals("--timing");
|
/art/test/022-interface/classes/ |
H A D | Main$1.class | ... hashCode () public java.lang.String toString () public int length () public char charAt (int) public java.lang.CharSequence ... |
H A D | Main$SubInterfaceImpl.class | ... 6.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 D | Main.java | 54 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 D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 28 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
|
H A D | libcore_util_CharsetUtils.cc | 111 jint length, jcharArray javaChars) { 124 for (int i = length - 1; i >= 0; --i) { 131 jint offset, jint length, jcharArray javaChars) { 143 for (int i = length - 1; i >= 0; --i) { 153 static jbyteArray charsToBytes(JNIEnv* env, jstring java_string, jint offset, jint length, argument 162 jbyteArray javaBytes = env->NewByteArray(length); 170 for (int i = length - 1; i >= 0; --i) { 182 jint length) { 183 return charsToBytes(env, java_string, offset, length, 0x7f); 187 jint offset, jint length) { 110 CharsetUtils_asciiBytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, jint length, jcharArray javaChars) argument 130 CharsetUtils_isoLatin1BytesToChars(JNIEnv* env, jclass, jbyteArray javaBytes, jint offset, jint length, jcharArray javaChars) argument 181 CharsetUtils_toAsciiBytes(JNIEnv* env, jclass, jstring java_string, jint offset, jint length) argument 186 CharsetUtils_toIsoLatin1Bytes(JNIEnv* env, jclass, jstring java_string, jint offset, jint length) argument 191 CharsetUtils_toUtf8Bytes(JNIEnv* env, jclass, jstring java_string, jint offset, jint length) argument [all...] |
H A D | java_lang_reflect_Array.cc | 49 static jobject Array_createObjectArray(JNIEnv* env, jclass, jclass javaElementClass, jint length) { argument 52 if (UNLIKELY(length < 0)) { 53 ThrowNegativeArraySizeException(length); 66 soa.Self(), array_class, length, runtime->GetHeap()->GetCurrentAllocator());
|
/art/test/021-string2/src/junit/framework/ |
H A D | ComparisonCompactor.java | 40 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 D | ComparisonCompactor.java | 40 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 D | Main.java | 23 len = arr.length;
|
/art/test/464-checker-inline-sharpen-calls/src/ |
H A D | Main.java | 45 return "Foo".length();
|
/art/test/427-bounds/src/ |
H A D | Main.java | 28 // 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/011-array-copy/src/ |
H A D | Main.java | 32 for (int i = 0; i < stringArray.length; i++) 36 System.arraycopy(stringArray, 0, objectArray, 0, stringArray.length); 38 System.arraycopy(objectArray, 0, stringArray, 0, stringArray.length); 42 System.arraycopy(objectArray, 0, stringArray, 0,stringArray.length); 76 static void makeCopies(int srcPos, int dstPos, int length) { argument 87 System.arraycopy(byteArray, srcPos, byteArray, dstPos, length); 88 System.arraycopy(shortArray, srcPos, shortArray, dstPos, length); 89 System.arraycopy(intArray, srcPos, intArray, dstPos, length); 90 System.arraycopy(longArray, srcPos, longArray, dstPos, length); 108 System.out.println("copy: " + srcPos + "," + dstPos + "," + length [all...] |
/art/test/117-nopatchoat/src/ |
H A D | Main.java | 38 for (int i = 0; i < arr.length; i++) { 41 return ret.substring(0, ret.length() - 1);
|
/art/test/412-new-array/src/ |
H A D | Main.java | 37 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 D | MSwitchInsn.java | 46 newInsn.keys = new int[keys.length]; 47 System.arraycopy(keys, 0, newInsn.keys, 0, keys.length);
|
/art/runtime/base/ |
H A D | stringprintf.cc | 50 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/test/430-live-register-slow-path/src/ |
H A D | Main.java | 24 assertEquals(0, o.length);
|
/art/test/472-type-propagation/src/ |
H A D | Main.java | 25 if (array.length > 3) {
|
/art/test/137-cfi/src/ |
H A D | Main.java | 45 if (args.length > 0 && args[args.length - 1].equals("--secondary")) { 84 String[] secCmdLine = new String[cmdline.length + 1]; 85 System.arraycopy(cmdline, 0, secCmdLine, 0, cmdline.length); 86 secCmdLine[secCmdLine.length - 1] = "--secondary"; 123 return Integer.parseInt(s.substring("Process[pid=".length(), s.length() - 1));
|
/art/test/449-checker-bce/src/ |
H A D | Main.java | 74 if (offset < array.length) { 75 // offset is in range [0, array.length-1]. 80 // biased_offset1 is in range [1, array.length]. 81 if (biased_offset1 < array.length) { 82 // biased_offset1 is in range [1, array.length-1]. 88 // biased_offset2 is in range [0x70000000, array.length-1+0x70000000]. 90 if (biased_offset2 < array.length) { 285 for (int i = 0; i < array.length; i++) { 289 for (int i = 1; i < array.length; i++) { 293 for (int i = 1; i < array.length [all...] |
/art/test/094-pattern/src/ |
H A D | Main.java | 87 StringBuilder sb = new StringBuilder(text.length() * 4); 89 for (int i = 0; i < text.length(); i++) {
|
/art/test/102-concurrent-gc/src/ |
H A D | Main.java | 54 for (int j = 0; j < l.length; ++j) { 55 int a = l.length - i - 1;
|
/art/test/002-sleep/src/ |
H A D | Main.java | 5 if (args.length != 0) {
|