Home
last modified time | relevance | path

Searched refs:By (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
DTvUtils.kt20 import androidx.test.uiautomator.By in <lambda>()
37 By.res(SYSTEM_UI_PACKAGE_NAME, TV_PIP_MENU_ROOT_ID) in <lambda>()
39 By.res(SYSTEM_UI_PACKAGE_NAME, TV_PIP_MENU_BUTTONS_CONTAINER_ID) in <lambda>()
41 By.res(SYSTEM_UI_PACKAGE_NAME, TV_PIP_MENU_CLOSE_BUTTON_ID) in <lambda>()
43 By.res(SYSTEM_UI_PACKAGE_NAME, TV_PIP_MENU_FULLSCREEN_BUTTON_ID) in <lambda>()
61 findTvPipMenuElement(By.desc(desc)) in <lambda>()
72 val elementSelector = By.desc(desc) in <lambda>()
73 val menuContainingElementSelector = By.copy(TV_PIP_MENU_SELECTOR) in <lambda>()
81 val elementSelector = By.desc(desc) in waitUntilTvPipMenuElementWithDescriptionIsGone()
82 val menuContainingElementSelector = By.copy(TV_PIP_MENU_SELECTOR).hasDescendant(elementSelector) in waitUntilTvPipMenuElementWithDescriptionIsGone()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DFloatingToolbarUtils.java23 import android.support.test.uiautomator.By;
36 By.res("android", "floating_popup_container");
55 TOOLBAR_CONTAINER_SELECTOR.hasDescendant(By.text(itemLabel)))) in assertFloatingToolbarContainsItem()
63 TOOLBAR_CONTAINER_SELECTOR.hasDescendant(By.text(itemLabel)))) in assertFloatingToolbarDoesNotContainItem()
71 .findObjects(By.clickable(true)) in assertFloatingToolbarContainsItemAtIndex()
82 .findObject(By.text(label)) in clickFloatingToolbarItem()
90 .findObject(By.desc(str(R.string.floating_toolbar_open_overflow_description))) in clickFloatingToolbarOverflowItem()
93 Until.findObject(TOOLBAR_CONTAINER_SELECTOR.hasDescendant(By.text(label))), in clickFloatingToolbarOverflowItem()
96 .findObject(By.text(label)) in clickFloatingToolbarOverflowItem()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUiBot.java22 import android.support.test.uiautomator.By;
68 boolean gotIt = mDevice.wait(Until.hasObject(By.pkg(SYSTEMUI_PACKAGE)), mTimeout); in getNotification()
84 By.res(SYSTEMUI_PACKAGE, "notification_stack_scroller")), mTimeout); in getNotification2()
88 final UiObject2 notificationText = notification.findObject(By.textContains(text)); in getNotification2()
103 By.res(ANDROID_PACKAGE, "expand_button")); in expandNotification()
134 boolean gotIt = mDevice.wait(Until.hasObject(By.text(text)), mTimeout); in getObject()
145 boolean gotIt = mDevice.wait(Until.hasObject(By.res(id)), mTimeout); in getObjectById()
178 boolean hasIt = mDevice.hasObject(By.res(id)); in assertNotVisibleById()
213 boolean gotIt = mDevice.wait(Until.hasObject(By.text(share)), mTimeout); in chooseActivity()
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
DMailAppHelper.kt22 import androidx.test.uiautomator.By
41 val rowSel = By.res(getPackage(), "mail_row_item_text") in openMail()
51 uiDevice.wait(Until.gone(By.res(getPackage(), MAIL_LIST_RES_ID)), FIND_TIMEOUT) in openMail()
60 var sel = By.res(getPackage(), MAIL_LIST_RES_ID).scrollable(true) in waitForMailList()
DImeAppAutoFocusHelper.kt24 import androidx.test.uiautomator.By
70 val button = uiDevice.wait(Until.findObject(By.res(getPackage(), in startDialogThemedActivity()
85 Until.findObject(By.text("Dialog for test")), FIND_TIMEOUT) in dismissDialog()
95 Until.findObject(By.res("android:id/text1")), FIND_TIMEOUT) in getInsetsVisibleFromDialog()
118 val button = uiDevice.wait(Until.findObject(By.res(getPackage(), in toggleFixPortraitOrientation()
DImeEditorPopupDialogAppHelper.kt20 import androidx.test.uiautomator.By
40 val editText = device.wait(Until.findObject(By.text("focused editText")), FIND_TIMEOUT) in openIME()
52 Until.findObject(By.text("Dismiss")), FIND_TIMEOUT) in dismissDialog()
DNotificationAppHelper.kt22 import androidx.test.uiautomator.By
41 Until.findObject(By.res(getPackage(), "post_notification")), in postNotification()
50 device.wait(Until.findObject(By.text("Flicker Test Notification")), FIND_TIMEOUT) in postNotification()
DImeAppHelper.kt22 import androidx.test.uiautomator.By
48 Until.findObject(By.res(getPackage(), "plain_text_input")), in openIME()
90 Until.findObject(By.res(getPackage(), "finish_activity_btn")), in finishActivity()
DGameAppHelper.kt22 import androidx.test.uiautomator.By
46 Until.findObject(By.res(getPackage(), GAME_APP_VIEW_RES)), WAIT_TIME_MS) in swipeDown()
100 return uiDevice.hasObject(By.res(packageName, identifier)) in isTargetObjVisible()
DNewTasksAppHelper.kt22 import androidx.test.uiautomator.By
41 Until.findObject(By.res(getPackage(), "launch_new_task")), in openNewTask()
DTwoActivitiesAppHelper.kt23 import androidx.test.uiautomator.By
46 val launchActivityButton = By.res(getPackage(), LAUNCH_SECOND_ACTIVITY) in openSecondActivity()
DAssistantAppHelper.kt22 import androidx.test.uiautomator.By
76 Until.findObject(By.res(ActivityOptions.FLICKER_APP_PACKAGE, "vis_frame")), in openUI()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/helpers/
DPipAppHelper.kt23 import androidx.test.uiautomator.By
50 val selector = By.res(component.packageName, resId) in clickObject()
107 uiDevice.wait(Until.gone(By.res(SYSTEMUI_PACKAGE, "dismiss")), FIND_TIMEOUT) in clickEnterPipButton()
123 .findObject(By.res(component.packageName, WITH_CUSTOM_ACTIONS_BUTTON_ID)) in checkWithCustomActionsCheckbox()
164 val dismissSelector = By.res(SYSTEMUI_PACKAGE, "dismiss") in closePipWindow()
184 val expandSelector = By.res(SYSTEMUI_PACKAGE, "expand_button") in expandPipWindowToApp()
DImeAppHelper.kt20 import androidx.test.uiautomator.By
42 Until.findObject(By.res(getPackage(), "plain_text_input")), in openIME()
DBaseAppHelper.kt25 import androidx.test.uiautomator.By
43 private val appSelector = By.pkg(component.packageName).depth(0)
DSplitScreenHelper.kt24 import androidx.test.uiautomator.By
50 get() = By.res(SYSTEM_UI_PACKAGE_NAME, NOTIFICATION_SCROLLER)
52 get() = By.text("Notification content")
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DNotificationTest.java42 import androidx.test.uiautomator.By;
77 By.res("com.android.systemui", "remote_input_send");
114 mUiDevice.wait(Until.findObject(By.text(actionLabelPattern)), TIMEOUT).click(); in testDirectReply()
116 assertThat(mUiDevice.wait(Until.findObject(By.pkg(getImePackage(mContext))), TIMEOUT)) in testDirectReply()
124 assertThat(mUiDevice.wait(Until.gone(By.pkg(getImePackage(mContext))), TIMEOUT)).isTrue(); in testDirectReply()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/bubble/
DMultiBubblesScreen.kt22 import androidx.test.uiautomator.By
63 By.res(SYSTEM_UI_PACKAGE, BUBBLE_RES_NAME)), FIND_OBJECT_TIMEOUT) in <lambda>()
70 By.res(SYSTEM_UI_PACKAGE, BUBBLE_RES_NAME)), FIND_OBJECT_TIMEOUT) in <lambda>()
DLaunchBubbleFromLockScreen.kt24 import androidx.test.uiautomator.By
75 By.text("BubbleChat")), FIND_OBJECT_TIMEOUT) in <lambda>()
79 By.res("com.android.systemui", "bubble_view")), FIND_OBJECT_TIMEOUT) in <lambda>()
DBaseBubbleScreen.kt26 import androidx.test.uiautomator.By
83 By.text("Add Bubble")), FIND_OBJECT_TIMEOUT) in Flicker()
85 By.text("Cancel All Bubble")), FIND_OBJECT_TIMEOUT) in Flicker()
DExpandBubbleScreen.kt21 import androidx.test.uiautomator.By
57 By.res("com.android.systemui", "bubble_view")), FIND_OBJECT_TIMEOUT) in <lambda>()
DDismissBubbleScreen.kt25 import androidx.test.uiautomator.By
64 By.res(SYSTEM_UI_PACKAGE, BUBBLE_RES_NAME)), FIND_OBJECT_TIMEOUT) in <lambda>()
/frameworks/base/tests/Input/src/com/android/test/input/
DAnrTest.kt30 import android.support.test.uiautomator.By
104 uiDevice.wait(Until.findObject(By.res("android:id/aerr_close")), 20000) in clickCloseAppOnAnrDialog()
125 uiDevice.wait(Until.findObject(By.res("android:id/aerr_wait")), 20000) in clickWaitOnAnrDialog()
155 By.text("Unresponsive gesture monitor")), 10000) in triggerAnr()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DUtils.java21 import android.support.test.uiautomator.By;
35 private static final BySelector ROOT_ELEMENT_LAYOUT = By.res(PACKAGE, "root_flow_layout");
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
DWorkflowTest.java38 import android.support.test.uiautomator.By;
308 By.text("This printer isn't available right now.")), OPERATION_TIMEOUT_MILLIS)); in addAndSelectPrinter()
347 By.text("This printer isn't available right now.")), in addAndSelectPrinter()
376 By.text("This printer isn't available right now.")), in addAndSelectPrinter()

123