/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | DumpsysMeminfoHelperTest.java | 68 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_noProcess() local 70 assertTrue(results.isEmpty()); in testCollectMeminfo_noProcess() 77 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_nullProcess() local 78 assertTrue(results.isEmpty()); in testCollectMeminfo_nullProcess() 85 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongProcesses() local 86 assertTrue(results.isEmpty()); in testCollectMeminfo_wrongProcesses() 93 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_oneProcess() local 95 assertFalse(results.isEmpty()); in testCollectMeminfo_oneProcess() 96 verifyKeysForProcess(results, TEST_PROCESS_NAME); in testCollectMeminfo_oneProcess() 103 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_multipleProcesses() local [all …]
|
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/ |
D | TimeInStateHelperTest.java | 79 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 …]
|
D | DumpsysServiceHelperTest.java | 71 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/collectors-helper/statsd/src/com/android/helpers/ |
D | BatteryUsageStatsHelper.java | 74 Map<String, Long> results = new HashMap<>(); in batteryUsageStatsFromBucket() local 79 results.put( in batteryUsageStatsFromBucket() 83 results.put( in batteryUsageStatsFromBucket() 86 results.put( in batteryUsageStatsFromBucket() 107 results.put("time-in-fg-by-" + packageNamesForMetrics + "-ms", timeInForeground); in batteryUsageStatsFromBucket() 108 results.put("time-in-bg-by-" + packageNamesForMetrics + "-ms", timeInBackground); in batteryUsageStatsFromBucket() 113 results.put( in batteryUsageStatsFromBucket() 117 results.put( in batteryUsageStatsFromBucket() 134 results.put("session-start-ms", atom.sessionStartMillis); in batteryUsageStatsFromBucket() 135 results.put("session-end-ms", atom.sessionEndMillis); in batteryUsageStatsFromBucket() [all …]
|
D | ThermalHelper.java | 103 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/device-collectors/src/hostsidetests/src/com/android/collectors/ |
D | DeviceCollectorsTest.java | 88 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 …]
|
D | BatterystatsCollectorHostTest.java | 122 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()
|
D | LogcatCollectorHostTest.java | 89 TestRunResult results = getLastDeviceRunResults(); in testCollect() local 90 assertFalse(results.isRunFailure()); in testCollect()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | CaseResult.java | 74 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()
|
D | ModuleResult.java | 237 ArrayList<ICaseResult> results = new ArrayList<>(mResults.values()); in getResults() local 238 Collections.sort(results); in getResults() 239 return results; in getResults()
|
D | ResultHandler.java | 138 List<IInvocationResult> results = new ArrayList<>(); in getLightResults() local 146 results.add(new LightInvocationResult(result)); in getLightResults() 151 Collections.sort(results, (result1, result2) -> Long.compare( in getLightResults() 154 return results; in getLightResults()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | MemLeaksHelper.java | 81 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 …]
|
D | FreeMemHelper.java | 114 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/com/android/server/wm/flicker/rules/ |
D | FlickerResultsCollector.kt | 35 fun postRunResults(results: Map<String, Int>) { in postRunResults() 36 collectionHelper.postMetrics(assertionsToMetrics(results)) in postRunResults() 62 fun postMetrics(results: Map<String, Int>) { in postMetrics() 63 for ((key, res) in results) { in postMetrics()
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | SfStatsCollectionHelper.java | 86 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()
|
D | JankCollectionHelper.java | 332 Map<String, Double> results = new HashMap<String, Double>(); in parseGfxInfoMetrics() local 341 results.put(metricKey, value); in parseGfxInfoMetrics() 344 return results; in parseGfxInfoMetrics()
|
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/loggers/ |
D | DeviceFileLoggerHostTest.java | 77 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/ |
D | SimpleperfHelper.java | 209 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/flicker/test/src/com/android/server/wm/flicker/ |
D | TransitionRunnerTest.kt | 122 val results = runner.execute(flicker).runResults in storesSuccessExecutionStatusInRunResult() constant 123 for (result in results) { in storesSuccessExecutionStatusInRunResult() 137 val results = runner.execute(flicker).runResults in storesFailedExecutionStatusInRunResult() constant 138 for (result in results) { in storesFailedExecutionStatusInRunResult()
|
/platform_testing/libraries/collectors-helper/generic/src/com/android/helpers/ |
D | GenericExecutableCollectorHelper.java | 82 Map<String, String> results = new HashMap<>(); in getMetrics() local 86 results.putAll(execAndGetResults(path)); in getMetrics() 91 return results; in getMetrics()
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | ClassMetricRuleTest.java | 77 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/ |
D | ProcessStatusTracker.java | 184 List<RunningAppProcessInfo> results = new ArrayList<RunningAppProcessInfo>(); in getRunningAppProcesses() local 198 results.add(new RunningAppProcessInfo(proc, pid, null)); in getRunningAppProcesses() 215 return results; in getRunningAppProcesses()
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/service/ |
D | AssertionEngine.kt | 131 val results = assertions.associate { in <lambda>() constant 136 return results in <lambda>()
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/ |
D | FlickerRunResult.kt | 288 val results = buildTraceResults(testName, iteration, status).toMutableList() in buildAll() constant 290 results.add(buildEventLogResult(status = status)) in buildAll() 293 return results in buildAll()
|
/platform_testing/libraries/tradefed-python-lib/tradefed_py/ |
D | tf_runner.py | 201 results = map(len, (result.expectedFailures, 204 expectedFails, unexpectedSuccesses, skipped = results
|