Searched refs:instrumentation (Results 1 - 25 of 74) sorted by relevance

123

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
H A DInstrumentable.java17 package com.android.settingslib.core.instrumentation;
H A DVisibilityLoggerMixin.java17 package com.android.settingslib.core.instrumentation;
28 import static com.android.settingslib.core.instrumentation.Instrumentable.METRICS_CATEGORY_UNKNOWN;
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewCallbacks.java39 final Instrumentation instrumentation = getInstrumentation();
43 instrumentation.waitForIdleSync();
45 instrumentation.waitForIdleSync();
64 final Instrumentation instrumentation = getInstrumentation();
68 instrumentation.waitForIdleSync();
79 instrumentation.waitForIdleSync();
97 instrumentation.waitForIdleSync();
113 final Instrumentation instrumentation = getInstrumentation();
117 instrumentation.waitForIdleSync();
119 instrumentation
[all...]
H A DAutoCompleteTextViewPopup.java48 final Instrumentation instrumentation = getInstrumentation();
52 instrumentation.waitForIdleSync();
64 instrumentation.waitForIdleSync();
80 final Instrumentation instrumentation = getInstrumentation();
84 instrumentation.waitForIdleSync();
107 final Instrumentation instrumentation = getInstrumentation();
111 instrumentation.waitForIdleSync();
127 instrumentation.waitForIdleSync();
140 final Instrumentation instrumentation = getInstrumentation();
144 instrumentation
[all...]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/examples/instrumentation/
H A DInstrumentationTest.java17 package android.test.suitebuilder.examples.instrumentation;
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
H A DInstrumentationAutomationSupport.java32 InstrumentationAutomationSupport(Instrumentation instrumentation) { argument
33 mInstrumentation = instrumentation;
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DUtils.java43 private static UiObject2 waitForActivity(Instrumentation instrumentation, BySelector selector) { argument
44 UiDevice device = UiDevice.getInstance(instrumentation);
57 public static UiObject2 waitForElementLayout(Instrumentation instrumentation) { argument
58 return waitForActivity(instrumentation, ROOT_ELEMENT_LAYOUT);
64 public static UiObject2 startElementLayout(Instrumentation instrumentation, int numElements) { argument
69 instrumentation.getTargetContext().startActivity(intent);
70 return waitForElementLayout(instrumentation);
73 public static int getDeviceRotation(Instrumentation instrumentation) { argument
75 UiDevice device = UiDevice.getInstance(instrumentation);
91 public static void rotateDevice(Instrumentation instrumentation, in argument
[all...]
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/util/
H A DKeyboardUtil.java77 public static void setComposingTextInBatch(final Instrumentation instrumentation, argument
81 instrumentation.runOnMainSync(new Runnable() {
92 instrumentation.waitForIdleSync();
95 public static void deleteSurroundingText(final Instrumentation instrumentation, argument
99 instrumentation.runOnMainSync(new Runnable() {
109 instrumentation.waitForIdleSync();
112 public static void setSelection(Instrumentation instrumentation, final Spannable spannable, argument
114 setSelection(instrumentation, spannable, start, start);
117 public static void setSelection(Instrumentation instrumentation, final Spannable spannable, argument
120 instrumentation
131 initTextViewForSimulatedIme(Instrumentation instrumentation, final TextView textView) argument
[all...]
/frameworks/support/navigation/fragment/src/androidTest/java/androidx/navigation/fragment/
H A DEmbeddedXmlTest.java39 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
40 Intent intent = new Intent(instrumentation.getContext(),
44 instrumentation.waitForIdleSync();
H A DImmediateNavigationTest.java44 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
45 Intent intent = new Intent(instrumentation.getContext(),
49 instrumentation.waitForIdleSync();
/frameworks/base/
H A Dpathmap.mk28 multidex/instrumentation/src
44 android-support-multidex-instrumentation
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/
H A DBaseKeyboardShortcutsTestCase.java57 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
61 instrumentation.sendKeySync(downEvent);
62 instrumentation.waitForIdleSync();
66 instrumentation.sendKeySync(upEvent);
67 instrumentation.waitForIdleSync();
H A DNightModeTestCase.java156 final Instrumentation instrumentation =
159 instrumentation.callActivityOnPause(toTest);
160 instrumentation.callActivityOnStop(toTest);
166 instrumentation.callActivityOnStart(toTest);
167 instrumentation.callActivityOnResume(toTest);
195 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
206 instrumentation.waitForIdleSync();
/frameworks/base/test-base/src/android/test/
H A DInstrumentationTestCase.java47 * Injects instrumentation into this test case. This method is
50 * @param instrumentation the instrumentation to use with this instance
52 public void injectInstrumentation(Instrumentation instrumentation) { argument
53 mInstrumentation = instrumentation;
57 * Injects instrumentation into this test case. This method is
60 * @param instrumentation the instrumentation to use with this instance
66 public void injectInsrumentation(Instrumentation instrumentation) { argument
67 injectInstrumentation(instrumentation);
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DOrientationUtil.java55 private OrientationUtil(Activity activity, Instrumentation instrumentation) { argument
57 mInstrumentation = instrumentation;
H A DListUtil.java25 * Various useful stuff for instrumentation testing listview.
35 * @param instrumentation The instrumentation to use.
37 public ListUtil(ListView listView, Instrumentation instrumentation) { argument
39 mInstrumentation = instrumentation;
/frameworks/base/cmds/uiautomator/instrumentation/
H A DAndroid.mk26 LOCAL_MODULE := uiautomator-instrumentation
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawer/
H A DSettingsDrawerActivityTest.java51 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
52 final Intent intent = new Intent(instrumentation.getTargetContext(), TestActivity.class)
54 instrumentation.startActivitySync(intent);
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DTestUtil.java50 TestResultInstrumentation instrumentation,
56 waitForStorages(instrumentation, manager, device.getDeviceId());
59 instrumentation.show(Objects.toString(exp.getMessage()));
109 TestResultInstrumentation instrumentation,
124 instrumentation.show("Wait for storages.");
49 setupMtpDevice( TestResultInstrumentation instrumentation, UsbManager usbManager, MtpManager manager) argument
108 waitForStorages( TestResultInstrumentation instrumentation, MtpManager manager, int deviceId) argument
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/widget/
H A DToastTest.kt33 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 {
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DFragmentTestUtil.java90 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
92 instrumentation.runOnMainSync(new Runnable() {
103 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
105 instrumentation.runOnMainSync(new Runnable() {
117 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
119 instrumentation.runOnMainSync(new Runnable() {
131 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
132 instrumentation.runOnMainSync(new Runnable() {
214 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
217 instrumentation
[all...]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
H A DDrawingTestHelper.java42 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation();
45 final Activity activity = instrumentation.newActivity(
56 instrumentation.callActivityOnCreate(activity, null);
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
H A DTestUtils.java292 * @param instrumentation the instrumentation used to run the test
297 public static void emulateTapOnView(Instrumentation instrumentation, View anchorView, argument
307 injectDownEvent(instrumentation, downTime, xOnScreen, yOnScreen);
308 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen);
309 injectUpEvent(instrumentation, downTime, false, xOnScreen, yOnScreen);
312 instrumentation.waitForIdleSync();
315 private static long injectDownEvent(Instrumentation instrumentation, long downTime, argument
320 instrumentation.sendPointerSync(eventDown);
325 private static void injectMoveEventForTap(Instrumentation instrumentation, lon argument
335 injectUpEvent(Instrumentation instrumentation, long downTime, boolean useCurrentEventTime, int xOnScreen, int yOnScreen) argument
[all...]
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
H A DShortcutManagerTestUtils.java162 public static List<String> runCommand(Instrumentation instrumentation, String command) { argument
163 return runCommand(instrumentation, command, null);
165 public static List<String> runCommand(Instrumentation instrumentation, String command, argument
171 instrumentation.getUiAutomation().executeShellCommand(command));
181 public static void runCommandForNoOutput(Instrumentation instrumentation, String command) { argument
182 runCommand(instrumentation, command, result -> result.size() == 0);
185 public static List<String> runShortcutCommand(Instrumentation instrumentation, String command, argument
187 return runCommand(instrumentation, "cmd shortcut " + command, resultAsserter);
190 public static List<String> runShortcutCommandForSuccess(Instrumentation instrumentation, argument
192 return runShortcutCommand(instrumentation, comman
195 getDefaultLauncher(Instrumentation instrumentation) argument
209 setDefaultLauncher(Instrumentation instrumentation, String component) argument
218 setDefaultLauncher(Instrumentation instrumentation, Context packageContext) argument
223 overrideConfig(Instrumentation instrumentation, String config) argument
227 resetConfig(Instrumentation instrumentation) argument
231 resetThrottling(Instrumentation instrumentation) argument
235 resetAllThrottling(Instrumentation instrumentation) argument
239 clearShortcuts(Instrumentation instrumentation, int userId, String packageName) argument
254 enableComponent(Instrumentation instrumentation, ComponentName cn, boolean enable) argument
263 appOps(Instrumentation instrumentation, String packageName, String op, String mode) argument
268 dumpsysShortcut(Instrumentation instrumentation) argument
278 getCheckinDump(Instrumentation instrumentation) argument
282 isLowRamDevice(Instrumentation instrumentation) argument
286 getIconSize(Instrumentation instrumentation) argument
[all...]
/frameworks/base/packages/SettingsProvider/test/
H A DAndroid.mk8 # because this test is not an instrumentation test. (because the target runs in the system process.)

Completed in 651 milliseconds

123