Home
last modified time | relevance | path

Searched refs:getMetrics (Results 1 – 25 of 68) sorted by relevance

123

/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/
DDeviceCollectorsTest.java98 assertTrue(res.getMetrics().containsKey("test_start")); in testBaseListenerRuns()
99 assertTrue(res.getMetrics().containsKey("test_end")); in testBaseListenerRuns()
128 assertFalse(testCaseResult.getMetrics().containsKey("test_start")); in testBaseListenerRuns_withExcludeFilters()
129 assertFalse(testCaseResult.getMetrics().containsKey("test_fail")); in testBaseListenerRuns_withExcludeFilters()
130 assertFalse(testCaseResult.getMetrics().containsKey("test_end")); in testBaseListenerRuns_withExcludeFilters()
158 assertFalse(testCaseResult.getMetrics().containsKey("test_start")); in testBaseListenerRuns_withIncludeAndExcludeFilters()
159 assertFalse(testCaseResult.getMetrics().containsKey("test_fail")); in testBaseListenerRuns_withIncludeAndExcludeFilters()
160 assertFalse(testCaseResult.getMetrics().containsKey("test_end")); in testBaseListenerRuns_withIncludeAndExcludeFilters()
191 assertTrue(testResult.getValue().getMetrics().containsKey("test_start")); in testBaseListenerRuns_withIncludeFilters()
192 assertTrue(testResult.getValue().getMetrics().containsKey("test_end")); in testBaseListenerRuns_withIncludeFilters()
[all …]
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DHeapDumpHelperTest.java54 for (Map.Entry<String, String> entry : mHeapDumpHelper.getMetrics().entrySet()) { in tearDown()
63 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testSuccessfulHeapDumpCollection()
71 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testHeapCollectionProcessWithSpecialChars()
82 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testSuccessfulHeapDumpCollectionForTwoProcesses()
90 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testHeapDumpNotCollectedWithEmptyId()
DTotalPssHelperTest.java63 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testEmptyProcessName()
71 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testNullProcessName()
79 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testGetMetrics_OneProcess()
89 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testGetMetrics_MultipleProcesses()
101 Map<String, Long> pssMetrics = mTotalPssHelper.getMetrics(); in testGetMetrics_InvalidProcess()
DDumpsysMeminfoHelperTest.java68 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_noProcess()
77 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_nullProcess()
85 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongProcesses()
93 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_oneProcess()
103 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_multipleProcesses()
DShowmapSnapshotHelperTest.java111 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testEmptyProcessName()
158 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_AllProcess()
176 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_Invalid_Metric_Pattern()
189 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_Empty_Metric_Pattern()
201 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_Summation_Metric_Pattern()
213 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_verify_child_processes_metrics()
238 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_parent_process_child_processes_metrics()
271 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testProcessList()
DPinnerHelperTest.java106 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testPinnerSnapshotDumpFile()
118 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testPinnerTotalFileSizeMetric()
130 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testSystemFileSizeMetrics()
145 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testIndividualAppFileSizeMetrics()
160 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testValidateTotalFileSizeCount()
200 Map<String, String> metrics = mMockedPinnerHelper.getMetrics(); in testOnlySystemPinnerInfoIsPresent()
226 Map<String, String> metrics = mMockedPinnerHelper.getMetrics(); in testOnlyAppPinnerMetricsInfoIsPresent()
266 Map<String, String> metrics = mMockedPinnerHelper.getMetrics(); in testMetricMapResetOnMultipleGetMetrics()
280 Map<String, String> metrics2 = mMockedPinnerHelper.getMetrics(); in testMetricMapResetOnMultipleGetMetrics()
DProcessShowmapHelperTest.java72 Map<String, Long> showmapMetrics = mShowmapHelper.getMetrics(); in testEmptyProcessName()
90 Map<String, Long> showmapMetrics = mShowmapHelper.getMetrics(); in testGetMetrics_OneProcess()
100 Map<String, Long> showmapMetrics = mShowmapHelper.getMetrics(); in testGetMetrics_MultipleProcesses()
DMemLeaksHelperTest.java146 Map<String, Long> metrics = mMemLeaksHelper.getMetrics(); in testGetMetricsNoIncrease()
320 Map<String, Long> metrics = mMemLeaksHelper.getMetrics(); in testGetMetricsHasIncrease()
419 Map<String, Long> metrics = mMemLeaksHelper.getMetrics(); in testNoUnreachableMemory()
484 Map<String, Long> metrics = mMemLeaksHelper.getMetrics(); in testNoProcessName()
535 Map<String, Long> metrics = mMemLeaksHelper.getMetrics(); in testEnclosedProcessName()
946 Map<String, Long> metrics = mMemLeaksHelper.getMetrics(); in testByGivenNamesDiffOff()
1392 Map<String, Long> metrics = mMemLeaksHelper.getMetrics(); in testByGivenNamesDiffOn()
1448 Map<String, Long> metrics = mMemLeaksHelper.getMetrics(); in testByGivenEmptyNames()
/platform_testing/libraries/collectors-helper/app/test/src/com/android/helpers/tests/
DAppVersionHelperTest.java64 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testEmptyPackageName()
73 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testNullPackageName()
82 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testGetMetrics_OnePackage()
95 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testGetMetrics_MultiplePackages()
115 Map<String, Long> appVersionMetrics = mAppVersionHelper.getMetrics(); in testGetMetrics_InvalidPackage()
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/
DProcLoadHelperTest.java59 Map<String, Double> procLoadMetric = mLoadHelper.getMetrics(); in testThresholdSuccess()
71 Map<String, Double> procLoadMetric = mLoadHelper.getMetrics(); in testProcLoadWaitTimeMetric()
85 Map<String, Double> procLoadMetric = mLoadHelper.getMetrics(); in testMetricAfterTimeout()
101 Map<String, Double> procLoadMetric = mLoadHelper.getMetrics(); in testWaitForTimeout()
110 Map<String, Double> procLoadMetric = mLoadHelper.getMetrics(); in testDefaults()
DDumpsysServiceHelperTest.java71 Map<String, String> results = mDumpsysServiceHelper.getMetrics(); in testCollectDumpsys_noService()
82 Map<String, String> results = mDumpsysServiceHelper.getMetrics(); in testCollectDumpsys_oneService()
100 Map<String, String> results = mDumpsysServiceHelper.getMetrics(); in testCollectDumpsys_multipleServices()
DTimeInStateHelperTest.java79 Map<String, Long> results = mTimeInStateHelper.getMetrics(); in testCollectTimeInState_noSource()
97 Map<String, Long> results = mTimeInStateHelper.getMetrics(); in testCollectTimeInState_oneSource()
122 Map<String, Long> results = mTimeInStateHelper.getMetrics(); in testCollectTimeInState_multipleSources()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DCpuUsageHelperTest.java80 Map<String, Long> cpuUsage = mCpuUsageHelper.getMetrics(); in testCpuUsageMetrics()
104 for (Map.Entry<String, Long> cpuUsageEntry : mCpuUsageHelper.getMetrics().entrySet()) { in testCpuUsageMetricsKey()
136 Map<String, Long> cpuUsage = mCpuUsageHelper.getMetrics(); in testCpuDisabledPerPkg()
153 Map<String, Long> cpuUsage = mCpuUsageHelper.getMetrics(); in testCpuUsageOnlyPerPkg()
155 for (Map.Entry<String, Long> cpuUsageEntry : mCpuUsageHelper.getMetrics().entrySet()) { in testCpuUsageOnlyPerPkg()
170 Map<String, Long> cpuUsage = mCpuUsageHelper.getMetrics(); in testCpuEnableCpuUtilization()
DCrashHelperTest.java100 Map<String, Integer> crashMap = mCrashHelper.getMetrics(); in testEmptyCrashMetric()
118 Map<String, Integer> crashMap = mCrashHelper.getMetrics(); in testCrashMetric()
137 Map<String, Integer> crashMap = mCrashHelper.getMetrics(); in testNativeCrashMetric()
156 Map<String, Integer> crashMap = mCrashHelper.getMetrics(); in testAnrMetric()
185 Map<String, Integer> crashMap = mCrashHelper.getMetrics(); in testMultipleCrashMetric()
DUiActionLatencyHelperTest.java67 assertTrue(mActionLatencyHelper.getMetrics().isEmpty()); in testEmptyMetric()
88 final Map<String, StringBuilder> latencyMetrics = mActionLatencyHelper.getMetrics(); in testQuickSwitchMetric()
DUiInteractionFrameInfoHelperTest.java67 assertTrue(mInteractionFrameHelper.getMetrics().isEmpty()); in testEmptyMetric()
86 final Map<String, StringBuilder> frameMetrics = mInteractionFrameHelper.getMetrics(); in testShadeFlingMetric()
DBatteryUsageStatsHelperTest.java59 Map<String, Long> batteryUsageStats = mBatteryUsageStatsHelper.getMetrics(); in testBatteryUsageStatsMetrics()
115 Map<String, Long> batteryUsageStats = mBatteryUsageStatsHelper.getMetrics(); in testTotalConsumptionIsSumOfPerPackageConsumption()
141 Map<String, Long> batteryUsageStats = mBatteryUsageStatsHelper.getMetrics(); in testTotalDurationIsSumOfPerPackageDurations()
DAppStartupHelperTest.java117 assertTrue(mAppStartupHelper.getMetrics().isEmpty()); in testEmptyAppLaunchMetric()
128 Map<String, StringBuilder> appLaunchMetrics = mAppStartupHelper.getMetrics(); in testSingleColdLaunchMetric()
185 Map<String, StringBuilder> appLaunchMetrics = mAppStartupHelper.getMetrics(); in testMultipleColdLaunchMetric()
238 Map<String, StringBuilder> appLaunchMetrics = mAppStartupHelper.getMetrics(); in testDifferentAppColdLaunchMetric()
336 Map<String, StringBuilder> appLaunchMetrics = mAppStartupHelper.getMetrics(); in testWarmLaunchMetric()
368 Map<String, StringBuilder> appLaunchMetrics = mAppStartupHelper.getMetrics(); in testHotLaunchMetric()
401 Map<String, StringBuilder> appLaunchMetrics = mAppStartupHelper.getMetrics(); in testSingleLaunchStartupFullyDrawnMetric()
439 Map<String, StringBuilder> appLaunchMetrics = mAppStartupHelper.getMetrics(); in testMultipleLaunchStartupFullyDrawnMetric()
463 Map<String, StringBuilder> appLaunchMetrics = mAppStartupHelper.getMetrics(); in testDisableDetailedProcStartMetrics()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBaseCollectionListenerTest.java65 doReturn(new HashMap<String, String>()).when(helper).getMetrics(); in initListener()
106 verify(helper, times(1)).getMetrics(); in testPerTestFlow()
112 verify(helper, times(2)).getMetrics(); in testPerTestFlow()
159 verify(helper, times(1)).getMetrics(); in testPerTestFailureFlowNotCollectMetrics()
181 verify(helper, times(1)).getMetrics(); in testPerTestFailureFlowDefault()
205 verify(helper, times(0)).getMetrics(); in testPerTestFailureSkipMetrics()
225 verify(helper, times(1)).getMetrics(); in testInterleavingTestFailureMetricsSkip()
235 verify(helper, times(1)).getMetrics(); in testInterleavingTestFailureMetricsSkip()
241 verify(helper, times(2)).getMetrics(); in testInterleavingTestFailureMetricsSkip()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/service/
DWMFlickerServiceRuleForTestSpecTest.kt78 val metrics = flickerRule.getMetrics() in <lambda>()
85 val metrics = flickerRule.getMetrics() in <lambda>()
93 val metrics = flickerRule.getMetrics() in <lambda>()
107 val metrics = flickerRule.getMetrics() in <lambda>()
120 val metrics = flickerRule.getMetrics() in <lambda>()
DFlickerMetricsCollectorRuleTest.kt62 val metrics = flickerRule.getMetrics() in <lambda>()
69 val metrics = flickerRule.getMetrics() in <lambda>()
84 val metrics = flickerRule.getMetrics() in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/rules/
DFlickerResultsCollector.kt39 fun getMetrics(): Map<String, Int> { in getMetrics() method
83 override fun getMetrics(): Map<String, Int> { in getMetrics() method in com.android.server.wm.flicker.rules.FlickerResultsCollector.CollectionHelper
DFlickerMetricsCollectorRule.kt82 fun getMetrics(): Map<String, Int> { in <lambda>() method
83 return collectionListener.getMetrics() in <lambda>()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DICollectorHelper.java35 Map<String, T> getMetrics(); in getMetrics() method
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DJankCollectionHelperTest.java115 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_valuesMatch()
159 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_singlePackage()
180 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_multiPackage()
215 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_allPackages()
260 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_ignoreMissingFields()
324 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_firstValuesMatch()
373 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_ignoreUnknownField()
435 mHelper.getMetrics(); in testCollect_delayExceptions_onGet()
504 mHelper.getMetrics(); in testFailures_noPackageOnGet()

123