/art/runtime/entrypoints/portable/ |
D | portable_alloc_entrypoints.cc | 42 uint32_t length, in art_portable_alloc_array_from_code() argument 45 return AllocArrayFromCode<false, true>(type_idx, referrer, length, self, in art_portable_alloc_array_from_code() 51 uint32_t length, in art_portable_alloc_array_from_code_with_access_check() argument 54 return AllocArrayFromCode<true, true>(type_idx, referrer, length, self, in art_portable_alloc_array_from_code_with_access_check() 60 uint32_t length, in art_portable_check_and_alloc_array_from_code() argument 63 return CheckAndAllocArrayFromCodeInstrumented(type_idx, referrer, length, thread, false, in art_portable_check_and_alloc_array_from_code() 69 … uint32_t length, in art_portable_check_and_alloc_array_from_code_with_access_check() argument 72 return CheckAndAllocArrayFromCodeInstrumented(type_idx, referrer, length, thread, true, in art_portable_check_and_alloc_array_from_code_with_access_check()
|
/art/test/011-array-copy/src/ |
D | Main.java | 32 for (int i = 0; i < stringArray.length; i++) in testObjectCopy() 36 System.arraycopy(stringArray, 0, objectArray, 0, stringArray.length); in testObjectCopy() 38 System.arraycopy(objectArray, 0, stringArray, 0, stringArray.length); in testObjectCopy() 42 System.arraycopy(objectArray, 0, stringArray, 0,stringArray.length); in testObjectCopy() 76 static void makeCopies(int srcPos, int dstPos, int length) { in makeCopies() argument 87 System.arraycopy(byteArray, srcPos, byteArray, dstPos, length); in makeCopies() 88 System.arraycopy(shortArray, srcPos, shortArray, dstPos, length); in makeCopies() 89 System.arraycopy(intArray, srcPos, intArray, dstPos, length); in makeCopies() 90 System.arraycopy(longArray, srcPos, longArray, dstPos, length); in makeCopies() 108 System.out.println("copy: " + srcPos + "," + dstPos + "," + length + in makeCopies()
|
/art/test/096-array-copy-concurrent-gc/src/ |
D | Main.java | 54 for (int i = 0; i < array.length; i+=2) { in stressArray() 62 for (int j = 0; j < array.length; j++) { in stressArray() 63 Object obj = array[array.length - 1]; in stressArray() 64 System.arraycopy(array, 0, array, 1, array.length - 1); in stressArray() 72 for (int j = 0; j < array.length; j++) { in stressArray() 74 System.arraycopy(array, 1, array, 0, array.length - 1); in stressArray() 75 array[array.length - 1] = obj; in stressArray()
|
/art/test/082-inline-execute/src/junit/framework/ |
D | ComparisonFailure.java | 34 int end= Math.min(fExpected.length(), fActual.length()); in getMessage() 41 int j= fExpected.length()-1; in getMessage() 42 int k= fActual.length()-1; in getMessage() 61 if (j < fExpected.length()-1) in getMessage() 63 if (k < fActual.length()-1) in getMessage()
|
/art/test/021-string2/src/junit/framework/ |
D | ComparisonFailure.java | 34 int end= Math.min(fExpected.length(), fActual.length()); in getMessage() 41 int j= fExpected.length()-1; in getMessage() 42 int k= fActual.length()-1; in getMessage() 61 if (j < fExpected.length()-1) in getMessage() 63 if (k < fActual.length()-1) in getMessage()
|
/art/test/020-string/src/ |
D | Main.java | 31 testStr = baseStr.substring(4, baseStr.length() - 3); in basicTest() 35 for (i = 0; i < testStr.length(); i++) in basicTest() 40 if (testStr.length() != testStr2.length()) in basicTest() 62 subStr = baseStr.substring(5, baseStr.length() - 4); in indexTest()
|
/art/runtime/base/ |
D | stringprintf.cc | 50 int length = result+1; in StringAppendV() local 51 char* buf = new char[length]; in StringAppendV() 55 result = vsnprintf(buf, length, format, backup_ap); in StringAppendV() 58 if (result >= 0 && result < length) { in StringAppendV()
|
/art/runtime/native/ |
D | org_apache_harmony_dalvik_ddmc_DdmServer.cc | 25 jbyteArray javaData, jint offset, jint length) { in DdmServer_nativeSendChunk() argument 28 DCHECK_LE(offset + length, static_cast<int32_t>(data.size())); in DdmServer_nativeSendChunk() 29 Dbg::DdmSendChunk(type, length, reinterpret_cast<const uint8_t*>(&data[offset])); in DdmServer_nativeSendChunk()
|
D | java_lang_reflect_Array.cc | 46 static jobject Array_createObjectArray(JNIEnv* env, jclass, jclass javaElementClass, jint length) { in Array_createObjectArray() argument 49 if (UNLIKELY(length < 0)) { in Array_createObjectArray() 50 ThrowNegativeArraySizeException(length); in Array_createObjectArray() 62 mirror::Array* new_array = mirror::Array::Alloc<true>(soa.Self(), array_class, length, in Array_createObjectArray()
|
/art/runtime/mirror/ |
D | dex_cache.cc | 58 size_t length = resolved_methods->GetLength(); in Init() local 59 for (size_t i = 0; i < length; i++) { in Init() 69 size_t length = resolved_methods->GetLength(); in Fixup() local 70 for (size_t i = 0; i < length; i++) { in Fixup()
|
/art/runtime/ |
D | dex_file_verifier_test.cc | 108 size_t length; in OpenDexFileBase64() local 109 std::unique_ptr<byte[]> dex_bytes(DecodeBase64(base64, &length)); in OpenDexFileBase64() 115 if (!file->WriteFully(dex_bytes.get(), length)) { in OpenDexFileBase64() 166 static const DexFile* FixChecksumAndOpen(byte* bytes, size_t length, const char* location, in FixChecksumAndOpen() argument 177 if (!file->WriteFully(bytes, length)) { in FixChecksumAndOpen() 198 size_t length; in ModifyAndLoad() local 199 std::unique_ptr<byte[]> dex_bytes(DecodeBase64(kGoodTestDex, &length)); in ModifyAndLoad() 206 std::unique_ptr<const DexFile> file(FixChecksumAndOpen(dex_bytes.get(), length, location, in ModifyAndLoad()
|
D | class_linker-inl.h | 159 inline mirror::ObjectArray<T>* ClassLinker::AllocObjectArray(Thread* self, size_t length) { in AllocObjectArray() argument 160 return mirror::ObjectArray<T>::Alloc(self, GetClassRoot(kObjectArrayClass), length); in AllocObjectArray() 164 size_t length) { in AllocClassArray() argument 165 return mirror::ObjectArray<mirror::Class>::Alloc(self, GetClassRoot(kClassArrayClass), length); in AllocClassArray() 169 size_t length) { in AllocStringArray() argument 171 length); in AllocStringArray() 175 size_t length) { in AllocArtMethodArray() argument 177 GetClassRoot(kJavaLangReflectArtMethodArrayClass), length); in AllocArtMethodArray() 187 size_t length) { in AllocArtFieldArray() argument 193 self, GetClassRoot(kJavaLangReflectArtFieldArrayClass), length, in AllocArtFieldArray()
|
D | jni_internal.cc | 246 jsize length, const char* identifier) in ThrowAIOOBE() argument 252 type.c_str(), start, length, identifier, array->GetLength()); in ThrowAIOOBE() 255 static void ThrowSIOOBE(ScopedObjectAccess& soa, jsize start, jsize length, in ThrowSIOOBE() argument 260 "offset=%d length=%d string.length()=%d", start, length, in ThrowSIOOBE() 574 #define CHECK_NON_NULL_MEMCPY_ARGUMENT(length, value) \ argument 575 if (UNLIKELY(length != 0 && value == nullptr)) { \ 1951 static void GetStringRegion(JNIEnv* env, jstring java_string, jsize start, jsize length, in GetStringRegion() argument 1956 if (start < 0 || length < 0 || start + length > s->GetLength()) { in GetStringRegion() 1957 ThrowSIOOBE(soa, start, length, s->GetLength()); in GetStringRegion() 1959 CHECK_NON_NULL_MEMCPY_ARGUMENT(length, buf); in GetStringRegion() [all …]
|
D | monitor_test.cc | 74 size_t length = 128 * KB / 4; in FillHeap() local 75 while (length > 10) { in FillHeap() 77 mirror::ObjectArray<mirror::Object>::Alloc(self, ca.Get(), length / 4))); in FillHeap() 82 length = length / 8; in FillHeap() 85 if (length * 8 > mem) { in FillHeap() 86 length = mem / 8; in FillHeap()
|
/art/test/004-ThreadStress/src/ |
D | Main.java | 82 for (int t = 0; t < threadStresses.length; t++) { in main() 89 if (o == operations.length) { in main() 105 for (int t = 0; t < threadStresses.length; t++) { in main() 129 for (int r = 0; r < runners.length; r++) { in main() 166 for (int r = 0; r < runners.length; r++) { in main() 169 for (int r = 0; r < runners.length; r++) { in main() 191 while (nextOperation < operations.length) { in run()
|
/art/test/114-ParallelGC/src/ |
D | Main.java | 47 CyclicBarrier barrier = new CyclicBarrier(threads.length); in main() 49 threads.length); in main() 50 for (int i = 0; i < threads.length; i++) { in main() 54 for (int i = 0; i < threads.length; i++) { in main() 55 threads[i] = new Thread(new Main(i, queues.get(i), queues.get((i + 1) % threads.length), in main()
|
/art/runtime/verifier/ |
D | instruction_flags.h | 32 void SetLengthInCodeUnits(size_t length) { in SetLengthInCodeUnits() argument 33 DCHECK_LT(length, 65536u); in SetLengthInCodeUnits() 34 length_ = length; in SetLengthInCodeUnits()
|
/art/compiler/utils/ |
D | assembler_test.h | 194 if (disassembler.length() != 0) { in CheckTools() 243 if (resolved_assembler_cmd_.length() != 0) { in GetAssemblerCommand() 248 if (line.length() == 0) { in GetAssemblerCommand() 270 if (resolved_objdump_cmd_.length() != 0) { in GetObjdumpCommand() 275 if (line.length() == 0) { in GetObjdumpCommand() 296 if (resolved_disassemble_cmd_.length() != 0) { in GetDisassembleCommand() 301 if (line.length() == 0) { in GetDisassembleCommand() 343 EXPECT_NE(assembly_text.length(), 0U) << "Empty assembly"; in Driver() 387 uintptr_t length; member 459 if (disassembler.length() == 0) { in DisassembleBinaries() [all …]
|
/art/test/022-interface/src/ |
D | Main.java | 58 public int length() { in objectOverrideTests() 59 return toString().length(); in objectOverrideTests() 75 public int length() { in length() method in Main.SubInterfaceImpl
|
/art/runtime/gc/allocator/ |
D | dlmalloc.cc | 62 size_t length = reinterpret_cast<uint8_t*>(end) - reinterpret_cast<uint8_t*>(start); in DlmallocMadviseCallback() local 63 int rc = madvise(start, length, MADV_DONTNEED); in DlmallocMadviseCallback() 69 *reclaimed += length; in DlmallocMadviseCallback()
|
/art/test/117-nopatchoat/src/ |
D | Main.java | 33 for (int i = 0; i < arr.length; i++) { in functionCall() 36 return ret.substring(0, ret.length() - 1); in functionCall()
|
/art/runtime/jdwp/ |
D | jdwp_request.cc | 55 uint32_t length = Read4BE(); in ReadUtf8String() local 57 s.resize(length); in ReadUtf8String() 58 memcpy(&s[0], p_, length); in ReadUtf8String() 59 p_ += length; in ReadUtf8String()
|
/art/test/045-reflect-array/src/ |
D | Main.java | 45 if (array.length != Array.getLength(intArray) || in testSingleInt() 46 array.length != 2) in testSingleInt() 95 for (int i = 0; i < array.length; i++) { in testSingleChar() 182 if (array.length != Array.getLength(strArray) || in testSingle() 183 array.length != 2) in testSingle()
|
/art/test/044-proxy/src/ |
D | BasicTest.java | 88 Method meth = methods[methods.length -1]; in main() 91 System.out.println("Param annos (" + paramAnnos.length + ") : " in main() 262 for (int i = 0; i < stackTrace.length; i++) { in invoke() 276 for (int i = 0; i < stackTrace.length; i++) { in invoke() 288 if (args == null || args.length == 0) { in invoke() 291 for (int i = 0; i < args.length; i++) in invoke()
|
/art/test/102-concurrent-gc/src/ |
D | Main.java | 54 for (int j = 0; j < l.length; ++j) { in main() 55 int a = l.length - i - 1; in main()
|