Home
last modified time | relevance | path

Searched refs:sDevice (Results 1 – 18 of 18) sorted by relevance

/packages/modules/AdServices/adservices/apk/tests/settings/src/com/android/adservices/ui/settings/
DDialogFragmentTest.java77 private static UiDevice sDevice; field in DialogFragmentTest
154 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in startActivityFromHomeAndCheckMainSwitch()
157 sDevice.pressHome(); in startActivityFromHomeAndCheckMainSwitch()
158 sDevice.setOrientationNatural(); in startActivityFromHomeAndCheckMainSwitch()
161 final String launcherPackage = sDevice.getLauncherPackageName(); in startActivityFromHomeAndCheckMainSwitch()
163 sDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT); in startActivityFromHomeAndCheckMainSwitch()
172 sDevice.wait( in startActivityFromHomeAndCheckMainSwitch()
178 ApkTestUtil.takeScreenshot(sDevice, getClass().getSimpleName() + "_" + getTestName() + "_"); in teardown()
186 ApkTestUtil.scrollToAndClick(sDevice, R.string.settingsUI_topics_ga_title); in blockTopicDialogTest()
188 ApkTestUtil.getElement(sDevice, R.string.settingsUI_block_topic_title, 0); in blockTopicDialogTest()
[all …]
DAppConsentSettingsUiAutomatorTest.java64 private static UiDevice sDevice; field in AppConsentSettingsUiAutomatorTest
78 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup()
81 sDevice.pressHome(); in setup()
86 ApkTestUtil.takeScreenshot(sDevice, getClass().getSimpleName() + "_" + mTestName + "_"); in teardown()
186 UiObject2 mainSwitch = ApkTestUtil.getConsentSwitch(sDevice); in setPpApiConsentToGiven()
207 sDevice.wait(Until.hasObject(By.pkg(privacySandboxUi).depth(0)), LAUNCH_TIMEOUT); in launchSettingApp()
219 final String launcherPackage = sDevice.getLauncherPackageName(); in appConsentTest()
221 sDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT); in appConsentTest()
231 ApkTestUtil.scrollToAndClick(sDevice, R.string.settingsUI_apps_title); in appConsentTest()
237 assertThat(ApkTestUtil.getElement(sDevice, R.string.settingsUI_block_app_title)) in appConsentTest()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceBinderTest.java53 private static final BluetoothDevice sDevice = TestUtils.getTestDevice(sAdapter, 0); field in A2dpServiceBinderTest
86 mBinder.connect(sDevice, sSource); in connect()
87 verify(mA2dpService).connect(sDevice); in connect()
92 mBinder.disconnect(sDevice, sSource); in disconnect()
93 verify(mA2dpService).disconnect(sDevice); in disconnect()
112 mBinder.getConnectionState(sDevice, sSource); in getConnectionState()
113 verify(mA2dpService).getConnectionState(sDevice); in getConnectionState()
120 mBinder.setActiveDevice(sDevice, sSource); in setActiveDevice()
121 verify(mA2dpService).setActiveDevice(sDevice); in setActiveDevice()
128 mBinder.setActiveDevice(sDevice, sSource); in setActiveDeviceWithAudioRouting()
[all …]
/packages/modules/AdServices/adservices/tests/cts/ui/gaux/legacy/src/com.android.adservices.tests.ui.gaux/
DOTAStringsCorruptFileUiAutomatorTest.java58 private static UiDevice sDevice; field in OTAStringsCorruptFileUiAutomatorTest
68 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in initTestClass()
92 sDevice.pressHome(); in initTestCase()
95 final String launcherPackage = sDevice.getLauncherPackageName(); in initTestCase()
99 sDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT); in initTestCase()
113 UiUtils.setupOTAStrings(sContext, sDevice, sCommonManager, CORRUPT_ARSC_FILE_MDD_URL); in checkCorruptedARSCFile_OTAFailTest()
116 UiUtils.verifyNotificationAndSettingsPage(sContext, sDevice, false); in checkCorruptedARSCFile_OTAFailTest()
121 UiUtils.setupOTAStrings(sContext, sDevice, sCommonManager, XML_FIL_MDD_URL); in checkXMLFile_OTAFailTest()
124 UiUtils.verifyNotificationAndSettingsPage(sContext, sDevice, false); in checkXMLFile_OTAFailTest()
DOTAStringsUiAutomatorTest.java57 private static UiDevice sDevice; field in OTAStringsUiAutomatorTest
66 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in initTestClass()
78 UiUtils.setupOTAStrings(sContext, sDevice, sCommonManager, MDD_URL); in initTestClass()
97 sDevice.pressHome(); in initTestCase()
100 final String launcherPackage = sDevice.getLauncherPackageName(); in initTestCase()
104 sDevice.wait(Until.hasObject(By.pkg(launcherPackage).depth(0)), LAUNCH_TIMEOUT); in initTestCase()
119 sDevice.openNotification(); in checkOTAStringsNotificationAndSettingsPageTest()
121 UiUtils.verifyNotificationAndSettingsPage(sContext, sDevice, true); in checkOTAStringsNotificationAndSettingsPageTest()
/packages/apps/CellBroadcastReceiver/tests/compliancetests/src/com/android/cellbroadcastreceiver/compliancetests/
DCellBroadcastUiTest.java106 UiObject2 yesButton = sDevice.wait(Until.findObject(YES_BUTTON), 100); in beforeTest()
112 UiObject2 okItem = sDevice.wait(Until.findObject( in beforeTest()
118 sDevice.pressHome(); in beforeTest()
133 UiObject2 yesButton = sDevice.wait(Until.findObject(YES_BUTTON), 1000); in afterTest()
143 sDevice.pressBack(); in afterTest()
144 sDevice.pressHome(); in afterTest()
227 UiObject2 item = sDevice.wait(Until.findObject(By.res(packageName, "alertTitle")), in verifyAlertDialogTitle()
236 sDevice.openNotification(); in verifyAlertDialogTitle()
246 UiObject2 okItem = sDevice.wait(Until.findObject( in verifyAlertDialogTitle()
264 sDevice.openNotification(); in verifyNotificationPosted()
[all …]
DCellBroadcastBaseTest.java97 protected static UiDevice sDevice = null; field in CellBroadcastBaseTest
204 sDevice = UiDevice.getInstance(sInstrumentation); in beforeAllTests()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/settings/
DSettingsUiTest.java63 sDeviceStatePreserver = new DeviceStatePreserver(sDevice); in setUp()
87 PhotoPickerCloudTestUtils.setCloudProvider(sDevice, CloudProviderSecondary.AUTHORITY); in testSettings_launchProviderSettingsFromExtraWidget()
88 assertThat(PhotoPickerCloudTestUtils.getCurrentCloudProvider(sDevice)) in testSettings_launchProviderSettingsFromExtraWidget()
95 SettingsTestUtils.verifySettingsActivityIsVisible(sDevice); in testSettings_launchProviderSettingsFromExtraWidget()
98 SettingsTestUtils.verifySettingsCloudProviderAccountIsVisible(sDevice, in testSettings_launchProviderSettingsFromExtraWidget()
102 SettingsTestUtils.findAndClickSettingsProviderOptionExtraWidget(sDevice); in testSettings_launchProviderSettingsFromExtraWidget()
103 TestActivityUtils.assertThatTestActivityIsVisible(sDevice, sTargetPackageName); in testSettings_launchProviderSettingsFromExtraWidget()
120 sDevice.waitForIdle(); in launchSettingsActivityWithRetry()
/packages/modules/Connectivity/nearby/tests/unit/src/android/nearby/
DFastPairDeviceTest.java37 private static FastPairDevice sDevice; field in FastPairDeviceTest
42 sDevice = new FastPairDevice(NAME, sMediums, RSSI, TX_POWER, MODEL_ID, MAC_ADDRESS, DATA); in setup()
48 sDevice.writeToParcel(dest, 0); in testParcelable()
58 assertThat(compareDevice.equals(sDevice)).isTrue(); in testParcelable()
59 assertThat(compareDevice.hashCode()).isEqualTo(sDevice.hashCode()); in testParcelable()
64 assertThat(sDevice.describeContents()).isEqualTo(0); in describeContents()
69 assertThat(sDevice.toString()).isEqualTo( in testToString()
/packages/modules/AdServices/adservices/apk/tests/notification/src/com/android/adservices/ui/notifications/
DConsentNotificationTriggerTest.java115 private static UiDevice sDevice; field in ConsentNotificationTriggerTest
129 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
151 ApkTestUtil.takeScreenshot(sDevice, getClass().getSimpleName() + "_" + getTestName() + "_"); in tearDown()
199 sDevice.openNotification(); in testEuNotification_gaUxFlagEnabled()
200 sDevice.wait( in testEuNotification_gaUxFlagEnabled()
207 sDevice.findObject( in testEuNotification_gaUxFlagEnabled()
314 sDevice.openNotification(); in testEuNotifications_gaUxEnabled_nonDismissable()
315 sDevice.wait( in testEuNotifications_gaUxEnabled_nonDismissable()
322 sDevice.findObject( in testEuNotifications_gaUxEnabled_nonDismissable()
340 notificationCard = sDevice.findObject(notificationCardSelector); in testEuNotifications_gaUxEnabled_nonDismissable()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ui/
DUiBaseTest.java41 protected static final UiDevice sDevice = UiDevice.getInstance(getInstrumentation()); field in UiBaseTest
61 sDevice.executeShellCommand(/* cmd= */ "input keyevent KEYCODE_WAKEUP"); in setUp()
62 sDevice.executeShellCommand(/* cmd= */ "wm dismiss-keyguard"); in setUp()
68 sDevice.waitForIdle(); in setUp()
96 sDevice.executeShellCommand( in disableDeviceConfigSync()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DPhotoPickerCloudTestUtils.java146 public static void setCloudProvider(@NonNull UiDevice sDevice, in setCloudProvider() argument
154 sDevice.executeShellCommand( in setCloudProvider()
161 sDevice.executeShellCommand( in setCloudProvider()
173 public static String getCurrentCloudProvider(UiDevice sDevice) throws IOException { in getCurrentCloudProvider() argument
175 sDevice.executeShellCommand( in getCurrentCloudProvider()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/ui/
DNotificationLandingPage.java48 private static UiDevice sDevice; field in NotificationLandingPage
63 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup()
80 sContext, sDevice, true, ux, true, false, true); in testNotificationLandingPage()
DUiSettingsMainPage.java49 private static UiDevice sDevice; field in UiSettingsMainPage
64 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setup()
82 sDevice, in testSettingsPage()
/packages/modules/AdServices/shared/libraries/host-side/java/com/android/adservices/shared/testing/
DTestDeviceHelper.java44 private static final ThreadLocal<ITestDevice> sDevice = new ThreadLocal<>(); field in TestDeviceHelper
48 sDevice.set(Objects.requireNonNull(device)); in setTestDevice()
53 ITestDevice device = sDevice.get(); in getTestDevice()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DProgressBarTest.java49 protected static final UiDevice sDevice = UiDevice.getInstance(getInstrumentation()); field in ProgressBarTest
68 sDevice.waitForIdle(); in startPhotoPickerActivityAndEnableCloudFlag()
/packages/modules/AdServices/adservices/tests/cts/src/android/adservices/debuggablects/
DMeasurementCtsDebuggableTest.java70 private static UiDevice sDevice; field in MeasurementCtsDebuggableTest
172 if (sDevice == null) { in getUiDevice()
173 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in getUiDevice()
175 return sDevice; in getUiDevice()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/
DMeasurementRegisterCalls.java71 private static UiDevice sDevice; field in MeasurementRegisterCalls
148 if (sDevice == null) { in getUiDevice()
149 sDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in getUiDevice()
151 return sDevice; in getUiDevice()