/frameworks/support/navigation/fragment/src/androidTest/java/androidx/navigation/fragment/ |
ImmediateNavigationTest.java | 22 import android.app.Instrumentation; 44 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); local 45 Intent intent = new Intent(instrumentation.getContext(), 49 instrumentation.waitForIdleSync();
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
TestUtil.java | 50 TestResultInstrumentation instrumentation, 56 waitForStorages(instrumentation, manager, device.getDeviceId()); 59 instrumentation.show(Objects.toString(exp.getMessage())); 109 TestResultInstrumentation instrumentation, 124 instrumentation.show("Wait for storages.");
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
InstrumentationUtils.java | 19 import android.app.Instrumentation; 33 /** Static utility methods pertaining to {@link Instrumentation}. */ 41 private static Instrumentation instrumentation; field in class:InstrumentationUtils 50 public static synchronized void init(Instrumentation instrumentation, Bundle arguments) { 51 if (InstrumentationUtils.instrumentation != null) { 54 InstrumentationUtils.instrumentation = instrumentation; 62 if (instrumentation == null) [all...] |
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
FocusHandlingTest.java | 31 import android.app.Instrumentation; 237 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); local 240 instrumentation.getUiAutomation(), 246 instrumentation.runOnMainSync(() -> editText.requestFocus()); 258 instrumentation.runOnMainSync(() -> editText.setText("")); 262 final Context context = instrumentation.getTargetContext(); 273 instrumentation.runOnMainSync(() -> popupWindow.showAsDropDown(editText)); 274 instrumentation.waitForIdleSync(); 284 instrumentation.runOnMainSync(() -> editText.setText("")) 341 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); local [all...] |
/cts/tests/tests/telecom/src/android/telecom/cts/ |
TestUtils.java | 18 import android.app.Instrumentation; 197 public static String setDefaultDialer(Instrumentation instrumentation, String packageName) 199 return executeShellCommand(instrumentation, COMMAND_SET_DEFAULT_DIALER + packageName); 202 public static String getDefaultDialer(Instrumentation instrumentation) throws Exception { 203 return executeShellCommand(instrumentation, COMMAND_GET_DEFAULT_DIALER); 206 public static String getSystemDialer(Instrumentation instrumentation) throws Exception { 207 return executeShellCommand(instrumentation, COMMAND_GET_SYSTEM_DIALER) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
Utils.java | 19 import android.app.Instrumentation; 45 Instrumentation instrumentation) { 46 setAppOps(packageName, operation, instrumentation, true); 50 Instrumentation instrumentation) { 51 setAppOps(packageName, operation, instrumentation, false); 61 Instrumentation instrumentation, boolean enable) { 68 instrumentation.getUiAutomation().executeShellCommand(cmd.toString()) [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/widget/ |
ToastTest.kt | 33 private val instrumentation = InstrumentationRegistry.getInstrumentation() 36 fun createToastWithTextShort() = instrumentation.runOnMainSync { 44 fun createToastWithTextLong() = instrumentation.runOnMainSync { 52 fun createToastWithResIdShort() = instrumentation.runOnMainSync { 60 fun createToastWithResIdLong() = instrumentation.runOnMainSync {
|