/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Size.java | 28 public class Size { class 35 public static Size ZERO = new Size(0, 0); 44 public Size(long javaSize, long registeredNativeSize) { in Size() method in Size 91 public Size plus(Size other) { in plus() 97 return new Size(mJavaSize + other.mJavaSize, in plus() 109 public Size plusRegisteredNativeSize(long size) { in plusRegisteredNativeSize() 110 return new Size(mJavaSize, mRegisteredNativeSize + size); in plusRegisteredNativeSize() 114 if (other instanceof Size) { in equals() 115 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 | 55 private Size[] mSizesByHeap; 92 public Size numBytes; 104 this.numBytes = Size.ZERO; in ObjectsInfo() 209 mSizesByHeap = new Size[numHeaps]; in prepareForUse() 211 mSizesByHeap[i] = Size.ZERO; in prepareForUse() 218 Size size = inst.getSize(); in prepareForUse() 249 public Size getSize(AhatHeap heap) { in getSize() 318 public Size getTotalSize() { in getTotalSize() 319 Size total = Size.ZERO; in getTotalSize() 320 for (Size size : mSizesByHeap) { in getTotalSize()
|
D | AhatInstance.java | 61 private Size[] mRetainedSizes; 103 public Size getSize() { in getSize() 104 return new Size(mClassObj.getInstanceSize() + getExtraJavaSize(), mRegisteredNativeSize); in getSize() 126 public Size getRetainedSize(AhatHeap heap) { in getRetainedSize() 131 return Size.ZERO; in getRetainedSize() 141 public Size getTotalRetainedSize() { in getTotalRetainedSize() 142 Size size = Size.ZERO; in getTotalRetainedSize() 686 inst.mRetainedSizes = new Size[numHeaps]; in computeRetainedSize() 688 inst.mRetainedSizes[i] = Size.ZERO; in computeRetainedSize()
|
D | Sort.java | 38 public static final Comparator<Size> SIZE_BY_SIZE = new Comparator<Size>() { 40 public int compare(Size a, Size b) {
|
/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 …]
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | OverviewHandler.java | 21 import com.android.ahat.heapdump.Size; 60 Size totalSize = Size.ZERO; in printHeapSizes() 61 Size totalBase = Size.ZERO; in printHeapSizes() 63 Size size = heap.getSize(); in printHeapSizes() 64 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/runtime/ |
D | mem_map_test.cc | 88 size_t size0 = m0->Size(); in RemapAtEndTest() 89 EXPECT_EQ(m0->Size(), 2 * page_size); in RemapAtEndTest() 100 EXPECT_EQ(m0->Size(), page_size); in RemapAtEndTest() 104 size_t size1 = m1->Size(); in RemapAtEndTest() 200 ASSERT_EQ(dest->Size(), static_cast<size_t>(kPageSize)); in TEST_F() 202 ASSERT_EQ(memcmp(dest->Begin(), data.data(), dest->Size()), 0); in TEST_F() 240 ASSERT_EQ(dest->Size(), static_cast<size_t>(kPageSize)); in TEST_F() 245 ASSERT_EQ(dest->Size(), static_cast<size_t>(3 * kPageSize)); in TEST_F() 250 ASSERT_EQ(memcmp(dest->Begin(), data.data(), dest->Size()), 0); in TEST_F() 276 ASSERT_EQ(dest->Size(), static_cast<size_t>(3 * kPageSize)); in TEST_F() [all …]
|
D | image.cc | 144 return os << "size=" << section.Size() << " range=" << section.Offset() << "-" << section.End(); in operator <<() 153 for (size_t pos = kStartPos; pos < objects.Size(); ) { in VisitObjects() 162 for (size_t pos = 0; pos < fields.Size(); ) { in VisitPackedArtFields() 175 const size_t method_size = ArtMethod::Size(pointer_size); in VisitPackedArtMethods() 177 for (size_t pos = 0; pos < methods.Size(); ) { in VisitPackedArtMethods() 185 for (size_t pos = 0; pos < runtime_methods.Size(); ) { in VisitPackedArtMethods()
|
D | intern_table_test.cc | 54 TEST_F(InternTableTest, Size) { in TEST_F() argument 57 EXPECT_EQ(0U, t.Size()); in TEST_F() 63 EXPECT_EQ(1U, t.Size()); in TEST_F() 65 EXPECT_EQ(2U, t.Size()); in TEST_F() 127 EXPECT_EQ(4U, t.Size()); in TEST_F() 138 EXPECT_EQ(2U, t.Size()); in TEST_F() 144 EXPECT_EQ(3U, t.Size()); in TEST_F()
|
D | reference_table_test.cc | 87 EXPECT_EQ(0U, rt.Size()); in TEST_F() 92 EXPECT_EQ(0U, rt.Size()); in TEST_F() 96 EXPECT_EQ(0U, rt.Size()); in TEST_F() 101 EXPECT_EQ(1U, rt.Size()); in TEST_F() 112 EXPECT_EQ(i + 2, rt.Size()); in TEST_F() 131 EXPECT_EQ(10U, rt.Size()); in TEST_F() 140 EXPECT_EQ(9 - i, rt.Size()); in TEST_F()
|
/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/dexlayout/ |
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 | compact_dex_writer.h | 68 DCHECK_LE(a.offset_ + a.length_, section_->Size()); in operator() 69 DCHECK_LE(b.offset_ + b.length_, section_->Size()); in operator() 75 DCHECK_LE(range.offset_ + range.length_, section_->Size()); in operator()
|
/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 | 108 CHECK_LE(position, Size() - static_cast<int>(sizeof(T))); in Load() 113 CHECK_LE(position, Size() - static_cast<int>(sizeof(T))); in Store() 126 DCHECK_LE(oldposition + size, Size()); in Move() 127 DCHECK_LE(newposition + size, Size()); in Move() 134 fixup->set_position(Size()); in EmitFixup() 160 size_t Size() const { in Size() function 185 buffer->ExtendCapacity(buffer->Size() + kMinimumGap); in EnsureCapacity() 214 int ComputeGap() { return buffer_->Capacity() - buffer_->Size(); } in ComputeGap() 226 buffer->ExtendCapacity(buffer->Size() + kMinimumGap); in EnsureCapacity() 364 virtual size_t CodeSize() const { return buffer_.Size(); } in CodeSize()
|
/art/runtime/gc/space/ |
D | space_test.h | 161 EXPECT_LE(space->Size(), growth_limit); in SizeFootPrintGrowthLimitAndTrimBody() 165 EXPECT_GE(space->Size(), footprint); in SizeFootPrintGrowthLimitAndTrimBody() 202 EXPECT_GE(space->Size(), footprint); // invariant in SizeFootPrintGrowthLimitAndTrimBody() 229 EXPECT_LE(space->Size(), growth_limit); in SizeFootPrintGrowthLimitAndTrimBody() 233 EXPECT_GE(space->Size(), amount_allocated); in SizeFootPrintGrowthLimitAndTrimBody() 249 EXPECT_GE(space->Size(), amount_allocated); in SizeFootPrintGrowthLimitAndTrimBody() 250 EXPECT_LE(space->Size(), growth_limit); in SizeFootPrintGrowthLimitAndTrimBody() 272 EXPECT_GE(space->Size(), footprint); // invariant in SizeFootPrintGrowthLimitAndTrimBody() 304 EXPECT_GE(space->Size(), footprint); in SizeFootPrintGrowthLimitAndTrimBody() 305 EXPECT_LE(space->Size(), growth_limit); in SizeFootPrintGrowthLimitAndTrimBody() [all …]
|
/art/openjdkjvmti/ |
D | ti_class_definition.cc | 60 CHECK_LE(fixed_dex_file->Size(), temp_mmap_->Size()); in InitializeMemory() 61 CHECK_EQ(temp_mmap_->Size(), dex_data_mmap_->Size()); in InitializeMemory() 63 memcpy(temp_mmap_->Begin(), fixed_dex_file->Begin(), fixed_dex_file->Size()); in InitializeMemory() 137 dex_data->resize(fixed_dex_file->Size()); in DequickenDexFile() 138 memcpy(dex_data->data(), fixed_dex_file->Begin(), fixed_dex_file->Size()); in DequickenDexFile() 267 dex_data_mmap_->Size()); in InitWithDex() 274 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in InitWithDex() 298 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in InitWithDex() 329 current_dex_file_ = art::ArrayRef<const unsigned char>(cur_dex.Begin(), cur_dex.Size()); in Init()
|
D | fixed_up_dex_file.cc | 95 dex.Size(), in DCheckVerifyDexFile() 143 CHECK_EQ(dex_container->GetDataSection()->Size(), 0u); in Create() 146 data.resize(original.Size()); in Create() 147 memcpy(data.data(), original.Begin(), original.Size()); in Create()
|
/art/compiler/dex/ |
D | dex_to_dex_decompiler_test.cc | 74 updated_dex_file->Size()); in RunTest() 80 cmp = memcmp(original_dex_file->Begin(), updated_dex_file->Begin(), updated_dex_file->Size()); in RunTest() 112 cmp = memcmp(original_dex_file->Begin(), updated_dex_file->Begin(), updated_dex_file->Size()); in RunTest()
|
/art/cmdline/detail/ |
D | cmdline_parse_argument_detail.h | 217 return std::min(min, cur.Size()); in CompleteArgument() 222 return std::max(max, cur.Size()); in CompleteArgument() 316 assert(arguments.Size() > 0); in ParseArgument() 323 if (best_match_size > arguments.Size()) { in ParseArgument() 330 *consumed_tokens = best_match_arg_def->Size(); in ParseArgument() 370 sub_idx < def_split_wildcards.Size() && sub_idx < arg_matches->Size(); ++sub_idx) { in ParseArgument()
|