/aosp14/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | AutoCompleteTextViewPopup.java | 52 instrumentation.waitForIdleSync(); in testPopupSetListSelection() 64 instrumentation.waitForIdleSync(); in testPopupSetListSelection() 84 instrumentation.waitForIdleSync(); in testPopupGetListSelection() 111 instrumentation.waitForIdleSync(); in testPopupClearListSelection() 127 instrumentation.waitForIdleSync(); in testPopupClearListSelection() 144 instrumentation.waitForIdleSync(); in testPopupNavigateNoAdapter() 160 instrumentation.waitForIdleSync(); in testPopupNavigateNoAdapter() 181 instrumentation.waitForIdleSync(); in testPopupShow() 193 instrumentation.waitForIdleSync(); in testPopupShow() 204 instrumentation.waitForIdleSync(); in testPopupShow() [all …]
|
H A D | AutoCompleteTextViewCallbacks.java | 40 final Instrumentation instrumentation = getInstrumentation(); in testPopupNoSelection() local 44 instrumentation.waitForIdleSync(); in testPopupNoSelection() 46 instrumentation.waitForIdleSync(); in testPopupNoSelection() 65 final Instrumentation instrumentation = getInstrumentation(); in testPopupEnterSelection() local 69 instrumentation.waitForIdleSync(); in testPopupEnterSelection() 80 instrumentation.waitForIdleSync(); in testPopupEnterSelection() 98 instrumentation.waitForIdleSync(); in testPopupEnterSelection() 118 instrumentation.waitForIdleSync(); in testPopupLeaveSelection() 120 instrumentation.waitForIdleSync(); in testPopupLeaveSelection() 124 instrumentation.waitForIdleSync(); in testPopupLeaveSelection() [all …]
|
/aosp14/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
H A D | Utils.java | 44 private static UiObject2 waitForActivity(Instrumentation instrumentation, BySelector selector) { in waitForActivity() argument 45 UiDevice device = UiDevice.getInstance(instrumentation); in waitForActivity() 58 public static UiObject2 waitForElementLayout(Instrumentation instrumentation) { in waitForElementLayout() argument 59 return waitForActivity(instrumentation, ROOT_ELEMENT_LAYOUT); in waitForElementLayout() 65 public static UiObject2 startElementLayout(Instrumentation instrumentation, int numElements) { in startElementLayout() argument 70 instrumentation.getTargetContext().startActivity(intent); in startElementLayout() 71 return waitForElementLayout(instrumentation); in startElementLayout() 74 public static int getDeviceRotation(Instrumentation instrumentation) { in getDeviceRotation() argument 76 UiDevice device = UiDevice.getInstance(instrumentation); in getDeviceRotation() 92 public static void rotateDevice(Instrumentation instrumentation, int rotationMode) { in rotateDevice() argument [all …]
|
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/ |
H A D | MultiWindowUtils.kt | 29 instrumentation: Instrumentation, 32 ) : StandardAppHelper(instrumentation, activityLabel, componentsInfo) { 35 fun executeShellCommand(instrumentation: Instrumentation, cmd: String) { 37 SystemUtil.runShellCommand(instrumentation, cmd) 56 fun setSupportsNonResizableMultiWindow(instrumentation: Instrumentation, configValue: Int) = 58 instrumentation, 62 fun resetMultiWindowConfig(instrumentation: Instrumentation) = 63 executeShellCommand(instrumentation, resetMultiWindowConfigCommand)
|
/aosp14/frameworks/base/test-base/src/android/test/ |
H A D | InstrumentationTestCase.java | 52 public void injectInstrumentation(Instrumentation instrumentation) { in injectInstrumentation() argument 53 mInstrumentation = instrumentation; in injectInstrumentation() 66 public void injectInsrumentation(Instrumentation instrumentation) { in injectInsrumentation() argument 67 injectInstrumentation(instrumentation); in injectInsrumentation() 257 final Instrumentation instrumentation = getInstrumentation(); in sendKeys() local 280 instrumentation.sendKeyDownUpSync(keyCode); in sendKeys() 296 instrumentation.waitForIdleSync(); in sendKeys() 311 instrumentation.sendKeyDownUpSync(keys[i]); in sendKeys() 319 instrumentation.waitForIdleSync(); in sendKeys() 343 instrumentation.sendKeyDownUpSync(keyCode); in sendRepeatedKeys() [all …]
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/ |
H A D | SplitScreenUtils.kt | 66 instrumentation, 73 instrumentation, 82 NotificationAppHelper(instrumentation) 84 fun getIme(instrumentation: Instrumentation): ImeAppHelper = ImeAppHelper(instrumentation) 160 instrumentation: Instrumentation, 204 instrumentation, 212 instrumentation, 222 instrumentation, 233 instrumentation: Instrumentation, 249 instrumentation: Instrumentation, [all …]
|
H A D | MultiWindowUtils.kt | 27 private fun executeShellCommand(instrumentation: Instrumentation, cmd: String) { 29 SystemUtil.runShellCommand(instrumentation, cmd) 48 fun setSupportsNonResizableMultiWindow(instrumentation: Instrumentation, configValue: Int) = 50 instrumentation, 54 fun resetMultiWindowConfig(instrumentation: Instrumentation) = 55 executeShellCommand(instrumentation, resetMultiWindowConfigCommand)
|
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/ |
H A D | AnrTest.kt | 66 private val instrumentation = InstrumentationRegistry.getInstrumentation() regex 74 val contentResolver = instrumentation.targetContext.contentResolver 82 val contentResolver = instrumentation.targetContext.contentResolver 103 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) 124 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) 136 instrumentation.runOnMainSync { 137 val am = instrumentation.getContext().getSystemService(ActivityManager::class.java) 154 val uiDevice: UiDevice = UiDevice.getInstance(instrumentation) 169 instrumentation.uiAutomation.injectInputEvent(downEvent, false /* sync*/) 177 instrumentation.uiAutomation.executeShellCommand(startCmd)
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/service/splitscreen/scenarios/ |
H A D | CopyContentInSplit.kt | 39 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 41 private val wmHelper = WindowManagerStateHelper(instrumentation) 42 private val device = UiDevice.getInstance(instrumentation) 43 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 44 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation) 45 private val textEditApp = SplitScreenUtils.getIme(instrumentation) 59 SplitScreenUtils.copyContentInSplit(instrumentation, device, primaryApp, textEditApp)
|
H A D | EnterSplitScreenByDragFromNotification.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation) 44 private val sendNotificationApp = SplitScreenUtils.getSendNotification(instrumentation) 62 SplitScreenUtils.dragFromNotificationToSplit(instrumentation, device, wmHelper)
|
H A D | SwitchBetweenSplitPairs.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation) 44 private val thirdApp = SplitScreenUtils.getIme(instrumentation) 45 private val fourthApp = SplitScreenUtils.getSendNotification(instrumentation)
|
H A D | SwitchBackToSplitFromAnotherApp.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation) 44 private val thirdApp = SplitScreenUtils.getNonResizeable(instrumentation)
|
H A D | DismissSplitScreenByGoHome.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
H A D | DragDividerToResize.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
H A D | EnterSplitScreenByDragFromAllApps.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
H A D | SwitchBackToSplitFromHome.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
H A D | UnlockKeyguardToSplitScreen.kt | 36 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 38 private val wmHelper = WindowManagerStateHelper(instrumentation) 39 private val device = UiDevice.getInstance(instrumentation) 40 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 41 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
H A D | DismissSplitScreenByDivider.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
H A D | EnterSplitScreenByDragFromTaskbar.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
H A D | EnterSplitScreenFromOverview.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
H A D | SwitchBackToSplitFromRecent.kt | 38 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 40 private val wmHelper = WindowManagerStateHelper(instrumentation) 41 private val device = UiDevice.getInstance(instrumentation) 42 private val primaryApp = SplitScreenUtils.getPrimary(instrumentation) 43 private val secondaryApp = SplitScreenUtils.getSecondary(instrumentation)
|
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/service/notification/scenarios/ |
H A D | NotificationUtils.kt | 30 private val instrumentation: Instrumentation = InstrumentationRegistry.getInstrumentation() 32 private val wmHelper = WindowManagerStateHelper(instrumentation) 33 private val device = UiDevice.getInstance(instrumentation) 41 instrumentation.context.getSystemService(WindowManager::class.java) 58 instrumentation.uiAutomation.syncInputTransactions() 64 instrumentation.uiAutomation.syncInputTransactions()
|
/aosp14/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
H A D | ShortcutManagerTestUtils.java | 192 return runCommand(instrumentation, command, null); in runCommand() 241 final Context context = instrumentation.getContext(); in getDefaultLauncher() 292 public static void resetConfig(Instrumentation instrumentation) { in resetConfig() argument 293 runShortcutCommandForSuccess(instrumentation, "reset-config"); in resetConfig() 296 public static void resetThrottling(Instrumentation instrumentation) { in resetThrottling() argument 297 runShortcutCommandForSuccess(instrumentation, "reset-throttling"); in resetThrottling() 306 runShortcutCommandForSuccess(instrumentation, "clear-shortcuts " in clearShortcuts() 323 runCommand(instrumentation, in enableComponent() 333 public static void dumpsysShortcut(Instrumentation instrumentation) { in dumpsysShortcut() argument 348 return getCheckinDump(instrumentation).getBoolean("lowRam"); in isLowRamDevice() [all …]
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | SurfaceControlTests.java | 126 final Instrumentation instrumentation = getInstrumentation(); in testSurfaceChangedOnRotation() local 127 final Context context = instrumentation.getContext(); in testSurfaceChangedOnRotation() 131 final Activity activity = instrumentation.startActivitySync(intent); in testSurfaceChangedOnRotation() 134 instrumentation.runOnMainSync(() -> activity.setContentView(sv)); in testSurfaceChangedOnRotation() 157 instrumentation.getUiAutomation().syncInputTransactions(); in testSurfaceChangedOnRotation() 158 instrumentation.waitForIdleSync(); in testSurfaceChangedOnRotation() 168 instrumentation.getUiAutomation().syncInputTransactions(); in testSurfaceChangedOnRotation() 170 instrumentation.getUiAutomation().syncInputTransactions(); in testSurfaceChangedOnRotation()
|
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/launch/ |
H A D | TaskTransitionTest.kt | 62 private val launchNewTaskApp = NewTasksAppHelper(instrumentation) 63 private val simpleApp = SimpleAppHelper(instrumentation) 64 private val wallpaper by lazy { getWallpaperPackage(instrumentation) } 194 private fun getWallpaperPackage(instrumentation: Instrumentation): IComponentMatcher { 195 val wallpaperManager = WallpaperManager.getInstance(instrumentation.targetContext) 198 ?: getStaticWallpaperPackage(instrumentation) 201 private fun getStaticWallpaperPackage(instrumentation: Instrumentation): IComponentMatcher { 209 instrumentation.targetContext.resources.getString(resourceId)
|