Searched refs:new_length (Results 1 – 10 of 10) sorted by relevance
/art/libartbase/base/unix_file/ |
D | random_access_file_test.h | 123 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()
|
D | random_access_file.h | 51 virtual int SetLength(int64_t new_length) = 0;
|
D | fd_file.h | 70 int SetLength(int64_t new_length) override WARN_UNUSED;
|
D | fd_file.cc | 371 int FdFile::SetLength(int64_t new_length) { in SetLength() argument 374 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); in SetLength() 376 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length)); in SetLength()
|
/art/runtime/mirror/ |
D | object_array-alloc-inl.h | 64 inline ObjPtr<ObjectArray<T>> ObjectArray<T>::CopyOf(Thread* self, int32_t new_length) { in CopyOf() argument 65 DCHECK_GE(new_length, 0); in CopyOf() 72 ObjPtr<ObjectArray<T>> new_array = Alloc(self, GetClass(), new_length, allocator_type); in CopyOf() 74 new_array->AssignableMemcpy(0, h_this.Get(), 0, std::min(h_this->GetLength(), new_length)); in CopyOf()
|
D | array.cc | 141 ObjPtr<Array> Array::CopyOf(Thread* self, int32_t new_length) { in CopyOf() argument 144 DCHECK_GE(new_length, 0); in CopyOf() 154 Alloc<true>(self, klass, new_length, component_shift, allocator_type); // Invalidates klass. in CopyOf() 158 std::min(h_this->GetLength(), new_length) << component_shift); in CopyOf()
|
D | object_array.h | 102 ObjPtr<ObjectArray<T>> CopyOf(Thread* self, int32_t new_length)
|
D | class.cc | 1176 size_t new_length, in CopyClassVisitor() argument 1180 : self_(self), orig_(orig), new_length_(new_length), in CopyClassVisitor() 1209 Thread* self, int32_t new_length, ImTable* imt, PointerSize pointer_size) { in CopyOf() argument 1210 DCHECK_GE(new_length, static_cast<int32_t>(sizeof(Class))); in CopyOf() 1218 CopyClassVisitor visitor(self, &h_this, new_length, sizeof(Class), imt, pointer_size); in CopyOf() 1221 heap->AllocObject<true>(self, java_lang_Class, new_length, visitor) : in CopyOf() 1222 heap->AllocNonMovableObject<true>(self, java_lang_Class, new_length, visitor); in CopyOf()
|
D | array.h | 125 ObjPtr<Array> CopyOf(Thread* self, int32_t new_length) REQUIRES_SHARED(Locks::mutator_lock_)
|
D | class.h | 1140 ObjPtr<Class> CopyOf(Thread* self, int32_t new_length, ImTable* imt, PointerSize pointer_size)
|