Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DEnumMapTest.java33 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/
DLibcoreHeapMetricsTest.java22 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()
115 Map<Reachability, Size> sizesByReachability = sizesByReachability(dump, heap); in recordHeapMetrics()
129 Map<Reachability, Size> beforeSizesByReachability = in recordBeforeAndAfterAppHeapMetrics()
131 … Map<Reachability, Size> afterSizesByReachability = sizesByReachability(afterDump, afterHeap); in recordBeforeAndAfterAppHeapMetrics()
143 private void recordSizeMetric(String name, Size size) { in recordSizeMetric()
147 private void recordSizeDeltaMetric(String name, Size before, Size after) { in recordSizeDeltaMetric()
155 private static Map<Reachability, Size> sizesByReachability(AhatSnapshot dump, AhatHeap heap) { in sizesByReachability()
156 EnumMap<Reachability, Size> map = new EnumMap<>(Reachability.class); in sizesByReachability()
[all …]