/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | Size.java | 31 public class Size implements Comparable<Size> { class 38 public static Size ZERO = new Size(0, 0); 47 public Size(long javaSize, long registeredNativeSize) { in Size() method in Size 94 public Size plus(Size other) { in plus() 100 return new Size(mJavaSize + other.mJavaSize, in plus() 112 public Size plusRegisteredNativeSize(long size) { in plusRegisteredNativeSize() 113 return new Size(mJavaSize, mRegisteredNativeSize + size); in plusRegisteredNativeSize() 122 if (other instanceof Size) { in equals() 123 Size s = (Size)other; in equals() 129 @Override public int compareTo(Size other) { in compareTo()
|
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() 784 inst.mRetainedSizes = new Size[numHeaps]; in computeRetainedSize() 786 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-stdout.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/tools/ahat/src/main/com/android/ahat/ |
D | OverviewHandler.java | 24 import com.android.ahat.heapdump.Size; 70 Size totalSize = Size.ZERO; in printHeapSizes() 71 Size totalBase = Size.ZERO; in printHeapSizes() 73 Size size = heap.getSize(); in printHeapSizes() 74 Size base = heap.getBaseline().getSize(); in printHeapSizes() 91 Size totalSize = Size.ZERO; in printDuplicateBitmaps() 92 Size totalBase = Size.ZERO; in printDuplicateBitmaps()
|
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/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() 130 EXPECT_EQ(size_t(0), fmFilledCopy.Size()); in TEST() 131 EXPECT_EQ(size_t(2), fmMoved.Size()); in TEST() 141 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() 198 ASSERT_EQ(dest.Size(), static_cast<size_t>(page_size)); in TEST_F() 200 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F() 235 ASSERT_EQ(dest.Size(), static_cast<size_t>(page_size)); in TEST_F() 240 ASSERT_EQ(dest.Size(), static_cast<size_t>(3 * page_size)); in TEST_F() 245 ASSERT_EQ(memcmp(dest.Begin(), data.data(), dest.Size()), 0); in TEST_F() 268 ASSERT_EQ(dest.Size(), static_cast<size_t>(3 * page_size)); in TEST_F() [all …]
|
/art/runtime/ |
D | handle_scope-inl.h | 70 DCHECK_LT(i, Size()); in GetReference() 79 DCHECK_LT(i, Size()); in GetHandle() 85 DCHECK_LT(i, Size()); in GetMutableHandle() 93 DCHECK_LT(i, Size()); in SetReference() 106 DCHECK_LT(Size(), Capacity()); in NewHandle() 131 for (size_t i = 0, size = Size(); i < size; ++i) { in VisitRoots() 140 for (size_t i = 0, size = Size(); i < size; ++i) { in VisitHandles() 148 inline uint32_t BaseHandleScope::Size() const { in Size() function 150 ? AsHandleScope()->Size() in Size() 151 : AsVariableSized()->Size(); in Size() [all …]
|
D | intern_table_test.cc | 59 TEST_F(InternTableTest, Size) { in TEST_F() argument 62 EXPECT_EQ(0U, t.Size()); in TEST_F() 68 EXPECT_EQ(1U, t.Size()); in TEST_F() 70 EXPECT_EQ(2U, t.Size()); in TEST_F() 135 EXPECT_EQ(4U, t.Size()); in TEST_F() 146 EXPECT_EQ(2U, t.Size()); in TEST_F() 152 EXPECT_EQ(3U, t.Size()); in TEST_F()
|
D | reference_table_test.cc | 96 EXPECT_EQ(0U, rt.Size()); in TEST_F() 101 EXPECT_EQ(0U, rt.Size()); in TEST_F() 105 EXPECT_EQ(0U, rt.Size()); in TEST_F() 110 EXPECT_EQ(1U, rt.Size()); in TEST_F() 121 EXPECT_EQ(i + 2, rt.Size()); in TEST_F() 140 EXPECT_EQ(10U, rt.Size()); in TEST_F() 149 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/compiler/utils/ |
D | assembler.cc | 43 CHECK_EQ(Size(), 0U); in AssemblerBuffer() 67 MemoryRegion from(reinterpret_cast<void*>(contents()), Size()); in ProcessFixups() 73 MemoryRegion from(reinterpret_cast<void*>(contents()), Size()); in CopyInstructions() 79 size_t old_size = Size(); in ExtendCapacity() 95 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 183 buffer->ExtendCapacity(buffer->Size() + kMinimumGap); in EnsureCapacity() 212 int ComputeGap() { return buffer_->Capacity() - buffer_->Size(); } in ComputeGap() 224 buffer->ExtendCapacity(buffer->Size() + kMinimumGap); in EnsureCapacity() 367 virtual size_t CodeSize() const { return buffer_.Size(); } in CodeSize()
|
/art/runtime/oat/ |
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() 125 for (size_t pos = 0; pos < section.Size(); pos += static_cast<size_t>(pointer_size)) { in VisitJniStubMethods()
|
/art/runtime/mirror/ |
D | method_type-inl.h | 35 return hs_->Size() != 0u; in IsValid() 40 DCHECK_EQ(hs_->Size(), 0u); in SetRType() 47 DCHECK_NE(hs_->Size(), 0u); in AddPType() 54 DCHECK_NE(hs_->Size(), 0u); in GetNumberOfPTypes() 55 return dchecked_integral_cast<int32_t>(hs_->Size() - 1u); in GetNumberOfPTypes() 68 DCHECK_NE(hs_->Size(), 0u); in GetRTypeHandle()
|
/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/libdexfile/dex/ |
D | signature.cc | 39 for (uint32_t i = 0; i < params->Size(); ++i) { in ToString() 50 return (params != nullptr) ? params->Size() : 0; in GetNumberOfParameters() 69 for (uint32_t i = 0; i < params->Size(); ++i) { in operator ==()
|
D | dex_file_loader.cc | 180 root_container_->Begin(), root_container_->Size(), location_.c_str(), error_msg)); in GetMultiDexChecksum() 273 DCHECK_LE(header_offset, root_container_->Size()); in OpenOne() 276 root_container_->Size() - header_offset, in OpenOne() 291 if (root_container_->Size() < header_offset || in InitAndReadMagic() 292 root_container_->Size() - header_offset < sizeof(uint32_t)) { in InitAndReadMagic() 369 root_container_->Begin(), root_container_->Size(), location_.c_str(), error_msg)); in Open() 412 root_container_->Size() - header_offset, in Open() 425 CHECK_LE(file_size, root_container_->Size() - header_offset); in Open() 563 container->Size() - header_offset, in OpenFromZipEntry() 581 CHECK_LE(file_size, container->Size() - header_offset); in OpenFromZipEntry()
|
/art/runtime/jit/ |
D | jit_scoped_code_cache_write.h | 46 CheckedCall(mprotect, "Cache +W", updatable_pages->Begin(), updatable_pages->Size(), prot); in ScopedCodeCacheWrite() 57 CheckedCall(mprotect, "Cache -W", updatable_pages->Begin(), updatable_pages->Size(), prot); in ~ScopedCodeCacheWrite()
|
/art/cmdline/detail/ |
D | cmdline_parse_argument_detail.h | 266 return std::min(min, cur.Size()); in CompleteArgument() 271 return std::max(max, cur.Size()); in CompleteArgument() 369 assert(arguments.Size() > 0); in ParseArgument() 376 if (best_match_size > arguments.Size()) { in ParseArgument() 383 *consumed_tokens = best_match_arg_def->Size(); in ParseArgument() 423 sub_idx < def_split_wildcards.Size() && sub_idx < arg_matches->Size(); ++sub_idx) { in ParseArgument()
|