/art/tools/ahat/src/heapdump/ |
D | Size.java | 29 public class Size { class 33 public static Size ZERO = new Size(0, 0); 35 public Size(long javaSize, long registeredNativeSize) { in Size() method in Size 62 public Size plus(Size other) { in plus() 68 return new Size(mJavaSize + other.mJavaSize, in plus() 77 public Size plusRegisteredNativeSize(long size) { in plusRegisteredNativeSize() 78 return new Size(mJavaSize, mRegisteredNativeSize + size); in plusRegisteredNativeSize() 82 if (other instanceof Size) { in equals() 83 Size s = (Size)other; in equals()
|
D | AhatPlaceHolderInstance.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 | 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 | Site.java | 47 private Size[] mSizesByHeap; 63 public Size numBytes; 74 this.numBytes = Size.ZERO; in ObjectsInfo() 114 mSizesByHeap = new Size[0]; in Site() 140 Size[] newSizes = new Size[heap.getIndex() + 1]; in add() 145 newSizes[i] = Size.ZERO; in add() 183 public Size getSize(AhatHeap heap) { in getSize() 185 return index >= 0 && index < mSizesByHeap.length ? mSizesByHeap[index] : Size.ZERO; in getSize() 221 public Size getTotalSize() { in getTotalSize() 222 Size total = Size.ZERO; in getTotalSize()
|
D | AhatHeap.java | 21 private Size mSize = Size.ZERO; 50 void addToSize(Size size) { in addToSize() 72 public Size getSize() { in getSize()
|
D | AhatInstance.java | 33 private Size mSize; 34 private Size[] mRetainedSizes; // Retained size indexed by heap index 67 mSize = new Size(inst.getSize(), 0); in initialize() 129 public Size getSize() { in getSize() 137 public Size getRetainedSize(AhatHeap heap) { in getRetainedSize() 142 return Size.ZERO; in getRetainedSize() 148 public Size getTotalRetainedSize() { in getTotalRetainedSize() 149 Size size = Size.ZERO; in getTotalRetainedSize() 485 inst.mRetainedSizes = new Size[numHeaps]; in computeRetainedSize() 487 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/runtime/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 | hash_set_test.cc | 70 ASSERT_EQ(hash_set.Size(), 0U); in TEST_F() 77 ASSERT_EQ(hash_set.Size(), 0U); in TEST_F() 94 ASSERT_EQ(strings.size(), hash_set.Size()); in TEST_F() 231 ASSERT_EQ(hash_set.Size(), std_set.size()); in TEST_F() 233 static_cast<ssize_t>(hash_set.Size())); in TEST_F() 346 while (hash_set.Size() < size) { in TEST_F() 347 hash_set.Insert(std::to_string(hash_set.Size())); in TEST_F()
|
/art/tools/ahat/src/ |
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 | 68 size_t size0 = m0->Size(); in RemapAtEndTest() 69 EXPECT_EQ(m0->Size(), 2 * page_size); in RemapAtEndTest() 80 EXPECT_EQ(m0->Size(), page_size); in RemapAtEndTest() 84 size_t size1 = m1->Size(); in RemapAtEndTest() 214 ASSERT_EQ(map->Size(), kMapSize); in TEST_F() 451 ASSERT_EQ(m0->Size(), 14 * page_size); in TEST_F() 453 ASSERT_EQ(BaseSize(m0.get()), m0->Size()); in TEST_F() 463 ASSERT_EQ(m0->Size(), 3 * page_size); in TEST_F() 472 ASSERT_EQ(m1->Size(), 4 * page_size); in TEST_F() 481 ASSERT_EQ(m2->Size(), 3 * page_size); in TEST_F() [all …]
|
D | image.cc | 149 return os << "size=" << section.Size() << " range=" << section.Offset() << "-" << section.End(); in operator <<() 158 for (size_t pos = kStartPos; pos < objects.Size(); ) { in VisitObjects() 167 for (size_t pos = 0; pos < fields.Size(); ) { in VisitPackedArtFields() 180 const size_t method_size = ArtMethod::Size(pointer_size); in VisitPackedArtMethods() 182 for (size_t pos = 0; pos < methods.Size(); ) { in VisitPackedArtMethods() 190 for (size_t pos = 0; pos < runtime_methods.Size(); ) { in VisitPackedArtMethods()
|
D | reference_table_test.cc | 84 EXPECT_EQ(0U, rt.Size()); in TEST_F() 89 EXPECT_EQ(0U, rt.Size()); in TEST_F() 93 EXPECT_EQ(0U, rt.Size()); in TEST_F() 98 EXPECT_EQ(1U, rt.Size()); in TEST_F() 109 EXPECT_EQ(i + 2, rt.Size()); in TEST_F() 128 EXPECT_EQ(10U, rt.Size()); in TEST_F() 137 EXPECT_EQ(9 - i, rt.Size()); in TEST_F()
|
D | vdex_file.h | 108 size_t Size() const { return mmap_->Size(); } in Size() function 126 return mmap_->Size() >= sizeof(Header) && GetHeader().IsValid(); in IsValid()
|
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 | dex_file_layout.cc | 28 DCHECK_LE(size_, dex_file->Size()); in Madvise() 29 DCHECK_LE(offset_ + size_, dex_file->Size()); in Madvise()
|
/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/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/compiler/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() 123 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()
|
/art/runtime/openjdkjvmti/ |
D | fixed_up_dex_file.cc | 68 data.resize(original.Size()); in Create() 69 memcpy(data.data(), original.Begin(), original.Size()); in Create()
|
/art/test/596-monitor-inflation/ |
D | monitor_inflation.cc | 31 return Runtime::Current()->GetMonitorList()->Size(); in Java_Main_monitorListSize()
|