Home
last modified time | relevance | path

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

123

/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DHeapDumpHelperTest.java55 for (Map.Entry<String, String> entry : mHeapDumpHelper.getMetrics().entrySet()) { in tearDown()
64 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testHeapDumpCollectionNoProcess()
74 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testSuccessfulHeapDumpCollection()
90 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testHeapCollectionProcessWithSpecialChars()
107 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testSuccessfulHeapDumpCollectionForTwoProcesses()
131 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testSuccessfulNativeHeapDumpCollectionForTwoProcesses()
164 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testHeapDumpNotCollectedWithEmptyId()
175 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testHeapDumpCollectionForInvalidProcesses()
193 Map<String, String> metrics = mHeapDumpHelper.getMetrics(); in testNativeHeapDumpCollectionForInvalidProcesses()
DDumpsysMeminfoHelperTest.java91 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_noProcess()
100 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_nullProcess()
108 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_nullProcessObjectMap()
116 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongProcesses()
128 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongProcessesNameInProcessObjectMap()
140 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_wrongObjectNameInProcessObjectMap()
149 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_oneProcess()
159 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_multipleProcesses()
175 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_oneProcessObjectMap()
190 Map<String, Long> results = mDumpsysMeminfoHelper.getMetrics(); in testCollectMeminfo_twoProcessObjectMap()
[all …]
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()
DShowmapSnapshotHelperTest.java134 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testEmptyProcessName()
192 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_MixedProcess()
224 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_CachedProcess()
256 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_AllProcess()
273 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_Invalid_Metric_Pattern()
286 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_Empty_Metric_Pattern()
298 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_Summation_Metric_Pattern()
310 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_verify_child_processes_metrics()
347 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testGetMetrics_parent_process_child_processes_metrics()
383 Map<String, String> metrics = mShowmapSnapshotHelper.getMetrics(); in testProcessList()
[all …]
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()
DPinnerHelperTest.java90 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testPinnerSnapshotDumpFile()
102 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testPinnerTotalFileSizeMetric()
114 Map<String, String> metrics = mPinnerHelper.getMetrics(); in testValidateTotalFileSizeCount()
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/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/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()
DUiInteractionFrameInfoHelperTest.java67 assertTrue(mInteractionFrameHelper.getMetrics().isEmpty()); in testEmptyMetric()
86 final Map<String, StringBuilder> frameMetrics = mInteractionFrameHelper.getMetrics(); in testShadeFlingMetric()
DUiActionLatencyHelperTest.java67 assertTrue(mActionLatencyHelper.getMetrics().isEmpty()); in testEmptyMetric()
88 final Map<String, StringBuilder> latencyMetrics = mActionLatencyHelper.getMetrics(); in testQuickSwitchMetric()
DBatteryUsageStatsHelperTest.java61 Map<String, Long> batteryUsageStats = mBatteryUsageStatsHelper.getMetrics(); in testBatteryUsageStatsMetrics()
117 Map<String, Long> batteryUsageStats = mBatteryUsageStatsHelper.getMetrics(); in testTotalConsumptionIsSumOfPerPackageConsumption()
143 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()
DThermalHelperTest.java117 mThermalHelper.getMetrics().get(THROTTLING_KEY).toString(), in testInitialMetricsWithoutEvents()
133 Map<String, StringBuilder> metrics = mThermalHelper.getMetrics(); in testSingleEvent()
163 Map<String, StringBuilder> metrics = mThermalHelper.getMetrics(); in testMultipleDifferentEvents()
183 Map<String, StringBuilder> metrics = mThermalHelper.getMetrics(); in testParseTemperature()
218 Map<String, StringBuilder> metrics = mThermalHelper.getMetrics(); in testParseTemperatureMock()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBaseCollectionListenerTest.java67 doReturn(new HashMap<String, String>()).when(helper).getMetrics(); in initListener()
108 verify(helper, times(1)).getMetrics(); in testPerTestFlow()
114 verify(helper, times(2)).getMetrics(); in testPerTestFlow()
161 verify(helper, times(1)).getMetrics(); in testPerTestFailureFlowNotCollectMetrics()
183 verify(helper, times(1)).getMetrics(); in testPerTestFailureFlowDefault()
207 verify(helper, times(0)).getMetrics(); in testPerTestFailureSkipMetrics()
219 when(helper.getMetrics()).thenThrow(RuntimeException.class); in testStopCollectingOnTestEndIfCollectionThrows()
237 when(helper.getMetrics()).thenThrow(RuntimeException.class); in testStopCollectingOnTestRunEndIfCollectionThrows()
264 verify(helper, times(1)).getMetrics(); in testInterleavingTestFailureMetricsSkip()
274 verify(helper, times(1)).getMetrics(); in testInterleavingTestFailureMetricsSkip()
[all …]
/platform_testing/libraries/collectors-helper/adservices/test/src/com/android/helpers/
DMeasurementLatencyHelperTest.java72 Map<String, Long> actual = mMeasurementLatencyHelper.getMetrics(); in testInitTimeInLogcat()
83 Map<String, Long> actual = mMeasurementLatencyHelper.getMetrics(); in testWithNonMatchingInput()
92 Map<String, Long> actual = mMeasurementLatencyHelper.getMetrics(); in testWithEmptyLogcat()
100 Map<String, Long> actual = mMeasurementLatencyHelper.getMetrics(); in testInputStreamThrowsException()
DSelectAdsLatencyHelperTest.java94 Map<String, Long> actual = mSelectAdsLatencyHelper.getMetrics(); in testInitTimeInLogcat()
110 Map<String, Long> actual = mSelectAdsLatencyHelper.getMetrics(); in testWithNonMatchingInput()
119 Map<String, Long> actual = mSelectAdsLatencyHelper.getMetrics(); in testWithEmptyLogcat()
127 Map<String, Long> actual = mSelectAdsLatencyHelper.getMetrics(); in testInputStreamThrowsException()
DJSScriptEngineLatencyHelperTest.java77 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testInitTimeInLogcat()
90 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testWithEmptyLogcat()
100 Map<String, Long> actual = mJSScriptEngineLatencyHelper.getMetrics(); in testInputStreamThrowsException()
DTopicsLatencyHelperTest.java73 Map<String, Long> topicsLatencyMetrics = mTopicsLatencyHelper.getMetrics(); in testGetMetrics()
84 Map<String, Long> topicsLatencyMetrics = mTopicsLatencyHelper.getMetrics(); in testEmptyLogcat_noMetrics()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DICollectorHelper.java35 Map<String, T> getMetrics(); in getMetrics() method

123