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
513
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowTypefaceTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
30
assertThat(
shadowOf
(typeface).getFontDescription().getFamilyName()).isEqualTo("roboto");
31
assertThat(
shadowOf
(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.BOLD);
39
assertThat(
shadowOf
(typeface).getFontDescription().getFamilyName()).isEqualTo("roboto");
40
assertThat(
shadowOf
(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.ITALIC);
47
assertThat(
shadowOf
(typeface).getFontDescription().getFamilyName()).isEqualTo(null);
48
assertThat(
shadowOf
(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.ITALIC);
56
assertThat(
shadowOf
(typeface).getFontDescription().getFamilyName()).isEqualTo("myFont.ttf");
64
assertThat(
shadowOf
(typeface).getFontDescription().getFamilyName()).isEqualTo("myFont.ttf");
65
assertThat(
shadowOf
(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.NORMAL)
[
all
...]
ShadowActivityGroupTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
19
shadowOf
(activityGroup).setCurrentActivity(activity);
ShadowContentProviderTest.java
5
import static org.robolectric.Shadows.
shadowOf
;
18
shadowOf
(provider).setCallingPackage("calling-package");
ShadowCornerPathEffectTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
16
assertThat(
shadowOf
(cornerPathEffect).getRadius()).isEqualTo(4.0f);
ShadowGradientDrawableTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
16
ShadowGradientDrawable shadowGradientDrawable =
shadowOf
(gradientDrawable);
ShadowInputEventTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
18
shadowOf
(keyEvent).setDevice(myDevice);
ShadowNetworkInfoTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
18
shadowOf
(networkInfo).setDetailedState(NetworkInfo.DetailedState.SCANNING);
ShadowSurfaceTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
19
assertThat(
shadowOf
(surface).getSurfaceTexture()).isEqualTo(texture);
ShadowTimePickerDialogTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
18
ShadowTimePickerDialog shadow =
shadowOf
(timePickerDialog);
ShadowKeyguardManagerTest.java
10
import static org.robolectric.Shadows.
shadowOf
;
36
ShadowKeyguardManager shadowMgr =
shadowOf
(manager);
44
ShadowKeyguardManager shadowMgr =
shadowOf
(manager);
52
assertThat(
shadowOf
(lock).isEnabled()).isTrue();
55
assertThat(
shadowOf
(lock).isEnabled()).isFalse();
58
assertThat(
shadowOf
(lock).isEnabled()).isTrue();
65
ShadowKeyguardManager shadowMgr =
shadowOf
(manager);
76
ShadowKeyguardManager shadowMgr =
shadowOf
(manager);
87
ShadowKeyguardManager shadowMgr =
shadowOf
(manager);
100
ShadowKeyguardManager shadowMgr =
shadowOf
(manager)
[
all
...]
ShadowAccessibilityNodeInfoTest.java
5
import static org.robolectric.Shadows.
shadowOf
;
73
shadowOf
(node).addChild(child);
74
shadowOf
(child).addChild(node);
82
shadow =
shadowOf
(node);
85
ShadowAccessibilityNodeInfo child1Shadow =
shadowOf
(child1);
90
ShadowAccessibilityNodeInfo child2Shadow =
shadowOf
(child2);
91
ShadowAccessibilityNodeInfo anotherNodeShadow =
shadowOf
(anotherNode);
102
shadow =
shadowOf
(node);
137
shadow =
shadowOf
(node);
164
shadowOf
(nodeA).setText("test")
[
all
...]
ShadowBaseAdapterTest.java
5
import static org.robolectric.Shadows.
shadowOf
;
20
assertTrue(
shadowOf
(adapter).wasNotifyDataSetChangedCalled());
27
shadowOf
(adapter).clearWasDataSetChangedCalledFlag();
28
assertFalse(
shadowOf
(adapter).wasNotifyDataSetChangedCalled());
ShadowNfcAdapterTest.java
5
import static org.robolectric.Shadows.
shadowOf
;
25
assertThat(
shadowOf
(adapter).getNdefPushMessageCallback()).isSameAs(callback);
33
shadowOf
(adapter).setEnabled(true);
36
shadowOf
(adapter).setEnabled(false);
ShadowLooperTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
88
assertThat(ShadowLooper.getShadowMainLooper()).isSameAs(
shadowOf
(Looper.getMainLooper()));
143
assertThat(
shadowOf
(looper).hasQuit()).as("hasQuit").isTrue();
144
assertThat(
shadowOf
(looper).post(new Runnable() {
150
assertThat(
shadowOf
(looper).postAtFrontOfQueue(new Runnable() {
155
assertThat(
shadowOf
(looper).getScheduler().areAnyRunnable()).as("areAnyRunnable").isFalse();
162
shadowOf
(looper).pause();
163
shadowOf
(looper).post(new Runnable() {
169
assertThat(
shadowOf
(looper).hasQuit()).as("hasQuit").isTrue();
170
assertThat(
shadowOf
(looper).getScheduler().areAnyRunnable()).as("areAnyRunnable").isFalse()
[
all
...]
ShadowGestureDetectorTest.java
7
import static org.robolectric.Shadows.
shadowOf
;
33
assertSame(motionEvent,
shadowOf
(detector).getOnTouchEventMotionEvent());
39
assertSame(motionEvent,
shadowOf
(detector).getOnTouchEventMotionEvent());
41
shadowOf
(detector).reset();
42
assertNull(
shadowOf
(detector).getOnTouchEventMotionEvent());
48
assertSame(listener,
shadowOf
(new GestureDetector(listener)).getListener());
49
assertSame(listener,
shadowOf
(new GestureDetector(null, listener)).getListener());
81
assertEquals(
shadowOf
(subject).getOnDoubleTapListener(), onDoubleTapListener);
84
assertEquals(
shadowOf
(subject).getOnDoubleTapListener(), null);
91
assertEquals(
shadowOf
(subject).getOnDoubleTapListener(), onGestureListener)
[
all
...]
ShadowTabSpecTest.java
4
import static org.robolectric.Shadows.
shadowOf
;
35
assertThat(
shadowOf
(spec).getIndicatorAsView()).isSameAs(view);
44
assertThat(
shadowOf
(spec).getContentAsIntent()).isSameAs(intent);
52
assertThat(
shadowOf
(spec).getIndicatorLabel()).isEqualTo("labelText");
53
assertThat(
shadowOf
(spec).getText()).isEqualTo("labelText");
61
assertThat(
shadowOf
(spec).getIndicatorLabel()).isEqualTo("labelText");
62
assertThat(
shadowOf
(spec).getText()).isEqualTo("labelText");
63
assertThat(
shadowOf
(spec).getIndicatorIcon()).isSameAs(icon1);
75
ShadowTabHost.ShadowTabSpec shadowFoo =
shadowOf
(foo);
87
ShadowTabHost.ShadowTabSpec shadowFoo =
shadowOf
(foo)
[
all
...]
/external/robolectric-shadows/processor/src/test/resources/org/robolectric/
Robolectric_InnerClassCollision.java
31
public static ShadowDummy
shadowOf
(Dummy actual) {
35
public static ShadowOuterDummy
shadowOf
(OuterDummy actual) {
39
public static ShadowOuterDummy.ShadowInnerDummy
shadowOf
(OuterDummy.InnerDummy actual) {
43
public static ShadowUniqueDummy
shadowOf
(UniqueDummy actual) {
47
public static ShadowUniqueDummy.ShadowInnerDummy
shadowOf
(UniqueDummy.InnerDummy actual) {
51
public static ShadowUniqueInnerDummy
shadowOf
(UniqueInnerDummy actual) {
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowMenuInflater.java
9
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
26
shadowOf
(context.getApplicationContext()).getResourceLoader().inflateMenu(context, resource, root);
ShadowLooper.java
9
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
46
final ShadowLooper looper =
shadowOf
(myLooper());
47
if (looper !=
shadowOf
(getMainLooper())) {
66
if (this ==
shadowOf
(getMainLooper())) throw new RuntimeException("Main thread not allowed to quit");
84
shadowOf
(looper).pause();
88
shadowOf
(looper).unPause();
100
shadowOf
(Looper.getMainLooper()).idle(interval);
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ActivityGroupTest.java
9
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
20
shadowOf
(activityGroup).setCurrentActivity(activity);
BaseAdapterTest.java
10
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
20
assertTrue(
shadowOf
(adapter).wasNotifyDataSetChangedCalled());
27
shadowOf
(adapter).clearWasDataSetChangedCalledFlag();
28
assertFalse(
shadowOf
(adapter).wasNotifyDataSetChangedCalled());
PaintTest.java
11
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
22
ShadowPaint shadowPaint =
shadowOf
(paint);
31
ShadowPaint shadowPaint =
shadowOf
(paint);
40
ShadowPaint shadowPaint =
shadowOf
(paint);
TelephonyManagerTest.java
13
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
30
shadowManager =
shadowOf
(manager);
47
shadowOf
(telephonyManager).setDeviceId(testId);
54
ShadowTelephonyManager shadowTelephonyManager =
shadowOf
(telephonyManager);
62
ShadowTelephonyManager shadowTelephonyManager =
shadowOf
(telephonyManager);
70
ShadowTelephonyManager shadowTelephonyManager =
shadowOf
(telephonyManager);
84
ShadowTelephonyManager shadowTelephonyManager =
shadowOf
(telephonyManager);
TabSpecTest.java
17
import static com.xtremelabs.robolectric.Robolectric.
shadowOf
;
37
assertThat(
shadowOf
(spec).getIndicatorAsView(), is(view));
46
assertThat(
shadowOf
(spec).getContentAsIntent(), is(intent));
56
assertThat(
shadowOf
(spec).getIndicatorLabel(), is("labelText"));
57
assertThat(
shadowOf
(spec).getText(), is("labelText"));
64
assertThat(
shadowOf
(spec).getIndicatorLabel(), is("labelText"));
65
assertThat(
shadowOf
(spec).getText(), is("labelText"));
66
assertThat(
shadowOf
(spec).getIndicatorIcon(), is(icon1));
80
ShadowTabSpec shadowFoo =
shadowOf
(foo);
92
ShadowTabSpec shadowFoo =
shadowOf
(foo)
[
all
...]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowToast.java
3
import static org.robolectric.Shadows.
shadowOf
;
39
shadowOf
(toast).text = text.toString();
45
shadowOf
(RuntimeEnvironment.application).getShownToasts().add(toast);
125
shadowOf
(RuntimeEnvironment.application).getShownToasts().clear();
136
return
shadowOf
(RuntimeEnvironment.application).getShownToasts().size();
148
for (Toast toast :
shadowOf
(RuntimeEnvironment.application).getShownToasts()) {
164
for (Toast toast :
shadowOf
(RuntimeEnvironment.application).getShownToasts()) {
165
String text =
shadowOf
(toast).text;
179
List<Toast> shownToasts =
shadowOf
(RuntimeEnvironment.application).getShownToasts();
180
return (shownToasts.size() == 0) ? null :
shadowOf
(shownToasts.get(shownToasts.size() - 1)).text
[
all
...]
Completed in 607 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>