/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleExpandedViewPinControllerTest.kt | 29 import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation in <lambda>() 100 getInstrumentation().runOnMainSync { controller.onDragEnd() } in <lambda>() 107 getInstrumentation().runOnMainSync { in <lambda>() 121 getInstrumentation().runOnMainSync { in <lambda>() 135 getInstrumentation().runOnMainSync { in <lambda>() 152 getInstrumentation().runOnMainSync { in <lambda>() 172 getInstrumentation().runOnMainSync { in <lambda>() 179 getInstrumentation().runOnMainSync { controller.onDragUpdate(pointOnLeft.x, pointOnLeft.y) } in <lambda>() 183 getInstrumentation().runOnMainSync { in <lambda>() 201 getInstrumentation().runOnMainSync { in <lambda>() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsControllerTest.java | 125 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in setup() 126 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in setup() 181 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in setup() 209 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testControlsRevoked_duringAnim() 233 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testFrameDoesntOverlapWithInsets() 258 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testSystemDrivenInsetsAnimationLoggingListener_onReady() 276 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testAnimationEndState() 292 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testAnimationEndState() 299 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testApplyImeVisibility() 309 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testApplyImeVisibility() [all …]
|
D | RunQueueTest.java | 36 getInstrumentation().waitForIdleSync(); in testRunnableRan() 43 getInstrumentation().waitForIdleSync(); in testRunnableCancelled() 50 getInstrumentation().waitForIdleSync(); in testListenerFired() 57 getInstrumentation().waitForIdleSync(); in testTreeObserverKilled()
|
D | VisibilityTest.java | 73 getInstrumentation().waitForIdleSync(); in testVisibleToInvisible() 87 getInstrumentation().waitForIdleSync(); in testVisibleToGone() 101 getInstrumentation().waitForIdleSync(); in testGoneToVisible() 121 getInstrumentation().waitForIdleSync(); in testGoneToInvisible() 141 getInstrumentation().waitForIdleSync(); in testInvisibleToVisible() 161 getInstrumentation().waitForIdleSync(); in testInvisibleToGone()
|
D | DisabledLongpressTest.java | 74 getInstrumentation().waitForIdleSync(); in testKeypadLongClick() 77 getInstrumentation().waitForIdleSync(); in testKeypadLongClick() 84 getInstrumentation().waitForIdleSync(); in testTouchLongClick()
|
D | LongpressTest.java | 70 getInstrumentation().waitForIdleSync(); in testKeypadLongClick() 73 getInstrumentation().waitForIdleSync(); in testKeypadLongClick() 80 getInstrumentation().waitForIdleSync(); in testTouchLongClick()
|
/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/ |
D | BubbleStackViewTest.kt | 136 InstrumentationRegistry.getInstrumentation().runOnMainSync { in <lambda>() 139 InstrumentationRegistry.getInstrumentation().waitForIdleSync() in <lambda>() 147 InstrumentationRegistry.getInstrumentation().runOnMainSync { in <lambda>() 151 InstrumentationRegistry.getInstrumentation().waitForIdleSync() in <lambda>() 162 InstrumentationRegistry.getInstrumentation().runOnMainSync { in <lambda>() 180 InstrumentationRegistry.getInstrumentation().runOnMainSync { in <lambda>() 184 InstrumentationRegistry.getInstrumentation().waitForIdleSync() in <lambda>() 200 InstrumentationRegistry.getInstrumentation().runOnMainSync { in <lambda>() 215 InstrumentationRegistry.getInstrumentation().waitForIdleSync() in <lambda>() 221 InstrumentationRegistry.getInstrumentation().runOnMainSync { in <lambda>() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | CommonUtils.java | 19 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; 42 return getInstrumentation().getUiAutomation(); in getUiAutomation() 55 final UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in getIgnoreOrientationRequest() 87 final KeyguardManager keyguardManager = getInstrumentation().getContext().getSystemService( in dismissKeyguard() 92 final UiDevice device = UiDevice.getInstance(getInstrumentation()); in dismissKeyguard() 101 final UiDevice uiDevice = UiDevice.getInstance(getInstrumentation()); in waitUntilActivityRemoved()
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | FullscreenRotationTest.java | 35 Utils.startElementLayout(getInstrumentation(), 100); in beforeTest() 41 Utils.rotateDevice(getInstrumentation(), Utils.ROTATION_MODE_NATURAL); in afterTest() 49 Utils.rotateDevice(getInstrumentation(), in testRotation() 50 Utils.getDeviceRotation(getInstrumentation()) == Utils.ROTATION_MODE_LEFT ? in testRotation()
|
/frameworks/base/test-base/src/android/test/ |
D | InstrumentationTestCase.java | 74 public Instrumentation getInstrumentation() { in getInstrumentation() method in InstrumentationTestCase 125 T activity = (T) getInstrumentation().startActivitySync(intent); in launchActivityWithIntent() 126 getInstrumentation().waitForIdleSync(); in launchActivityWithIntent() 141 getInstrumentation().runOnMainSync(new Runnable() { in runTestOnUiThread() 192 getInstrumentation().runOnMainSync(new Runnable() { in runTest() 234 getInstrumentation().sendStatus(2, iterations); in runMethod() 257 final Instrumentation instrumentation = getInstrumentation(); in sendKeys() 307 final Instrumentation instrumentation = getInstrumentation(); in sendKeys() 336 final Instrumentation instrumentation = getInstrumentation(); in sendRepeatedKeys()
|
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/ |
D | UiAutomatorTestCase.java | 70 mAutomationSupport = new InstrumentationAutomationSupport(getInstrumentation()); in getAutomationSupport() 88 getInstrumentation().getUiAutomation().setRunAsMonkey(Boolean.valueOf(monkeyVal)); in initialize() 92 getInstrumentation().getContext(), in initialize() 93 getInstrumentation().getUiAutomation())); in initialize()
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/ |
D | PackageManagerPerfTest.java | 73 InstrumentationRegistry.getInstrumentation().getUiAutomation(), 77 final Context mContext = InstrumentationRegistry.getInstrumentation().getContext(); 117 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetAppMetadata() 135 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionExists() 154 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist() 173 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testQueryIntentActivities() 192 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetPackageInfo() 210 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetApplicationInfo() 228 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetActivityInfo() 246 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetInstalledPackages()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | PolicyWarningUIControllerTest.java | 21 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; 81 getInstrumentation().getTargetContext()); 104 getInstrumentation().getTargetContext().getMainThreadHandler(), mContext, in setUp() 112 getInstrumentation().waitForIdleSync(); in setUp() 149 getInstrumentation().waitForIdleSync(); in receiveActionSendNotificationWithNotifiedService_doNothing() 189 getInstrumentation().waitForIdleSync(); in onEnabledServicesChangedLocked_serviceDisabled_removedFromNotifiedSettings() 193 getInstrumentation().waitForIdleSync(); in onEnabledServicesChangedLocked_serviceDisabled_removedFromNotifiedSettings() 201 getInstrumentation().waitForIdleSync(); in onNonA11yCategoryServiceBound_setAlarm() 212 getInstrumentation().waitForIdleSync(); in onNonA11yCategoryServiceUnbound_cancelAlarm() 232 getInstrumentation().waitForIdleSync(); in onSwitchUserLocked_hasAlarmAndSentNotification_cancelNotification() [all …]
|
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/ |
D | ServiceCrashTest.java | 41 getInstrumentation().getContext().getContentResolver(), in setUp() 56 SystemUtil.runShellCommand(getInstrumentation(), in setAMConstants() 59 SystemUtil.runShellCommand(getInstrumentation(), "settings put global " in setAMConstants() 65 Context ctx = getInstrumentation().getContext(); in testCrashQuickly()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | ScrollingThroughListOfFocusablesTest.java | 60 getInstrumentation().waitForIdleSync(); in setUp() 90 getInstrumentation().waitForIdleSync(); in testScrollingDownInFirstItem() 123 getInstrumentation().waitForIdleSync(); in testScrollingToSecondItem() 138 getInstrumentation().waitForIdleSync(); in testNoFadingEdgeAtBottomOfLastItem() 163 getInstrumentation().waitForIdleSync(); in testNavigatingUpThroughInternalSelection() 186 getInstrumentation().waitForIdleSync(); in testNavigatingUpThroughInternalSelection() 236 getInstrumentation().waitForIdleSync(); in ensureNotInTouchMode()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | ScrollViewButtonsAndLabelsTest.java | 71 getInstrumentation().waitForIdleSync(); in testArrowScrollDownOffScreenVerticalFadingEdge() 76 getInstrumentation().waitForIdleSync(); in testArrowScrollDownOffScreenVerticalFadingEdge() 112 getInstrumentation().waitForIdleSync(); in testArrowScrollDownToBottomElementOnScreen() 134 getInstrumentation().waitForIdleSync(); in testArrowScrollUpOffScreenVerticalFadingEdge() 154 getInstrumentation().waitForIdleSync(); in testArrowScrollUpToTopElementOnScreen() 174 getInstrumentation().waitForIdleSync(); in goToBottomButton()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 67 assertNotNull(InstrumentationRegistry.getInstrumentation().getContext()); in testInstrumentationContext() 73 assertNotNull(InstrumentationRegistry.getInstrumentation().getTargetContext()); in testInstrumentationTargetContext() 98 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForTestContext() 107 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForDefaultDisplayContext() 120 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNullUser() 128 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNonNullUser() 136 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNullUser() 144 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNonNullUser() 271 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDeviceIdForTestContext()
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | GamePerformanceTest.java | 61 final String output = (new File(getInstrumentation().getContext().getFilesDir(), in testGraphicBufferMetrics() 64 new ATraceRunner(getInstrumentation(), output, 5, "gfx", new ATraceRunner.Delegate() { in testGraphicBufferMetrics() 85 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testGraphicBufferMetrics() 91 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testPerformanceMetricsWithoutExtraLoad() 110 getInstrumentation().sendStatus(Activity.RESULT_OK, status); in testPerformanceMetricsWithExtraLoad()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | FullscreenMagnificationControllerTest.java | 21 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; 90 getInstrumentation().runOnMainSync(() -> mSurfaceControlViewHost = in setUp() 114 getInstrumentation().runOnMainSync( in tearDown() 132 getInstrumentation().runOnMainSync(() -> in enableFullscreenMagnification_visibleBorder() 166 getInstrumentation().runOnMainSync(() -> in disableFullscreenMagnification_reverseAnimationAndReleaseScvh() 178 getInstrumentation().runOnMainSync(() -> in disableFullscreenMagnification_reverseAnimationAndReleaseScvh() 207 getInstrumentation().runOnMainSync( in onFullscreenMagnificationActivationChangeTrue_deactivating_reverseAnimator() 233 getInstrumentation().runOnMainSync(() -> in onScreenSizeChanged_activated_borderChangedToExpectedSize() 249 getInstrumentation().runOnMainSync(() -> in onScreenSizeChanged_activated_borderChangedToExpectedSize()
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | VibratorManagerServicePermissionTest.java | 19 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; 74 getInstrumentation().getUiAutomation().dropShellPermissionIdentity(); in cleanUp() 118 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in testVibrateWithVibratePermissionAndSameProcessUidIsAllowed() 128 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in testVibrateWithVibratePermissionAndDifferentUidsFails() 137 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in testVibrateWithAllPermissionsAndDifferentUidsIsAllowed()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 157 InstrumentationRegistry.getInstrumentation().runOnMainSync( in tearDown() 173 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testDoubleRelaunch() 183 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testResumeAfterRelaunch() 191 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testRepeatedResume() 211 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testCustomIntentPreservedOnRelaunch() 260 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testOverrideScale() 277 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); in testOverrideScale() 283 InstrumentationRegistry.getInstrumentation().runOnMainSync( in testOverrideScale() 290 InstrumentationRegistry.getInstrumentation().runOnMainSync( in testOverrideScale() 324 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> { in testHandleActivityConfigurationChanged() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListRetainsFocusAcrossLayoutsTest.java | 53 getInstrumentation().waitForIdleSync(); in testBottomButtonRetainsFocusAfterLayout() 67 getInstrumentation().waitForIdleSync(); in testTopButtonOfSecondPositionRetainsFocusAfterLayout() 82 getInstrumentation().waitForIdleSync(); in testBottomButtonOfSecondPositionRetainsFocusAfterLayout()
|
D | ListFocusableTest.java | 195 getInstrumentation().waitForIdleSync(); in setFullAdapter() 204 getInstrumentation().waitForIdleSync(); in setEmptyAdapter() 213 getInstrumentation().waitForIdleSync(); in setNullAdapter() 222 getInstrumentation().waitForIdleSync(); in setFocusable() 231 getInstrumentation().waitForIdleSync(); in setNonFocusable()
|
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
D | ActivityThreadClientTest.java | 29 import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation; 178 getInstrumentation().runOnMainSync(() -> { in testLifecycleOfRelaunch() 184 getInstrumentation().runOnMainSync(() -> clientSession.startActivity(r)); in testLifecycleOfRelaunch() 188 getInstrumentation().runOnMainSync(() -> clientSession.resumeActivity(r)); in testLifecycleOfRelaunch() 192 getInstrumentation().runOnMainSync(() -> clientSession.pauseActivity(r)); in testLifecycleOfRelaunch() 196 getInstrumentation().runOnMainSync(() -> clientSession.stopActivity(r)); in testLifecycleOfRelaunch() 200 getInstrumentation().runOnMainSync(() -> clientSession.destroyActivity(r)); in testLifecycleOfRelaunch() 257 getInstrumentation().runOnMainSync(() -> activity.recreate()); in recreateAndVerifyNoRelaunch() 258 getInstrumentation().waitForIdleSync(); in recreateAndVerifyNoRelaunch() 266 getInstrumentation().runOnMainSync(() -> activity.recreate()); in recreateAndVerifyRelaunched() [all …]
|
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/ |
D | MemoryUsageTest.java | 78 getInstrumentation().getUiAutomation().setRotation(UiAutomation.ROTATION_FREEZE_0); in setUp() 83 getInstrumentation().getUiAutomation().setRotation(UiAutomation.ROTATION_UNFREEZE); in tearDown() 89 (MemoryUsageInstrumentation) getInstrumentation(); in testMemory() 118 ResolveInfo resolveInfo = getInstrumentation().getContext(). in getLauncherPackageName() 161 PackageManager pm = getInstrumentation().getContext() in createMappings() 211 getInstrumentation().getContext().startActivity(homeIntent); in closeApp() 269 ActivityManager am = (ActivityManager) getInstrumentation() in reportError() 290 ActivityManager am = (ActivityManager) getInstrumentation() in getPss() 328 getInstrumentation().getContext().getBasePackageName(), in run() 329 getInstrumentation().getContext().getAttributionTag(), mLaunchIntent, in run()
|