Home
last modified time | relevance | path

Searched refs:Size (Results 1 – 25 of 211) sorted by relevance

123456789

/art/tools/ahat/src/main/com/android/ahat/heapdump/
DSize.java28 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()
DAhatPlaceHolderInstance.java35 @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()
DAhatPlaceHolderClassObj.java32 @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()
DAhatHeap.java28 private Size mSize = Size.ZERO;
57 void addToSize(Size size) { in addToSize()
84 public Size getSize() { in getSize()
DSite.java55 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()
DAhatInstance.java61 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()
DSort.java38 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/
Dexpected.txt1 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/
Dvariant_map_test.cc70 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/
DOverviewHandler.java21 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()
DSizeTable.java19 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/
Dmem_map_test.cc88 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 …]
Dimage.cc144 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()
Dintern_table_test.cc54 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()
Dreference_table_test.cc87 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/
Dtoken_range.h156 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/
Ddex_container.h41 virtual size_t Size() const = 0;
51 return Begin() + Size(); in End()
64 size_t Size() const OVERRIDE { in Size() function
Dcompact_dex_writer.h68 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/
Dassembler.cc43 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()
Dassembler.h108 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/
Dspace_test.h161 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/
Dti_class_definition.cc60 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()
Dfixed_up_dex_file.cc95 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/
Ddex_to_dex_decompiler_test.cc74 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/
Dcmdline_parse_argument_detail.h217 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()

123456789