Home
last modified time | relevance | path

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

12

/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTests.java42 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 …]
DUiBenchTextJankTests.java40 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 …]
DUiBenchRenderingJankTests.java41 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()
DUiBenchWebView.java37 private UiBenchJankTestsHelper mHelper; field in UiBenchWebView
44 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
56 mHelper.launchActivity("ScrollableWebViewActivity", in openScrollableWebView()
58 mHelper.mContents = mDevice.wait(Until.findObject( in openScrollableWebView()
59 By.res("android", "content")), mHelper.TIMEOUT); in openScrollableWebView()
66 mHelper.flingUpDown(mHelper.mContents, 1); in testWebViewFling()
DUiBenchTransitionsJankTests.java40 private UiBenchJankTestsHelper mHelper; field in UiBenchTransitionsJankTests
47 mHelper = UiBenchJankTestsHelper.getInstance( in setUp()
59 mHelper.launchActivity("ActivityTransition", in openActivityTransition()
66 By.res(mHelper.PACKAGE_NAME, imageName)), mHelper.TIMEOUT); in clickImage()
68 image.clickAndWait(Until.newWindow(), mHelper.TIMEOUT); in clickImage()
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTests.java45 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 …]
DUiBenchTextJankTests.java47 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 …]
DUiBenchRenderingJankTests.java45 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/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
DCardsJankTest.java32 private SysAppTestHelper mHelper; field in CardsJankTest
42 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
50 mHelper.hasDemoCards(); in openScrollCard()
51 mHelper.swipeUp(); in openScrollCard()
60 mHelper.swipeUp(); in testScrollCard()
66 mHelper.hasDemoCards(); in openSwipeCard()
67 mHelper.swipeUp(); in openSwipeCard()
76 mHelper.swipeRight(); in testSwipeCard()
81 mHelper.goBackHome(); in goBackHome()
90 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.java35 private SysAppTestHelper mHelper; field in WatchFaceJankTest
45 mHelper = SysAppTestHelper.getInstance(mDevice, getInstrumentation()); in setUp()
57 mHelper.swipeDown(); in testPullDownQuickSettings()
58 mHelper.swipeUp(); in testPullDownQuickSettings()
69 mHelper.swipeUp(); in testScrollCards()
74 mHelper.goBackHome(); in selectWatchFace()
91 mHelper.hasDemoCards(); in prepareForScrollCards()
DQuickSettingsJankTest.java41 private SysAppTestHelper mHelper; field in QuickSettingsJankTest
53 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
70 mHelper.goBackHome(); in startFromHome()
78 mHelper.swipeDown(); in testPullDownQuickSettings()
83 mHelper.goBackHome(); in openPullUpQuickSettings()
84 mHelper.swipeDown(); in openPullUpQuickSettings()
93 mHelper.swipeUp(); in testPullUpQuickSettings()
98 mHelper.goBackHome(); in goBackHome()
DWatchFacePickerJankTest.java36 private SysAppTestHelper mHelper; field in WatchFacePickerJankTest
46 mHelper = SysAppTestHelper.getInstance(mDevice, getInstrumentation()); in setUp()
108 mHelper.goBackHome(); in startFromHome()
177 mHelper.flingRight(); in flingWatchFacePicker()
179 mHelper.flingLeft(); in flingWatchFacePicker()
188 mHelper.flingUp(); in flingWatchFacePickerFullList()
190 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.java39 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/collectors-helper/jank/test/src/com/android/helpers/
DJankCollectionHelperTest.java98 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 …]
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/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()
DHeadsUpNotificationTests.java45 private NotificationHelper mHelper; field in HeadsUpNotificationTests
54 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
56 mHelper.unlockScreen(); in setUp()
71 mHelper.sendNotificationsWithInlineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationInlineReply()
91 mHelper.sendNotificationsWithInlineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationUpdate()
94 mHelper.sendNotificationsWithInlineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationUpdate()
95 mHelper.sendNotificationsWithInlineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationUpdate()
96 mHelper.sendNotificationsWithInlineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationUpdate()
106 mHelper.sendNotificationsWithInlineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationManualDismiss()
112 if (mHelper.checkNotificationExistence(NOTIFICATION_ID_1, true)) { in testHeadsUpNotificationManualDismiss()
[all …]
/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()
104 mHelper.stopCollecting(); in onTestEnd()
112 mHelper.stopCollecting(); in onTestRunEnd()
125 mHelper = helper; in createHelperInstance()
129 Map<String, T> metrics = mHelper.getMetrics(); in collectMetrics()
/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/
DCpuUsageHelperTest.java56 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 …]
/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()

12