Home
last modified time | relevance | path

Searched refs:mPerfettoHelper (Results 1 – 3 of 3) sorted by relevance

/platform_testing/libraries/collectors-helper/perfetto/test/src/com/android/helpers/tests/
DPerfettoHelperTest.java49 private PerfettoHelper mPerfettoHelper; field in PerfettoHelperTest
53 mPerfettoHelper = new PerfettoHelper(); in setUp()
54 mPerfettoHelper.setPerfettoConfigRootDir("/data/misc/perfetto-traces/"); in setUp()
59 mPerfettoHelper.setPerfettoConfigRootDir("/data/misc/perfetto-traces/"); in teardown()
61 mPerfettoHelper.stopCollecting(1000, "data/local/tmp/out.pb"); in teardown()
70 assertFalse(mPerfettoHelper.startCollecting(null, false)); in testNullConfigName()
78 assertFalse(mPerfettoHelper.startCollecting("", false)); in testEmptyConfigName()
83 mPerfettoHelper.setPerfettoConfigRootDir(null); in testNullRootDirName()
84 assertFalse(mPerfettoHelper.startCollecting("trace_config.textproto", false)); in testNullRootDirName()
92 mPerfettoHelper.setPerfettoConfigRootDir(""); in testEmptyRootDirName()
[all …]
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DPerfettoListenerTest.java76 @Spy private PerfettoHelper mPerfettoHelper; field in PerfettoListenerTest
105 mPerfettoHelper, in initListener()
124 doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestSuccessFlow()
125 doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString()); in testPerfettoPerTestSuccessFlow()
131 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestSuccessFlow()
133 verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), eq( in testPerfettoPerTestSuccessFlow()
149 doReturn(true).when(mPerfettoHelper).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestFailureFlowDefault()
150 doReturn(true).when(mPerfettoHelper).stopCollecting(anyLong(), anyString()); in testPerfettoPerTestFailureFlowDefault()
156 verify(mPerfettoHelper, times(1)).startCollecting(anyString(), anyBoolean()); in testPerfettoPerTestFailureFlowDefault()
163 verify(mPerfettoHelper, times(1)).stopCollecting(anyLong(), anyString()); in testPerfettoPerTestFailureFlowDefault()
[all …]
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DPerfettoListener.java108 private PerfettoHelper mPerfettoHelper = new PerfettoHelper(); field in PerfettoListener
139 mPerfettoHelper = helper; in PerfettoListener()
215 if (!mPerfettoHelper.stopPerfetto()) { in onTestEnd()
298 mPerfettoHelper.setPerfettoConfigRootDir(mConfigRootDir); in setupAdditionalArgs()
392 mPerfettoStartSuccess = mPerfettoHelper.startCollecting(mConfigFileName, in startPerfettoTracing()
404 if (!mPerfettoHelper.stopCollecting(mWaitTimeInMs, path.toString())) { in stopPerfettoTracing()