Home
last modified time | relevance | path

Searched refs:GetLength (Results 1 – 25 of 89) sorted by relevance

1234

/art/libartbase/base/unix_file/
Drandom_access_file_test.h109 ASSERT_EQ(0, file->Read(buf.get(), buf_size, file->GetLength())); in TestReadContent()
110 ASSERT_EQ(0, file->Read(buf.get(), buf_size, file->GetLength() + 1)); in TestReadContent()
117 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->GetLength())); in TestSetLength()
125 ASSERT_EQ(new_length, file->GetLength()); in TestSetLength()
131 new_length = file->GetLength() + 1; in TestSetLength()
133 ASSERT_EQ(new_length, file->GetLength()); in TestSetLength()
149 ASSERT_EQ(0, file->GetLength()); in TestWrite()
153 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->GetLength())); in TestWrite()
165 file->GetLength() + 1))); in TestWrite()
167 ASSERT_EQ(file->GetLength(), new_length); in TestWrite()
Drandom_access_file.h54 virtual int64_t GetLength() const = 0;
Dfd_file_test.cc156 ASSERT_EQ(static_cast<int64_t>(sizeof(src_data)), src.GetLength()); in TEST_F()
165 ASSERT_EQ(static_cast<int64_t>(sizeof(src_data)), dest.GetLength()); in TEST_F()
242 EXPECT_EQ(tmp.GetFile()->GetLength(), length); in TEST_F()
246 EXPECT_EQ(tmp2.GetFile()->GetLength(), length); in TEST_F()
/art/runtime/mirror/
Dstring.cc38 int32_t count = GetLength(); in FastIndexOf()
54 hash_code = ComputeUtf16Hash(GetValueCompressed(), GetLength()); in ComputeHashCode()
56 hash_code = ComputeUtf16Hash(GetValue(), GetLength()); in ComputeHashCode()
64 return GetLength(); in GetUtfLength()
66 return CountUtf8Bytes(GetValue(), GetLength()); in GetUtfLength()
81 int32_t length = src->GetLength(); in DoReplace()
125 int32_t length = string->GetLength(); in AllocFromStrings()
126 int32_t length2 = string2->GetLength(); in AllocFromStrings()
226 } else if (this->GetLength() != that->GetLength()) { in Equals()
232 for (int32_t i = 0; i < that->GetLength(); ++i) { in Equals()
[all …]
Dstring-inl.h46 int32_t count = GetLength(); in CharAt()
61 const MemoryType* end = chars + GetLength(); in FastIndexOf()
77 DCHECK(result != 0 || ComputeUtf16Hash(GetValueCompressed(), GetLength()) == 0) in GetHashCode()
80 DCHECK(result != 0 || ComputeUtf16Hash(GetValue(), GetLength()) == 0) in GetHashCode()
Demulated_stack_frame.cc42 const size_t length = p_types->GetLength(); in CalculateFrameAndReferencesSize()
159 const int32_t num_method_params = from_types->GetLength(); in CreateFromShadowFrameAndArgs()
160 if (to_types->GetLength() != num_method_params) { in CreateFromShadowFrameAndArgs()
190 EmulatedStackFrameAccessor setter(references, stack_frame, stack_frame->GetLength()); in CreateFromShadowFrameAndArgs()
214 const int32_t num_method_params = from_types->GetLength(); in WriteToShadowFrame()
215 if (to_types->GetLength() != num_method_params) { in WriteToShadowFrame()
225 EmulatedStackFrameAccessor getter(references, stack_frame, stack_frame->GetLength()); in WriteToShadowFrame()
239 value->SetL(references->GetWithoutChecks(references->GetLength() - 1)); in GetReturnValue()
243 const size_t length = stack_frame->GetLength(); in GetReturnValue()
263 references->SetWithoutChecks<false>(references->GetLength() - 1, value.GetL()); in SetReturnValue()
[all …]
Dclass_ext.cc75 CHECK_EQ(old_methods->GetLength(), old_dex_caches->GetLength()); in ExtendObsoleteArrays()
76 new_len = increase + old_methods->GetLength(); in ExtendObsoleteArrays()
102 old_methods->GetLength(), in ExtendObsoleteArrays()
105 0, old_dex_caches->AsObjectArray<Object>(), 0, old_dex_caches->GetLength(), false); in ExtendObsoleteArrays()
Dmethod_type.cc100 const int32_t p_types_length = p_types->GetLength(); in NumberOfVRegs()
116 const int32_t params_length = p_types->GetLength(); in IsExactMatch()
119 if (params_length != target_p_types->GetLength()) { in IsExactMatch()
132 const int32_t params_length = p_types->GetLength(); in IsConvertible()
135 if (params_length != target_p_types->GetLength()) { in IsConvertible()
160 const int32_t params_length = p_types->GetLength(); in PrettyDescriptor()
Darray-inl.h46 GetLength<static_cast<VerifyObjectFlags>(kVerifyFlags & ~kVerifyThis)>(); in SizeOf()
56 static_cast<uint32_t>(GetLength<kVerifyFlags>()))) { in CheckIsValidIndex()
139 DCHECK_LT(dst_pos, GetLength()); in Memmove()
140 DCHECK_LE(dst_pos, GetLength() - count); in Memmove()
141 DCHECK_LT(src_pos, src->GetLength()); in Memmove()
142 DCHECK_LE(src_pos, src->GetLength() - count); in Memmove()
201 DCHECK_LT(dst_pos, GetLength()); in Memcpy()
202 DCHECK_LE(dst_pos, GetLength() - count); in Memcpy()
203 DCHECK_LT(src_pos, src->GetLength()); in Memcpy()
204 DCHECK_LE(src_pos, src->GetLength() - count); in Memcpy()
[all …]
Dthrowable.cc89 const int32_t array_len = trace->GetLength(); in GetStackDepth()
109 DCHECK_GT(object_array->GetLength(), 0); in Dump()
113 const int32_t array_len = method_trace->GetLength(); in Dump()
135 if (ste_array->GetLength() == 0) { in Dump()
138 for (int32_t i = 0; i < ste_array->GetLength(); ++i) { in Dump()
Darray.cc63 if (current_dimension + 1 < dimensions->GetLength()) { in RecursiveCreateMultiArray()
86 int num_dimensions = dimensions->GetLength(); in CreateMultiArray()
107 for (int32_t i = 1; i < dimensions->GetLength(); ++i) { in CreateMultiArray()
134 art::ThrowArrayIndexOutOfBoundsException(index, GetLength()); in ThrowArrayIndexOutOfBoundsException()
156 std::min(h_this->GetLength(), new_length) << component_shift); in CopyOf()
Dobject_array-inl.h82 DCHECK(CheckIsValidIndex<kVerifyFlags>(i)) << i << " vs " << GetLength(); in SetWithoutChecks()
90 DCHECK(CheckIsValidIndex<kVerifyFlags>(i)) << i << " vs " << GetLength(); in SetWithoutChecksAndWriteBarrier()
99 DCHECK(CheckIsValidIndex(i)) << i << " vs " << GetLength(); in GetWithoutChecks()
328 const size_t length = static_cast<size_t>(GetLength()); in VisitReferences()
340 return ConstObjPtrArrayIter<T>(this, GetLength()); in cend()
348 return ConstHandleArrayIter<T>(h_this, h_this->GetLength()); in cend()
357 return ObjPtrArrayIter<T>(this, GetLength()); in end()
365 return HandleArrayIter<T>(h_this, h_this->GetLength()); in end()
374 DCHECK_LE(idx_, array_->GetLength()); in CheckIdx()
Dmethod_type-inl.h32 return GetPTypes()->GetLength(); in GetNumberOfPTypes()
Dobject_test.cc69 ASSERT_EQ(expected_utf16_length, string->GetLength()); in AssertString()
123 EXPECT_EQ(2, oa->GetLength()); in TEST_F()
163 EXPECT_EQ(1, a->GetLength()); in TEST_F()
168 EXPECT_EQ(1, a->GetLength()); in TEST_F()
173 EXPECT_EQ(1, a->GetLength()); in TEST_F()
185 EXPECT_LE(1, a->GetLength()); in TEST_F()
191 EXPECT_LE(2, a->GetLength()); in TEST_F()
197 EXPECT_LE(2, a->GetLength()); in TEST_F()
203 EXPECT_LE(2, a->GetLength()); in TEST_F()
213 EXPECT_EQ(2, a->GetLength()); in TestPrimitiveArray()
[all …]
Dclass_ext-inl.h180 int32_t len = arr->GetLength(); in VisitMethods()
195 int32_t len = marr->GetLength(); in VisitJMethodIDs()
209 int32_t len = sarr->GetLength(); in VisitJFieldIDs()
220 int32_t len = iarr->GetLength(); in VisitJFieldIDs()
Diftable.h50 return GetLength() / kMax; in Count()
/art/runtime/gc/
Dreference_queue_test.cc38 ASSERT_EQ(queue.GetLength(), 0U); in TEST_F()
49 ASSERT_EQ(queue.GetLength(), 1U); in TEST_F()
52 ASSERT_EQ(queue.GetLength(), 2U); in TEST_F()
58 ASSERT_EQ(queue.GetLength(), 1U); in TEST_F()
60 ASSERT_EQ(queue.GetLength(), 0U); in TEST_F()
/art/runtime/
Dstring_builder_append.cc52 DCHECK_GE(new_string->GetLength(), data - new_string->GetValueCompressed()); in RemainingSpace()
53 return new_string->GetLength() - (data - new_string->GetValueCompressed()); in RemainingSpace()
59 DCHECK_GE(new_string->GetLength(), data - new_string->GetValue()); in RemainingSpace()
60 return new_string->GetLength() - (data - new_string->GetValue()); in RemainingSpace()
166 size_t length = dchecked_integral_cast<size_t>(str->GetLength()); in AppendString()
219 length += str->GetLength(); in CalculateLengthWithFlag()
/art/compiler/optimizing/
Dintrinsic_objects.cc51 uint32_t length = static_cast<uint32_t>(boot_image_live_objects->GetLength()); in HasIntrinsicObjects()
76 static_cast<uint32_t>(GetIntegerValueOfCache(boot_image_live_objects)->GetLength())); in GetIntegerValueOfObject()
Dintrinsics.cc123 if (boot_image_cache->GetLength() != high - low + 1) { in CheckIntegerCache()
130 for (int32_t i = 0, len = boot_image_cache->GetLength(); i != len; ++i) { in CheckIntegerCache()
188 CHECK_EQ(current_cache->GetLength(), high - low + 1); in ComputeIntegerValueOfLocations()
191 for (int32_t i = 0, len = current_cache->GetLength(); i != len; ++i) { in ComputeIntegerValueOfLocations()
236 static_cast<uint32_t>(cache->GetLength())) { in ComputeIntegerValueOfLocations()
342 IntrinsicObjects::GetIntegerValueOfCache(boot_image_live_objects)->GetLength()); in ComputeIntegerValueOfInfo()
/art/runtime/native/
Djava_lang_reflect_Executable.cc100 annotations->GetLength() == static_cast<int>(method->GetNumberOfParameters())) { in Executable_getParameterAnnotationsNative()
126 const int32_t offset = resized_annotations->GetLength() - annotations->GetLength(); in Executable_getParameterAnnotationsNative()
141 for (int i = 0; i < annotations->GetLength(); ++i) { in Executable_getParameterAnnotationsNative()
149 for (int i = 0; i < resized_annotations->GetLength(); ++i) { in Executable_getParameterAnnotationsNative()
185 int32_t names_count = names.Get()->GetLength(); in Executable_getParameters0()
186 int32_t access_flags_count = access_flags.Get()->GetLength(); in Executable_getParameters0()
Djava_lang_StringFactory.cc42 int32_t data_size = byte_array->GetLength(); in StringFactory_newStringFromBytes()
85 string->GetLength(), in StringFactory_newStringFromString()
Djava_lang_System.cc82 UNLIKELY(srcPos > srcArray->GetLength() - count) || in System_arraycopy()
83 UNLIKELY(dstPos > dstArray->GetLength() - count)) { in System_arraycopy()
86 srcArray->GetLength(), srcPos, dstArray->GetLength(), dstPos, in System_arraycopy()
/art/openjdkjvmti/
Dti_class_loader.cc121 CHECK_GE(cookie->GetLength(), 1); in AllocateNewDexFileCookie()
123 hs.NewHandle(art::mirror::LongArray::Alloc(self, cookie->GetLength() + 1))); in AllocateNewDexFileCookie()
133 new_cookie->Memcpy(2, cookie.Get(), 1, cookie->GetLength() - 1); in AllocateNewDexFileCookie()
/art/compiler/linker/
Doutput_stream_test.cc74 std::vector<uint8_t> actual(in->GetLength()); in TEST_F()
89 std::vector<uint8_t> actual(in->GetLength()); in TEST_F()

1234