Searched refs:new_length (Results 1 - 11 of 11) sorted by relevance
/art/runtime/base/unix_file/ |
H A D | random_access_file.h | 47 // Sets the length of the file to 'new_length'. If this is smaller than the 51 virtual int SetLength(int64_t new_length) = 0;
|
H A D | random_access_file_test.h | 123 int64_t new_length = 2; local 124 ASSERT_EQ(0, file->SetLength(new_length)); 125 ASSERT_EQ(new_length, file->GetLength()); 131 new_length = file->GetLength() + 1; 132 ASSERT_EQ(0, file->SetLength(new_length)); 133 ASSERT_EQ(new_length, file->GetLength()); 135 ASSERT_EQ('\0', new_content[new_length - 1]); 166 int64_t new_length = 2*content.size() + 1; local 167 ASSERT_EQ(file->GetLength(), new_length); 169 ASSERT_EQ(std::string("hello\0hello", new_length), new_conten [all...] |
H A D | fd_file.cc | 163 int FdFile::SetLength(int64_t new_length) { argument 166 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); 168 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length));
|
H A D | fd_file.h | 56 int SetLength(int64_t new_length) OVERRIDE WARN_UNUSED;
|
/art/runtime/mirror/ |
H A D | array.cc | 128 Array* Array::CopyOf(Thread* self, int32_t new_length) { argument 130 DCHECK_GE(new_length, 0); 139 Array* new_array = Alloc<true>(self, GetClass(), new_length, component_shift, allocator_type); 142 std::min(h_this->GetLength(), new_length) << component_shift);
|
H A D | object_array-inl.h | 252 inline ObjectArray<T>* ObjectArray<T>::CopyOf(Thread* self, int32_t new_length) { argument 253 DCHECK_GE(new_length, 0); 260 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); 262 new_array->AssignableMemcpy(0, h_this.Get(), 0, std::min(h_this->GetLength(), new_length));
|
H A D | object_array.h | 86 ObjectArray<T>* CopyOf(Thread* self, int32_t new_length)
|
H A D | class.cc | 963 CopyClassVisitor(Thread* self, Handle<mirror::Class>* orig, size_t new_length, argument 966 : self_(self), orig_(orig), new_length_(new_length), 995 Class* Class::CopyOf(Thread* self, int32_t new_length, argument 997 DCHECK_GE(new_length, static_cast<int32_t>(sizeof(Class))); 1004 CopyClassVisitor visitor(self, &h_this, new_length, sizeof(Class), imt, pointer_size); 1006 heap->AllocObject<true>(self, java_lang_Class_.Read(), new_length, visitor) : 1007 heap->AllocNonMovableObject<true>(self, java_lang_Class_.Read(), new_length, visitor);
|
H A D | array.h | 87 Array* CopyOf(Thread* self, int32_t new_length) SHARED_REQUIRES(Locks::mutator_lock_)
|
H A D | class.h | 1193 Class* CopyOf(Thread* self, int32_t new_length, ImTable* imt,
|
/art/compiler/ |
H A D | oat_writer.cc | 2101 int64_t new_length = oat_data_offset_ + dchecked_integral_cast<int64_t>(offset); 2102 if (file->SetLength(new_length) != 0) { 2103 PLOG(ERROR) << "Failed to extend file for type lookup tables. new_length: " << new_length 2107 off_t actual_offset = rodata->Seek(new_length, kSeekSet); 2108 if (actual_offset != static_cast<off_t>(new_length)) { 2110 << " Actual: " << actual_offset << " Expected: " << new_length
|
Completed in 107 milliseconds