OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:shadowOf
(Results
26 - 50
of
192
) sorted by null
1
2
3
4
5
6
7
8
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowBluetoothAdapter.java
13
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
24
return (BluetoothAdapter)
shadowOf
(Robolectric.application).getBluetoothAdapter();
ShadowColorDrawable.java
8
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
26
ShadowColorDrawable that =
shadowOf
((ColorDrawable)o);
ShadowImageView.java
17
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
65
ResourceLoader resourceLoader =
shadowOf
(Robolectric.application).getResourceLoader();
80
shadowOf
(layerDrawable).setLoadedFromResourceId(resourceId);
96
return
shadowOf
(Robolectric.application).getResourceLoader()
147
canvas.translate(
shadowOf
(matrix).getTransX(),
shadowOf
(matrix)
149
canvas.scale(
shadowOf
(matrix).getScaleX(),
shadowOf
(matrix)
ShadowPreferenceManager.java
11
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
21
ShadowApplication shadowApplication =
shadowOf
((Application) context.getApplicationContext());
ShadowHandler.java
16
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
52
return
shadowOf
(looper).post(r, delayMillis);
57
return
shadowOf
(looper).postAtFrontOfQueue(runnable);
98
Robolectric.
shadowOf
(msg).setWhen(Robolectric.
shadowOf
(looper).getScheduler().getCurrentTime()+delayMillis);
134
Robolectric.
shadowOf
(msg).setWhen(Robolectric.
shadowOf
(looper).getScheduler().getCurrentTime());
155
shadowOf
(looper).getScheduler().remove(r);
207
shadowOf
(Looper.myLooper()).idle();
214
shadowOf
(Looper.myLooper()).runToEndOfTasks()
[
all
...]
ShadowAlarmManager.java
12
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
34
Intent intent =
shadowOf
(operation).getSavedIntent();
36
Intent scheduledIntent =
shadowOf
(scheduledAlarm.operation).getSavedIntent();
81
final Intent intentTypeToRemove =
shadowOf
(pendingIntent).getSavedIntent();
83
final Intent alarmIntent =
shadowOf
(scheduledAlarm.operation).getSavedIntent();
ShadowLayoutInflater.java
13
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
27
shadowOf
(layoutInflater).context = context;
52
return
shadowOf
(context.getApplicationContext()).getResourceLoader();
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
NetworkInfoTest.java
9
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
19
shadowOf
(networkInfo).setDetailedState(NetworkInfo.DetailedState.SCANNING);
PagerAdapterTest.java
10
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
19
shadowOf
(pagerAdapter).registerDataSetObserver(datasetObserver);
ScanResultTest.java
8
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
24
assertNotNull(
shadowOf
(scanResult).realObject);
WifiInfoTest.java
11
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
22
shadowOf
(wifiInfo).setMacAddress("mac address");
FragmentTransactionTest.java
3
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
146
shadowOf
(fragment).setActivity(trackingActivity);
171
shadowOf
(fragment).setAttached(false);
173
assertTrue(
shadowOf
(fragment).isAttached());
178
shadowOf
(fragment).setHidden(false);
180
assertTrue(
shadowOf
(fragment).isHidden());
185
shadowOf
(fragment).setHidden(true);
187
assertFalse(
shadowOf
(fragment).isHidden());
201
shadowOf
(fragment).setHidden(false);
217
shadowOf
(fragment).setHidden(true)
[
all
...]
PathTest.java
11
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
24
ShadowPath shadowPath =
shadowOf
(path);
34
List<ShadowPath.Point> moveToPoints =
shadowOf
(path).getPoints();
46
List<ShadowPath.Point> lineToPoints =
shadowOf
(path).getPoints();
DrawableTest.java
17
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
36
assertEquals("my_source", ((ShadowBitmapDrawable)
shadowOf
(drawable)).getSource());
52
assertThat(
shadowOf
(drawable).getInputStream(), equalTo((InputStream) byteInputStream));
82
assertEquals("/foo", ((ShadowBitmapDrawable)
shadowOf
(drawable)).getPath());
88
assertThat(
shadowOf
(drawable).getLoadedFromResourceId(), is(-1));
94
ShadowDrawable shadowDrawable =
shadowOf
(drawable);
102
ShadowDrawable shadowDrawable =
shadowOf
(drawable);
109
ShadowDrawable shadowDrawable =
shadowOf
(drawable);
126
assertEquals("my_source", ((ShadowBitmapDrawable)
shadowOf
(drawable)).getSource());
133
assertThat(
shadowOf
(drawable).getInputStream(), equalTo((InputStream) byteInputStream))
[
all
...]
BitmapFactoryTest.java
15
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
23
assertEquals("Bitmap for resource:drawable/an_image",
shadowOf
(bitmap).getDescription());
32
assertEquals("Bitmap for resource:drawable/an_image",
shadowOf
(bitmap).getDescription());
42
assertEquals("Bitmap for file:/some/file.jpg",
shadowOf
(bitmap).getDescription());
51
assertEquals("Bitmap for content:/path",
shadowOf
(bitmap).getDescription());
61
assertEquals("Bitmap for resource:drawable/an_image",
shadowOf
(bitmap).getDescription());
72
assertEquals("Bitmap for resource:drawable/an_image",
shadowOf
(bitmap).getDescription());
84
assertEquals(true,
shadowOf
(bitmap).getDescription().contains("inSampleSize=100"));
92
assertEquals("Bitmap for file:/some/file.jpg",
shadowOf
(bitmap).getDescription());
112
assertEquals("Bitmap for content:/path",
shadowOf
(bitmap).getDescription())
[
all
...]
MimeTypeMapTest.java
9
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
23
shadowOf
(MimeTypeMap.getSingleton()).addExtensionMimeTypMapping(VIDEO_EXTENSION, VIDEO_MIMETYPE);
29
shadowOf
(MimeTypeMap.getSingleton()).addExtensionMimeTypMapping(VIDEO_EXTENSION, VIDEO_MIMETYPE);
48
ShadowMimeTypeMap shadowMimeTypeMap = Robolectric.
shadowOf
(MimeTypeMap.getSingleton());
66
ShadowMimeTypeMap shadowMimeTypeMap = Robolectric.
shadowOf
(MimeTypeMap.getSingleton());
80
ShadowMimeTypeMap shadowMimeTypeMap = Robolectric.
shadowOf
(MimeTypeMap.getSingleton());
90
ShadowMimeTypeMap shadowMimeTypeMap = Robolectric.
shadowOf
(MimeTypeMap.getSingleton());
ProgressDialogTest.java
15
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
35
shadow = Robolectric.
shadowOf
(dialog);
68
ShadowProgressDialog shadowProgressDialog =
shadowOf
(progressDialog);
138
assertEquals(expectedMessage,
shadowOf
(dialog).getMessage());
139
assertEquals(expectedTitle,
shadowOf
(dialog).getTitle());
140
assertEquals(expectedCancelable,
shadowOf
(dialog).isCancelable());
141
assertEquals(expectedCancelListener,
shadowOf
(dialog).getOnCancelListener());
VideoViewTest.java
32
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
40
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
48
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
55
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
64
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
82
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
89
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
97
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
107
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view);
117
ShadowVideoView shadowVideoView = Robolectric.
shadowOf
(view)
[
all
...]
BitmapDrawableTest.java
20
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
36
assertEquals("Bitmap for resource:drawable/an_image",
shadowOf
(drawable.getBitmap()).getDescription());
45
assertEquals("Bitmap for resource:drawable/an_image",
shadowOf
(canvas).getDescription());
52
assertEquals("source string value",
shadowOf
(drawable).getSource());
63
shadowOf
(canvas).getDescription());
93
assertEquals(R.drawable.an_image, ((ShadowBitmapDrawable) Robolectric.
shadowOf
(drawable)).getLoadedFromResourceId());
HandlerThreadTest.java
3
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
60
assertFalse(
shadowOf
(looper).quit);
64
assertTrue(
shadowOf
(looper).quit);
ServiceTest.java
4
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
52
shadowOf
(service).setUnbindServiceShouldThrowIllegalArgument(true);
63
ShadowService shadowService =
shadowOf
(service);
TranslateAnimationTest.java
10
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
23
shadow =
shadowOf
(animation);
41
ShadowTranslateAnimation shadow2 =
shadowOf
(animation2);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/
TemporaryBindingsTest.java
9
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
18
assertThat(
shadowOf
(new View(null)).getClass().getSimpleName(), equalTo(ShadowView.class.getSimpleName()));
28
assertThat(
shadowOf
(new View(null)).getClass().getSimpleName(), equalTo(ShadowView.class.getSimpleName()));
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/
StartedServiceMatcher.java
14
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
55
Intent actualStartedIntent =
shadowOf
((ContextWrapper) actualContext).getNextStartedService();
62
ShadowIntent shadowIntent =
shadowOf
(actualStartedIntent);
64
//boolean intentsMatch =
shadowOf
(expectedIntent).realIntentEquals(shadowIntent);
66
boolean intentsMatch =
shadowOf
(expectedIntent).getIntentClass().equals(shadowIntent.getIntentClass());
72
Set<String> expectedKeys =
shadowOf
(expectedIntent).getExtras().keySet();
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/android/util/
TestFragmentManager.java
22
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
49
shadowOf
(Looper.getMainLooper()).getScheduler().remove(runnable);
145
ShadowFragment shadowFragment =
shadowOf
(fragment);
157
ShadowFragment shadowFragment =
shadowOf
(fragment);
158
if (
shadowOf
(activity).getContentView() != null) {
198
shadowOf
(t.getFragment()).setAdded(true);
203
shadowOf
(fragment).setAdded(false);
209
shadowOf
(t.getFragmentToAttach()).setAttached(true);
214
shadowOf
(fragment).setHidden(true);
221
shadowOf
(fragment).setHidden(false)
[
all
...]
Completed in 77 milliseconds
1
2
3
4
5
6
7
8