/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowLocalBroadcastManager.java | 1 package com.xtremelabs.robolectric.shadows; 4 import com.xtremelabs.robolectric.Robolectric; 12 Robolectric.Reflection.setFinalStaticField(LocalBroadcastManager.class, "mInstance", null);
|
ShadowMediaStore.java | 1 package com.xtremelabs.robolectric.shadows; 7 import com.xtremelabs.robolectric.Robolectric; 8 import com.xtremelabs.robolectric.internal.Implementation; 9 import com.xtremelabs.robolectric.internal.Implements; 27 Robolectric.Reflection.setFinalStaticField(MediaStore.Images.Media.class, "EXTERNAL_CONTENT_URI", 30 Robolectric.Reflection.setFinalStaticField(MediaStore.Images.Media.class, "INTERNAL_CONTENT_URI", 33 Robolectric.Reflection.setFinalStaticField(MediaStore.Video.Media.class, "EXTERNAL_CONTENT_URI", 36 Robolectric.Reflection.setFinalStaticField(MediaStore.Video.Media.class, "INTERNAL_CONTENT_URI",
|
ShadowSettings.java | 1 package com.xtremelabs.robolectric.shadows; 5 import com.xtremelabs.robolectric.Robolectric; 6 import com.xtremelabs.robolectric.internal.Implementation; 7 import com.xtremelabs.robolectric.internal.Implements; 136 Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.AIRPLANE_MODE_ON, isAirplaneMode ? 1 : 0); 145 Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn ? 1 : 0); 154 Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.TIME_12_24, use24HourTimeFormat ? 24 : 12);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/matchers/ |
StartedMatcherTest.java | 1 package com.xtremelabs.robolectric.matchers; 9 import com.xtremelabs.robolectric.Robolectric; 10 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 19 import static com.xtremelabs.robolectric.matchers.StartedMatcher.createIntent; 29 Robolectric.bindDefaultShadowClasses(); 30 Robolectric.resetStaticState();
|
StartedServiceMatcherTest.java | 1 package com.xtremelabs.robolectric.matchers; 7 import com.xtremelabs.robolectric.Robolectric; 8 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 16 import static com.xtremelabs.robolectric.matchers.StartedServiceMatcher.createIntent; 26 Robolectric.bindDefaultShadowClasses(); 27 Robolectric.resetStaticState();
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
AsyncTaskTest.java | 1 package com.xtremelabs.robolectric.shadows; 11 import com.xtremelabs.robolectric.Robolectric; 12 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 13 import com.xtremelabs.robolectric.util.Join; 14 import com.xtremelabs.robolectric.util.Transcript; 26 Robolectric.getBackgroundScheduler().pause(); 27 Robolectric.getUiThreadScheduler().pause(); 37 Robolectric.runBackgroundTasks(); 41 Robolectric.runUiThreadTasks() [all...] |
ApplicationTest.java | 1 package com.xtremelabs.robolectric.shadows; 15 import com.xtremelabs.robolectric.ApplicationResolver; 16 import com.xtremelabs.robolectric.R; 17 import com.xtremelabs.robolectric.Robolectric; 18 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 19 import com.xtremelabs.robolectric.res.ResourceLoader; 20 import com.xtremelabs.robolectric.res.StringResourceLoader; 21 import com.xtremelabs.robolectric.util.TestBroadcastReceiver; 29 import static com.xtremelabs.robolectric.Robolectric.shadowOf [all...] |
DefaultRequestDirectorTest.java | 1 package com.xtremelabs.robolectric.shadows; 3 import com.xtremelabs.robolectric.Robolectric; 4 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 5 import com.xtremelabs.robolectric.tester.org.apache.http.FakeHttpLayer; 6 import com.xtremelabs.robolectric.tester.org.apache.http.RequestMatcher; 7 import com.xtremelabs.robolectric.tester.org.apache.http.TestHttpResponse; 8 import com.xtremelabs.robolectric.util.Strings; 33 import static com.xtremelabs.robolectric.Robolectric.shadowOf [all...] |
HandlerThreadTest.java | 1 package com.xtremelabs.robolectric.shadows; 3 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 6 import com.xtremelabs.robolectric.Robolectric; 7 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 35 assertNotSame(handlerThread.getLooper(), Robolectric.application.getMainLooper());
|
FragmentManagerTest.java | 1 package com.xtremelabs.robolectric.shadows; 14 import com.xtremelabs.robolectric.Robolectric; 15 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 16 import com.xtremelabs.robolectric.tester.android.util.TestFragmentManager; 17 import com.xtremelabs.robolectric.util.Scheduler; 18 import com.xtremelabs.robolectric.util.TestRunnable; 23 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 201 Robolectric.pauseMainLooper() [all...] |
HandlerTest.java | 1 package com.xtremelabs.robolectric.shadows; 6 import com.xtremelabs.robolectric.Robolectric; 7 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 8 import com.xtremelabs.robolectric.util.TestRunnable; 9 import com.xtremelabs.robolectric.util.Transcript; 14 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf; 15 import static com.xtremelabs.robolectric.Robolectric.shadowOf [all...] |
BundleTest.java | 1 package com.xtremelabs.robolectric.shadows; 6 import com.xtremelabs.robolectric.Robolectric; 7 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 110 Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT", 119 Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT", 127 Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT", 134 Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT", 142 Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT", 149 Robolectric.Reflection.setFinalStaticField(Build.VERSION.class, "SDK_INT" [all...] |
ContextWrapperTest.java | 1 package com.xtremelabs.robolectric.shadows; 10 import com.xtremelabs.robolectric.Robolectric; 11 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 12 import com.xtremelabs.robolectric.util.Transcript; 21 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 93 new ContextWrapper(Robolectric.application).registerReceiver(receiver, intentFilter("foo", "baz")); 94 new ContextWrapper(Robolectric.application).sendBroadcast(new Intent("foo")); 95 Robolectric.application.sendBroadcast(new Intent("baz")) [all...] |
ActivityTest.java | 1 package com.xtremelabs.robolectric.shadows; 18 import com.xtremelabs.robolectric.ApplicationResolver; 19 import com.xtremelabs.robolectric.R; 20 import com.xtremelabs.robolectric.Robolectric; 21 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 22 import com.xtremelabs.robolectric.util.TestRunnable; 23 import com.xtremelabs.robolectric.util.Transcript; 30 import static com.xtremelabs.robolectric.Robolectric.shadowOf [all...] |
ViewTest.java | 1 package com.xtremelabs.robolectric.shadows; 12 import com.xtremelabs.robolectric.R; 13 import com.xtremelabs.robolectric.Robolectric; 14 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 15 import com.xtremelabs.robolectric.util.*; 20 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 175 Robolectric.pauseMainLooper(); 181 Robolectric.unPauseMainLooper() [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/ |
RobolectricBackgroundExecutorServiceTest.java | 1 package com.xtremelabs.robolectric.util; 3 import com.xtremelabs.robolectric.Robolectric; 4 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 26 Robolectric.getBackgroundScheduler().pause(); 41 Robolectric.runBackgroundTasks(); 52 Robolectric.runBackgroundTasks(); 71 Robolectric.runBackgroundTasks();
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/ |
PreferenceLoaderTest.java | 1 package com.xtremelabs.robolectric.res; 3 import static com.xtremelabs.robolectric.util.TestUtil.resourceFile; 18 import com.xtremelabs.robolectric.R; 19 import com.xtremelabs.robolectric.Robolectric; 20 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 21 import com.xtremelabs.robolectric.util.I18nException; 33 Robolectric.bindDefaultShadowClasses(); 65 prefLoader.inflatePreferences(Robolectric.application, R.xml.preferences);
|
ViewLoaderTest.java | 1 package com.xtremelabs.robolectric.res; 12 import com.xtremelabs.robolectric.R; 13 import com.xtremelabs.robolectric.Robolectric; 14 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 15 import com.xtremelabs.robolectric.shadows.ShadowImageView; 16 import com.xtremelabs.robolectric.shadows.ShadowTextView; 17 import com.xtremelabs.robolectric.util.CustomView; 18 import com.xtremelabs.robolectric.util.CustomView2; 19 import com.xtremelabs.robolectric.util.I18nException [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/ |
RobolectricTest.java | 1 package com.xtremelabs.robolectric; 8 import com.xtremelabs.robolectric.internal.Implementation; 9 import com.xtremelabs.robolectric.internal.Implements; 10 import com.xtremelabs.robolectric.shadows.ShadowDisplay; 11 import com.xtremelabs.robolectric.util.TestOnClickListener; 27 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 57 Robolectric.bindShadowClass(TestShadowView.class); 58 Robolectric.logMissingInvokedShadowMethods(); 87 Robolectric.clickOn(view) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
RobolectricTestRunner.java | 1 package com.xtremelabs.robolectric; 29 import com.xtremelabs.robolectric.bytecode.ClassHandler; 30 import com.xtremelabs.robolectric.bytecode.RobolectricClassLoader; 31 import com.xtremelabs.robolectric.bytecode.ShadowWrangler; 32 import com.xtremelabs.robolectric.internal.RealObject; 33 import com.xtremelabs.robolectric.internal.RobolectricTestRunnerInterface; 34 import com.xtremelabs.robolectric.res.ResourceLoader; 35 import com.xtremelabs.robolectric.shadows.ShadowApplication; 36 import com.xtremelabs.robolectric.shadows.ShadowLog; 37 import com.xtremelabs.robolectric.util.DatabaseConfig [all...] |
Robolectric.java | 1 package com.xtremelabs.robolectric; 67 import com.xtremelabs.robolectric.bytecode.RobolectricInternals; 68 import com.xtremelabs.robolectric.bytecode.ShadowWrangler; 69 import com.xtremelabs.robolectric.shadows.*; 70 import com.xtremelabs.robolectric.tester.org.apache.http.FakeHttpLayer; 71 import com.xtremelabs.robolectric.tester.org.apache.http.HttpRequestInfo; 72 import com.xtremelabs.robolectric.tester.org.apache.http.RequestMatcher; 73 import com.xtremelabs.robolectric.util.Scheduler; 75 public class Robolectric { 360 Robolectric.application = new Application() [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/ |
AndroidTranslatorTest.java | 1 package com.xtremelabs.robolectric.bytecode; 12 import com.xtremelabs.robolectric.Robolectric; 13 import com.xtremelabs.robolectric.WithTestDefaultsRunner; 14 import com.xtremelabs.robolectric.internal.Implementation; 15 import com.xtremelabs.robolectric.internal.Implements; 16 import com.xtremelabs.robolectric.internal.Instrument; 17 import com.xtremelabs.robolectric.shadows.ShadowItemizedOverlay; 23 import static com.xtremelabs.robolectric.Robolectric.directlyOn [all...] |