OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:shadowOf
(Results
251 - 275
of
513
) sorted by null
<<
11
12
13
14
15
16
17
18
19
20
>>
/external/robolectric/v3/runtime/
shadows-core-3.1-SNAPSHOT-17.jar
shadows-core-3.1-SNAPSHOT-16.jar
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowBitmapFactory.java
61
Shadows.
shadowOf
(bitmap).createdFromResId = id;
78
ShadowBitmap shadowBitmap = Shadows.
shadowOf
(bitmap);
86
ShadowBitmap shadowBitmap = Shadows.
shadowOf
(bitmap);
101
ShadowAssetInputStream sais = Shadows.
shadowOf
((AssetInputStream) is);
113
ShadowBitmap shadowBitmap = Shadows.
shadowOf
(bitmap);
121
ShadowBitmap shadowBitmap = Shadows.
shadowOf
(bitmap);
152
ShadowBitmap shadowBitmap = Shadows.
shadowOf
(bitmap);
/prebuilts/misc/common/robolectric/3.1.1/lib/
shadows-core-v21-3.1.1.jar
shadows-core-v22-3.1.1.jar
shadows-core-v23-3.1.1.jar
shadows-core-v18-3.1.1.jar
shadows-core-v19-3.1.1.jar
shadows-core-v17-3.1.1.jar
shadows-core-v16-3.1.1.jar
/prebuilts/misc/common/robolectric/3.4.2/lib/
framework-3.4.2.jar
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ContextWrapperTest.java
21
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
106
List<Intent> broadcastIntents =
shadowOf
(contextWrapper).getBroadcastIntents();
153
shadowOf
(contextWrapper).grantPermissions("foo", "bar");
162
ShadowContextWrapper shContextWrapper = Robolectric.
shadowOf
(contextWrapper);
181
assertEquals("foo",
shadowOf
(Robolectric.application).getNextStartedService().getAction());
PendingIntentTest.java
3
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
39
ShadowPendingIntent shadow =
shadowOf
(pendingIntent);
51
ShadowPendingIntent shadow =
shadowOf
(pendingIntent);
63
ShadowPendingIntent shadow =
shadowOf
(pendingIntent);
82
Intent i =
shadowOf
(otherContext).getNextStartedActivity();
WebViewTest.java
14
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
30
shadowWebView = Robolectric.
shadowOf
(webView);
36
assertThat(
shadowOf
(webView).getLastLoadedUrl(), equalTo("http://example.com"));
42
ShadowWebView.LoadData lastLoadData =
shadowOf
(webView).getLastLoadData();
51
ShadowWebView.LoadDataWithBaseURL lastLoadData =
shadowOf
(webView).getLastLoadDataWithBaseURL();
AppWidgetManagerTest.java
18
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
29
shadowAppWidgetManager =
shadowOf
(appWidgetManager);
97
String actualText =
shadowOf
(view).innerText();
ConnectivityManagerTest.java
14
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
28
shadowConnectivityManager =
shadowOf
(connectivityManager);
29
shadowOfActiveNetworkInfo =
shadowOf
(connectivityManager.getActiveNetworkInfo());
ImageViewTest.java
18
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
99
assertThat(
shadowOf
(imageView.getDrawable()).getLoadedFromResourceId(), is(R.drawable.rainbow));
105
assertThat(
shadowOf
(imageView).getImageLevel(), equalTo(2));
ResourcesTest.java
3
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
39
shadowApp =
shadowOf
( Robolectric.application );
129
shadowOf
(activity.getResources()).setDensity(1.5f);
SQLiteStatementTest.java
15
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
52
Statement statement =
shadowOf
(database).getConnection().createStatement();
57
statement =
shadowOf
(database).getConnection().createStatement();
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowTelephonyManagerTest.java
16
import static org.robolectric.Shadows.
shadowOf
;
40
shadowTelephonyManager =
shadowOf
(telephonyManager);
135
shadowOf
(telephonyManager).setCellLocation(mockCellLocation);
145
shadowOf
(telephonyManager).setCallState(CALL_STATE_RINGING, "911");
149
shadowOf
(telephonyManager).setCallState(CALL_STATE_OFFHOOK, "911");
AdapterViewBehavior.java
4
import static org.robolectric.Shadows.
shadowOf
;
24
Shadows.
shadowOf
(Looper.getMainLooper()).pause();
57
shadowOf
(adapterView).populateItems();
ShadowJobSchedulerTest.java
7
import static org.robolectric.Shadows.
shadowOf
;
101
shadowOf
(jobScheduler).failOnJob(99);
160
shadowOf
(jobScheduler).failOnJob(99);
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/
RobolectricInternalsTest.java
26
ShadowConstructors sa =
shadowOf
(a);
38
ShadowConstructors sa =
shadowOf
(a);
50
ShadowConstructors sa =
shadowOf
(a);
65
ShadowConstructors sa =
shadowOf
(a);
80
private static ShadowConstructors
shadowOf
(Constructors realObject) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/
AnomalyDialogFragmentTest.java
24
import static org.robolectric.Shadows.
shadowOf
;
122
ShadowAlertDialog shadowDialog =
shadowOf
(dialog);
143
ShadowAlertDialog shadowDialog =
shadowOf
(dialog);
165
ShadowAlertDialog shadowDialog =
shadowOf
(dialog);
191
ShadowAlertDialog shadowDialog =
shadowOf
(dialog);
/packages/apps/Settings/tests/robotests/src/com/android/settings/
SettingsLicenseActivityTest.java
24
import static org.robolectric.Shadows.
shadowOf
;
82
assertEqualIntents(
shadowOf
(mApplication).getNextStartedActivity(), intent);
104
assertEqualIntents(
shadowOf
(mApplication).getNextStartedActivity(), intent);
Completed in 317 milliseconds
<<
11
12
13
14
15
16
17
18
19
20
>>