Home
last modified time | relevance | path

Searched refs:mHelper (Results 1 – 25 of 48) sorted by relevance

12

/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTests.java41 private UiBenchJankTestsHelper mHelper; field in UiBenchJankTests
48 mHelper = UiBenchJankTestsHelper.getInstance( in setUp()
59 mHelper.launchActivity("DialogListActivity", "Dialog"); in openDialogList()
60 mHelper.mContents = mDevice.wait(Until.findObject( in openDialogList()
62 Assert.assertNotNull("Dialog List View isn't found", mHelper.mContents); in openDialogList()
68 mHelper.flingUpDown(mHelper.mContents, 1); in testDialogListFling()
72 mHelper.launchActivity("FullscreenOverdrawActivity", in openFullscreenOverdraw()
83 mHelper.launchActivity("GlTextureViewActivity", in openGLTextureView()
94 mHelper.launchActivity("InvalidateActivity", in openInvalidate()
105 mHelper.launchActivity("InvalidateTreeActivity", in openInvalidateTree()
[all …]
DUiBenchTextJankTests.java39 private UiBenchJankTestsHelper mHelper; field in UiBenchTextJankTests
46 mHelper = UiBenchJankTestsHelper.getInstance( in setUp()
58 mHelper.launchActivity("EditTextTypeActivity", in openEditTextTyping()
72 mHelper.launchActivity("TextCacheHighHitrateActivity", in openLayoutCacheHighHitrate()
74 mHelper.mContents = mDevice.wait(Until.findObject( in openLayoutCacheHighHitrate()
75 By.clazz(ListView.class)), mHelper.TIMEOUT); in openLayoutCacheHighHitrate()
77 mHelper.mContents); in openLayoutCacheHighHitrate()
84 mHelper.flingUpDown(mHelper.mContents, 3); in testLayoutCacheHighHitrateFling()
89 mHelper.launchActivity("TextCacheLowHitrateActivity", in openLayoutCacheLowHitrate()
91 mHelper.mContents = mDevice.wait(Until.findObject( in openLayoutCacheLowHitrate()
[all …]
DUiBenchRenderingJankTests.java39 private UiBenchJankTestsHelper mHelper; field in UiBenchRenderingJankTests
46 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
58 mHelper.launchActivity("BitmapUploadActivity", in openBitmapUpload()
71 mHelper.launchActivity("ShadowGridActivity", in openRenderingList()
73 mHelper.mContents = mDevice.wait(Until.findObject( in openRenderingList()
74 By.clazz(ListView.class)), mHelper.TIMEOUT); in openRenderingList()
75 Assert.assertNotNull("Shadow Grid list isn't found", mHelper.mContents); in openRenderingList()
82 mHelper.flingUpDown(mHelper.mContents, 1); in testShadowGridListFling()
DUiBenchWebView.java36 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()
DUiBenchTransitionsJankTests.java38 private UiBenchJankTestsHelper mHelper; field in UiBenchTransitionsJankTests
45 mHelper = UiBenchJankTestsHelper.getInstance( in setUp()
57 mHelper.launchActivity("ActivityTransition", in openActivityTransition()
64 By.res(mHelper.PACKAGE_NAME, imageName)), mHelper.TIMEOUT); in clickImage()
66 image.clickAndWait(Until.newWindow(), mHelper.TIMEOUT); in clickImage()
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTests.java46 private UiBenchJankTestsHelper mHelper; field in UiBenchJankTests
52 mHelper = UiBenchJankTestsHelper.getInstance(mDevice, in setUp()
64 mHelper.launchUiBench(); in openGeneralComponents()
65 mHelper.openTextInList("General"); in openGeneralComponents()
66 mHelper.openTextInList(componentName); in openGeneralComponents()
80 By.res("android", "content")), mHelper.TIMEOUT); in testFullscreenOverdraw()
82 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testFullscreenOverdraw()
95 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testGLTextureView()
108 By.res("android", "content")), mHelper.TIMEOUT); in testInvalidate()
110 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testInvalidate()
[all …]
DUiBenchTextJankTests.java50 private UiBenchJankTestsHelper mHelper; field in UiBenchTextJankTests
57 mHelper = UiBenchJankTestsHelper.getInstance(mDevice, in setUp()
59 mHelper.enableKeyboardIME(false); in setUp()
65 mHelper.enableKeyboardIME(true); in tearDown()
71 mHelper.launchUiBench(); in openTextComponents()
72 mHelper.openTextInList("Text"); in openTextComponents()
73 mHelper.openTextInList(componentName); in openTextComponents()
86 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testEditTextTyping()
100 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheHighHitrateFling()
104 for (int i = 0; i < mHelper.INNER_LOOP; i++) { in testLayoutCacheHighHitrateFling()
[all …]
DUiBenchRenderingJankTests.java46 private UiBenchJankTestsHelper mHelper; field in UiBenchRenderingJankTests
53 mHelper = UiBenchJankTestsHelper.getInstance(mDevice, in setUp()
65 mHelper.launchUiBench(); in openRenderingComponents()
66 mHelper.openTextInList("Rendering"); in openRenderingComponents()
67 mHelper.openTextInList(componentName); in openRenderingComponents()
80 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testBitmapUploadJank()
94 By.clazz(ListView.class)), mHelper.TIMEOUT); in testShadowGridListFling()
97 for (int i = 0; i < mHelper.INNER_LOOP; i++) { in testShadowGridListFling()
99 By.clazz(ListView.class)), mHelper.TIMEOUT); in testShadowGridListFling()
101 SystemClock.sleep(mHelper.SHORT_TIMEOUT); in testShadowGridListFling()
[all …]
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
DCardsJankTest.java31 private SysAppTestHelper mHelper; field in CardsJankTest
41 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
49 mHelper.hasDemoCards(); in openScrollCard()
50 mHelper.swipeUp(); in openScrollCard()
59 mHelper.swipeUp(); in testScrollCard()
65 mHelper.hasDemoCards(); in openSwipeCard()
66 mHelper.swipeUp(); in openSwipeCard()
75 mHelper.swipeRight(); in testSwipeCard()
80 mHelper.goBackHome(); in goBackHome()
89 mHelper.swipeRight(); in testSwipeExpandedCard()
[all …]
DWatchFaceHelper.java48 private SysAppTestHelper mHelper; field in WatchFaceHelper
58 this.mHelper = SysAppTestHelper.getInstance(mDevice, instrumentation); in WatchFaceHelper()
75 mHelper.swipeRight(); in isOnlyOneWatchFaceInFavorites()
76 return mHelper.waitForSysAppUiObject2(WATCHFACE_SHOW_ALL_BTN_NAME) != null; in isOnlyOneWatchFaceInFavorites()
82 mHelper.swipeRight(); in openPicker()
83 if (mHelper.waitForSysAppUiObject2(WATCHFACE_PREVIEW_NAME) != null) { in openPicker()
93 while (mHelper.waitForSysAppUiObject2(WATCHFACE_SHOW_ALL_BTN_NAME) == null) { in openPickerAllList()
95 mHelper.flingLeft(); in openPickerAllList()
98 UiObject2 showAllButton = mHelper.waitForSysAppUiObject2(WATCHFACE_SHOW_ALL_BTN_NAME); in openPickerAllList()
103 mHelper.waitForSysAppUiObject2(WATCHFACE_PICKER_ALL_LIST_NAME); in openPickerAllList()
[all …]
DWatchFaceJankTest.java34 private SysAppTestHelper mHelper; field in WatchFaceJankTest
44 mHelper = SysAppTestHelper.getInstance(mDevice, getInstrumentation()); in setUp()
56 mHelper.swipeDown(); in testPullDownQuickSettings()
57 mHelper.swipeUp(); in testPullDownQuickSettings()
68 mHelper.swipeUp(); in testScrollCards()
73 mHelper.goBackHome(); in selectWatchFace()
90 mHelper.hasDemoCards(); in prepareForScrollCards()
DQuickSettingsJankTest.java40 private SysAppTestHelper mHelper; field in QuickSettingsJankTest
52 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
69 mHelper.goBackHome(); in startFromHome()
77 mHelper.swipeDown(); in testPullDownQuickSettings()
82 mHelper.goBackHome(); in openPullUpQuickSettings()
83 mHelper.swipeDown(); in openPullUpQuickSettings()
92 mHelper.swipeUp(); in testPullUpQuickSettings()
97 mHelper.goBackHome(); in goBackHome()
DWatchFacePickerJankTest.java35 private SysAppTestHelper mHelper; field in WatchFacePickerJankTest
45 mHelper = SysAppTestHelper.getInstance(mDevice, getInstrumentation()); in setUp()
107 mHelper.goBackHome(); in startFromHome()
176 mHelper.flingRight(); in flingWatchFacePicker()
178 mHelper.flingLeft(); in flingWatchFacePicker()
187 mHelper.flingUp(); in flingWatchFacePickerFullList()
189 mHelper.flingDown(); in flingWatchFacePickerFullList()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperAccessor.java32 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()
/platform_testing/libraries/collectors-helper/power/test/src/com/android/helpers/
DPwrStatsUtilHelperTest.java40 private @Spy PwrStatsUtilHelper mHelper; field in PwrStatsUtilHelperTest
58 doReturn(metric_output).when(mHelper).executeShellCommand(matches("kill -INT \\d+")); in successfulRun()
59 doReturn(pid_output).when(mHelper).executeShellCommand(matches("pwrstats_util -d .*")); in successfulRun()
65 assertTrue(mHelper.startCollecting()); in successfulRun()
66 assertNotNull(mHelper.mLogFile); in successfulRun()
68 "Expecting PID " + mHelper.mUtilPid + " to be greater than 0", in successfulRun()
69 (mHelper.mUtilPid > 0)); in successfulRun()
72 Map<String, Long> metrics = mHelper.getMetrics(); in successfulRun()
76 assertTrue(mHelper.stopCollecting()); in successfulRun()
/platform_testing/libraries/aoa-helper/tests/src/com/android/helper/aoa/
DUsbHelperTest.java52 private UsbHelper mHelper; field in UsbHelperTest
89 mHelper = spy(new UsbHelper(mUsb)); in setUp()
91 doReturn(mDevice).when(mHelper).connect(any()); in setUp()
100 mHelper.close(); in testContext()
107 assertEquals(0, mHelper.checkResult(0)); in testCheckResult()
108 assertEquals(1, mHelper.checkResult(1)); in testCheckResult()
109 assertEquals(Integer.MAX_VALUE, mHelper.checkResult(Integer.MAX_VALUE)); in testCheckResult()
115 mHelper.checkResult(-1); in testCheckResult_invalid()
120 assertEquals(Sets.newHashSet(SERIAL_NUMBER), mHelper.getSerialNumbers(false)); in testGetSerialNumbers()
130 assertEquals(Sets.newHashSet(SERIAL_NUMBER), mHelper.getSerialNumbers(false)); in testGetSerialNumbers_aoaOnly()
[all …]
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DJankCollectionHelperTest.java89 private JankCollectionHelper mHelper; field in JankCollectionHelperTest
94 mHelper = Mockito.spy(new JankCollectionHelper()); in setUp()
95 when(mHelper.getDevice()).thenReturn(mUiDevice); in setUp()
104 mHelper.addTrackedPackages("pkg1"); in testCollect_valuesMatch()
105 mHelper.startCollecting(); in testCollect_valuesMatch()
106 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_valuesMatch()
132 mHelper.stopCollecting(); in testCollect_valuesMatch()
141 mHelper.addTrackedPackages("pkg1"); in testCollect_singlePackage()
142 mHelper.startCollecting(); in testCollect_singlePackage()
143 Map<String, Double> metrics = mHelper.getMetrics(); in testCollect_singlePackage()
[all …]
DBinderCollectionHelperTest.java45 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()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBaseCollectionListener.java44 protected ICollectorHelper mHelper; field in BaseCollectionListener
60 mHelper = helper; in BaseCollectionListener()
74 mHelper.startCollecting(); in onTestRunStart()
83 mHelper.startCollecting(); in onTestStart()
102 Map<String, T> metrics = mHelper.getMetrics(); in onTestEnd()
107 mHelper.stopCollecting(); in onTestEnd()
114 Map<String, T> metrics = mHelper.getMetrics(); in onTestRunEnd()
118 mHelper.stopCollecting(); in onTestRunEnd()
131 mHelper = helper; in createHelperInstance()
/platform_testing/libraries/collectors-helper/memory/test/src/com/android/helpers/tests/
DGarbageCollectionHelperTest.java45 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/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationSecurityLargeTests.java40 private NotificationHelper mHelper; field in NotificationSecurityLargeTests
51 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
54 mHelper.sleepAndWakeUpDevice(); in setUp()
59 mHelper.swipeUp(); in tearDown()
70 mHelper.sendNotification(NOTIFICATION_ID_SECRET, Notification.VISIBILITY_SECRET, title); in testVisibilitySecret()
71 if (!mHelper.checkNotificationExistence(NOTIFICATION_ID_SECRET, true)) { in testVisibilitySecret()
81 mHelper.sendNotification(NOTIFICATION_ID_PUBLIC, Notification.VISIBILITY_PRIVATE, ""); in testVisibilityPrivate()
82 if (!mHelper.checkNotificationExistence(NOTIFICATION_ID_PUBLIC, true)) { in testVisibilityPrivate()
DNotificationSecurityTests.java35 private NotificationHelper mHelper; field in NotificationSecurityTests
45 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
47 mHelper.sleepAndWakeUpDevice(); in setUp()
53 mHelper.swipeUp(); in tearDown()
59 mHelper.enableNotificationViaAdb(true); in testVisibilityPublic()
62 mHelper.sendNotification(NOTIFICATION_ID_PUBLIC, Notification.VISIBILITY_PUBLIC, title); in testVisibilityPublic()
63 if (mHelper.checkNotificationExistence(NOTIFICATION_ID_PUBLIC, false)) { in testVisibilityPublic()
DNotificationBundlingTests.java43 private NotificationHelper mHelper; field in NotificationBundlingTests
52 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
73 mHelper.sendBundlingNotifications(lists, BUNDLE_GROUP_KEY); in testBundlingNotification()
75 mHelper.swipeDown(); in testBundlingNotification()
91 mHelper.sendBundlingNotifications(lists, BUNDLE_GROUP_KEY); in testDismissBundlingNotification()
92 mHelper.swipeDown(); in testDismissBundlingNotification()
96 if (mHelper.checkNotificationExistence(n, true)) { in testDismissBundlingNotification()
106 mHelper.sendBundlingNotifications(lists, BUNDLE_GROUP_KEY); in testDismissIndividualNotification()
112 if (mHelper.checkNotificationExistence(CHILD_NOTIFICATION_ID, true)) { in testDismissIndividualNotification()
115 if (mHelper.checkNotificationExistence(GROUP_NOTIFICATION_ID, false)) { in testDismissIndividualNotification()
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DBinderListenerTest.java46 @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()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DCpuUsageHelperTest.java60 private HelperAccessor<ICalendarHelper> mHelper = field in CpuUsageHelperTest
83 mHelper.get().open(); in testCpuUsageMetrics()
88 mHelper.get().exit(); in testCpuUsageMetrics()
108 mHelper.get().open(); in testCpuUsageMetricsKey()
151 mHelper.get().exit(); in testCpuUsageMetricsKey()
163 mHelper.get().open(); in testCpuDisabledPerPkgPerFreq()
169 mHelper.get().exit(); in testCpuDisabledPerPkgPerFreq()
183 mHelper.get().open(); in testCpuUsageOnlyPerPkg()
190 mHelper.get().exit(); in testCpuUsageOnlyPerPkg()
204 mHelper.get().open(); in testCpuUsageOnlyPerFreq()
[all …]

12