HomeSort by relevance Sort by last modified time
    Searched refs:Robolectric (Results 26 - 50 of 260) sorted by null

12 3 4 5 6 7 8 91011

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowKeyguardManager.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.internal.Implementation;
6 import com.xtremelabs.robolectric.internal.Implements;
7 import com.xtremelabs.robolectric.internal.RealObject;
16 private KeyguardManager.KeyguardLock keyguardLock = Robolectric.newInstanceOf(KeyguardManager.KeyguardLock.class);
ShadowService.java 1 package com.xtremelabs.robolectric.shadows;
8 import com.xtremelabs.robolectric.Robolectric;
9 import com.xtremelabs.robolectric.internal.Implementation;
10 import com.xtremelabs.robolectric.internal.Implements;
11 import com.xtremelabs.robolectric.internal.RealObject;
13 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
28 return Robolectric.application;
33 return Robolectric.application
    [all...]
ShadowContentProviderOperation.java 1 package com.xtremelabs.robolectric.shadows;
10 import com.xtremelabs.robolectric.Robolectric;
11 import com.xtremelabs.robolectric.internal.Implementation;
12 import com.xtremelabs.robolectric.internal.Implements;
26 Builder builder = Robolectric.newInstanceOf(Builder.class);
27 ShadowContentProviderOperationBuilder shadowBuilder = Robolectric.shadowOf(builder);
35 Builder builder = Robolectric.newInstanceOf(Builder.class);
36 ShadowContentProviderOperationBuilder shadowBuilder = Robolectric.shadowOf(builder);
44 Builder builder = Robolectric.newInstanceOf(Builder.class)
    [all...]
ShadowCookieManager.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.internal.Implementation;
6 import com.xtremelabs.robolectric.internal.Implements;
24 sRef = Robolectric.newInstanceOf(CookieManager.class);
ShadowPowerManager.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.internal.Implementation;
6 import com.xtremelabs.robolectric.internal.Implements;
18 return Robolectric.newInstanceOf(PowerManager.WakeLock.class);
ShadowTypedArray.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;
14 return Robolectric.application.getResources();
ShadowMimeTypeMap.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.internal.Implementation;
6 import com.xtremelabs.robolectric.internal.Implements;
11 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
30 sSingleton = Robolectric.newInstanceOf(MimeTypeMap.class);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
ResourceLoaderTest.java 1 package com.xtremelabs.robolectric.res;
7 import com.xtremelabs.robolectric.R;
8 import com.xtremelabs.robolectric.Robolectric;
9 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
10 import com.xtremelabs.robolectric.util.I18nException;
16 import static com.xtremelabs.robolectric.util.TestUtil.resourceFile;
48 ViewGroup vg = new FrameLayout(Robolectric.application);
49 resourceLoader.inflateView(Robolectric.application, R.layout.text_views, vg);
56 resourceLoader.inflateMenu(Robolectric.application, R.menu.test, null)
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
ShadowWranglerTest.java 1 package com.xtremelabs.robolectric.bytecode;
3 import com.xtremelabs.robolectric.Robolectric;
4 import com.xtremelabs.robolectric.WithoutTestDefaultsRunner;
5 import com.xtremelabs.robolectric.annotation.EnableStrictI18n;
6 import com.xtremelabs.robolectric.internal.Implementation;
7 import com.xtremelabs.robolectric.internal.Implements;
8 import com.xtremelabs.robolectric.internal.Instrument;
9 import com.xtremelabs.robolectric.internal.RealObject;
35 Robolectric.bindShadowClass(ShadowFoo_WithDefaultConstructorAndNoConstructorDelegate.class)
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ArrayAdapterTest.java 3 package com.xtremelabs.robolectric.shadows;
16 import com.xtremelabs.robolectric.R;
17 import com.xtremelabs.robolectric.Robolectric;
18 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
39 arrayAdapter = new ArrayAdapter<Integer>(Robolectric.application, 0, list);
44 assertEquals(Robolectric.application, arrayAdapter.getContext());
57 ListView parent = new ListView(Robolectric.application);
58 ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(Robolectric.application, R.layout.main, R.id.title, new String[] { "first value" });
66 ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(Robolectric.application, R.id.title, new String[] { "first value" })
    [all...]
