Home
last modified time | relevance | path

Searched refs:InstanceUtils (Results 1 – 12 of 12) sorted by relevance

/art/tools/ahat/test/
DInstanceUtilsTest.java31 assertEquals("hello, world", InstanceUtils.asString(str)); in asStringBasic()
38 assertEquals("char thing", InstanceUtils.asString(str)); in asStringCharArray()
45 assertEquals("hello", InstanceUtils.asString(str, 5)); in asStringTruncated()
52 assertEquals("char ", InstanceUtils.asString(str, 5)); in asStringCharArrayTruncated()
59 assertEquals("hello, world", InstanceUtils.asString(str, 12)); in asStringExactMax()
66 assertEquals("char thing", InstanceUtils.asString(str, 10)); in asStringCharArrayExactMax()
73 assertEquals("hello, world", InstanceUtils.asString(str, 50)); in asStringNotTruncated()
80 assertEquals("char thing", InstanceUtils.asString(str, 50)); in asStringCharArrayNotTruncated()
87 assertEquals("hello, world", InstanceUtils.asString(str, -3)); in asStringNegativeMax()
94 assertEquals("char thing", InstanceUtils.asString(str, -3)); in asStringCharArrayNegativeMax()
[all …]
DNativeAllocationTest.java33 for (InstanceUtils.NativeAllocation alloc : snapshot.getNativeAllocations()) { in nativeAllocation()
DTestDump.java73 return InstanceUtils.getField(stuff, name); in getDumpedThing()
/art/tools/ahat/src/
DNativeAllocationsHandler.java35 List<InstanceUtils.NativeAllocation> allocs = mSnapshot.getNativeAllocations(); in handle()
41 for (InstanceUtils.NativeAllocation alloc : allocs) { in handle()
60 Comparator<InstanceUtils.NativeAllocation> compare in handle()
61 = new Sort.WithPriority<InstanceUtils.NativeAllocation>( in handle()
65 SubsetSelector<InstanceUtils.NativeAllocation> selector in handle()
67 for (InstanceUtils.NativeAllocation alloc : selector.selected()) { in handle()
76 List<InstanceUtils.NativeAllocation> remaining = selector.remaining(); in handle()
79 for (InstanceUtils.NativeAllocation alloc : remaining) { in handle()
DValue.java60 String stringValue = InstanceUtils.asString(inst, kMaxChars); in renderInstance()
67 Instance referent = InstanceUtils.getReferent(inst); in renderInstance()
78 String dexCacheLocation = InstanceUtils.getDexCacheLocation(inst, kMaxChars); in renderInstance()
88 Instance bitmap = InstanceUtils.getAssociatedBitmapInstance(inst); in renderInstance()
DSort.java187 implements Comparator<InstanceUtils.NativeAllocation> {
189 public int compare(InstanceUtils.NativeAllocation a, InstanceUtils.NativeAllocation b) { in compare()
200 public static class NativeAllocationBySize implements Comparator<InstanceUtils.NativeAllocation> {
202 public int compare(InstanceUtils.NativeAllocation a, InstanceUtils.NativeAllocation b) { in compare()
DAhatSnapshot.java65 private final List<InstanceUtils.NativeAllocation> mNativeAllocations
66 = new ArrayList<InstanceUtils.NativeAllocation>();
124 InstanceUtils.NativeAllocation alloc = InstanceUtils.getNativeAllocation(inst); in AhatSnapshot()
270 public List<InstanceUtils.NativeAllocation> getNativeAllocations() { in getNativeAllocations()
DOverviewHandler.java52 List<InstanceUtils.NativeAllocation> allocs = mSnapshot.getNativeAllocations(); in handle()
56 for (InstanceUtils.NativeAllocation alloc : allocs) { in handle()
DInstanceUtils.java30 class InstanceUtils { class
317 Long pointer = InstanceUtils.getLongField(inst, "nativePtr", null); in getNativeAllocation()
341 Long size = InstanceUtils.getLongField(registry, "size", null); in getNativeAllocation()
349 referent = InstanceUtils.getReferent(ref); in getNativeAllocation()
DBitmapHandler.java43 bitmap = InstanceUtils.asBitmap(inst); in handle()
DObjectHandler.java197 Instance bitmap = InstanceUtils.getAssociatedBitmapInstance(inst); in printBitmap()
/art/tools/ahat/
DREADME.txt53 * That InstanceUtils.asString properly takes into account "offset" and
55 * InstanceUtils.getDexCacheLocation