Home
last modified time | relevance | path

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

12

/platform_testing/tests/camera/aupt-profile/src/com/android/test/uiautomator/aupt/camera/
DCameraStressTest.java26 private GoogleCameraHelperImpl mHelper; field in CameraStressTest
35 mHelper = new GoogleCameraHelperImpl(getInstrumentation()); in setUp()
39 mHelper.open(); in setUp()
43 mHelper.goToBackCamera(); in testCameraStressStillCaptureBack()
44 mHelper.goToCameraMode(); in testCameraStressStillCaptureBack()
45 mHelper.setHdrMode(GoogleCameraHelperImpl.HDR_MODE_OFF); in testCameraStressStillCaptureBack()
46 mHelper.capturePhoto(); in testCameraStressStillCaptureBack()
50 mHelper.goToFrontCamera(); in testCameraStressStillCaptureFront()
51 mHelper.goToCameraMode(); in testCameraStressStillCaptureFront()
52 mHelper.setHdrMode(GoogleCameraHelperImpl.HDR_MODE_OFF); in testCameraStressStillCaptureFront()
[all …]
DCameraStressHFRTest.java26 private GoogleCameraHelperImpl mHelper; field in CameraStressHFRTest
35 mHelper = new GoogleCameraHelperImpl(getInstrumentation()); in setUp()
39 mHelper.open(); in setUp()
43 mHelper.goToBackCamera(); in testCameraStressVideoBackHFR120FPS()
44 mHelper.goToVideoMode(); in testCameraStressVideoBackHFR120FPS()
45 mHelper.setHFRMode(GoogleCameraHelperImpl.HFR_MODE_120_FPS); in testCameraStressVideoBackHFR120FPS()
46 mHelper.captureVideo(videoTimeMS); in testCameraStressVideoBackHFR120FPS()
47 mHelper.setHFRMode(GoogleCameraHelperImpl.HFR_MODE_OFF); in testCameraStressVideoBackHFR120FPS()
51 mHelper.goToBackCamera(); in testCameraStressVideoBackHFR240FPS()
52 mHelper.goToVideoMode(); in testCameraStressVideoBackHFR240FPS()
[all …]
DCameraStressHDRTest.java26 private GoogleCameraHelperImpl mHelper; field in CameraStressHDRTest
35 mHelper = new GoogleCameraHelperImpl(getInstrumentation()); in setUp()
39 mHelper.open(); in setUp()
43 mHelper.goToBackCamera(); in testCameraStressStillCaptureBackHDR()
44 mHelper.goToCameraMode(); in testCameraStressStillCaptureBackHDR()
45 mHelper.setHdrMode(GoogleCameraHelperImpl.HDR_MODE_ON); in testCameraStressStillCaptureBackHDR()
46 mHelper.capturePhoto(); in testCameraStressStillCaptureBackHDR()
51 mHelper.goToFrontCamera(); in testCameraStressStillCaptureFrontHDR()
52 mHelper.goToCameraMode(); in testCameraStressStillCaptureFrontHDR()
53 mHelper.setHdrMode(GoogleCameraHelperImpl.HDR_MODE_ON); in testCameraStressStillCaptureFrontHDR()
[all …]
DCameraStressSnapshotTest.java26 private GoogleCameraHelperImpl mHelper; field in CameraStressSnapshotTest
36 mHelper = new GoogleCameraHelperImpl(getInstrumentation()); in setUp()
40 mHelper.open(); in setUp()
44 mHelper.goToBackCamera(); in testCameraStressVideoBackSnapshot()
45 mHelper.goToVideoMode(); in testCameraStressVideoBackSnapshot()
46 mHelper.snapshotVideo(videoTimeMs, snapshotStartTimeMs); in testCameraStressVideoBackSnapshot()
50 mHelper.goToFrontCamera(); in testCameraStressVideoFrontSnapshot()
51 mHelper.goToVideoMode(); in testCameraStressVideoFrontSnapshot()
52 mHelper.snapshotVideo(videoTimeMs, snapshotStartTimeMs); in testCameraStressVideoFrontSnapshot()
60 mHelper.exit(); in tearDown()
DCameraStress4KTest.java26 private GoogleCameraHelperImpl mHelper; field in CameraStress4KTest
35 mHelper = new GoogleCameraHelperImpl(getInstrumentation()); in setUp()
39 mHelper.open(); in setUp()
43 mHelper.goToBackCamera(); in testCameraStressVideoBack4K()
44 mHelper.goToVideoMode(); in testCameraStressVideoBack4K()
45 mHelper.set4KMode(GoogleCameraHelperImpl.VIDEO_4K_MODE_ON); in testCameraStressVideoBack4K()
46 mHelper.captureVideo(videoTimeMS); in testCameraStressVideoBack4K()
54 mHelper.exit(); in tearDown()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchJankTests.java39 private UiBenchJankTestsHelper mHelper; field in UiBenchJankTests
46 mHelper = UiBenchJankTestsHelper.getInstance( in setUp()
58 mHelper.launchActivity("DialogListActivity", "Dialog"); in openDialogList()
59 mHelper.mContents = mDevice.wait(Until.findObject( in openDialogList()
60 By.clazz(ListView.class)), mHelper.TIMEOUT); in openDialogList()
61 Assert.assertNotNull("Dialog List View isn't found", mHelper.mContents); in openDialogList()
68 mHelper.flingUpDown(mHelper.mContents, mHelper.SHORT_TIMEOUT, 1); in testDialogListFling()
73 mHelper.launchActivity("FullscreenOverdrawActivity", in openFullscreenOverdraw()
81 SystemClock.sleep(mHelper.LONG_TIMEOUT * 5); in testFullscreenOverdraw()
86 mHelper.launchActivity("GlTextureViewActivity", in openGLTextureView()
[all …]
DUiBenchTextJankTests.java39 private UiBenchJankTestsHelper mHelper; field in UiBenchTextJankTests
46 mHelper = UiBenchJankTestsHelper.getInstance( in setUp()
58 mHelper.launchActivity("EditTextTypeActivity", in openEditTextTyping()
66 SystemClock.sleep(mHelper.LONG_TIMEOUT * 2); in testEditTextTyping()
71 mHelper.launchActivity("TextCacheHighHitrateActivity", in openLayoutCacheHighHitrate()
73 mHelper.mContents = mDevice.wait(Until.findObject( in openLayoutCacheHighHitrate()
74 By.clazz(ListView.class)), mHelper.TIMEOUT); in openLayoutCacheHighHitrate()
76 mHelper.mContents); in openLayoutCacheHighHitrate()
83 mHelper.flingUpDown(mHelper.mContents, mHelper.SHORT_TIMEOUT, 3); in testLayoutCacheHighHitrateFling()
88 mHelper.launchActivity("TextCacheLowHitrateActivity", 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()
66 SystemClock.sleep(mHelper.LONG_TIMEOUT * 5); in testBitmapUploadJank()
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, mHelper.SHORT_TIMEOUT, 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, mHelper.SHORT_TIMEOUT, 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()
75 SystemClock.sleep(mHelper.LONG_TIMEOUT); in forceDeviceHome()
87 mHelper.launchUiBench(); in openTextComponents()
88 mHelper.openTextInList("Text"); in openTextComponents()
89 mHelper.openTextInList(componentName); in openTextComponents()
103 SystemClock.sleep(mHelper.LONG_TIMEOUT); in testEditTextTyping()
117 By.clazz(ListView.class)), mHelper.TIMEOUT); in testLayoutCacheHighHitrateFling()
121 for (int i = 0; i < mHelper.INNER_LOOP; i++) { in testLayoutCacheHighHitrateFling()
124 By.clazz(ListView.class)), mHelper.TIMEOUT); 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()
67 mHelper.swipeUp(); in openSwipeCard()
76 mHelper.swipeRight(); in testSwipeCard()
81 mHelper.goBackHome(); in goBackHome()
DQuickSettingsJankTest.java40 private SysAppTestHelper mHelper; field in QuickSettingsJankTest
52 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
68 mHelper.goBackHome(); in startFromHome()
76 mHelper.swipeDown(); in testPullDownQuickSettings()
81 mHelper.goBackHome(); in openPullUpQuickSettings()
82 mHelper.swipeDown(); in openPullUpQuickSettings()
91 mHelper.swipeUp(); in testPullUpQuickSettings()
96 mHelper.goBackHome(); in goBackHome()
DSettingsFlingJankTest.java38 private SysAppTestHelper mHelper; field in SettingsFlingJankTest
53 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
60 mHelper.launchActivity(CLOCK_SETTINGS_PACKAGE, CLOCK_SETTINGS_ACTIVITY); in openSettingsApp()
83 mHelper.goBackHome(); in goBackHome()
DAppLauncherFlingJankTest.java40 private SysAppTestHelper mHelper; field in AppLauncherFlingJankTest
52 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
67 mHelper.gotoAppLauncher(); in openLauncher()
89 mHelper.goBackHome(); in goBackHome()
/platform_testing/tests/functional/settingstests/src/com/android/settings/functional/
DSoundSettingsTest.java29 private SettingsHelperImpl mHelper; field in SoundSettingsTest
38 mHelper = new SettingsHelperImpl(getInstrumentation()); in setUp()
54 assertTrue(mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testCallVibrate()
56 assertTrue(mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testCallVibrate()
63 mHelper.scrollVert(false); in testOtherSounds()
65 mHelper.clickSetting("Other sounds"); in testOtherSounds()
68 assertTrue("Dial pad tones not toggled", mHelper.verifyToggleSetting( in testOtherSounds()
72 mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testOtherSounds()
75 mHelper.verifyToggleSetting(SettingsType.GLOBAL, PAGE, in testOtherSounds()
78 mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testOtherSounds()
[all …]
DDisplaySettingsTest.java43 private SettingsHelperImpl mHelper; field in DisplaySettingsTest
51 mHelper = new SettingsHelperImpl(getInstrumentation()); in setUp()
65 mHelper.scrollVert(true); in testAdaptiveBrightness()
67 assertTrue(mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, "Adaptive brightness", in testAdaptiveBrightness()
69 assertTrue(mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, "Adaptive brightness", in testAdaptiveBrightness()
75 assertTrue(mHelper.verifyToggleSetting(SettingsType.SECURE, PAGE, in testCameraDoubleTap()
78 assertTrue(mHelper.verifyToggleSetting(SettingsType.SECURE, PAGE, in testCameraDoubleTap()
91 assertTrue(mHelper.verifyToggleSetting(SettingsType.SECURE, PAGE, "Ambient display", in testAmbientDisplay()
93 assertTrue(mHelper.verifyToggleSetting(SettingsType.SECURE, PAGE, "Ambient display", in testAmbientDisplay()
103 mHelper.clickSetting("Screen saver"); in testDaydreamToggle()
[all …]
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DNotificationSecurityLargeTests.java39 private NotificationHelper mHelper; field in NotificationSecurityLargeTests
49 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
50 mHelper.setScreenLockPin(PIN); in setUp()
51 mHelper.sleepAndWakeUpDevice(); in setUp()
56 mHelper.swipeUp(); in tearDown()
58 mHelper.unlockScreenByPin(PIN); in tearDown()
59 mHelper.removeScreenLock(PIN, "Swipe"); in tearDown()
68 mHelper.sendNotification(NOTIFICATION_ID_SECRET, Notification.VISIBILITY_SECRET, title); in testVisibilitySecret()
69 if (!mHelper.checkNotificationExistence(NOTIFICATION_ID_SECRET, true)) { in testVisibilitySecret()
79 mHelper.sendNotification(NOTIFICATION_ID_PUBLIC, Notification.VISIBILITY_PRIVATE, ""); in testVisibilityPrivate()
[all …]
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()
DNotificationDNDTests.java49 private NotificationHelper mHelper; field in NotificationDNDTests
61 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
76 mHelper.unlockScreen(); in setUp()
99 mHelper.sendNotificationsWithInLineReply(NOTIFICATION_ID, true); in testDND()
102 mHelper.getStatusBarNotification(NOTIFICATION_ID)); in testDND()
123 mHelper.showInstalledAppDetails(mContext, "com.android.notification.functional"); in testPriority()
127 mHelper.sendNotificationsWithInLineReply(NOTIFICATION_ID, true); in testPriority()
130 mHelper.getStatusBarNotification(NOTIFICATION_ID)); in testPriority()
135 mHelper.showInstalledAppDetails(mContext, "com.android.notification.functional"); in testPriority()
148 mHelper.showInstalledAppDetails(mContext, "com.android.notification.functional"); in testBlockNotification()
[all …]
DNotificationInlineReplyTests.java37 private NotificationHelper mHelper; field in NotificationInlineReplyTests
46 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); in setUp()
66 mHelper.sendNotificationsWithInLineReply(NOTIFICATION_ID,false); in testInLineNotificationWithLockScreen()
67 mHelper.sleepAndWakeUpDevice(); in testInLineNotificationWithLockScreen()
83 mHelper.swipeUp(); in testInLineNotificationWithLockScreen()
89 mHelper.sendNotificationsWithInLineReply(NOTIFICATION_ID,false); in testInLineNotificationsWithQuickSetting()
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()
90 mHelper.sendNotificationsWithInLineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationManualDismiss()
96 if (mHelper.checkNotificationExistence(NOTIFICATION_ID_1, true)) { in testHeadsUpNotificationManualDismiss()
103 mHelper.sendNotificationsWithInLineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationAutoDismiss()
113 mHelper.sendNotificationsWithInLineReply(NOTIFICATION_ID_1, true); in testHeadsUpNotificationInlineReplyMulti()
124 mHelper.sendNotificationsWithInLineReply(NOTIFICATION_ID_2, true); in testHeadsUpNotificationInlineReplyMulti()

12