Home
last modified time | relevance | path

Searched refs:results (Results 1 – 25 of 31) sorted by relevance

12

/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DDumpsysMeminfoHelperTest.java91 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_noProcess() local
93 assertTrue(results.isEmpty()); in testCollectMeminfo_noProcess()
100 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_nullProcess() local
101 assertTrue(results.isEmpty()); in testCollectMeminfo_nullProcess()
108 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_nullProcessObjectMap() local
109 assertTrue(results.isEmpty()); in testCollectMeminfo_nullProcessObjectMap()
116 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongProcesses() local
117 assertTrue(results.isEmpty()); in testCollectMeminfo_wrongProcesses()
128 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongProcessesNameInProcessObjectMap() local
129 assertTrue(results.isEmpty()); in testCollectMeminfo_wrongProcessesNameInProcessObjectMap()
[all …]
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/
DTimeInStateHelperTest.java79 Map<String, Long> results = mTimeInStateHelper.getMetrics(); in testCollectTimeInState_noSource() local
81 assertEquals(results.size(), 0); in testCollectTimeInState_noSource()
97 Map<String, Long> results = mTimeInStateHelper.getMetrics(); in testCollectTimeInState_oneSource() local
99 assertEquals(results.size(), 3); in testCollectTimeInState_oneSource()
100 assertEquals(results.get(constructKey(key1, "10000")).longValue(), 100L); in testCollectTimeInState_oneSource()
101 assertEquals(results.get(constructKey(key1, "35000")).longValue(), 100L); in testCollectTimeInState_oneSource()
102 assertEquals(results.get(constructKey(key1, AVG_FREQ_KEY_SUFFIX)).longValue(), 22500L); in testCollectTimeInState_oneSource()
122 Map<String, Long> results = mTimeInStateHelper.getMetrics(); in testCollectTimeInState_multipleSources() local
124 assertEquals(results.size(), 6); in testCollectTimeInState_multipleSources()
125 assertEquals(results.get(constructKey(key1, "10000")).longValue(), 50L); in testCollectTimeInState_multipleSources()
[all …]
DDumpsysServiceHelperTest.java71 Map<String, String> results = mDumpsysServiceHelper.getMetrics(); in testCollectDumpsys_noService() local
73 assertTrue(results.isEmpty()); in testCollectDumpsys_noService()
82 Map<String, String> results = mDumpsysServiceHelper.getMetrics(); in testCollectDumpsys_oneService() local
84 assertFalse(results.isEmpty()); in testCollectDumpsys_oneService()
91 assertEquals(results.get(key), path); in testCollectDumpsys_oneService()
100 Map<String, String> results = mDumpsysServiceHelper.getMetrics(); in testCollectDumpsys_multipleServices() local
108 assertEquals(results.get(key1), path1); in testCollectDumpsys_multipleServices()
115 assertEquals(results.get(key2), path2); in testCollectDumpsys_multipleServices()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DDeviceCollectorsTest.java88 Collection<TestRunResult> results = listener.getRunResults(); in testBaseListenerRuns() local
89 assertEquals(1, results.size()); in testBaseListenerRuns()
90 TestRunResult result = results.iterator().next(); in testBaseListenerRuns()
115 Collection<TestRunResult> results = listener.getRunResults(); in testBaseListenerRuns_withExcludeFilters() local
116 assertEquals(1, results.size()); in testBaseListenerRuns_withExcludeFilters()
117 TestRunResult result = results.iterator().next(); in testBaseListenerRuns_withExcludeFilters()
145 Collection<TestRunResult> results = listener.getRunResults(); in testBaseListenerRuns_withIncludeAndExcludeFilters() local
146 assertEquals(1, results.size()); in testBaseListenerRuns_withIncludeAndExcludeFilters()
147 TestRunResult result = results.iterator().next(); in testBaseListenerRuns_withIncludeAndExcludeFilters()
175 Collection<TestRunResult> results = listener.getRunResults(); in testBaseListenerRuns_withIncludeFilters() local
[all …]
DBatterystatsCollectorHostTest.java122 Collection<TestRunResult> results = listener.getRunResults(); in testBatteryStatsListener_perRun() local
123 assertEquals(1, results.size()); in testBatteryStatsListener_perRun()
124 TestRunResult result = results.iterator().next(); in testBatteryStatsListener_perRun()
DLogcatCollectorHostTest.java89 TestRunResult results = getLastDeviceRunResults(); in testCollect() local
90 assertFalse(results.isRunFailure()); in testCollect()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DBatteryUsageStatsHelper.java126 Map<String, Long> results = new HashMap<>(); in batteryUsageStatsFromBucket() local
131 results.put( in batteryUsageStatsFromBucket()
135 results.put( in batteryUsageStatsFromBucket()
138 results.put( in batteryUsageStatsFromBucket()
142 results.put( in batteryUsageStatsFromBucket()
160 results.put( in batteryUsageStatsFromBucket()
178 results.put("time-in-fg-by-" + packageNamesForMetrics + "-ms", timeInForeground); in batteryUsageStatsFromBucket()
179 results.put("time-in-bg-by-" + packageNamesForMetrics + "-ms", timeInBackground); in batteryUsageStatsFromBucket()
184 results.put( in batteryUsageStatsFromBucket()
188 results.put( in batteryUsageStatsFromBucket()
[all …]
DThermalHelper.java103 Map<String, StringBuilder> results = new HashMap<>(); in getMetrics() local
107 MetricUtility.addMetric(severityKey, mInitialSeverity, results); in getMetrics()
118 MetricUtility.addMetric(severityKey, severity, results); in getMetrics()
124 updateTemperatureMetrics(results); in getMetrics()
126 return results; in getMetrics()
130 private void updateTemperatureMetrics(Map<String, StringBuilder> results) { in updateTemperatureMetrics() argument
145 results); in updateTemperatureMetrics()
150 results); in updateTemperatureMetrics()
155 results); in updateTemperatureMetrics()
179 Map<String, StringBuilder> results = new HashMap<>(); in getTemperature() local
[all …]
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DCaseResult.java74 List<ITestResult> results = new ArrayList<>(); in getResults() local
77 results.add(result); in getResults()
80 return results; in getResults()
88 ArrayList<ITestResult> results = new ArrayList<>(mResults.values()); in getResults() local
89 Collections.sort(results); in getResults()
90 return results; in getResults()
DModuleResult.java237 ArrayList<ICaseResult> results = new ArrayList<>(mResults.values()); in getResults() local
238 Collections.sort(results); in getResults()
239 return results; in getResults()
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/
DMemLeaksHelper.java81 Map<String, Long> results = new HashMap<>(); in getMetrics() local
86 results.put(processName, current.get(processName) - mPrevious.get(processName)); in getMetrics()
88 results.put(processName, current.get(processName)); in getMetrics()
94 return results; in getMetrics()
105 Map<String, Long> results = new HashMap<>(); in getMeminfo() local
109 return results; in getMeminfo()
143 results.put(PROC_MEM_BYTES + processName, Long.parseLong(matcherLeak.group(1))); in getMeminfo()
144 results.put(PROC_ALLOCATIONS + processName, Long.parseLong(matcherLeak.group(2))); in getMeminfo()
150 results.put(PROC_MEM_BYTES + processName, 0L); in getMeminfo()
151 results.put(PROC_ALLOCATIONS + processName, 0L); in getMeminfo()
[all …]
DFreeMemHelper.java114 Map<String, Long> results = new HashMap<>(); in getMetrics() local
116 results.put(PROC_MEMINFO_MEM_AVAILABLE, (memAvailableProc * 1024)); in getMetrics()
119 results.put(PROC_MEMINFO_MEM_FREE, (memFreeProc * 1024)); in getMetrics()
162 results.put(DUMPSYS_CACHED_PROC_MEMORY, (cachedProcMemory * 1024)); in getMetrics()
165 results.put(MEM_AVAILABLE_CACHE_PROC_DIRTY, (cacheProcDirty * 1024)); in getMetrics()
166 return results; in getMetrics()
/platform_testing/libraries/flicker/src/android/tools/flicker/
DFlickerServiceResultsCollector.kt134 val results = errorReportingBlock { in <lambda>() constant
152 results, in <lambda>()
162 val results = errorReportingBlock { in <lambda>() constant
176 results, in <lambda>()
192 val results = scenarios.flatMap { it.generateAssertions() }.map { it.execute() } in <lambda>() constant
195 assertionResults.addAll(results) in <lambda>()
203 assertionResultsByTest[description] = results in <lambda>()
206 if (results.any { it.status == AssertionResult.Status.FAIL }) { in <lambda>()
215 val aggregatedResults = processFlickerResults(results) in <lambda>()
218 results in <lambda>()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/
DScenarioInstanceTest.kt93 val results = assertions.map { it.execute() } in willReportFlickerAssertions() constant
94 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertionSingle") in willReportFlickerAssertions()
95 Truth.assertThat(results.map { it.name }) in willReportFlickerAssertions()
99 results.first { it.name == "MY_CUSTOM_SCENARIO::myAssertionSingle" } in willReportFlickerAssertions()
101 results.first { it.name == "MY_CUSTOM_SCENARIO::myAssertionMultiple" } in willReportFlickerAssertions()
167 val results = assertions.map { it.execute() } in willReportMainBlockAssertions() constant
168 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertion1") in willReportMainBlockAssertions()
169 Truth.assertThat(results.map { it.name }).contains("MY_CUSTOM_SCENARIO::myAssertion2") in willReportMainBlockAssertions()
171 val assertion1Result = results.first { it.name == "MY_CUSTOM_SCENARIO::myAssertion1" } in willReportMainBlockAssertions()
178 val assertion2Result = results.first { it.name == "MY_CUSTOM_SCENARIO::myAssertion2" } in willReportMainBlockAssertions()
/platform_testing/tests/automotive/functional/settings/src/android/platform/tests/
DAppInfoSettingTest.java82 List<Integer> results = in testAllowedAppNumber() local
84 int summaryAllowed = results.get(0); in testAllowedAppNumber()
85 int summaryTotal = results.get(1); in testAllowedAppNumber()
86 int listedAllowed = results.get(2); in testAllowedAppNumber()
87 int listedTotal = results.get(3); in testAllowedAppNumber()
93 + results.toString(), in testAllowedAppNumber()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DSfStatsCollectionHelper.java86 Map<String, Double> results = new HashMap<>(); in getMetrics() local
101 results.put(metricKey, parseStatsValue(globalPairs.get(key))); in getMetrics()
105 results.put( in getMetrics()
111 results.put( in getMetrics()
124 results.put( in getMetrics()
132 results.put( in getMetrics()
140 results.put( in getMetrics()
148 return results; in getMetrics()
DJankCollectionHelper.java329 Map<String, Double> results = new HashMap<String, Double>(); in parseGfxInfoMetrics() local
338 results.put(metricKey, value); in parseGfxInfoMetrics()
341 return results; in parseGfxInfoMetrics()
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DUtils.kt65 val results = Bundle() in notifyRunnerProgress() constant
66 results.putString(Instrumentation.REPORT_KEY_STREAMRESULT, "$msg\n") in notifyRunnerProgress()
67 instrumentation.sendStatus(1, results) in notifyRunnerProgress()
/platform_testing/host_runners/utils/src/com/android/runner/utils/
DInstrumentationResultProtoParser.java125 ResultsBundle results = testStatus.getResults(); in processTestStatus() local
127 for (ResultsBundleEntry entry : results.getEntriesList()) { in processTestStatus()
154 ResultsBundle results = sessionStatus.getResults(); in processSessionStatus() local
155 for (ResultsBundleEntry entry : results.getEntriesList()) { in processSessionStatus()
178 if (results.isInitialized()) { in processSessionStatus()
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/loggers/
DDeviceFileLoggerHostTest.java77 Collection<TestRunResult> results = listener.getRunResults(); in testFileIsLogged() local
78 assertEquals(1, results.size()); in testFileIsLogged()
79 TestRunResult result = results.iterator().next(); in testFileIsLogged()
/platform_testing/libraries/collectors-helper/simpleperf/src/com/android/helpers/
DSimpleperfHelper.java209 Map<String, String> results = new HashMap<>(); in getMetrics() local
225 results.put(key, String.valueOf(count)); in getMetrics()
239 if (results.containsKey(key + "-percentage")) { in getMetrics()
247 results.put(key + "-percentage", percentage); in getMetrics()
250 results.put(key + "-count", String.valueOf(count)); in getMetrics()
256 return results; in getMetrics()
/platform_testing/libraries/collectors-helper/generic/src/com/android/helpers/
DGenericExecutableCollectorHelper.java82 Map<String, String> results = new HashMap<>(); in getMetrics() local
86 results.putAll(execAndGetResults(path)); in getMetrics()
91 return results; in getMetrics()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DTransitionErrorTest.kt54 val results = in <lambda>() constant
65 results.forEach { result -> in <lambda>()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DClassMetricRuleTest.java77 List<Bundle> results = addResultsCaptor.getAllValues(); in testRunsSpecifiedCollectorsAndReportRunMetrics() local
79 for (Bundle result : results) { in testRunsSpecifiedCollectorsAndReportRunMetrics()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DProcessStatusTracker.java184 List<RunningAppProcessInfo> results = new ArrayList<RunningAppProcessInfo>(); in getRunningAppProcesses() local
198 results.add(new RunningAppProcessInfo(proc, pid, null)); in getRunningAppProcesses()
215 return results; in getRunningAppProcesses()

12