Searched refs:automan (Results 1 – 9 of 9) sorted by relevance
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/ |
D | SystemUtil.java | 36 final UiAutomation automan = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in runWithShellPermissionIdentity() local 37 runWithShellPermissionIdentity(automan, runnable, permissions); in runWithShellPermissionIdentity() 50 @NonNull UiAutomation automan, in runWithShellPermissionIdentity() 53 automan.adoptShellPermissionIdentity(permissions); in runWithShellPermissionIdentity() 59 automan.dropShellPermissionIdentity(); in runWithShellPermissionIdentity()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 230 final UiAutomation automan = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in runWithShellPermissionIdentity() local 232 runWithShellPermissionIdentity(automan, () -> result.set(supplier.get())); in runWithShellPermissionIdentity() 242 final UiAutomation automan = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in runWithShellPermissionIdentity() local 244 runWithShellPermissionIdentity(automan, () -> result.set(supplier.get()), permissions); in runWithShellPermissionIdentity() 252 final UiAutomation automan = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in runWithShellPermissionIdentity() local 253 runWithShellPermissionIdentity(automan, runnable); in runWithShellPermissionIdentity() 261 final UiAutomation automan = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in runWithShellPermissionIdentity() local 262 runWithShellPermissionIdentity(automan, runnable, permissions); in runWithShellPermissionIdentity() 270 @NonNull UiAutomation automan, @NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity() 271 runWithShellPermissionIdentity(automan, runnable, null /* permissions */); in runWithShellPermissionIdentity() [all …]
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityManagerTest.java | 477 final UiAutomation automan = sInstrumentation.getUiAutomation( in testAccessibilityServicesStateListenerNoExecutor() local 490 automan.destroy(); in testAccessibilityServicesStateListenerNoExecutor() 498 final UiAutomation automan = sInstrumentation.getUiAutomation( in testAccessibilityServicesStateListenerWithExecutor() local 512 automan.destroy(); in testAccessibilityServicesStateListenerWithExecutor() 544 final UiAutomation automan = sInstrumentation.getUiAutomation( in testAudioDescriptionRequestedChangeListenerWithExecutor() local 559 putSecureSetting(automan, ENABLED_ACCESSIBILITY_AUDIO_DESCRIPTION_BY_DEFAULT, "1"); in testAudioDescriptionRequestedChangeListenerWithExecutor() 565 putSecureSetting(automan, ENABLED_ACCESSIBILITY_AUDIO_DESCRIPTION_BY_DEFAULT, "0"); in testAudioDescriptionRequestedChangeListenerWithExecutor() 574 automan.destroy(); in testAudioDescriptionRequestedChangeListenerWithExecutor() 580 final UiAutomation automan = sInstrumentation.getUiAutomation( in testIsAudioDescriptionEnabled() local 584 putSecureSetting(automan, ENABLED_ACCESSIBILITY_AUDIO_DESCRIPTION_BY_DEFAULT, "1"); in testIsAudioDescriptionEnabled() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsServiceTest.java | 1156 final UiAutomation automan = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in testMmTelManagerRegistrationCallbackS() local 1169 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallbackS() 1174 automan.dropShellPermissionIdentity(); in testMmTelManagerRegistrationCallbackS() 1207 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallbackS() 1212 automan.dropShellPermissionIdentity(); in testMmTelManagerRegistrationCallbackS() 1388 final UiAutomation automan = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in testMmTelManagerRegistrationCallback() local 1401 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallback() 1406 automan.dropShellPermissionIdentity(); in testMmTelManagerRegistrationCallback() 1440 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallback() 1445 automan.dropShellPermissionIdentity(); in testMmTelManagerRegistrationCallback() [all …]
|
D | EabControllerTest.java | 658 final UiAutomation automan = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setProvisioningIntValue() local 660 automan.adoptShellPermissionIdentity(); in setProvisioningIntValue() 665 automan.dropShellPermissionIdentity(); in setProvisioningIntValue()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | NestedShellPermission.java | 54 final UiAutomation automan = in run() local 58 automan.adoptShellPermissionIdentity(permissions); in run() 66 automan.dropShellPermissionIdentity(); in run()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | Helper.java | 89 UiAutomation automan = instrumentation.getUiAutomation(); in takeScreenshot() local 90 return automan.takeScreenshot(); in takeScreenshot()
|
/cts/tests/translation/src/android/translation/cts/ |
D | Helper.java | 212 UiAutomation automan = instrumentation.getUiAutomation(); in takeScreenshot() local 213 final Bitmap bitmap = automan.takeScreenshot(); in takeScreenshot()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyLocationTests.java | 440 final UiAutomation automan = getInstrumentation().getUiAutomation(); in callWithRenouncePermissions() local 441 automan.adoptShellPermissionIdentity(Manifest.permission.RENOUNCE_PERMISSIONS); in callWithRenouncePermissions() 445 automan.dropShellPermissionIdentity(); in callWithRenouncePermissions()
|