/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/collectors-helper/perfetto/test/src/com/android/helpers/tests/ |
D | PerfettoHelperTest.java | 75 assertFalse(mPerfettoHelper.startCollecting(null, false)); in testNullConfigName() 83 assertFalse(mPerfettoHelper.startCollecting("", false)); in testEmptyConfigName() 89 assertFalse(mPerfettoHelper.startCollecting("trace_config.textproto", false)); in testNullRootDirName() 98 assertFalse(mPerfettoHelper.startCollecting("trace_config.textproto", false)); in testEmptyRootDirName() 106 assertFalse(mPerfettoHelper.startCollecting("no_config.pb", false)); in testNoConfigFile() 114 assertTrue(mPerfettoHelper.startCollecting("trace_config.textproto", true)); in testPerfettoStartSuccess() 123 assertTrue(mPerfettoHelper.startCollecting("trace_config.textproto", true)); in testPerfettoValidOutputPath() 133 assertTrue(mPerfettoHelper.startCollecting("trace_config.textproto", true)); in testPerfettoInvalidOutputPath() 145 assertTrue(mPerfettoHelper.startCollecting("trace_config.textproto", true)); in testPerfettoSuccess() 162 assertFalse(mPerfettoHelper.startCollecting("trace_config.textproto", true)); in testPerfettoFailureInvalidConfigRoot()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | HeapDumpListenerTest.java | 63 verify(mHelper, times(1)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllIterations() 76 verify(mHelper, times(0)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllFlagDisabled() 88 verify(mHelper, times(0)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllDisabledByDefault() 104 verify(mHelper, times(1)).startCollecting("run_test_one_2"); in testHeapCollectionSpecificIterations() 105 verify(mHelper, times(1)).startCollecting("run_test_one_3"); in testHeapCollectionSpecificIterations() 124 verify(mHelper, times(1)).startCollecting("run_test_one_2"); in testHeapCollectionWithProcessNames() 125 verify(mHelper, times(1)).startCollecting("run_test_one_3"); in testHeapCollectionWithProcessNames() 142 verify(mHelper, times(1)).startCollecting("run_test_one_2"); in testHeapCollectionSpecificIterationsMultipleTests() 143 verify(mHelper, times(1)).startCollecting("run_test_two_2"); in testHeapCollectionSpecificIterationsMultipleTests() 163 verify(mHelper, times(1)).startCollecting("run_test_one_1"); in testEnableAllOverrideIndvidualIterationIdFlag() [all …]
|
D | BaseCollectionListenerTest.java | 64 doReturn(true).when(helper).startCollecting(); in initListener() 81 verify(helper, times(1)).startCollecting(); in testPerRunFlow() 83 verify(helper, times(1)).startCollecting(); in testPerRunFlow() 102 verify(helper, times(0)).startCollecting(); in testPerTestFlow() 104 verify(helper, times(1)).startCollecting(); in testPerTestFlow() 109 verify(helper, times(2)).startCollecting(); in testPerTestFlow() 127 verify(helper, times(0)).startCollecting(); in testDefaultOptionFlow() 129 verify(helper, times(1)).startCollecting(); in testDefaultOptionFlow() 133 verify(helper, times(2)).startCollecting(); in testDefaultOptionFlow() 152 verify(helper, times(0)).startCollecting(); in testPerTestFailureFlowNotCollectMetrics() [all …]
|
D | PerfettoListenerTest.java | 124 doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestSuccessFlow() 131 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestSuccessFlow() 149 doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestFailureFlowDefault() 156 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestFailureFlowDefault() 177 doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestFailureFlowWithSkipMmetrics() 184 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestFailureFlowWithSkipMmetrics() 202 doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean()); in testPerfettoDefaultStartWaitTime() 211 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoDefaultStartWaitTime() 228 doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean()); in testPerfettoCustomStartWaitTime() 237 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoCustomStartWaitTime() [all …]
|
D | SimpleperfListenerTest.java | 111 .startCollecting(eq("record"), eq(" -e instructions -p 680")); in testSingleRecordCallsWithUiDevice() 122 .startCollecting( in testRecordCallsWithUiDevice() 168 doReturn(true).when(mSimpleperfHelper).startCollecting(anyString(), anyString()); in testSimpleperfPerTestSuccessFlow() 175 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestSuccessFlow() 190 doReturn(true).when(mSimpleperfHelper).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowDefault() 197 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowDefault() 216 doReturn(true).when(mSimpleperfHelper).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowWithSkipMmetrics() 223 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerTestFailureFlowWithSkipMmetrics() 241 doReturn(true).when(mSimpleperfHelper).startCollecting(anyString(), anyString()); in testSimpleperfPerRunSuccessFlow() 246 verify(mSimpleperfHelper, times(1)).startCollecting(anyString(), anyString()); in testSimpleperfPerRunSuccessFlow() [all …]
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | ShowmapSnapshotHelperTest.java | 82 assertFalse(mShowmapSnapshotHelper.startCollecting()); in testSetUpNotCalled() 121 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testValidFile() 130 assertFalse(mShowmapSnapshotHelper.startCollecting()); in testInvalidFile() 157 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_AllProcess() 175 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_Invalid_Metric_Pattern() 188 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_Empty_Metric_Pattern() 200 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_Summation_Metric_Pattern() 212 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_verify_child_processes_metrics() 237 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testGetMetrics_parent_process_child_processes_metrics() 270 assertTrue(mShowmapSnapshotHelper.startCollecting()); in testProcessList()
|
D | DumpsysMeminfoHelperTest.java | 67 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_noProcess() 76 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_nullProcess() 84 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_wrongProcesses() 92 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_oneProcess() 102 mDumpsysMeminfoHelper.startCollecting(); in testCollectMeminfo_multipleProcesses()
|
D | HeapDumpHelperTest.java | 62 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-1")); in testSuccessfulHeapDumpCollection() 70 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-1")); in testHeapCollectionProcessWithSpecialChars() 81 assertTrue(mHeapDumpHelper.startCollecting("sample-heapdump-2")); in testSuccessfulHeapDumpCollectionForTwoProcesses() 89 assertFalse(mHeapDumpHelper.startCollecting("")); in testHeapDumpNotCollectedWithEmptyId()
|
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 | PinnerHelperTest.java | 78 assertFalse(mPinnerHelper.startCollecting()); in testSetUpNotCalled() 87 assertTrue(mPinnerHelper.startCollecting()); in testValidFile() 96 assertFalse(mPinnerHelper.startCollecting()); in testInvalidFile() 105 assertTrue(mPinnerHelper.startCollecting()); in testPinnerSnapshotDumpFile() 117 assertTrue(mPinnerHelper.startCollecting()); in testPinnerTotalFileSizeMetric() 129 assertTrue(mPinnerHelper.startCollecting()); in testSystemFileSizeMetrics() 144 assertTrue(mPinnerHelper.startCollecting()); in testIndividualAppFileSizeMetrics() 159 assertTrue(mPinnerHelper.startCollecting()); in testValidateTotalFileSizeCount()
|
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()
|
D | TimeInStateHelperTest.java | 77 mTimeInStateHelper.startCollecting(); in testCollectTimeInState_noSource() 92 mTimeInStateHelper.startCollecting(); in testCollectTimeInState_oneSource() 115 mTimeInStateHelper.startCollecting(); in testCollectTimeInState_multipleSources()
|
/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 | UiActionLatencyHelperTest.java | 59 assertTrue(mActionLatencyHelper.startCollecting()); in testConfig() 66 assertTrue(mActionLatencyHelper.startCollecting()); in testEmptyMetric() 82 assertTrue(mActionLatencyHelper.startCollecting()); in testQuickSwitchMetric()
|
D | UiInteractionFrameInfoHelperTest.java | 59 assertTrue(mInteractionFrameHelper.startCollecting()); in testConfig() 66 assertTrue(mInteractionFrameHelper.startCollecting()); in testEmptyMetric() 74 assertTrue(mInteractionFrameHelper.startCollecting()); in testShadeFlingMetric()
|
D | BatteryUsageStatsHelperTest.java | 51 assertTrue(mBatteryUsageStatsHelper.startCollecting()); in testBatteryUsageStatsConfig() 58 assertTrue(mBatteryUsageStatsHelper.startCollecting()); in testBatteryUsageStatsMetrics() 114 assertTrue(mBatteryUsageStatsHelper.startCollecting()); in testTotalConsumptionIsSumOfPerPackageConsumption() 140 assertTrue(mBatteryUsageStatsHelper.startCollecting()); in testTotalDurationIsSumOfPerPackageDurations()
|
D | ThermalHelperTest.java | 99 assertTrue(mThermalHelper.startCollecting()); in testThermalConfigRegistration() 107 assertFalse(mThermalHelper.startCollecting()); in testThermalConfigRegistration_noInitialValue() 114 assertTrue(mThermalHelper.startCollecting()); in testInitialMetricsWithoutEvents() 132 assertTrue(mThermalHelper.startCollecting()); in testSingleEvent() 162 assertTrue(mThermalHelper.startCollecting()); in testMultipleDifferentEvents() 182 assertTrue(mThermalHelper.startCollecting()); in testParseTemperature()
|
D | AppStartupHelperTest.java | 107 assertTrue(mAppStartupHelper.startCollecting()); in testAppLaunchConfig() 116 assertTrue(mAppStartupHelper.startCollecting()); in testEmptyAppLaunchMetric() 126 assertTrue(mAppStartupHelper.startCollecting()); in testSingleColdLaunchMetric() 179 assertTrue(mAppStartupHelper.startCollecting()); in testMultipleColdLaunchMetric() 224 assertTrue(mAppStartupHelper.startCollecting()); in testDifferentAppColdLaunchMetric() 332 assertTrue(mAppStartupHelper.startCollecting()); in testWarmLaunchMetric() 363 assertTrue(mAppStartupHelper.startCollecting()); in testHotLaunchMetric() 396 assertTrue(mAppStartupHelper.startCollecting()); in testSingleLaunchStartupFullyDrawnMetric() 425 assertTrue(mAppStartupHelper.startCollecting()); in testMultipleLaunchStartupFullyDrawnMetric() 461 assertTrue(mAppStartupHelper.startCollecting()); in testDisableDetailedProcStartMetrics()
|
/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() 179 mHelper.startCollecting(); in testCollect_multiPackage() 214 mHelper.startCollecting(); in testCollect_allPackages() 259 mHelper.startCollecting(); in testCollect_ignoreMissingFields() 323 mHelper.startCollecting(); in testCollect_firstValuesMatch() 372 mHelper.startCollecting(); in testCollect_ignoreUnknownField() 406 mHelper.startCollecting(); in testCollect_delayExceptions_onReset() 434 mHelper.startCollecting(); in testCollect_delayExceptions_onGet() 461 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()
|