OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:shadowOf
(Results
101 - 125
of
192
) sorted by null
1
2
3
4
5
6
7
8
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowViewGroup.java
13
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
70
shadowOf
(child).parent = this;
113
shadowOf
(child).parent = null;
120
shadowOf
(children.remove(position)).parent = null;
203
String childText =
shadowOf
(child).innerText();
223
shadowOf
(child).dump(out, indent + 2);
ShadowDialogFragment.java
14
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
40
shadowOf
(realDialogFragment).setActivity(activityFromManager);
ShadowGeocoder.java
13
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
74
shadowOf
(address).setSimulatedHasLatLong(hasLatitude, hasLongitude);
ShadowMediaPlayer.java
11
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
32
shadowOf
(mp).sourceResId = resId;
ShadowViewConfiguration.java
31
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
91
shadowOf
(viewConfiguration).setup(context);
ShadowContextWrapper.java
28
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
77
return ((ShadowApplication)
shadowOf
(getApplicationContext())).getBroadcastIntents();
87
return ((ShadowApplication)
shadowOf
(getApplicationContext())).registerReceiverWithContext(receiver, filter, realContextWrapper);
245
return ((ShadowApplication)
shadowOf
(getApplicationContext()));
ShadowResolveInfo.java
48
ShadowResolveInfo shResolve = Robolectric.
shadowOf
(resInfo );
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
AccountManagerTest.java
3
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
111
shadowOf
(accountManager).setAccounts(origAccounts);
122
shadowOf
(accountManager).setAccounts(origAccounts);
132
shadowOf
(accountManager).setCachedAuthToken(ACCOUNT, authTokenType, "myToken");
141
shadowOf
(accountManager).setCachedAuthToken(ACCOUNT, authTokenType, "myToken");
151
shadowOf
(accountManager).setCachedAuthToken(ACCOUNT, authTokenType, "myToken");
DialogFragmentTest.java
20
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
106
assertTrue(
shadowOf
(dialog).hasBeenDismissed());
119
assertTrue(
shadowOf
(dialog).hasBeenDismissed());
145
assertTrue(
shadowOf
(dialog).isCancelable());
156
assertFalse(
shadowOf
(dialog).isCancelable());
167
assertFalse(
shadowOf
(dialog).isCancelable());
PopupWindowTest.java
19
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
86
shadowOf
(popupWindow).setShowing(true);
93
shadowOf
(popupWindow).setShowing(true);
120
assertTrue(
shadowOf
(popupWindow).dispatchTouchEvent(obtain(1, 1, ACTION_DOWN, 1f, 1f, 0)));
150
assertEquals(
shadowOf
(popupWindow).getXOffset(), 56);
151
assertEquals(
shadowOf
(popupWindow).getYOffset(), 69);
ViewTest.java
20
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
87
assertTrue(
shadowOf
(view).derivedIsVisible());
96
assertFalse(
shadowOf
(view).derivedIsVisible());
113
shadowOf
(view).performLongClick();
122
shadowOf
(view).checkedPerformClick();
135
shadowOf
(view).checkedPerformClick();
141
shadowOf
(view).checkedPerformClick();
169
assertThat(
shadowOf
(view).getBackgroundColor(), equalTo(color));
190
ShadowView shadowView =
shadowOf
(view);
261
assertThat(
shadowOf
(view).scrollToCoordinates, equalTo(new Point(1, 2)))
[
all
...]
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();
ViewConfigurationTest.java
9
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
56
shadowOf
(context.getResources()).setDensity(1.5f);
WifiConfigurationTest.java
8
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
43
WifiConfiguration copy =
shadowOf
(wifiConfiguration).copy();
ConfigurationTest.java
26
shConfiguration = Robolectric.
shadowOf
( configuration );
CookieSyncManagerTest.java
36
ShadowCookieSyncManager shadowMgr = Robolectric.
shadowOf
( mgr );
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
ApplicationResolver.java
11
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
31
ShadowApplication shadowApplication =
shadowOf
(application);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/database/
SimpleTestCursorTest.java
14
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
27
ShadowContentResolver shadowContentResolver =
shadowOf
(contentResolver);
Completed in 67 milliseconds
1
2
3
4
5
6
7
8