Home
last modified time | relevance | path

Searched refs:instrumentation (Results 1 – 25 of 186) sorted by relevance

12345678

/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewPopup.java52 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 DAutoCompleteTextViewCallbacks.java40 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 DUtils.java44 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 DMultiWindowUtils.kt29 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 DInstrumentationTestCase.java52 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 DSplitScreenUtils.kt66 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 DMultiWindowUtils.kt27 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 DAnrTest.kt66 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 DCopyContentInSplit.kt39 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 DEnterSplitScreenByDragFromNotification.kt38 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 DSwitchBetweenSplitPairs.kt38 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 DSwitchBackToSplitFromAnotherApp.kt38 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 DDismissSplitScreenByGoHome.kt38 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 DDragDividerToResize.kt38 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 DEnterSplitScreenByDragFromAllApps.kt38 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 DSwitchBackToSplitFromHome.kt38 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 DUnlockKeyguardToSplitScreen.kt36 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 DDismissSplitScreenByDivider.kt38 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 DEnterSplitScreenByDragFromTaskbar.kt38 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 DEnterSplitScreenFromOverview.kt38 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 DSwitchBackToSplitFromRecent.kt38 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 DNotificationUtils.kt30 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 DShortcutManagerTestUtils.java192 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 DSurfaceControlTests.java126 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 DTaskTransitionTest.kt62 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)

12345678