Home
last modified time | relevance | path

Searched refs:getUiAutomation (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DWindowPerfTestBase.java71 public static UiAutomation getUiAutomation() { in getUiAutomation() method in WindowPerfTestBase
72 return getInstrumentation().getUiAutomation(); in getUiAutomation()
76 getUiAutomation().executeShellCommand("atrace --async_start -b 32768 -c " + tags); in startAsyncAtrace()
83 getUiAutomation().executeShellCommand("atrace --async_stop")); in stopAsyncAtraceWithStream()
119 final ParcelFileDescriptor pfd = getUiAutomation().executeShellCommand(command); in executeShellCommand()
134 getUiAutomation().adoptShellPermissionIdentity(); in runWithShellPermissionIdentity()
138 getUiAutomation().dropShellPermissionIdentity(); in runWithShellPermissionIdentity()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DCommonUtils.java41 public static UiAutomation getUiAutomation() { in getUiAutomation() method in CommonUtils
42 return getInstrumentation().getUiAutomation(); in getUiAutomation()
46 getUiAutomation().adoptShellPermissionIdentity(); in runWithShellPermissionIdentity()
50 getUiAutomation().dropShellPermissionIdentity(); in runWithShellPermissionIdentity()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorManagerServicePermissionTest.java74 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/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
DUiAutomatorTestCase.java88 getInstrumentation().getUiAutomation().setRunAsMonkey(Boolean.valueOf(monkeyVal)); in initialize()
93 getInstrumentation().getUiAutomation())); in initialize()
/frameworks/base/core/tests/bugreports/src/com/android/os/bugreports/tests/
DBugreportManagerTest.java527 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces()
531 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces()
538 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces()
541 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in startPreDumpedUiTraces()
547 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces()
550 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces()
553 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in stopPreDumpedUiTraces()
622 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in createFakeTraceFiles()
629 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in createFakeTraceFiles()
638 InstrumentationRegistry.getInstrumentation().getUiAutomation().executeShellCommand( in copyFiles()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DShellTestCase.java58 .getUiAutomation() in shellSetup()
66 .getUiAutomation() in shellTearDown()
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java195 getInstrumentation().getUiAutomation().setRotation(UiAutomation.ROTATION_FREEZE_0); in setUp()
200 getInstrumentation().getUiAutomation().setRotation(UiAutomation.ROTATION_UNFREEZE); in tearDown()
328 getInstrumentation().getUiAutomation().executeShellCommand( in testMeasureStartUpTime()
509 try (ParcelFileDescriptor result = getInstrumentation().getUiAutomation(). in compileApp()
546 getInstrumentation().getUiAutomation(). in compileAppForIorap()
607 ParcelFileDescriptor result = getInstrumentation().getUiAutomation(). in logDumpsysIorapd()
626 try (ParcelFileDescriptor result = getInstrumentation().getUiAutomation(). in waitForIorapCompiled()
764 getInstrumentation().getUiAutomation() in dropCache()
772 try (ParcelFileDescriptor result = getInstrumentation().getUiAutomation(). in checkIfRoot()
785 getInstrumentation().getUiAutomation() in stopIorapd()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/accessibility/
DAccessibilityPerfTest.java125 UiAutomation uiAutomation = sInstrumentation.getUiAutomation(); in testPrefetching()
150 UiAutomation uiAutomation = sInstrumentation.getUiAutomation(); in testConnectUiAutomation()
162 sInstrumentation.getUiAutomation(); in testConnectUiAutomation()
/frameworks/base/apct-tests/perftests/textclassifier/src/android/view/textclassifier/
DTextClassificationManagerPerfTest.java45 InstrumentationRegistry.getInstrumentation().getUiAutomation() in setUpClass()
54 .getUiAutomation() in tearDownClass()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceControlTests.java176 instrumentation.getUiAutomation().syncInputTransactions(); in testSurfaceChangedOnRotation()
187 instrumentation.getUiAutomation().syncInputTransactions(); in testSurfaceChangedOnRotation()
189 instrumentation.getUiAutomation().syncInputTransactions(); in testSurfaceChangedOnRotation()
/frameworks/base/apct-tests/perftests/windowmanager/src/android/wm/
DWindowAddRemovePerfTest.java57 getUiAutomation().adoptShellPermissionIdentity(); in setUpClass()
62 getUiAutomation().dropShellPermissionIdentity(); in tearDownClass()
/frameworks/base/core/tests/coretests/src/android/window/
DBackNavigationTest.java63 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setup()
93 mInstrumentation.getUiAutomation().waitForIdle(500, 1000); in assertCallbackIsCalled()
/frameworks/base/tests/CtsSurfaceControlTestsStaging/src/main/java/android/view/surfacecontroltests/
DSurfaceControlTest.java59 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in setUp()
81 .getUiAutomation() in tearDown()
/frameworks/base/apct-tests/perftests/permission/src/android/perftests/permission/
DPermissionServicePerfTest.kt45 InstrumentationRegistry.getInstrumentation().getUiAutomation(), in <lambda>()
49 val mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation() in <lambda>()
DPermissionManagerPerfTest.kt40 InstrumentationRegistry.getInstrumentation().getUiAutomation(),
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceBrokerTest.java266 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testIsBluetoothAudioDeviceCategoryFixed()
286 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testIsBluetoothAudioDeviceCategoryFixed()
308 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testGetAndUpdateBtAdiDeviceStateCategoryForAddress()
336 InstrumentationRegistry.getInstrumentation().getUiAutomation() in testGetAndUpdateBtAdiDeviceStateCategoryForAddress()
/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/
DCrossUserPackageVisibilityTests.java129 mInstrumentation.getUiAutomation().dropShellPermissionIdentity(); in tearDown()
217 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(CLEAR_APP_USER_DATA); in testClearApplicationUserData_cannotDetectStubPkg()
227 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(DELETE_PACKAGES); in testGetBlockUninstallForUser_cannotDetectStubPkg()
246 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity( in testMovePackage_cannotDetectStubPkg()
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerNativeTest.java92 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in setup()
113 .getUiAutomation() in tearDown()
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/
DSurfaceFlingerPerfTest.java113 .getUiAutomation() in suiteSetup()
269 InstrumentationRegistry.getInstrumentation().getUiAutomation().takeScreenshot(); in displayScreenshot()
279 InstrumentationRegistry.getInstrumentation().getUiAutomation().takeScreenshot( in layerScreenshot()
/frameworks/base/core/java/android/os/
DVintfObject.java127 var automation = instrumentation.getUiAutomation(); in runShellCommand()
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
DEventsCommand.java55 automationWrapper.getUiAutomation().setOnAccessibilityEventListener( in run()
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/
DSoundTriggerMiddlewareLoggingLatencyTest.java80 InstrumentationRegistry.getInstrumentation().getUiAutomation() in setUp()
99 InstrumentationRegistry.getInstrumentation().getUiAutomation() in tearDown()
/frameworks/base/core/tests/coretests/src/android/content/
DPermissionCheckerTest.java42 InstrumentationRegistry.getInstrumentation().getUiAutomation();
46 InstrumentationRegistry.getInstrumentation().getUiAutomation() in tearDown()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DATraceRunner.java70 mInstrumentation.getUiAutomation().executeShellCommand(cmd); in doInBackground()
/frameworks/base/core/tests/coretests/src/android/app/
DKeyguardManagerTest.java66 .getUiAutomation() in setup()
74 .getUiAutomation() in cleanup()

1234