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

1234567

/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/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 ... 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 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
H A Dlibcore_util_CharsetUtils.cc111 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 Djava_lang_reflect_Array.cc49 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 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/464-checker-inline-sharpen-calls/src/
H A DMain.java45 return "Foo".length();
/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/011-array-copy/src/
H A DMain.java32 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 DMain.java38 for (int i = 0; i < arr.length; i++) {
41 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/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/test/430-live-register-slow-path/src/
H A DMain.java24 assertEquals(0, o.length);
/art/test/472-type-propagation/src/
H A DMain.java25 if (array.length > 3) {
/art/test/137-cfi/src/
H A DMain.java45 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 DMain.java74 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 DMain.java87 StringBuilder sb = new StringBuilder(text.length() * 4);
89 for (int i = 0; i < text.length(); i++) {
/art/test/102-concurrent-gc/src/
H A DMain.java54 for (int j = 0; j < l.length; ++j) {
55 int a = l.length - i - 1;
/art/test/002-sleep/src/
H A DMain.java5 if (args.length != 0) {

Completed in 551 milliseconds

1234567