Searched defs:new_length (Results 1 - 9 of 9) sorted by relevance
/art/runtime/base/unix_file/ |
H A D | null_file.cc | 43 int NullFile::SetLength(int64_t new_length) { argument 44 if (new_length < 0) {
|
H A D | string_file.cc | 54 int StringFile::SetLength(int64_t new_length) { argument 55 if (new_length < 0) { 58 data_.resize(new_length);
|
H A D | mapped_file.cc | 129 int MappedFile::SetLength(int64_t new_length) { argument 131 return FdFile::SetLength(new_length);
|
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 | 147 int FdFile::SetLength(int64_t new_length) { argument 149 int rc = TEMP_FAILURE_RETRY(ftruncate64(fd_, new_length)); 151 int rc = TEMP_FAILURE_RETRY(ftruncate(fd_, new_length));
|
/art/compiler/utils/ |
H A D | growable_array.h | 95 void Resize(size_t new_length) { argument 96 if (new_length <= num_allocated_) return; 100 if (new_length > target_length) { 101 target_length = new_length;
|
/art/runtime/mirror/ |
H A D | object_array-inl.h | 245 inline ObjectArray<T>* ObjectArray<T>::CopyOf(Thread* self, int32_t new_length) { argument 246 DCHECK_GE(new_length, 0); 253 ObjectArray<T>* new_array = Alloc(self, GetClass(), new_length, allocator_type); 255 new_array->AssignableMemcpy(0, h_this.Get(), 0, std::min(h_this->GetLength(), new_length));
|
H A D | class.cc | 839 size_t new_length, size_t copy_bytes, 841 : self_(self), orig_(orig), new_length_(new_length), 864 Class* Class::CopyOf(Thread* self, int32_t new_length, argument 866 DCHECK_GE(new_length, static_cast<int32_t>(sizeof(Class))); 873 CopyClassVisitor visitor(self, &h_this, new_length, sizeof(Class), imt_handle_scope); 876 ? heap->AllocObject<true>(self, java_lang_Class_.Read(), new_length, visitor) 877 : heap->AllocNonMovableObject<true>(self, java_lang_Class_.Read(), new_length, visitor); 838 CopyClassVisitor(Thread* self, Handle<mirror::Class>* orig, size_t new_length, size_t copy_bytes, StackHandleScope<mirror::Class::kImtSize>* imt_handle_scope) argument
|
/art/runtime/arch/ |
H A D | stub_test.cc | 1251 int32_t new_length = 1 + (rest > 0 ? r.next() % rest : 0); local 1253 s[i]->SetField32<false>(mirror::String::CountOffset(), new_length); local
|
Completed in 105 milliseconds