Searched refs:InstanceUtils (Results 1 – 12 of 12) sorted by relevance
/art/tools/ahat/test/ |
D | InstanceUtilsTest.java | 31 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 …]
|
D | NativeAllocationTest.java | 33 for (InstanceUtils.NativeAllocation alloc : snapshot.getNativeAllocations()) { in nativeAllocation()
|
D | TestDump.java | 73 return InstanceUtils.getField(stuff, name); in getDumpedThing()
|
/art/tools/ahat/src/ |
D | NativeAllocationsHandler.java | 35 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()
|
D | Value.java | 60 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()
|
D | Sort.java | 187 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()
|
D | AhatSnapshot.java | 65 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()
|
D | OverviewHandler.java | 52 List<InstanceUtils.NativeAllocation> allocs = mSnapshot.getNativeAllocations(); in handle() 56 for (InstanceUtils.NativeAllocation alloc : allocs) { in handle()
|
D | InstanceUtils.java | 30 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()
|
D | BitmapHandler.java | 43 bitmap = InstanceUtils.asBitmap(inst); in handle()
|
D | ObjectHandler.java | 197 Instance bitmap = InstanceUtils.getAssociatedBitmapInstance(inst); in printBitmap()
|
/art/tools/ahat/ |
D | README.txt | 53 * That InstanceUtils.asString properly takes into account "offset" and 55 * InstanceUtils.getDexCacheLocation
|