Home
last modified time | relevance | path

Searched refs:new_length (Results 1 – 11 of 11) sorted by relevance

/art/runtime/base/unix_file/
Drandom_access_file_test.h123 int64_t new_length = 2; in TestSetLength() local
124 ASSERT_EQ(0, file->SetLength(new_length)); in TestSetLength()
125 ASSERT_EQ(new_length, file->GetLength()); in TestSetLength()
131 new_length = file->GetLength() + 1; in TestSetLength()
132 ASSERT_EQ(0, file->SetLength(new_length)); in TestSetLength()
133 ASSERT_EQ(new_length, file->GetLength()); in TestSetLength()
135 ASSERT_EQ('\0', new_content[new_length - 1]); in TestSetLength()
166 int64_t new_length = 2*content.size() + 1; in TestWrite() local
167 ASSERT_EQ(file->GetLength(), new_length); in TestWrite()
169 ASSERT_EQ(std::string("hello\0hello", new_length), new_content); in TestWrite()
Drandom_access_file.h51 virtual int SetLength(int64_t new_length) = 0;
Dfd_file.cc147 int FdFile::SetLength(int64_t new_length) { in SetLength() argument
149 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); in SetLength()
151 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length)); in SetLength()
Dfd_file.h55 virtual int SetLength(int64_t new_length) WARN_UNUSED;
/art/compiler/utils/
Dgrowable_array.h59 void Resize(size_t new_length) { in Resize() argument
60 if (new_length <= num_allocated_) return; in Resize()
64 if (new_length > target_length) { in Resize()
65 target_length = new_length; in Resize()
/art/runtime/mirror/
Darray.cc128 Array* Array::CopyOf(Thread* self, int32_t new_length) { in CopyOf() argument
130 DCHECK_GE(new_length, 0); in CopyOf()
139 Array* new_array = Alloc<true>(self, GetClass(), new_length, component_shift, allocator_type); in CopyOf()
142 std::min(h_this->GetLength(), new_length) << component_shift); in CopyOf()
Dobject_array-inl.h249 inline ObjectArray<T>* ObjectArray<T>::CopyOf(Thread* self, int32_t new_length) { in CopyOf() argument
250 DCHECK_GE(new_length, 0); in CopyOf()
257 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf()
259 new_array->AssignableMemcpy(0, h_this.Get(), 0, std::min(h_this->GetLength(), new_length)); in CopyOf()
Dclass.cc830 explicit CopyClassVisitor(Thread* self, Handle<mirror::Class>* orig, size_t new_length, in CopyClassVisitor() argument
833 : self_(self), orig_(orig), new_length_(new_length), in CopyClassVisitor()
857 Class* Class::CopyOf(Thread* self, int32_t new_length, in CopyOf() argument
859 DCHECK_GE(new_length, static_cast<int32_t>(sizeof(Class))); in CopyOf()
866 CopyClassVisitor visitor(self, &h_this, new_length, sizeof(Class), imt, pointer_size); in CopyOf()
868 heap->AllocObject<true>(self, java_lang_Class_.Read(), new_length, visitor) : in CopyOf()
869 heap->AllocNonMovableObject<true>(self, java_lang_Class_.Read(), new_length, visitor); in CopyOf()
Dobject_array.h83 ObjectArray<T>* CopyOf(Thread* self, int32_t new_length)
Darray.h87 Array* CopyOf(Thread* self, int32_t new_length) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
Dclass.h1092 Class* CopyOf(Thread* self, int32_t new_length, ArtMethod* const (&imt)[mirror::Class::kImtSize],