HomeSort by relevance Sort by last modified time
    Searched refs:Instrumentation (Results 1 - 25 of 254) sorted by null

1 2 3 4 5 6 7 8 91011

  /frameworks/testing/support/src/android/support/test/internal/runner/
InstrumentationRegistry.java 21 import android.app.Instrumentation;
26 * Holds a reference to the instrumentation running in the process.
30 private static final AtomicReference<Instrumentation> sInstrumentationRef =
31 new AtomicReference<Instrumentation>(null);
34 * Returns the instrumentation currently running.
36 * @throws IllegalStateException if instrumentation hasn't been registered
38 public static Instrumentation getInstance() {
39 return checkNotNull(sInstrumentationRef.get(), "No instrumentation registered. " +
40 "Must run under a registering instrumentation.");
44 * Records/exposes the instrumentation currently running
    [all...]
  /frameworks/testing/support/tests/src/android/support/test/
InstrumentationJUnit4Fixture.java 18 import android.app.Instrumentation;
30 public Instrumentation mInstrumentation;
InstrumentationJUnit4Test.java 18 import android.app.Instrumentation;
32 public Instrumentation mInstrumentation;
MyInstrumentationTestCase.java 18 import android.app.Instrumentation;
23 * Placeholder test to verify {@link Instrumentation} gets injected to
33 assertNotNull("instrumentation was not injected", getInstrumentation());
  /frameworks/testing/uiautomator/instrumentation/testrunner-src/com/android/uiautomator/testrunner/
InstrumentationAutomationSupport.java 18 import android.app.Instrumentation;
22 * A wrapper around {@link Instrumentation} to provide sendStatus function
25 * {@link Instrumentation#sendStatus(int, Bundle)} instead.
30 private Instrumentation mInstrumentation;
32 InstrumentationAutomationSupport(Instrumentation instrumentation) {
33 mInstrumentation = instrumentation;
  /external/llvm/unittests/Transforms/DebugIR/
Makefile 12 LINK_COMPONENTS := Instrumentation
  /frameworks/base/core/java/android/test/
InstrumentationTestSuite.java 19 import android.app.Instrumentation;
26 * A {@link junit.framework.TestSuite} that injects {@link android.app.Instrumentation} into
31 private final Instrumentation mInstrumentation;
34 * @param instr The instrumentation that will be injected into each
37 public InstrumentationTestSuite(Instrumentation instr) {
42 public InstrumentationTestSuite(String name, Instrumentation instr) {
49 * @param instr The instrumentation to inject into each test before
52 public InstrumentationTestSuite(final Class theClass, Instrumentation instr) {
  /frameworks/testing/support/src/android/support/test/internal/runner/listener/
InstrumentationRunListener.java 18 import android.app.Instrumentation;
26 * A {@link RunListener} that has access to a {@link Instrumentation}. This is useful for
27 * test result listeners that want to dump data back to the instrumentation results.
31 private Instrumentation mInstr;
33 public Instrumentation getInstrumentation() {
37 public void setInstrumentation(Instrumentation instr) {
49 * Convenience method to output a string on instrumentation output
53 b.putString(Instrumentation.REPORT_KEY_STREAMRESULT, msg);
58 * Optional callback subclasses can implement. Will be called when instrumentation run
61 * @param streamResult the {@link PrintStream} to instrumentation out
    [all...]
  /external/droiddriver/src/com/google/android/droiddriver/instrumentation/
InstrumentationInputInjector.java 17 package com.google.android.droiddriver.instrumentation;
19 import android.app.Instrumentation;
28 private final Instrumentation instrumentation; field in class:InstrumentationInputInjector
30 public InstrumentationInputInjector(Instrumentation instrumentation) {
31 this.instrumentation = instrumentation;
37 instrumentation.sendPointerSync((MotionEvent) event);
39 instrumentation.sendKeySync((KeyEvent) event)
    [all...]
  /frameworks/testing/support/src/android/support/test/internal/runner/junit3/
AndroidTestSuite.java 18 import android.app.Instrumentation;
37 private final Instrumentation mInstr;
39 public AndroidTestSuite(Class<?> testClass, Bundle bundle, Instrumentation instr) {
43 public AndroidTestSuite(TestSuite s, Bundle bundle, Instrumentation instr) {
51 // wrap the result in a new AndroidTestResult to do the bundle and instrumentation injection
AndroidJUnit3Builder.java 18 import android.app.Instrumentation;
33 private Instrumentation mInstr;
37 public AndroidJUnit3Builder(Instrumentation instr, Bundle bundle, boolean skipExecution) {
AndroidTestResult.java 18 import android.app.Instrumentation;
32 private final Instrumentation mInstr;
35 AndroidTestResult(Bundle bundle, Instrumentation instr, TestResult result) {
  /cts/hostsidetests/appsecurity/test-apps/InstrumentationAppDiffCert/src/com/android/cts/instrumentationdiffcertapp/
InstrumentationFailToRunTest.java 19 import android.app.Instrumentation;
26 * Test that a instrumentation targeting another app with a different cert fails.
32 // assumes android.app.Instrumentation has been defined in this app's AndroidManifest.xml
35 Instrumentation.class);
39 fail("could launch instrumentation");
  /external/droiddriver/src/com/google/android/droiddriver/helpers/
DroidDrivers.java 19 import android.app.Instrumentation;
25 import com.google.android.droiddriver.instrumentation.InstrumentationDriver;
35 private static Instrumentation instrumentation; field in class:DroidDrivers
68 public static void initInstrumentation(Instrumentation instrumentation, Bundle arguments) {
69 if (DroidDrivers.instrumentation != null) {
72 DroidDrivers.instrumentation = instrumentation;
76 public static Instrumentation getInstrumentation()
    [all...]
  /frameworks/base/test-runner/src/android/test/
LaunchPerformanceBase.java 19 import android.app.Instrumentation;
25 * Base class for all launch performance Instrumentation classes.
29 public class LaunchPerformanceBase extends Instrumentation {
  /external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/
KeyUtils.java 7 import android.app.Instrumentation;
17 public static void pressEnter(Instrumentation instrumentation) {
18 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN,
20 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP,
22 instrumentation.waitForIdleSync();
28 public static void pressTab(Instrumentation instrumentation) {
29 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN,
31 instrumentation.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP
    [all...]
TestTouchUtils.java 8 import android.app.Instrumentation;
37 private static void sendAction(Instrumentation instrumentation, int action, long downTime,
41 instrumentation.sendPointerSync(event);
42 instrumentation.waitForIdleSync();
48 * @param instrumentation Instrumentation object used by the test.
52 public static void singleClick(Instrumentation instrumentation, float x, float y) {
54 sendAction(instrumentation, MotionEvent.ACTION_DOWN, downTime, x, y)
    [all...]
HistoryUtils.java 9 import android.app.Instrumentation;
28 * @param instrumentation an Instrumentation instance.
33 public static boolean canGoBackOnUiThread(Instrumentation instrumentation,
36 instrumentation, new Callable<Boolean>() {
47 * @param instrumentation an Instrumentation instance.
54 public static boolean canGoToOffsetOnUiThread(Instrumentation instrumentation,
    [all...]
  /cts/tests/app/src/android/app/cts/
OrientationTestUtils.java 20 import android.app.Instrumentation;
36 * Same as {@link #toggleOrientation(Activity)} except {@link Instrumentation#waitForIdleSync()}
40 * @param instrumentation use for idle syncing
43 final Instrumentation instrumentation) {
48 changeOrientation(activity, instrumentation, newOrientation);
49 changeOrientation(activity, instrumentation, originalOrientation);
53 Instrumentation instrumentation, final int orientation) {
55 if (instrumentation != null)
    [all...]
  /external/objenesis/tck-android/src/org/objenesis/tck/android/
TckInstrumentation.java 20 import android.app.Instrumentation;
30 * Wraps the Objenesis TCK so that it can be invoked on Android as an {@link Instrumentation}.
34 public class TckInstrumentation extends Instrumentation {
49 bundle.putString(Instrumentation.REPORT_KEY_STREAMRESULT, fromStdout);
  /frameworks/testing/support/src/android/support/test/internal/runner/junit4/
AndroidJUnit4Builder.java 18 import android.app.Instrumentation;
33 private final Instrumentation mInstrumentation;
37 public AndroidJUnit4Builder(Instrumentation instr, Bundle bundle, boolean skipExecution) {
  /cts/common/device-side/util/src/com/android/compatibility/common/util/
DeviceReportLog.java 19 import android.app.Instrumentation;
28 * NOTE: tests MUST call {@link #submit(Instrumentation)} if and only if the test passes in order to
36 public void submit(Instrumentation instrumentation) {
40 instrumentation.sendStatus(INST_STATUS_IN_PROGRESS, output);
  /cts/tests/tests/app/src/android/app/cts/
Instrumentation_ActivityResultTest.java 20 import android.app.Instrumentation;
21 import android.app.Instrumentation.ActivityResult;
  /external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/
InstrumentationUtils.java 7 import android.app.Instrumentation;
14 * Utility methods built around the android.app.Instrumentation class.
21 public static <R> R runOnMainSyncAndGetResult(Instrumentation instrumentation,
24 instrumentation.runOnMainSync(task);
  /frameworks/testing/espresso/libs/
testrunner-runtime-1.1.jar 

Completed in 1084 milliseconds

1 2 3 4 5 6 7 8 91011