Searched refs:Size (Results 1 – 3 of 3) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | EnumMapTest.java | 33 enum Size { enum in EnumMapTest 90 new EnumMap(Size.Big.getClass()); in test_ConstructorLjava_lang_Class() 117 EnumMap enumSizeMap = new EnumMap(Size.class); in test_ConstructorLjava_lang_Class() 119 Size.Big, 2)); in test_ConstructorLjava_lang_Class() 121 enumSizeMap.get(Size.Big)); in test_ConstructorLjava_lang_Class() 129 enumSizeMap = new EnumMap(Size.Middle.getClass()); in test_ConstructorLjava_lang_Class() 131 Size.Small, 1)); in test_ConstructorLjava_lang_Class() 133 enumSizeMap.get(Size.Small)); in test_ConstructorLjava_lang_Class() 169 enumMap.put(Size.Middle, 2); in test_ConstructorLjava_util_EnumMap() 216 hashColorMap.put(Size.Big, 3); in test_ConstructorLjava_util_Map() [all …]
|
/libcore/metrictests/memory/host/src/libcore/heapmetrics/ |
D | LibcoreHeapMetricsTest.java | 22 import com.android.ahat.heapdump.Size; 74 Map<HeapCategory, Size> zygoteAndImageSizesByCategory = HeapCategorization in measureNoop() 77 for (Map.Entry<HeapCategory, Size> entry : zygoteAndImageSizesByCategory.entrySet()) { in measureNoop() 109 Map<Reachability, Size> sizesByReachability = sizesByReachability(dump, heap); in recordHeapMetrics() 123 Map<Reachability, Size> beforeSizesByReachability = in recordBeforeAndAfterAppHeapMetrics() 125 … Map<Reachability, Size> afterSizesByReachability = sizesByReachability(afterDump, afterHeap); in recordBeforeAndAfterAppHeapMetrics() 137 private void recordSizeMetric(String name, Size size) { in recordSizeMetric() 141 private void recordSizeDeltaMetric(String name, Size before, Size after) { in recordSizeDeltaMetric() 149 private static Map<Reachability, Size> sizesByReachability(AhatSnapshot dump, AhatHeap heap) { in sizesByReachability() 150 EnumMap<Reachability, Size> map = new EnumMap<>(Reachability.class); in sizesByReachability() [all …]
|
D | HeapCategorization.java | 24 import com.android.ahat.heapdump.Size; 148 private final Map<HeapCategory, Size> sizesByCategory = new HashMap<>(); 161 Map<HeapCategory, Size> sizesByCategory() { in sizesByCategory() 339 Size size = Size.ZERO; in incrementSize()
|