Home
last modified time | relevance | path

Searched refs:instrumentation (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewPopup.java48 final Instrumentation instrumentation = getInstrumentation(); in testPopupSetListSelection() local
52 instrumentation.waitForIdleSync(); in testPopupSetListSelection()
64 instrumentation.waitForIdleSync(); in testPopupSetListSelection()
80 final Instrumentation instrumentation = getInstrumentation(); in testPopupGetListSelection() local
84 instrumentation.waitForIdleSync(); in testPopupGetListSelection()
107 final Instrumentation instrumentation = getInstrumentation(); in testPopupClearListSelection() local
111 instrumentation.waitForIdleSync(); in testPopupClearListSelection()
127 instrumentation.waitForIdleSync(); in testPopupClearListSelection()
140 final Instrumentation instrumentation = getInstrumentation(); in testPopupNavigateNoAdapter() local
144 instrumentation.waitForIdleSync(); in testPopupNavigateNoAdapter()
[all …]
DAutoCompleteTextViewCallbacks.java40 final Instrumentation instrumentation = getInstrumentation(); in testPopupNoSelection() local
44 instrumentation.waitForIdleSync(); in testPopupNoSelection()
46 instrumentation.waitForIdleSync(); in testPopupNoSelection()
65 final Instrumentation instrumentation = getInstrumentation(); in testPopupEnterSelection() local
69 instrumentation.waitForIdleSync(); in testPopupEnterSelection()
80 instrumentation.waitForIdleSync(); in testPopupEnterSelection()
98 instrumentation.waitForIdleSync(); in testPopupEnterSelection()
114 final Instrumentation instrumentation = getInstrumentation(); in testPopupLeaveSelection() local
118 instrumentation.waitForIdleSync(); in testPopupLeaveSelection()
120 instrumentation.waitForIdleSync(); in testPopupLeaveSelection()
[all …]
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DUtils.java43 private static UiObject2 waitForActivity(Instrumentation instrumentation, BySelector selector) { in waitForActivity() argument
44 UiDevice device = UiDevice.getInstance(instrumentation); in waitForActivity()
57 public static UiObject2 waitForElementLayout(Instrumentation instrumentation) { in waitForElementLayout() argument
58 return waitForActivity(instrumentation, ROOT_ELEMENT_LAYOUT); in waitForElementLayout()
64 public static UiObject2 startElementLayout(Instrumentation instrumentation, int numElements) { in startElementLayout() argument
69 instrumentation.getTargetContext().startActivity(intent); in startElementLayout()
70 return waitForElementLayout(instrumentation); in startElementLayout()
73 public static int getDeviceRotation(Instrumentation instrumentation) { in getDeviceRotation() argument
75 UiDevice device = UiDevice.getInstance(instrumentation); in getDeviceRotation()
91 public static void rotateDevice(Instrumentation instrumentation, int rotationMode) { in rotateDevice() argument
[all …]
/frameworks/base/test-base/src/android/test/
DInstrumentationTestCase.java52 public void injectInstrumentation(Instrumentation instrumentation) { in injectInstrumentation() argument
53 mInstrumentation = instrumentation; in injectInstrumentation()
66 public void injectInsrumentation(Instrumentation instrumentation) { in injectInsrumentation() argument
67 injectInstrumentation(instrumentation); in injectInsrumentation()
257 final Instrumentation instrumentation = getInstrumentation(); in sendKeys() local
280 instrumentation.sendKeyDownUpSync(keyCode); in sendKeys()
296 instrumentation.waitForIdleSync(); in sendKeys()
307 final Instrumentation instrumentation = getInstrumentation(); in sendKeys() local
311 instrumentation.sendKeyDownUpSync(keys[i]); in sendKeys()
319 instrumentation.waitForIdleSync(); in sendKeys()
[all …]
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java163 public static List<String> runCommand(Instrumentation instrumentation, String command) { in runCommand() argument
164 return runCommand(instrumentation, command, null); in runCommand()
166 public static List<String> runCommand(Instrumentation instrumentation, String command, in runCommand() argument
172 instrumentation.getUiAutomation().executeShellCommand(command)); in runCommand()
182 public static void runCommandForNoOutput(Instrumentation instrumentation, String command) { in runCommandForNoOutput() argument
183 runCommand(instrumentation, command, result -> result.size() == 0); in runCommandForNoOutput()
186 public static List<String> runShortcutCommand(Instrumentation instrumentation, String command, in runShortcutCommand() argument
188 return runCommand(instrumentation, "cmd shortcut " + command, resultAsserter); in runShortcutCommand()
191 public static List<String> runShortcutCommandForSuccess(Instrumentation instrumentation, in runShortcutCommandForSuccess() argument
193 return runShortcutCommand(instrumentation, command, result -> result.contains("Success")); in runShortcutCommandForSuccess()
[all …]
/frameworks/multidex/instrumentation/
DAndroid.bp16 name: "android-support-multidex-instrumentation-version",
22 …cmd: "echo \"git.version=`cd frameworks/multidex/instrumentation; git log --format=\"%H\" -n 1 || …
23 …t hash not available; exit 0)`\" > $(genDir)/android-support-multidex-instrumentation.version.txt",
25 "android-support-multidex-instrumentation.version.txt",
30 name: "android-support-multidex-instrumentation",
36 ":android-support-multidex-instrumentation-version",
/frameworks/opt/setupwizard/library/
Dself.gradle5 apply from: '../tools/gradle/dist-library-instrumentation-tests.gradle'
23 manifest.srcFile 'test/instrumentation/AndroidManifest.xml'
24 java.srcDirs = ['test/instrumentation/src']
25 res.srcDirs = ['test/instrumentation/res']
44 'gingerbread/test/instrumentation/src',
45 'recyclerview/test/instrumentation/src'
47 res.srcDirs = ['recyclerview/test/instrumentation/res']
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestUtil.java50 TestResultInstrumentation instrumentation, in setupMtpDevice() argument
56 waitForStorages(instrumentation, manager, device.getDeviceId()); in setupMtpDevice()
59 instrumentation.show(Objects.toString(exp.getMessage())); in setupMtpDevice()
109 TestResultInstrumentation instrumentation, in waitForStorages() argument
124 instrumentation.show("Wait for storages."); in waitForStorages()
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsSourceConsumerTest.java70 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setup() local
71 instrumentation.runOnMainSync(() -> { in setup()
72 final Context context = instrumentation.getTargetContext(); in setup()
83 instrumentation.waitForIdleSync(); in setup()
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java211 Test test, Instrumentation instrumentation) { in setInstrumentationIfInstrumentationTestCase() argument
213 ((InstrumentationTestCase) test).injectInstrumentation(instrumentation); in setInstrumentationIfInstrumentationTestCase()
217 public void setInstrumentation(Instrumentation instrumentation) { in setInstrumentation() argument
218 mInstrumentation = instrumentation; in setInstrumentation()
226 public void setInstrumentaiton(Instrumentation instrumentation) { in setInstrumentaiton() argument
227 setInstrumentation(instrumentation); in setInstrumentaiton()
/frameworks/base/cmds/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
DInstrumentationAutomationSupport.java32 InstrumentationAutomationSupport(Instrumentation instrumentation) { in InstrumentationAutomationSupport() argument
33 mInstrumentation = instrumentation; in InstrumentationAutomationSupport()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/util/
DDrawingTestHelper.java42 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in createCanvasActivity() local
46 instrumentation.newActivity( in createCanvasActivity()
57 instrumentation.callActivityOnCreate(activity, null); in createCanvasActivity()
/frameworks/base/
Dpathmap.mk28 multidex/instrumentation/src
44 android-support-multidex-instrumentation
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/
DAndroid.mk21 LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex-instrumentation androidx.test.rules
44 LOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex-instrumentation androidx.test.rules
/frameworks/base/core/tests/coretests/src/android/util/
DOrientationUtil.java54 private OrientationUtil(Activity activity, Instrumentation instrumentation) { in OrientationUtil() argument
56 mInstrumentation = instrumentation; in OrientationUtil()
DListUtil.java35 public ListUtil(ListView listView, Instrumentation instrumentation) { in ListUtil() argument
37 mInstrumentation = instrumentation; in ListUtil()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUiBot.java44 public UiBot(Instrumentation instrumentation, int timeout) { in UiBot() argument
45 mInstrumentation = instrumentation; in UiBot()
46 mDevice = UiDevice.getInstance(instrumentation); in UiBot()
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/monitor/
DWindowAnimationFrameStatsMonitor.java47 public WindowAnimationFrameStatsMonitor(Instrumentation instrumentation) { in WindowAnimationFrameStatsMonitor() argument
48 mInstrumentation = instrumentation; in WindowAnimationFrameStatsMonitor()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DVisibilityLoggerMixin.java17 package com.android.settingslib.core.instrumentation;
19 import static com.android.settingslib.core.instrumentation.Instrumentable.METRICS_CATEGORY_UNKNOWN;
DInstrumentable.java17 package com.android.settingslib.core.instrumentation;
/frameworks/base/tests/ActivityManagerPerfTests/
DREADME.txt15 * If the test app is involved, it will measure the time and send it back to the instrumentation test
27 * Utilities that both the instrumentation test and test app can use
46 * The instrumentation test can collect that time by calling getReceivedTimeNs("tag") and
48 * Each timestamp sent to the instrumentation test is tagged with a tag since multiple timestamps
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DATraceRunner.java48 public ATraceRunner(Instrumentation instrumentation, in ATraceRunner() argument
53 mInstrumentation = instrumentation; in ATraceRunner()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DEditTextTypeActivity.java60 final Instrumentation instrumentation = new Instrumentation(); in onCreate() local
95 instrumentation.sendKeyDownUpSync(code); in onCreate()
/frameworks/base/tools/bit/
Daapt.cpp249 vector<Element*> instrumentation; in inspect_apk() local
250 root->FindElements("", "instrumentation", &instrumentation, true); in inspect_apk()
251 if (instrumentation.size() > 0) { in inspect_apk()
254 apk->runner = instrumentation[0]->GetAttr(ANDROID_NS, "name"); in inspect_apk()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DManualBenchmarkState.java145 public void sendFullStatusReport(Instrumentation instrumentation, String key) {
156 instrumentation.sendStatus(Activity.RESULT_OK, status);

123