/art/runtime/mirror/ |
H A D | string-inl.h | 139 "length=%i; index=%i", count, index); 161 size_t length = static_cast<size_t>(utf16_length); local 162 size_t data_size = sizeof(uint16_t) * length; 171 // Do this by comparing with the maximum length that will _not_ cause an overflow. 177 if (UNLIKELY(length > max_length)) { 178 self->ThrowOutOfMemoryError(StringPrintf("%s of length %d would overflow",
|
/art/test/004-JniTest/src/ |
H A D | Main.java | 116 for (int i = 0; i < returns.length; i++) { 137 for (int i = 0; i < returns.length; i++) { 168 for (int i = 0; i < returns.length; i++) {
|
/art/runtime/jdwp/ |
H A D | jdwp_main.cc | 95 uint32_t length = Get4BE(input_buffer_); local 96 return (input_count_ >= length); 126 * Write a packet of "length" bytes. Grabs a mutex to assure atomicity. 128 ssize_t JdwpNetStateBase::WritePacket(ExpandBuf* pReply, size_t length) { argument 129 DCHECK_LE(length, expandBufGetLength(pReply)); 135 return TEMP_FAILURE_RETRY(write(clientSock, expandBufGetBuffer(pReply), length));
|
H A D | jdwp_handler.cc | 675 * Create a new array object of the requested type and length. 680 int32_t length = request->ReadSigned32("length"); local 683 JdwpError status = Dbg::CreateArrayObject(arrayTypeId, length, &object_id); 1009 uint32_t length = request->ReadUnsigned32("length"); local 1024 if (length == static_cast<uint32_t>(-1)) { 1025 length = actual_frame_count - start_frame; 1027 if (start_frame + length > actual_frame_count) { 1031 return Dbg::GetThreadFrames(thread_id, start_frame, length, pRepl 1153 int32_t length; local 1172 uint32_t length = request->ReadUnsigned32("length"); local [all...] |
/art/runtime/hprof/ |
H A D | hprof.cc | 169 // Replace length in header. 244 const int32_t length = values->GetLength(); local 245 for (int32_t i = 0; i < length; ++i) { 285 size_t max_length_; // Maximum seen length. 363 virtual void HandleFlush(const uint8_t* buffer ATTRIBUTE_UNUSED, size_t length ATTRIBUTE_UNUSED) { 383 void HandleFlush(const uint8_t* buffer, size_t length) OVERRIDE { 385 errors_ = !fp_->WriteFully(buffer, length); 403 void HandleFlush(const uint8_t* buffer, size_t length) OVERRIDE { 407 iov[0].iov_len = length; 524 // WriteStringTable() last in the first pass, to compute the correct length o 1264 uint32_t length = obj->GetLength(); local [all...] |
/art/compiler/optimizing/ |
H A D | intrinsics_arm64.cc | 1161 __ Ldr(temp, HeapOperand(obj, count_offset)); // temp = str.length. 1271 static_assert(IsAligned<8>(kObjectAlignment), "String of odd length is not zero padded"); 1737 // The length must be >= 0 and not so long that we would (currently) prefer libcore's 1739 HIntConstant* length = invoke->InputAt(4)->AsIntConstant(); local 1740 if (length != nullptr) { 1741 int32_t len = length->GetValue(); 1752 // arraycopy(char[] src, int src_pos, char[] dst, int dst_pos, int length). 1767 const Location& length, 1777 // Check that length(input) >= length 1764 CheckSystemArrayCopyPosition(vixl::MacroAssembler* masm, const Location& pos, const Register& input, const Location& length, SlowPathCodeARM64* slow_path, const Register& input_len, const Register& temp, bool length_is_input_length = false) argument 1858 Location length = locations->InAt(4); local 1959 HIntConstant* length = invoke->InputAt(4)->AsIntConstant(); local 2010 Location length = locations->InAt(4); local [all...] |
H A D | intrinsics_arm.cc | 974 __ ldr(temp, Address(obj, count_offset.Int32Value())); // temp = str.length. 1085 static_assert(IsAligned<4>(kObjectAlignment), "String of odd length is not zero padded"); 1090 // Ok to do this because strings with an odd length are zero-padded. 1296 HIntConstant* length = invoke->InputAt(4)->AsIntConstant(); local 1304 if (length != nullptr && !assembler_->ShifterOperandCanAlwaysHold(length->GetValue())) { 1312 Location length, 1317 // Where is the length in the Array? 1324 // Check that length(input) >= length 1309 CheckPosition(ArmAssembler* assembler, Location pos, Register input, Location length, SlowPathCode* slow_path, Register input_len, Register temp, bool length_is_input_length = false) argument 1389 Location length = locations->InAt(4); local [all...] |
H A D | intrinsics_x86_64.cc | 950 // The length must be > 0. 951 HIntConstant* length = invoke->InputAt(4)->AsIntConstant(); local 952 if (length != nullptr) { 953 int32_t len = length->GetValue(); 963 // arraycopy(Object src, int src_pos, Object dest, int dest_pos, int length). 979 Location length, 984 // Where is the length in the Array? 991 // Check that length(input) >= length. 992 if (length 976 CheckPosition(X86_64Assembler* assembler, Location pos, CpuRegister input, Location length, SlowPathCode* slow_path, CpuRegister input_len, CpuRegister temp, bool length_is_input_length = false) argument 1050 Location length = locations->InAt(4); local 1145 Location length = locations->InAt(4); local [all...] |
/art/compiler/linker/ |
H A D | relative_patcher_test.h | 230 if (diff_indicator_str.length() > 60) { 231 CHECK_EQ(diff_indicator_str.length() % 3u, 0u); 232 size_t remove = diff_indicator_str.length() / 3 - 5;
|
/art/test/021-string2/src/ |
H A D | Main.java | 83 Assert.assertEquals(4, strings.length);
|
/art/test/109-suspend-check/src/ |
H A D | Main.java | 162 sum += strings[i & 3].length();
|
/art/test/497-inlining-and-class-loader/src/ |
H A D | Main.java | 114 for (int i = 0; i < array.length; i++) {
|
/art/runtime/ |
H A D | image.h | 169 if (oat_filename.length() <= 3) { 172 oat_filename.replace(oat_filename.length() - 3, 3, "oat");
|
H A D | dex_file_test.cc | 140 size_t length; local 141 std::unique_ptr<uint8_t[]> dex_bytes(DecodeBase64(base64, &length)); 147 if (!file->WriteFully(dex_bytes.get(), length)) {
|
H A D | check_jni.cc | 454 * . - VarArgs* for Jni calls with variable length arguments 983 msg->erase(msg->length() - 2); 1132 bool CheckLengthPositive(jsize length) { argument 1133 if (length < 0) { 1134 AbortF("negative jsize: %d", length); 2345 static jobjectArray NewObjectArray(JNIEnv* env, jsize length, jclass element_class, argument 2350 {{.E = env}, {.z = length}, {.c = element_class}, {.L = initial_element}}; 2354 result.a = baseEnv(env)->NewObjectArray(env, length, element_class, initial_element); 2391 static jbooleanArray NewBooleanArray(JNIEnv* env, jsize length) { argument 2392 return down_cast<jbooleanArray>(NewPrimitiveArray(__FUNCTION__, env, length, 2396 NewByteArray(JNIEnv* env, jsize length) argument 2401 NewCharArray(JNIEnv* env, jsize length) argument 2406 NewShortArray(JNIEnv* env, jsize length) argument 2411 NewIntArray(JNIEnv* env, jsize length) argument 2415 NewLongArray(JNIEnv* env, jsize length) argument 2420 NewFloatArray(JNIEnv* env, jsize length) argument 2425 NewDoubleArray(JNIEnv* env, jsize length) argument 3323 NewPrimitiveArray(const char* function_name, JNIEnv* env, jsize length, Primitive::Type type) argument [all...] |
H A D | mem_map.h | 55 // Request an anonymous region of length 'byte_count' and a requested base address. 213 size_t length,
|
H A D | oat.h | 62 void UpdateChecksum(const void* data, size_t length);
|
H A D | class_linker.h | 361 const char* MethodShorty(uint32_t method_idx, ArtMethod* referrer, uint32_t* length) 427 mirror::ObjectArray<T>* AllocObjectArray(Thread* self, size_t length) 431 mirror::ObjectArray<mirror::Class>* AllocClassArray(Thread* self, size_t length) 435 mirror::ObjectArray<mirror::String>* AllocStringArray(Thread* self, size_t length) 441 size_t length); 445 size_t length); 447 mirror::PointerArray* AllocPointerArray(Thread* self, size_t length) 456 size_t length)
|
/art/runtime/native/ |
H A D | dalvik_system_VMRuntime.cc | 70 jint length) { 72 if (UNLIKELY(length < 0)) { 73 ThrowNegativeArraySizeException(length); 88 mirror::Array* result = mirror::Array::Alloc<true>(soa.Self(), array_class, length, 95 jint length) { 97 if (UNLIKELY(length < 0)) { 98 ThrowNegativeArraySizeException(length); 113 mirror::Array* result = mirror::Array::Alloc<true, true>(soa.Self(), array_class, length, 69 VMRuntime_newNonMovableArray(JNIEnv* env, jobject, jclass javaElementClass, jint length) argument 94 VMRuntime_newUnpaddedArray(JNIEnv* env, jobject, jclass javaElementClass, jint length) argument
|
H A D | java_lang_String.cc | 73 static jstring String_fastSubstring(JNIEnv* env, jobject java_this, jint start, jint length) { argument 78 mirror::String* result = mirror::String::AllocFromString<true>(soa.Self(), length, string_this,
|
H A D | java_lang_System.cc | 47 jint dstPos, jint length) { 48 // The API is defined in terms of length, but length is somewhat overloaded so we use count. 49 const jint count = length; 81 "src.length=%d srcPos=%d dst.length=%d dstPos=%d length=%d", 46 System_arraycopy(JNIEnv* env, jclass, jobject javaSrc, jint srcPos, jobject javaDst, jint dstPos, jint length) argument
|
/art/test/003-omnibus-opcodes/src/ |
H A D | Array.java | 89 Main.assertTrue(ints.length == 5); 144 Main.assertTrue(longs.length == 5);
|
/art/test/044-proxy/src/ |
H A D | WrappedThrow.java | 208 if (args == null || args.length == 0) { 211 for (int i = 0; i < args.length; i++)
|
/art/runtime/base/ |
H A D | arena_allocator.h | 347 T* AllocArray(size_t length, ArenaAllocKind kind = kArenaAllocMisc) { argument 348 return static_cast<T*>(Alloc(length * sizeof(T), kind));
|
/art/runtime/gc/accounting/ |
H A D | space_bitmap.cc | 234 int32_t length = obj_array->GetLength(); local 235 for (int32_t i = 0; i < length; i++) {
|