/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Size.java | 30 public class Size { class 37 public static Size ZERO = new Size(0, 0); 46 public Size(long javaSize, long registeredNativeSize) { in Size() method in Size 93 public Size plus(Size other) { in plus() 99 return new Size(mJavaSize + other.mJavaSize, in plus() 111 public Size plusRegisteredNativeSize(long size) { in plusRegisteredNativeSize() 112 return new Size(mJavaSize, mRegisteredNativeSize + size); in plusRegisteredNativeSize() 121 if (other instanceof Size) { in equals() 122 Size s = (Size)other; in equals()
|
D | AhatPlaceHolderInstance.java | 35 @Override public Size getSize() { in getSize() 36 return Size.ZERO; in getSize() 43 @Override public Size getRetainedSize(AhatHeap heap) { in getRetainedSize() 44 return Size.ZERO; in getRetainedSize() 47 @Override public Size getTotalRetainedSize() { in getTotalRetainedSize() 48 return Size.ZERO; in getTotalRetainedSize()
|
D | AhatPlaceHolderClassObj.java | 32 @Override public Size getSize() { in getSize() 33 return Size.ZERO; in getSize() 36 @Override public Size getRetainedSize(AhatHeap heap) { in getRetainedSize() 37 return Size.ZERO; in getRetainedSize() 40 @Override public Size getTotalRetainedSize() { in getTotalRetainedSize() 41 return Size.ZERO; in getTotalRetainedSize()
|
D | AhatHeap.java | 28 private Size mSize = Size.ZERO; 57 void addToSize(Size size) { in addToSize() 84 public Size getSize() { in getSize()
|
D | Site.java | 57 private Size[] mSizesByHeap; 94 public Size numBytes; 106 this.numBytes = Size.ZERO; in ObjectsInfo() 212 mSizesByHeap = new Size[numHeaps]; in prepareForUse() 214 mSizesByHeap[i] = Size.ZERO; in prepareForUse() 221 Size size = inst.getSize(); in prepareForUse() 252 public Size getSize(AhatHeap heap) { in getSize() 336 public Size getTotalSize() { in getTotalSize() 337 Size total = Size.ZERO; in getTotalSize() 338 for (Size size : mSizesByHeap) { in getTotalSize()
|
D | AhatInstance.java | 61 private Size[] mRetainedSizes; 102 public Size getSize() { in getSize() 103 return new Size(mClassObj.getInstanceSize() + getExtraJavaSize(), mRegisteredNativeSize); in getSize() 125 public Size getRetainedSize(AhatHeap heap) { in getRetainedSize() 130 return Size.ZERO; in getRetainedSize() 140 public Size getTotalRetainedSize() { in getTotalRetainedSize() 141 Size size = Size.ZERO; in getTotalRetainedSize() 778 inst.mRetainedSizes = new Size[numHeaps]; in computeRetainedSize() 780 inst.mRetainedSizes[i] = Size.ZERO; in computeRetainedSize()
|
/art/dexlayout/ |
D | dex_ir.cc | 62 [](const dex_ir::Header* h) { return h->StringIds().Size(); }, in __anon0e6c32920102() 67 [](const dex_ir::Header* h) { return h->TypeIds().Size(); }, in __anon0e6c32920302() 72 [](const dex_ir::Header* h) { return h->ProtoIds().Size(); }, in __anon0e6c32920502() 77 [](const dex_ir::Header* h) { return h->FieldIds().Size(); }, in __anon0e6c32920702() 82 [](const dex_ir::Header* h) { return h->MethodIds().Size(); }, in __anon0e6c32920902() 87 [](const dex_ir::Header* h) { return h->ClassDefs().Size(); }, in __anon0e6c32920b02() 92 [](const dex_ir::Header* h) { return h->CallSiteIds().Size(); }, in __anon0e6c32920d02() 97 [](const dex_ir::Header* h) { return h->MethodHandleItems().Size(); }, in __anon0e6c32920f02() 102 [](const dex_ir::Header* h) { return h->StringDatas().Size(); }, in __anon0e6c32921102() 107 [](const dex_ir::Header* h) { return h->TypeLists().Size(); }, in __anon0e6c32921302() [all …]
|
D | dex_container.h | 41 virtual size_t Size() const = 0; 51 return Begin() + Size(); in End() 64 size_t Size() const override { in Size() function
|
D | dex_writer.cc | 469 DCHECK_EQ(header_->HiddenapiClassDatas().Size(), header_->ClassDefs().Size()); in WriteHiddenapiClassData() 479 std::vector<uint32_t> data_header(header_->ClassDefs().Size() + 1, 0); in WriteHiddenapiClassData() 480 data_header[0] = sizeof(uint32_t) * (header_->ClassDefs().Size() + 1); in WriteHiddenapiClassData() 481 for (uint32_t i = 0; i < header_->ClassDefs().Size(); ++i) { in WriteHiddenapiClassData() 489 for (uint32_t i = 0; i < header_->ClassDefs().Size(); ++i) { in WriteHiddenapiClassData() 732 header_->StringIds().Size(), in GenerateAndWriteMapItems() 735 header_->TypeIds().Size(), in GenerateAndWriteMapItems() 738 header_->ProtoIds().Size(), in GenerateAndWriteMapItems() 741 header_->FieldIds().Size(), in GenerateAndWriteMapItems() 744 header_->MethodIds().Size(), in GenerateAndWriteMapItems() [all …]
|
D | compact_dex_writer.cc | 44 std::vector<uint32_t> debug_info_offsets(header_->MethodIds().Size(), 0u); in WriteDebugInfoOffsetTable() 284 header.string_ids_size_ = header_->StringIds().Size(); in WriteHeader() 286 header.type_ids_size_ = header_->TypeIds().Size(); in WriteHeader() 288 header.proto_ids_size_ = header_->ProtoIds().Size(); in WriteHeader() 290 header.field_ids_size_ = header_->FieldIds().Size(); in WriteHeader() 292 header.method_ids_size_ = header_->MethodIds().Size(); in WriteHeader() 294 header.class_defs_size_ = header_->ClassDefs().Size(); in WriteHeader() 336 std::vector<bool> saw_method_id(header_->MethodIds().Size(), false); in CanGenerateCompactDex() 337 std::vector<dex_ir::CodeItem*> method_id_code_item(header_->MethodIds().Size(), nullptr); in CanGenerateCompactDex() 338 std::vector<dex_ir::DebugInfoItem*> method_id_debug_info(header_->MethodIds().Size(), nullptr); in CanGenerateCompactDex() [all …]
|
/art/test/071-dexfile-get-static-size/ |
D | expected.txt | 1 Size for test1.dex: 1864 2 Size for test2.dex: 1264 3 Size for test-jar.jar: 1864 4 Size for multi-jar.jar: 3128
|
/art/libartbase/base/ |
D | variant_map_test.cc | 70 EXPECT_EQ(size_t(2), fm.Size()); in TEST() 77 EXPECT_EQ(size_t(0), fm.Size()); in TEST() 102 EXPECT_EQ(size_t(0), fmEmpty.Size()); in TEST() 108 EXPECT_EQ(size_t(2), fmFilled.Size()); in TEST() 112 EXPECT_EQ(size_t(0), fmEmptyCopy.Size()); in TEST() 116 EXPECT_EQ(size_t(2), fmFilledCopy.Size()); in TEST() 123 EXPECT_EQ(size_t(2), fmFilledCopy2.Size()); in TEST() 129 EXPECT_EQ(size_t(0), fmFilledCopy.Size()); in TEST() 130 EXPECT_EQ(size_t(2), fmMoved.Size()); in TEST() 139 EXPECT_EQ(size_t(0), fmFilledCopy2.Size()); in TEST() [all …]
|
D | mem_map_test.cc | 78 size_t size0 = m0.Size(); in RemapAtEndTest() 79 EXPECT_EQ(m0.Size(), 2 * page_size); in RemapAtEndTest() 90 EXPECT_EQ(m0.Size(), page_size); in RemapAtEndTest() 94 size_t size1 = m1.Size(); in RemapAtEndTest() 191 ASSERT_EQ(dest.Size(), static_cast<size_t>(kPageSize)); in TEST_F() 193 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F() 227 ASSERT_EQ(dest.Size(), static_cast<size_t>(kPageSize)); in TEST_F() 232 ASSERT_EQ(dest.Size(), static_cast<size_t>(3 * kPageSize)); in TEST_F() 237 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F() 259 ASSERT_EQ(dest.Size(), static_cast<size_t>(3 * kPageSize)); in TEST_F() [all …]
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | OverviewHandler.java | 22 import com.android.ahat.heapdump.Size; 66 Size totalSize = Size.ZERO; in printHeapSizes() 67 Size totalBase = Size.ZERO; in printHeapSizes() 69 Size size = heap.getSize(); in printHeapSizes() 70 Size base = heap.getBaseline().getSize(); in printHeapSizes()
|
D | SizeTable.java | 19 import com.android.ahat.heapdump.Size; 62 static void row(Doc doc, DocString left, Size size, Size base, DocString... values) { in row() 96 static void row(Doc doc, Size size, Size base, DocString... values) { in row()
|
/art/cmdline/ |
D | token_range.h | 156 size_t Size() const { in Size() function 162 return Size() > 0; in IsEmpty() 167 assert(offset < Size()); in GetToken() 179 if (Size() != other.Size()) { 188 assert(index >= 0 && static_cast<size_t>(index) < Size()); 198 if (Size() < other.Size()) { in StartsWith() 202 auto& smaller = Size() < other.Size() ? *this : other; in StartsWith() 203 auto& greater = Size() < other.Size() ? other : *this; in StartsWith() 244 assert(offset < Size()); 246 if (length != std::string::npos && offset + length > Size()) { [all …]
|
/art/compiler/utils/ |
D | assembler.cc | 43 CHECK_EQ(Size(), 0U); in AssemblerBuffer() 65 MemoryRegion from(reinterpret_cast<void*>(contents()), Size()); in FinalizeInstructions() 76 size_t old_size = Size(); in ExtendCapacity() 92 CHECK_EQ(Size(), old_size); in ExtendCapacity()
|
D | assembler.h | 107 CHECK_LE(position, Size() - static_cast<int>(sizeof(T))); in Load() 112 CHECK_LE(position, Size() - static_cast<int>(sizeof(T))); in Store() 125 DCHECK_LE(oldposition + size, Size()); in Move() 126 DCHECK_LE(newposition + size, Size()); in Move() 133 fixup->set_position(Size()); in EmitFixup() 159 size_t Size() const { in Size() function 184 buffer->ExtendCapacity(buffer->Size() + kMinimumGap); in EnsureCapacity() 213 int ComputeGap() { return buffer_->Capacity() - buffer_->Size(); } in ComputeGap() 225 buffer->ExtendCapacity(buffer->Size() + kMinimumGap); in EnsureCapacity() 363 virtual size_t CodeSize() const { return buffer_.Size(); } in CodeSize()
|
/art/runtime/ |
D | image-inl.h | 55 for (size_t pos = 0u; pos < fields.Size(); ) { in VisitPackedArtFields() 69 const size_t method_size = ArtMethod::Size(pointer_size); in VisitPackedArtMethods() 71 for (size_t pos = 0u; pos < methods.Size(); ) { in VisitPackedArtMethods() 79 for (size_t pos = 0u; pos < runtime_methods.Size(); ) { in VisitPackedArtMethods() 91 for (size_t pos = 0; pos < section.Size();) { in VisitPackedImTables() 109 for (size_t pos = 0; pos < section.Size(); ) { in VisitPackedImtConflictTables()
|
/art/libdexfile/dex/ |
D | signature.cc | 41 for (uint32_t i = 0; i < params->Size(); ++i) { in ToString() 52 return (params != nullptr) ? params->Size() : 0; in GetNumberOfParameters() 71 for (uint32_t i = 0; i < params->Size(); ++i) { in operator ==()
|
/art/openjdkjvmti/ |
D | fixed_up_dex_file.cc | 81 dex.Size(), in DCheckVerifyDexFile() 128 CHECK_EQ(dex_container->GetDataSection()->Size(), 0u); in Create() 131 data.resize(original.Size()); in Create() 132 memcpy(data.data(), original.Begin(), original.Size()); in Create()
|
D | ti_class_definition.cc | 62 CHECK_LE(fixed_dex_file->Size(), temp_mmap_.Size()); in InitializeMemory() 63 CHECK_EQ(temp_mmap_.Size(), dex_data_mmap_.Size()); in InitializeMemory() 65 memcpy(temp_mmap_.Begin(), fixed_dex_file->Begin(), fixed_dex_file->Size()); in InitializeMemory() 141 dex_data->resize(fixed_dex_file->Size()); in DequickenDexFile() 142 memcpy(dex_data->data(), fixed_dex_file->Begin(), fixed_dex_file->Size()); in DequickenDexFile() 264 dex_data_mmap_.Size()); in InitWithDex() 271 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in InitWithDex() 295 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in InitWithDex() 326 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in Init()
|
/art/runtime/gc/space/ |
D | space_test.h | 162 EXPECT_LE(space->Size(), growth_limit); in SizeFootPrintGrowthLimitAndTrimBody() 166 EXPECT_GE(space->Size(), footprint); in SizeFootPrintGrowthLimitAndTrimBody() 203 EXPECT_GE(space->Size(), footprint); // invariant in SizeFootPrintGrowthLimitAndTrimBody() 230 EXPECT_LE(space->Size(), growth_limit); in SizeFootPrintGrowthLimitAndTrimBody() 234 EXPECT_GE(space->Size(), amount_allocated); in SizeFootPrintGrowthLimitAndTrimBody() 250 EXPECT_GE(space->Size(), amount_allocated); in SizeFootPrintGrowthLimitAndTrimBody() 251 EXPECT_LE(space->Size(), growth_limit); in SizeFootPrintGrowthLimitAndTrimBody() 273 EXPECT_GE(space->Size(), footprint); // invariant in SizeFootPrintGrowthLimitAndTrimBody() 305 EXPECT_GE(space->Size(), footprint); in SizeFootPrintGrowthLimitAndTrimBody() 306 EXPECT_LE(space->Size(), growth_limit); in SizeFootPrintGrowthLimitAndTrimBody() [all …]
|
/art/dex2oat/dex/ |
D | dex_to_dex_decompiler_test.cc | 75 updated_dex_file->Size()); in RunTest() 81 cmp = memcmp(original_dex_file->Begin(), updated_dex_file->Begin(), updated_dex_file->Size()); in RunTest() 102 cmp = memcmp(original_dex_file->Begin(), updated_dex_file->Begin(), updated_dex_file->Size()); in RunTest()
|
/art/runtime/jit/ |
D | jit_scoped_code_cache_write.h | 45 CheckedCall(mprotect, "Cache +W", updatable_pages->Begin(), updatable_pages->Size(), prot); in ScopedCodeCacheWrite() 54 CheckedCall(mprotect, "Cache -W", updatable_pages->Begin(), updatable_pages->Size(), prot); in ~ScopedCodeCacheWrite()
|