Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/tools/loganalysis/tests/src/com/android/loganalysis/parser/
DMemHealthParserTest.java53 assertNotNull(processes.get("com.google.android.gm")); in testOneForegroundProc()
54 Map<String, Long> process = processes.get("com.google.android.gm"); in testOneForegroundProc()
55 assertEquals(10910, process.get("native_avg").longValue()); in testOneForegroundProc()
56 assertEquals(8011, process.get("dalvik_avg").longValue()); in testOneForegroundProc()
57 assertEquals(90454, process.get("pss_avg").longValue()); in testOneForegroundProc()
58 assertEquals(11136, process.get("native_peak").longValue()); in testOneForegroundProc()
59 assertEquals(9812, process.get("dalvik_peak").longValue()); in testOneForegroundProc()
60 assertEquals(95161, process.get("pss_peak").longValue()); in testOneForegroundProc()
61 assertEquals(8223, process.get("summary_java_heap_avg").longValue()); in testOneForegroundProc()
62 assertEquals(3852, process.get("summary_native_heap_avg").longValue()); in testOneForegroundProc()
[all …]
DLogcatParserTest.java54 assertEquals(312, logcat.getAnrs().get(0).getPid().intValue()); in testParse_anr()
55 assertEquals(366, logcat.getAnrs().get(0).getTid().intValue()); in testParse_anr()
56 assertEquals("", logcat.getAnrs().get(0).getLastPreamble()); in testParse_anr()
57 assertEquals("", logcat.getAnrs().get(0).getProcessPreamble()); in testParse_anr()
58 assertEquals(parseTime("2012-04-25 17:17:08.445"), logcat.getAnrs().get(0).getEventTime()); in testParse_anr()
78 assertEquals(1234, logcat.getAnrs().get(0).getPid().intValue()); in testParse_anr_pid()
79 assertNull(logcat.getAnrs().get(0).getTid()); in testParse_anr_pid()
80 assertEquals("", logcat.getAnrs().get(0).getLastPreamble()); in testParse_anr_pid()
81 assertEquals("", logcat.getAnrs().get(0).getProcessPreamble()); in testParse_anr_pid()
82 assertEquals(parseTime("2012-04-25 17:17:08.445"), logcat.getAnrs().get(0).getEventTime()); in testParse_anr_pid()
[all …]
DWakelockParserTest.java51 wakelock.getWakeLocks(WakeLockCategory.KERNEL_WAKELOCK).get(0).getName()); in testKernelWakelockParser()
53 get(0).getHeldTime()); in testKernelWakelockParser()
55 get(0).getLockedCount()); in testKernelWakelockParser()
74 get(0).getName()); in testPartialWakelockParser()
76 get(0).getProcessUID()); in testPartialWakelockParser()
78 get(0).getHeldTime()); in testPartialWakelockParser()
80 get(0).getLockedCount()); in testPartialWakelockParser()
99 get(0).getName()); in testPartialWakelockParserOnOldFormat()
101 get(0).getProcessUID()); in testPartialWakelockParserOnOldFormat()
103 get(0).getHeldTime()); in testPartialWakelockParserOnOldFormat()
[all …]
DBugreportParserTest.java177 assertNotNull(bugreport.getSystemLog().getAnrs().get(0).getTrace()); in testParse()
226 assertEquals("value", bugreport.getCommandLine().get("key")); in testParse_command_line()
231 assertEquals("value1", bugreport.getCommandLine().get("key1")); in testParse_command_line()
232 assertEquals("value2", bugreport.getCommandLine().get("key2")); in testParse_command_line()
238 assertEquals("value=withequals", bugreport.getCommandLine().get("key1")); in testParse_command_line()
239 assertEquals("", bugreport.getCommandLine().get("key2")); in testParse_command_line()
244 assertEquals("value1", bugreport.getCommandLine().get("key1")); in testParse_command_line()
245 assertEquals("", bugreport.getCommandLine().get("key2")); in testParse_command_line()
246 assertNull(bugreport.getCommandLine().get("nonkey")); in testParse_command_line()
263 bugreport.getLastKmsg().getEvents().get(0).getStack()); in testParse_bootreason_kernel_good()
[all …]
DMemInfoParserTest.java47 assertEquals((Long)353332l, item.get("MemTotal")); in testMemInfoParser()
48 assertEquals((Long)65420l, item.get("MemFree")); in testMemInfoParser()
49 assertEquals((Long)20800l, item.get("Buffers")); in testMemInfoParser()
50 assertEquals((Long)86204l, item.get("Cached")); in testMemInfoParser()
51 assertEquals((Long)0l, item.get("SwapCached")); in testMemInfoParser()
52 assertEquals((Long)34359640152l, item.get("Long")); in testMemInfoParser()
53 assertNull(item.get("ExtraLongIgnore")); in testMemInfoParser()
DProcessUsageParserTest.java67 assertEquals("1000", processUsageInfo.get(1).getProcessUID()); in testProcessUsageParser()
68 assertEquals(266, processUsageInfo.get(1).getAlarmWakeups()); in testProcessUsageParser()
70 LinkedList<SensorInfoItem> sensor = processUsageInfo.get(1).getSensorUsage(); in testProcessUsageParser()
71 assertEquals("44", sensor.get(0).getSensorName()); in testProcessUsageParser()
72 assertEquals("36", sensor.get(1).getSensorName()); in testProcessUsageParser()
74 sensor = processUsageInfo.get(2).getSensorUsage(); in testProcessUsageParser()
75 assertEquals("0", sensor.get(0).getSensorName()); in testProcessUsageParser()
DSystemPropsParserTest.java43 assertEquals("m=y", map.get("dalvik.vm.dexopt-flags")); in testSimpleParse()
44 assertEquals("48m", map.get("dalvik.vm.heapgrowthlimit")); in testSimpleParse()
45 assertEquals("256m", map.get("dalvik.vm.heapsize")); in testSimpleParse()
46 assertEquals("android moto-ril-multimode 1.0", map.get("gsm.version.ril-impl")); in testSimpleParse()
63 assertEquals("m=y", map.get("dalvik.vm.dexopt-flags")); in testParseError()
64 assertEquals("256m", map.get("dalvik.vm.heapsize")); in testParseError()
DEventsLogParserTest.java88 transitionItems.get(0).getComponentName()); in testValidTransitionDelay()
90 transitionItems.get(0).getTransitionDelay()); in testValidTransitionDelay()
92 transitionItems.get(0).getStartingWindowDelay()); in testValidTransitionDelay()
110 transitionItems.get(0).getComponentName()); in testOnlyTransitionDelay()
112 transitionItems.get(0).getTransitionDelay()); in testOnlyTransitionDelay()
131 transitionItems.get(0).getTransitionDelay()); in testTransitionDelayOrder()
133 transitionItems.get(1).getTransitionDelay()); in testTransitionDelayOrder()
153 transitionItems.get(0).getComponentName()); in testDifferentAppTransitionDelay()
156 transitionItems.get(1).getComponentName()); in testDifferentAppTransitionDelay()
190 assertEquals("Action Id is not correct", 1, latencyItems.get(0).getActionId()); in testValidLatencyInfo()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DCpuStatsCollectorTest.java162 assertEquals(1, cpuStats.get("Total").size()); in testCpuStatsParser_single()
163 CpuStats stats = cpuStats.get("Total").get(0); in testCpuStatsParser_single()
166 assertEquals(2, stats.mTimeStats.get(TimeCategory.USER).intValue()); in testCpuStatsParser_single()
167 assertEquals(3, stats.mTimeStats.get(TimeCategory.NICE).intValue()); in testCpuStatsParser_single()
168 assertEquals(5, stats.mTimeStats.get(TimeCategory.SYS).intValue()); in testCpuStatsParser_single()
169 assertEquals(7, stats.mTimeStats.get(TimeCategory.IDLE).intValue()); in testCpuStatsParser_single()
170 assertEquals(11, stats.mTimeStats.get(TimeCategory.IOW).intValue()); in testCpuStatsParser_single()
171 assertEquals(13, stats.mTimeStats.get(TimeCategory.IRQ).intValue()); in testCpuStatsParser_single()
172 assertEquals(17, stats.mTimeStats.get(TimeCategory.SIRQ).intValue()); in testCpuStatsParser_single()
185 assertEquals(19, stats.mFreqStats.get(350000).intValue()); in testCpuStatsParser_single()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DPsParserTest.java46 assertEquals("First process user name did not match", "root", psInfo.get(0).getUser()); in testNewerValidPsOutput()
47 assertEquals("First process id did not match", 1, psInfo.get(0).getPid()); in testNewerValidPsOutput()
48 assertEquals("First process name did not match", "init", psInfo.get(0).getName()); in testNewerValidPsOutput()
49 assertEquals("Second process user name did not match", "root", psInfo.get(1).getUser()); in testNewerValidPsOutput()
50 assertEquals("Second process id did not match", 2, psInfo.get(1).getPid()); in testNewerValidPsOutput()
51 assertEquals("Second process name did not match", "[kthreadd]", psInfo.get(1).getName()); in testNewerValidPsOutput()
65 assertEquals("First process user name did not match", "root", psInfo.get(0).getUser()); in testOlderValidPsOutput()
66 assertEquals("First process id did not match", 1, psInfo.get(0).getPid()); in testOlderValidPsOutput()
67 assertEquals("First process name did not match", "init", psInfo.get(0).getName()); in testOlderValidPsOutput()
68 assertEquals("Second process user name did not match", "root", psInfo.get(1).getUser()); in testOlderValidPsOutput()
[all …]
DByteArrayListTest.java42 assertEquals(0, mList.get(0)); in testAddAll()
43 assertEquals(5, mList.get(5)); in testAddAll()
54 assertEquals(0xa, mList.get(0)); in testAddAll_append()
55 assertEquals(0xb, mList.get(1 + byteAry1.length)); in testAddAll_append()
56 assertEquals(5, mList.get(mList.size()-1)); in testAddAll_append()
67 assertEquals(0xa, mList.get(0)); in testAddAll_limits()
68 assertEquals(0xb, mList.get(1 + 2)); in testAddAll_limits()
69 assertEquals(1, mList.get(1)); in testAddAll_limits()
151 assertEquals(1, mList.get(0)); in testRetrieve()
152 assertEquals(2, mList.get(1)); in testRetrieve()
[all …]
DRegexTrieTest.java102 assertEquals(NULL_LIST, groups.get(0)); in testGroups_fullMatch()
103 assertEquals(NULL_LIST, groups.get(1)); in testGroups_fullMatch()
108 assertEquals(NULL_LIST, groups.get(0)); in testGroups_fullMatch()
109 assertEquals(Arrays.asList("beta"), groups.get(1)); in testGroups_fullMatch()
114 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_fullMatch()
115 assertEquals(NULL_LIST, groups.get(1)); in testGroups_fullMatch()
120 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_fullMatch()
121 assertEquals(Arrays.asList("beta"), groups.get(1)); in testGroups_fullMatch()
133 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_partialMatch()
142 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_partialMatch()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DModuleSplitterTest.java61 assertNotSame(config.getTargetPreparers().get(0), res.get(0).getTargetPreparers().get(0)); in testSplitModule_configNotShardable()
63 assertSame(config.getTests().get(0), res.get(0).getTests().get(0)); in testSplitModule_configNotShardable()
91 assertNotSame(config.getTargetPreparers().get(0), res.get(0).getTargetPreparers().get(0)); in testSplitModule_testNotShardable()
93 config.getTargetPreparers().get(0).getClass(), in testSplitModule_testNotShardable()
94 res.get(0).getTargetPreparers().get(0).getClass()); in testSplitModule_testNotShardable()
96 assertSame(config.getTests().get(0), res.get(0).getTests().get(0)); in testSplitModule_testNotShardable()
117 assertNotSame(config.getTargetPreparers().get(0), res.get(0).getTargetPreparers().get(0)); in testSplitModule_testShardable_didNotShard()
119 config.getTargetPreparers().get(0).getClass(), in testSplitModule_testShardable_didNotShard()
120 res.get(0).getTargetPreparers().get(0).getClass()); in testSplitModule_testShardable_didNotShard()
122 assertSame(config.getTests().get(0), res.get(0).getTests().get(0)); in testSplitModule_testShardable_didNotShard()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DFlashingResourcesParserTest.java58 MultiMap<String, String> result = fullInfo.get(null); in testParseAndroidInfo()
61 List<String> boards = result.get(FlashingResourcesParser.BOARD_KEY); in testParseAndroidInfo()
63 assertEquals("board1", boards.get(0)); in testParseAndroidInfo()
64 assertEquals("board2", boards.get(1)); in testParseAndroidInfo()
65 List<String> bootloaders = result.get(FlashingResourcesParser.BOOTLOADER_VERSION_KEY); in testParseAndroidInfo()
66 assertEquals("1.0.1", bootloaders.get(0)); in testParseAndroidInfo()
82 MultiMap<String, String> result = fullInfo.get(null); in testParseAndroidInfo_withConstraint()
85 List<String> boards = result.get(FlashingResourcesParser.BOARD_KEY); in testParseAndroidInfo_withConstraint()
87 assertEquals("board1", boards.get(0)); in testParseAndroidInfo_withConstraint()
88 assertEquals("board2", boards.get(1)); in testParseAndroidInfo_withConstraint()
[all …]
/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/
DOpenGlPerformanceTest.java241 if (mTestResults.get(key) == null) { in logOutputFile()
245 simpleStats.addAll(Arrays.asList(mTestResults.get(key))); in logOutputFile()
265 CLog.v("caputre.get[%d]: %s", i, capture.get(i).toString()); in parseOutputFile()
272 Double[] fps = mTestResults.get(key); in parseOutputFile()
277 fps[iterationId] = Double.parseDouble(capture.get(0).get(0)); in parseOutputFile()
405 assertEquals("97.65624", mTestInstance.mTestResults.get("text1")[0].toString()); in testParseOutputFile()
406 assertEquals("36.576443", mTestInstance.mTestResults.get("text2")[0].toString()); in testParseOutputFile()
407 assertEquals("12.382367", mTestInstance.mTestResults.get("text3")[0].toString()); in testParseOutputFile()
411 mTestInstance.mTestResults.get("10xSingleTexture")[0].toString()); in testParseOutputFile()
413 mTestInstance.mTestResults.get("Multitexture")[0].toString()); in testParseOutputFile()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/net/
DXmlRpcHelperTest.java49 assertEquals("boolean", resp.get(0)); in testParseTrue()
50 assertEquals("1", resp.get(1)); in testParseTrue()
58 assertEquals("boolean", resp.get(0)); in testParseFalse()
59 assertEquals("0", resp.get(1)); in testParseFalse()
76 assertEquals("string", resp.get(0)); in testParse_multiValue()
77 assertEquals("1234", resp.get(1)); in testParse_multiValue()
78 assertEquals("i4", resp.get(2)); in testParse_multiValue()
79 assertEquals("1", resp.get(3)); in testParse_multiValue()
80 assertEquals("string", resp.get(4)); in testParse_multiValue()
81 assertEquals("hypotenuse", resp.get(5)); in testParse_multiValue()
/tools/loganalysis/tests/src/com/android/loganalysis/item/
DProcrankItemTest.java42 assertTrue(output.get(ProcrankItem.LINES) instanceof JSONArray); in testToJson()
44 assertEquals("foo\nbar", output.get(ProcrankItem.TEXT)); in testToJson()
49 assertTrue(lines.get(0) instanceof JSONObject); in testToJson()
53 assertEquals(0, line.get(ProcrankItem.PID)); in testToJson()
54 assertEquals("process0", line.get(ProcrankItem.PROCESS_NAME)); in testToJson()
55 assertEquals(1, line.get(ProcrankItem.VSS)); in testToJson()
56 assertEquals(2, line.get(ProcrankItem.RSS)); in testToJson()
57 assertEquals(3, line.get(ProcrankItem.PSS)); in testToJson()
58 assertEquals(4, line.get(ProcrankItem.USS)); in testToJson()
DGenericItemTest.java80 assertNull(attributes.get("string")); in testMergeAttributes()
81 assertNull(attributes.get("integer")); in testMergeAttributes()
84 assertNull(attributes.get("string")); in testMergeAttributes()
85 assertNull(attributes.get("integer")); in testMergeAttributes()
88 assertNull(attributes.get("string")); in testMergeAttributes()
89 assertNull(attributes.get("integer")); in testMergeAttributes()
92 assertEquals(mStringAttribute, attributes.get("string")); in testMergeAttributes()
93 assertNull(attributes.get("integer")); in testMergeAttributes()
96 assertEquals(mStringAttribute, attributes.get("string")); in testMergeAttributes()
97 assertNull(attributes.get("integer")); in testMergeAttributes()
[all …]
DDvmLockSampleItemTest.java47 assertEquals("android.support.test.aupt", output.get(DvmLockSampleItem.PROCESS_NAME)); in testToJson()
48 assertEquals(false, output.get(DvmLockSampleItem.SENSITIVITY_FLAG)); in testToJson()
49 …assertEquals("Instr: android.support.test.aupt", output.get(DvmLockSampleItem.WAITING_THREAD_NAME)… in testToJson()
50 assertEquals(75, output.get(DvmLockSampleItem.WAIT_TIME)); in testToJson()
51 assertEquals("AccessibilityCache.java", output.get(DvmLockSampleItem.WAITING_SOURCE_FILE)); in testToJson()
52 assertEquals(256, output.get(DvmLockSampleItem.WAITING_SOURCE_LINE)); in testToJson()
53 assertEquals("-", output.get(DvmLockSampleItem.OWNER_FILE_NAME)); in testToJson()
54 assertEquals(96, output.get(DvmLockSampleItem.OWNER_ACQUIRE_SOURCE_LINE)); in testToJson()
55 assertEquals(15, output.get(DvmLockSampleItem.SAMPLE_PERCENTAGE)); in testToJson()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationXmlParserTest.java60 configDef.getObjectClassMap().get("test").get(0).mClassName); in testParse()
61 assertEquals("junit.framework.TestCase:1:opName", configDef.getOptionList().get(0).name); in testParse()
62 assertEquals("val", configDef.getOptionList().get(0).value); in testParse()
82 configDef.getObjectClassMap().get("test").get(0).mClassName); in testParse_globalOption()
84 assertEquals("opName", configDef.getOptionList().get(0).name); in testParse_globalOption()
85 assertEquals("val", configDef.getOptionList().get(0).value); in testParse_globalOption()
110 configDef.getObjectClassMap().get("test").get(0).mClassName); in testParse_multiple()
111 …ertEquals("com.android.tradefed.testtype.HostTest:1:class", configDef.getOptionList().get(0).name); in testParse_multiple()
112 assertEquals("val1", configDef.getOptionList().get(0).value); in testParse_multiple()
116 configDef.getObjectClassMap().get("test").get(1).mClassName); in testParse_multiple()
[all …]
DConfigurationFactoryTest.java165 assertEquals("1a", map.get(config1a)); in testConfigId_hashKey()
166 assertEquals("1a", map.get(config1b)); in testConfigId_hashKey()
169 assertEquals("1b", map.get(config1a)); in testConfigId_hashKey()
170 assertEquals("1b", map.get(config1b)); in testConfigId_hashKey()
178 assertEquals("3a", map.get(config3a)); in testConfigId_hashKey()
179 assertEquals("3a", map.get(config3b)); in testConfigId_hashKey()
182 assertEquals("3b", map.get(config3a)); in testConfigId_hashKey()
183 assertEquals("3b", map.get(config3b)); in testConfigId_hashKey()
195 assertEquals("1b", map.get(config1a)); in testConfigId_hashKey()
196 assertEquals("1b", map.get(config1b)); in testConfigId_hashKey()
[all …]
/tools/loganalysis/tests/src/com/android/loganalysis/util/
DRegexTrieTest.java102 assertEquals(NULL_LIST, groups.get(0)); in testGroups_fullMatch()
103 assertEquals(NULL_LIST, groups.get(1)); in testGroups_fullMatch()
108 assertEquals(NULL_LIST, groups.get(0)); in testGroups_fullMatch()
109 assertEquals(Arrays.asList("beta"), groups.get(1)); in testGroups_fullMatch()
114 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_fullMatch()
115 assertEquals(NULL_LIST, groups.get(1)); in testGroups_fullMatch()
120 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_fullMatch()
121 assertEquals(Arrays.asList("beta"), groups.get(1)); in testGroups_fullMatch()
133 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_partialMatch()
142 assertEquals(Arrays.asList("alpha"), groups.get(0)); in testGroups_partialMatch()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aEventDispatcher.java81 mEventQueue.get(event.getName()).add(event); in internalPolling()
121 if (mEventQueue.get(name) != null) { in popEvent()
123 EventSl4aObject res = mEventQueue.get(name).poll(); in popEvent()
147 if (mEventQueue.get(name) != null) { in waitForEvent()
149 EventSl4aObject res = mEventQueue.get(name).poll(); in waitForEvent()
165 if (mEventQueue.get(name) != null) { in popAllEvents()
167 results.addAll(mEventQueue.get(name)); in popAllEvents()
168 mEventQueue.get(name).clear(); in popAllEvents()
180 if (mEventQueue.get(name) != null) { in clearEvents()
181 mEventQueue.get(name).clear(); in clearEvents()
[all …]
/tools/loganalysis/src/com/android/loganalysis/item/
DCompactMemInfoItem.java110 private Map<String, Object> get(int pid) { in get() method in CompactMemInfoItem
111 return mPids.get(pid); in get()
131 return (String)get(pid).get(NAME_ATTR_KEY); in getName()
138 return (Long)get(pid).get(PSS_ATTR_KEY); in getPss()
145 return (Long)get(pid).get(SWAP_ATTR_KEY); in getSwap()
153 return (String)get(pid).get(TYPE_ATTR_KEY); in getType()
160 return (Boolean)get(pid).get(ACTIVITIES_ATTR_KEY); in hasActivities()
/tools/tradefederation/core/src/com/android/tradefed/util/
DDirectedGraph.java42 for (V v: neighbors.keySet()) s.append("\n " + v + " -> " + neighbors.get(v)); in toString()
70 neighbors.get(from).add(to); in addEdge()
82 neighbors.get(from).remove(to); in removeEdge()
96 for (V to: neighbors.get(from)) { in inDegree()
97 result.put(to, result.get(to) + 1); in inDegree()
111 if (degree.get(v) == 0) { in topSort()
123 for (V neighbor: neighbors.get(v)) { in topSort()
124 degree.put(neighbor, degree.get(neighbor) - 1); in topSort()
126 if (degree.get(neighbor) == 0) { in topSort()

12345678910>>...13