/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/ |
D | UiBenchJankTests.java | 42 private UiBenchJankTestsHelper mHelper; field in UiBenchJankTests 49 mHelper = UiBenchJankTestsHelper.getInstance( in setUp() 60 mHelper.launchActivity("DialogListActivity", "Dialog"); in openDialogList() 61 mHelper.mContents = mDevice.wait(Until.findObject( in openDialogList() 63 Assert.assertNotNull("Dialog List View isn't found", mHelper.mContents); in openDialogList() 69 mHelper.flingUpDown(mHelper.mContents, 1); in testDialogListFling() 73 mHelper.launchActivity("FullscreenOverdrawActivity", in openFullscreenOverdraw() 84 mHelper.launchActivity("GlTextureViewActivity", in openGLTextureView() 95 mHelper.launchActivity("InvalidateActivity", in openInvalidate() 106 mHelper.launchActivity("InvalidateTreeActivity", in openInvalidateTree() [all …]
|
D | UiBenchTextJankTests.java | 40 private UiBenchJankTestsHelper mHelper; field in UiBenchTextJankTests 47 mHelper = UiBenchJankTestsHelper.getInstance( in setUp() 59 mHelper.launchActivity("EditTextTypeActivity", in openEditTextTyping() 73 mHelper.launchActivity("TextCacheHighHitrateActivity", in openLayoutCacheHighHitrate() 75 mHelper.mContents = mDevice.wait(Until.findObject( in openLayoutCacheHighHitrate() 76 By.clazz(ListView.class)), mHelper.TIMEOUT); in openLayoutCacheHighHitrate() 78 mHelper.mContents); in openLayoutCacheHighHitrate() 85 mHelper.flingUpDown(mHelper.mContents, 3); in testLayoutCacheHighHitrateFling() 90 mHelper.launchActivity("TextCacheLowHitrateActivity", in openLayoutCacheLowHitrate() 92 mHelper.mContents = mDevice.wait(Until.findObject( in openLayoutCacheLowHitrate() [all …]
|
D | UiBenchRenderingJankTests.java | 41 private UiBenchJankTestsHelper mHelper; field in UiBenchRenderingJankTests 48 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp() 60 mHelper.launchActivity("BitmapUploadActivity", in openBitmapUpload() 73 mHelper.launchActivity("ShadowGridActivity", in openRenderingList() 75 mHelper.mContents = mDevice.wait(Until.findObject( in openRenderingList() 76 By.clazz(ListView.class)), mHelper.TIMEOUT); in openRenderingList() 77 Assert.assertNotNull("Shadow Grid list isn't found", mHelper.mContents); in openRenderingList() 84 mHelper.flingUpDown(mHelper.mContents, 1); in testShadowGridListFling()
|
D | UiBenchWebView.java | 36 private UiBenchJankTestsHelper mHelper; field in UiBenchWebView 43 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp() 55 mHelper.launchActivity("ScrollableWebViewActivity", in openScrollableWebView() 57 mHelper.mContents = mDevice.wait(Until.findObject( in openScrollableWebView() 58 By.res("android", "content")), mHelper.TIMEOUT); in openScrollableWebView() 65 mHelper.flingUpDown(mHelper.mContents, 1); in testWebViewFling()
|
D | UiBenchTransitionsJankTests.java | 39 private UiBenchJankTestsHelper mHelper; field in UiBenchTransitionsJankTests 46 mHelper = UiBenchJankTestsHelper.getInstance( in setUp() 58 mHelper.launchActivity("ActivityTransition", in openActivityTransition() 65 By.res(mHelper.PACKAGE_NAME, imageName)), mHelper.TIMEOUT); in clickImage() 67 image.clickAndWait(Until.newWindow(), mHelper.TIMEOUT); in clickImage()
|
D | UiBenchLeanbackJankTests.java | 71 protected UiBenchJankTestsHelper mHelper; field in UiBenchLeanbackJankTests 78 mHelper = UiBenchJankTestsHelper.getInstance( in setUp() 90 mHelper.pressKeyCode(KeyEvent.KEYCODE_DPAD_DOWN); in scrollDownAndUp() 93 mHelper.pressKeyCode(KeyEvent.KEYCODE_DPAD_UP); in scrollDownAndUp() 104 mHelper.launchActivity(option.activity(), extrasBundle, option.expectedText()); in beforeTest()
|
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/ |
D | UiBenchJankTests.java | 45 private UiBenchJankTestsHelper mHelper; field in UiBenchJankTests 51 mHelper = UiBenchJankTestsHelper.getInstance(mDevice, in setUp() 63 mHelper.launchUiBench(); in openGeneralComponents() 64 mHelper.openTextInList("General"); in openGeneralComponents() 65 mHelper.openTextInList(componentName); in openGeneralComponents() 79 By.res("android", "content")), mHelper.TIMEOUT); in testFullscreenOverdraw() 81 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testFullscreenOverdraw() 94 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testGLTextureView() 107 By.res("android", "content")), mHelper.TIMEOUT); in testInvalidate() 109 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testInvalidate() [all …]
|
D | UiBenchTextJankTests.java | 47 private UiBenchJankTestsHelper mHelper; field in UiBenchTextJankTests 54 mHelper = UiBenchJankTestsHelper.getInstance(mDevice, in setUp() 56 mHelper.enableKeyboardIME(false); in setUp() 62 mHelper.enableKeyboardIME(true); in tearDown() 68 mHelper.launchUiBench(); in openTextComponents() 69 mHelper.openTextInList("Text"); in openTextComponents() 70 mHelper.openTextInList(componentName); in openTextComponents() 83 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testEditTextTyping() 97 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheHighHitrateFling() 101 for (int i = 0; i < mHelper.INNER_LOOP; i++) { in testLayoutCacheHighHitrateFling() [all …]
|
D | UiBenchRenderingJankTests.java | 45 private UiBenchJankTestsHelper mHelper; field in UiBenchRenderingJankTests 52 mHelper = UiBenchJankTestsHelper.getInstance(mDevice, in setUp() 64 mHelper.launchUiBench(); in openRenderingComponents() 65 mHelper.openTextInList("Rendering"); in openRenderingComponents() 66 mHelper.openTextInList(componentName); in openRenderingComponents() 79 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testBitmapUploadJank() 93 By.clazz(ListView.class)), mHelper.TIMEOUT); in testShadowGridListFling() 96 for (int i = 0; i < mHelper.INNER_LOOP; i++) { in testShadowGridListFling() 98 By.clazz(ListView.class)), mHelper.TIMEOUT); in testShadowGridListFling() 100 SystemClock.sleep(mHelper.SHORT_TIMEOUT); in testShadowGridListFling() [all …]
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | HeapDumpListenerTest.java | 46 @Mock private HeapDumpHelper mHelper; field in HeapDumpListenerTest 59 HeapDumpListener collector = new HeapDumpListener(enableAllBundle, mHelper); in testHeapCollectionEnableAllIterations() 64 verify(mHelper, times(1)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllIterations() 72 HeapDumpListener collector = new HeapDumpListener(disableAllBundle, mHelper); in testHeapCollectionEnableAllFlagDisabled() 77 verify(mHelper, times(0)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllFlagDisabled() 84 HeapDumpListener collector = new HeapDumpListener(defaultDisabledAllBundle, mHelper); in testHeapCollectionEnableAllDisabledByDefault() 89 verify(mHelper, times(0)).startCollecting("run_test_one_1"); in testHeapCollectionEnableAllDisabledByDefault() 98 HeapDumpListener collector = new HeapDumpListener(enableSpecificIterationsBundle, mHelper); in testHeapCollectionSpecificIterations() 105 verify(mHelper, times(1)).startCollecting("run_test_one_2"); in testHeapCollectionSpecificIterations() 106 verify(mHelper, times(1)).startCollecting("run_test_one_3"); in testHeapCollectionSpecificIterations() [all …]
|
D | BinderListenerTest.java | 46 @Mock private BinderCollectionHelper mHelper; field in BinderListenerTest 61 BinderListener collector = new BinderListener(singleProcessBundle, mHelper); in testCollect_singleSpecificProcess() 66 verify(mHelper).addTrackedProcesses("com.android.systemui"); in testCollect_singleSpecificProcess() 79 BinderListener collector = new BinderListener(multiProcessBundle, mHelper); in testCollect_multiSpecificProcess() 84 verify(mHelper).addTrackedProcesses("com.android.systemui", "system"); in testCollect_multiSpecificProcess() 93 BinderListener collector = new BinderListener(new Bundle(), mHelper); in testCollect_noSpecificProcess() 98 verify(mHelper, never()).addTrackedProcesses(anyString()); in testCollect_noSpecificProcess()
|
D | JankListenerTest.java | 46 @Mock private JankCollectionHelper mHelper; field in JankListenerTest 61 JankListener collector = new JankListener(twoProcBundle, mHelper); in testCollect_specificProcess() 66 verify(mHelper, times(1)).addTrackedPackages("pkg1", "pkg2"); in testCollect_specificProcess() 75 JankListener collector = new JankListener(new Bundle(), mHelper); in testCollect_allProcesses() 80 verify(mHelper, never()).addTrackedPackages(anyString()); in testCollect_allProcesses()
|
D | SfStatsListenerTest.java | 41 @Mock private SfStatsCollectionHelper mHelper; field in SfStatsListenerTest 51 SfStatsListener collector = new SfStatsListener(new Bundle(), mHelper); in testCollect_allProcesses()
|
/platform_testing/libraries/collectors-helper/power/test/src/com/android/helpers/ |
D | PwrStatsUtilHelperTest.java | 39 private @Spy PwrStatsUtilHelper mHelper; field in PwrStatsUtilHelperTest 57 doReturn(metric_output).when(mHelper).executeShellCommand(matches("kill -INT \\d+")); in successfulRun() 58 doReturn(pid_output).when(mHelper).executeShellCommand(matches("pwrstats_util -d .*")); in successfulRun() 64 assertTrue(mHelper.startCollecting()); in successfulRun() 65 assertNotNull(mHelper.mLogFile); in successfulRun() 67 "Expecting PID " + mHelper.mUtilPid + " to be greater than 0", in successfulRun() 68 (mHelper.mUtilPid > 0)); in successfulRun() 71 Map<String, Long> metrics = mHelper.getMetrics(); in successfulRun() 75 assertTrue(mHelper.stopCollecting()); in successfulRun()
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/ |
D | HelperAccessor.java | 32 private T mHelper; field in HelperAccessor 43 mHelper = null; in withPrefix() 49 if (mHelper == null) { in get() 51 mHelper = in get() 57 mHelper = in get() 64 return mHelper; in get()
|
D | HelperTest.java | 64 protected T mHelper; field in HelperTest 147 if (mHelper == null) { in getHelper() 148 mHelper = HelperManager.getInstance( in getHelper() 154 return mHelper; in getHelper()
|
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/ |
D | GarbageCollectionHelperTest.java | 45 private GarbageCollectionHelper mHelper; field in GarbageCollectionHelperTest 61 mHelper = new TestableGarbageCollectionHelper(); in setUp() 69 mHelper.garbageCollect(TEST_POST_GC_WAIT_TIME_MS); in testNoSetUp() 79 mHelper.setUp("package.name1"); in testOneAppToGc() 80 mHelper.garbageCollect(TEST_POST_GC_WAIT_TIME_MS); in testOneAppToGc() 92 mHelper.setUp("package.name1", "package.name2", "package.name3"); in testMultipleAppsToGc() 93 mHelper.garbageCollect(TEST_POST_GC_WAIT_TIME_MS); in testMultipleAppsToGc() 109 mHelper.setUp("does.not.exist", "package.name1"); in testSkipsGcOnDneApp() 110 mHelper.garbageCollect(TEST_POST_GC_WAIT_TIME_MS); in testSkipsGcOnDneApp()
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | JankCollectionHelperTest.java | 98 private JankCollectionHelper mHelper; field in JankCollectionHelperTest 103 mHelper = Mockito.spy(new JankCollectionHelper()); in setUp() 104 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp() 113 mHelper.addTrackedPackages("pkg1"); in testCollect_valuesMatch() 114 mHelper.startCollecting(); in testCollect_valuesMatch() 115 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_valuesMatch() 148 mHelper.stopCollecting(); in testCollect_valuesMatch() 157 mHelper.addTrackedPackages("pkg1"); in testCollect_singlePackage() 158 mHelper.startCollecting(); in testCollect_singlePackage() 159 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_singlePackage() [all …]
|
D | BinderCollectionHelperTest.java | 45 private BinderCollectionHelper mHelper; field in BinderCollectionHelperTest 93 mHelper = Mockito.spy(new BinderCollectionHelper()); in setUp() 94 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp() 100 mHelper.addTrackedProcesses(process); in testParser_zeroCount() 102 mHelper.parseMetrics(getBufferedReader(), result); in testParser_zeroCount() 109 mHelper.addTrackedProcesses(process); in testParser_multiCount() 111 mHelper.parseMetrics(getBufferedReader(), result); in testParser_multiCount()
|
D | SfStatsCollectionHelperTest.java | 135 private SfStatsCollectionHelper mHelper; field in SfStatsCollectionHelperTest 140 mHelper = Mockito.spy(new SfStatsCollectionHelper()); in setUp() 141 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp() 150 mHelper.startCollecting(); in testCollect_valuesMatch() 151 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_valuesMatch() 285 mHelper.stopCollecting(); in testCollect_valuesMatch()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | BaseCollectionListener.java | 45 protected ICollectorHelper mHelper; field in BaseCollectionListener 61 mHelper = helper; in BaseCollectionListener() 114 mHelper.stopCollecting(); in onTestEnd() 125 mHelper.stopCollecting(); in onTestRunEnd() 132 mHelper.startCollecting(); in testStart() 134 mHelper.startCollecting(filter); in testStart() 139 mHelper = helper; in createHelperInstance() 143 Map<String, T> metrics = mHelper.getMetrics(); in collectMetrics()
|
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
D | CpuUsageHelperTest.java | 56 private HelperAccessor<ICalculatorHelper> mHelper = field in CpuUsageHelperTest 79 mHelper.get().open(); in testCpuUsageMetrics() 84 mHelper.get().exit(); in testCpuUsageMetrics() 100 mHelper.get().open(); in testCpuUsageMetricsKey() 124 mHelper.get().exit(); in testCpuUsageMetricsKey() 135 mHelper.get().open(); in testCpuDisabledPerPkg() 140 mHelper.get().exit(); in testCpuDisabledPerPkg() 152 mHelper.get().open(); in testCpuUsageOnlyPerPkg() 159 mHelper.get().exit(); in testCpuUsageOnlyPerPkg() 169 mHelper.get().open(); in testCpuEnableCpuUtilization() [all …]
|
D | AppStartupHelperTest.java | 85 private HelperAccessor<ICalculatorHelper> mHelper = field in AppStartupHelperTest 127 mHelper.get().open(); in testSingleColdLaunchMetric() 171 mHelper.get().exit(); in testSingleColdLaunchMetric() 180 mHelper.get().open(); in testMultipleColdLaunchMetric() 182 mHelper.get().exit(); in testMultipleColdLaunchMetric() 184 mHelper.get().open(); in testMultipleColdLaunchMetric() 212 mHelper.get().exit(); in testMultipleColdLaunchMetric() 214 mHelper.get().exit(); in testMultipleColdLaunchMetric() 225 mHelper.get().open(); in testDifferentAppColdLaunchMetric() 227 mHelper.get().exit(); in testDifferentAppColdLaunchMetric() [all …]
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/listeners/ |
D | FailureScreenshotTestWatcher.java | 36 private IAppHelper mHelper; field in FailureScreenshotTestWatcher 39 mHelper = helper; in setHelper() 45 if (!mHelper.captureScreenshot(String.format(SCREENSHOT_NAME_FORMAT, in failed()
|
/platform_testing/libraries/device-collectors/src/main/platform-collectors/src/android/device/collectors/ |
D | AppStartupListener.java | 44 AppStartupHelper appstartupHelper = (AppStartupHelper) mHelper; in setupAdditionalArgs()
|