/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | ICollectorHelper.java | 11 boolean startCollecting(); in startCollecting() method 17 default boolean startCollecting(String id) { in startCollecting() method 18 return startCollecting(); in startCollecting() 28 default boolean startCollecting(Function<String, Boolean> filters) { in startCollecting() method 29 return startCollecting(); in startCollecting()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | HeapDumpListenerTest.java | 64 verify(mHelper, times(1)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllIterations() 77 verify(mHelper, times(0)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllFlagDisabled() 89 verify(mHelper, times(0)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllDisabledByDefault() 105 verify(mHelper, times(1)).startCollecting("run_test_one_2"); in testHeapCollectionSpecificIterations() 106 verify(mHelper, times(1)).startCollecting("run_test_one_3"); in testHeapCollectionSpecificIterations() 125 verify(mHelper, times(1)).startCollecting("run_test_one_2"); in testHeapCollectionWithProcessNames() 126 verify(mHelper, times(1)).startCollecting("run_test_one_3"); in testHeapCollectionWithProcessNames() 143 verify(mHelper, times(1)).startCollecting("run_test_one_2"); in testHeapCollectionSpecificIterationsMultipleTests() 144 verify(mHelper, times(1)).startCollecting("run_test_two_2"); in testHeapCollectionSpecificIterationsMultipleTests() 164 verify(mHelper, times(1)).startCollecting("run_test_one_1"); in testEnableAllOverrideIndvidualIterationIdFlag() [all …]
|
D | BaseCollectionListenerTest.java | 66 doReturn(true).when(helper).startCollecting(); in initListener() 83 verify(helper, times(1)).startCollecting(); in testPerRunFlow() 85 verify(helper, times(1)).startCollecting(); in testPerRunFlow() 104 verify(helper, times(0)).startCollecting(); in testPerTestFlow() 106 verify(helper, times(1)).startCollecting(); in testPerTestFlow() 111 verify(helper, times(2)).startCollecting(); in testPerTestFlow() 129 verify(helper, times(0)).startCollecting(); in testDefaultOptionFlow() 131 verify(helper, times(1)).startCollecting(); in testDefaultOptionFlow() 135 verify(helper, times(2)).startCollecting(); in testDefaultOptionFlow() 154 verify(helper, times(0)).startCollecting(); in testPerTestFailureFlowNotCollectMetrics() [all …]
|
D | PerfettoListenerTest.java | 145 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoPerTestSuccessFlow() 152 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoPerTestSuccessFlow() 173 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoPerTestFailureFlowDefault() 180 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoPerTestFailureFlowDefault() 201 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoPerTestFailureFlowWithSkipMmetrics() 208 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoPerTestFailureFlowWithSkipMmetrics() 226 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoDefaultStartWaitTime() 235 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoDefaultStartWaitTime() 253 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoCustomStartWaitTime() 262 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoCustomStartWaitTime() [all …]
|
D | PerfettoTracingPerRunStrategyTest.java | 105 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceStartOnRunStart() 109 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoTraceStartOnRunStart() 117 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceStartOnRunStartMultiple() 121 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoTraceStartOnRunStartMultiple() 123 verify(mPerfettoHelper, times(2)).startCollecting(); in testPerfettoTraceStartOnRunStartMultiple() 131 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceEndOnRunEnd() 136 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoTraceEndOnRunEnd() 145 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceEndOnRunEndMultiple() 152 verify(mPerfettoHelper, times(2)).startCollecting(); in testPerfettoTraceEndOnRunEndMultiple() 163 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceDoesNotStartOnTestStart() [all …]
|
D | PerfettoTracingPerTestStrategyTest.java | 112 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceStartOnTestStart() 116 verify(mPerfettoHelper, times(0)).startCollecting(); in testPerfettoTraceStartOnTestStart() 118 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoTraceStartOnTestStart() 126 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceStartOnTestStartMultiple() 130 verify(mPerfettoHelper, times(0)).startCollecting(); in testPerfettoTraceStartOnTestStartMultiple() 133 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoTraceStartOnTestStartMultiple() 135 verify(mPerfettoHelper, times(2)).startCollecting(); in testPerfettoTraceStartOnTestStartMultiple() 143 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceEndOnRunEnd() 148 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoTraceEndOnRunEnd() 160 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceEndOnRunEndMultiple() [all …]
|
D | SimpleperfListenerTest.java | 112 .startCollecting(eq("record"), eq(" -e instructions -p 680")); in testSingleRecordCallsWithUiDevice() 123 .startCollecting( in testRecordCallsWithUiDevice() 169 doReturn(true).when(mSimpleperfHelper).startCollecting(anyString(), anyString()); in testSimpleperfPerTestSuccessFlow() 176 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestSuccessFlow() 191 doReturn(true).when(mSimpleperfHelper).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowDefault() 198 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowDefault() 217 doReturn(true).when(mSimpleperfHelper).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowWithSkipMmetrics() 224 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowWithSkipMmetrics() 242 doReturn(true).when(mSimpleperfHelper).startCollecting(anyString(), anyString()); in testSimpleperfPerRunSuccessFlow() 247 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerRunSuccessFlow() [all …]
|
D | PerfettoTracingPerClassStrategyTest.java | 108 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceStartOnFirstTestStart() 112 verify(mPerfettoHelper, times(0)).startCollecting(); in testPerfettoTraceStartOnFirstTestStart() 114 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoTraceStartOnFirstTestStart() 122 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceStartOncePerClass() 126 verify(mPerfettoHelper, times(0)).startCollecting(); in testPerfettoTraceStartOncePerClass() 131 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoTraceStartOncePerClass() 139 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceStartInClassChange() 148 verify(mPerfettoHelper, times(2)).startCollecting(); in testPerfettoTraceStartInClassChange() 156 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoTraceEndsOnRunEnds() 172 doReturn(true).when(mPerfettoHelper).startCollecting(); in testDoNotReportMetricOnTest() [all …]
|
/platform_testing/libraries/flicker/collector/test/src/android/tools/collectors/ |
D | DefaultUITraceListenerTest.java | 108 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoPerTestSuccessFlow() 115 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoPerTestSuccessFlow() 136 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoPerTestFailureFlowDefault() 143 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoPerTestFailureFlowDefault() 161 doReturn(true).when(mPerfettoHelper).startCollecting(); in testPerfettoPerRunSuccessFlow() 166 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoPerRunSuccessFlow() 168 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoPerRunSuccessFlow() 183 doReturn(false).when(mPerfettoHelper).startCollecting(); in testPerfettoPerRunFailureFlow() 187 verify(mPerfettoHelper, times(1)).startCollecting(); in testPerfettoPerRunFailureFlow() 199 doReturn(false).when(mPerfettoHelper).startCollecting(); in testPerfettoStartFailureFlow() [all …]
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | PinnerHelperTest.java | 68 assertFalse(mPinnerHelper.startCollecting()); in testSetUpNotCalled() 75 assertTrue(mPinnerHelper.startCollecting()); in testValidFile() 82 assertFalse(mPinnerHelper.startCollecting()); in testInvalidFile() 89 assertTrue(mPinnerHelper.startCollecting()); in testPinnerSnapshotDumpFile() 101 assertTrue(mPinnerHelper.startCollecting()); in testPinnerTotalFileSizeMetric() 113 assertTrue(mPinnerHelper.startCollecting()); in testValidateTotalFileSizeCount()
|
D | DumpsysMeminfoHelperTest.java | 90 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_noProcess() 99 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_nullProcess() 107 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_nullProcessObjectMap() 115 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_wrongProcesses() 127 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_wrongProcessesNameInProcessObjectMap() 139 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_wrongObjectNameInProcessObjectMap() 148 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_oneProcess() 158 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_multipleProcesses() 174 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_oneProcessObjectMap() 189 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_twoProcessObjectMap() [all …]
|
D | HeapDumpHelperTest.java | 63 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-1")); in testHeapDumpCollectionNoProcess() 73 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-1")); in testSuccessfulHeapDumpCollection() 89 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-1")); in testHeapCollectionProcessWithSpecialChars() 106 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-2")); in testSuccessfulHeapDumpCollectionForTwoProcesses() 130 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-2")); in testSuccessfulNativeHeapDumpCollectionForTwoProcesses() 163 assertFalse(mHeapDumpHelper.startCollecting("")); in testHeapDumpNotCollectedWithEmptyId() 174 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-2")); in testHeapDumpCollectionForInvalidProcesses() 192 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-2")); in testNativeHeapDumpCollectionForInvalidProcesses()
|
D | ProcessShowmapHelperTest.java | 65 assertFalse(mShowmapHelper.startCollecting()); in testSetUpNotCalled() 82 assertTrue(mShowmapHelper.startCollecting()); in testSamplesMemory() 89 assertTrue(mShowmapHelper.startCollecting()); in testGetMetrics_OneProcess() 99 assertTrue(mShowmapHelper.startCollecting()); in testGetMetrics_MultipleProcesses()
|
D | ShowmapSnapshotHelperTest.java | 105 assertFalse(mShowmapSnapshotHelper.startCollecting()); in testSetUpNotCalled() 144 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testValidFile() 153 assertFalse(mShowmapSnapshotHelper.startCollecting()); in testInvalidFile() 191 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_MixedProcess() 223 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_CachedProcess() 255 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_AllProcess() 272 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_Invalid_Metric_Pattern() 285 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_Empty_Metric_Pattern() 297 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_Summation_Metric_Pattern() 309 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_verify_child_processes_metrics() [all …]
|
D | MemLeaksHelperTest.java | 145 assertTrue(mMemLeaksHelper.startCollecting()); in testGetMetricsNoIncrease() 319 assertTrue(mMemLeaksHelper.startCollecting()); in testGetMetricsHasIncrease() 418 assertTrue(mMemLeaksHelper.startCollecting()); in testNoUnreachableMemory() 483 assertTrue(mMemLeaksHelper.startCollecting()); in testNoProcessName() 534 assertTrue(mMemLeaksHelper.startCollecting()); in testEnclosedProcessName() 945 assertTrue(mMemLeaksHelper.startCollecting()); in testByGivenNamesDiffOff() 1391 assertTrue(mMemLeaksHelper.startCollecting()); in testByGivenNamesDiffOn() 1447 assertTrue(mMemLeaksHelper.startCollecting()); in testByGivenEmptyNames()
|
/platform_testing/libraries/collectors-helper/system/test/src/com/android/helpers/tests/ |
D | ProcLoadHelperTest.java | 58 assertTrue(mLoadHelper.startCollecting()); in testThresholdSuccess() 70 assertTrue(mLoadHelper.startCollecting()); in testProcLoadWaitTimeMetric() 84 assertFalse(mLoadHelper.startCollecting()); in testMetricAfterTimeout() 98 assertFalse(mLoadHelper.startCollecting()); in testWaitForTimeout() 109 assertFalse(mLoadHelper.startCollecting()); in testDefaults()
|
D | DumpsysServiceHelperTest.java | 69 mDumpsysServiceHelper.startCollecting(); in testCollectDumpsys_noService() 80 mDumpsysServiceHelper.startCollecting(); in testCollectDumpsys_oneService() 98 mDumpsysServiceHelper.startCollecting(); in testCollectDumpsys_multipleServices()
|
/platform_testing/libraries/collectors-helper/simpleperf/test/src/com/android/helpers/tests/ |
D | SimpleperfHelperTest.java | 64 assertTrue(simpleperfHelper.startCollecting(DEFAULT_SUBCOMMAND, DEFAULT_ARGUMENTS)); in testSimpleperfStartSuccess() 70 assertTrue(simpleperfHelper.startCollecting(DEFAULT_SUBCOMMAND, DEFAULT_ARGUMENTS)); in testSimpleperfValidOutputPath() 77 assertTrue(simpleperfHelper.startCollecting(DEFAULT_SUBCOMMAND, DEFAULT_ARGUMENTS)); in testSimpleperfInvalidOutputPath() 85 assertTrue(simpleperfHelper.startCollecting(DEFAULT_SUBCOMMAND, DEFAULT_ARGUMENTS)); in testSimpleperfSuccess()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | CpuUsageHelperTest.java | 69 assertTrue(mCpuUsageHelper.startCollecting()); in testCpuUsageConfig() 78 assertTrue(mCpuUsageHelper.startCollecting()); in testCpuUsageMetrics() 99 assertTrue(mCpuUsageHelper.startCollecting()); in testCpuUsageMetricsKey() 134 assertTrue(mCpuUsageHelper.startCollecting()); in testCpuDisabledPerPkg() 151 assertTrue(mCpuUsageHelper.startCollecting()); in testCpuUsageOnlyPerPkg() 168 assertTrue(mCpuUsageHelper.startCollecting()); in testCpuEnableCpuUtilization()
|
D | CrashHelperTest.java | 90 assertTrue(mCrashHelper.startCollecting()); in testCrashConfig() 99 assertTrue(mCrashHelper.startCollecting()); in testEmptyCrashMetric() 115 assertTrue(mCrashHelper.startCollecting()); in testCrashMetric() 134 assertTrue(mCrashHelper.startCollecting()); in testNativeCrashMetric() 153 assertTrue(mCrashHelper.startCollecting()); in testAnrMetric() 171 assertTrue(mCrashHelper.startCollecting()); in testMultipleCrashMetric()
|
D | UiInteractionFrameInfoHelperTest.java | 59 assertTrue(mInteractionFrameHelper.startCollecting()); in testConfig() 66 assertTrue(mInteractionFrameHelper.startCollecting()); in testEmptyMetric() 74 assertTrue(mInteractionFrameHelper.startCollecting()); in testShadeFlingMetric()
|
D | UiActionLatencyHelperTest.java | 59 assertTrue(mActionLatencyHelper.startCollecting()); in testConfig() 66 assertTrue(mActionLatencyHelper.startCollecting()); in testEmptyMetric() 82 assertTrue(mActionLatencyHelper.startCollecting()); in testQuickSwitchMetric()
|
D | BatteryUsageStatsHelperTest.java | 53 assertTrue(mBatteryUsageStatsHelper.startCollecting()); in testBatteryUsageStatsConfig() 60 assertTrue(mBatteryUsageStatsHelper.startCollecting()); in testBatteryUsageStatsMetrics() 116 assertTrue(mBatteryUsageStatsHelper.startCollecting()); in testTotalConsumptionIsSumOfPerPackageConsumption() 142 assertTrue(mBatteryUsageStatsHelper.startCollecting()); in testTotalDurationIsSumOfPerPackageDurations()
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | JankCollectionHelperTest.java | 114 mHelper.startCollecting(); in testCollect_valuesMatch() 158 mHelper.startCollecting(); in testCollect_singlePackage() 183 mHelper.startCollecting(); in testCollect_multiPackage() 223 mHelper.startCollecting(); in testCollect_allPackages() 273 mHelper.startCollecting(); in testCollect_ignoreMissingFields() 338 mHelper.startCollecting(); in testCollect_firstValuesMatch() 387 mHelper.startCollecting(); in testCollect_ignoreUnknownField() 422 mHelper.startCollecting(); in testCollect_delayExceptions_onReset() 449 mHelper.startCollecting(); in testCollect_withFailures_stillReportsSuccessfulPackages() 474 mHelper.startCollecting(); in testFailures_cannotClear() [all …]
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | UiInteractionFrameInfoHelper.java | 50 public boolean startCollecting() { in startCollecting() method in UiInteractionFrameInfoHelper 59 public boolean startCollecting(@NonNull Function<String, Boolean> filters) { in startCollecting() method in UiInteractionFrameInfoHelper 61 return startCollecting(); in startCollecting()
|