ActivityManagerTest.java 1 package com.xtremelabs.robolectric.shadows;
5 import com.xtremelabs.robolectric.Robolectric;
6 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
10 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
18 ActivityManager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIVITY_SERVICE);
30 ActivityManager activityManager = (ActivityManager) Robolectric.application.getSystemService(Context.ACTIVITY_SERVICE);
PathTest.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
11 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
12 import static com.xtremelabs.robolectric.shadows.ShadowPath.Point.Type.LINE_TO;
13 import static com.xtremelabs.robolectric.shadows.ShadowPath.Point.Type.MOVE_TO;
22 Path path = Robolectric.newInstanceOf(Path.class);
30 Path path = Robolectric.newInstanceOf(Path.class)
    [all...]
PendingIntentTest.java 1 package com.xtremelabs.robolectric.shadows;
3 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
18 import com.xtremelabs.robolectric.Robolectric;
19 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
38 PendingIntent pendingIntent = PendingIntent.getBroadcast(Robolectric.application, 99, intent, 100);
44 assertThat(Robolectric.application, equalTo(shadow.getSavedContext()));
50 PendingIntent pendingIntent = PendingIntent.getActivity(Robolectric.application, 99, intent, 100);
56 assertThat(Robolectric.application, equalTo(shadow.getSavedContext()))
    [all...]
LayerDrawableTest.java 1 package com.xtremelabs.robolectric.shadows;
7 import com.xtremelabs.robolectric.Robolectric;
8 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
13 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
37 Robolectric.application.getResources(), 0x00001000));
39 Robolectric.application.getResources(), 0x00002000));
41 Robolectric.application.getResources(), 0x00003000));
43 Robolectric.application.getResources(), 0x00004000))
    [all...]
BitmapTest.java 1 package com.xtremelabs.robolectric.shadows;
10 import com.xtremelabs.robolectric.Robolectric;
11 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
15 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
24 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class);
46 Bitmap originalBitmap = Robolectric.newInstanceOf(Bitmap.class);
82 Bitmap bitmap1 = Robolectric.newInstanceOf(Bitmap.class);
85 Bitmap bitmap2 = Robolectric.newInstanceOf(Bitmap.class)
    [all...]
AbsSeekBarTest.java 1 package com.xtremelabs.robolectric.shadows;
6 import com.xtremelabs.robolectric.Robolectric;
7 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
20 ShadowAbsSeekBar shadow = Robolectric.shadowOf(seekBar);
AnimationUtilsTest.java 1 package com.xtremelabs.robolectric.shadows;
8 import com.xtremelabs.robolectric.Robolectric;
9 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
28 assertThat(Robolectric.shadowOf(anim).getLoadedFromResourceId(), equalTo(R.anim.fade_in));
ListFragmentTest.java 1 package com.xtremelabs.robolectric.shadows;
7 import com.xtremelabs.robolectric.Robolectric;
8 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
24 Robolectric.shadowOf(listFragment).setView(new ListView(null));
PreferenceCategoryTest.java 1 package com.xtremelabs.robolectric.shadows;
13 import com.xtremelabs.robolectric.Robolectric;
14 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
25 shadow = Robolectric.shadowOf(category);
ResolveInfoTest.java 1 package com.xtremelabs.robolectric.shadows;
12 import com.xtremelabs.robolectric.Robolectric;
13 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
24 mShadowInfo = Robolectric.shadowOf(mResolveInfo);
ShadowEditTextTest.java 1 package com.xtremelabs.robolectric.shadows;
4 import com.xtremelabs.robolectric.Robolectric;
5 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
6 import com.xtremelabs.robolectric.tester.android.util.TestAttributeSet;
22 EditText editText = new EditText(Robolectric.application, attributeSet);
WifiInfoTest.java 1 package com.xtremelabs.robolectric.shadows;
5 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
10 import static com.xtremelabs.robolectric.Robolectric.application;
11 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
ServiceTest.java 1 package com.xtremelabs.robolectric.shadows;
3 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf;
4 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
19 import com.xtremelabs.robolectric.Robolectric;
20 import com.xtremelabs.robolectric.WithTestDefaultsRunner;
45 ServiceConnection conn = Robolectric.newInstanceOf(MediaScannerConnection.class);
  /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/main/java/com/xtremelabs/robolectric/internal/
AppSingletonizer.java 1 package com.xtremelabs.robolectric.internal;
5 import com.xtremelabs.robolectric.shadows.ShadowApplication;
7 import static com.xtremelabs.robolectric.Robolectric.newInstanceOf;
8 import static com.xtremelabs.robolectric.Robolectric.shadowOf;

Completed in 489 milliseconds

12 3 4 5 6 7 8 91011