Home
last modified time | relevance | path

Searched refs:shadowOf (Results 1 – 25 of 193) sorted by relevance

12345678

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java392 public static ShadowAbsListView shadowOf(AbsListView instance) { in shadowOf() method in Robolectric
396 public static ShadowAbsSeekBar shadowOf(AbsSeekBar instance) { in shadowOf() method in Robolectric
400 public static ShadowAccountManager shadowOf(AccountManager instance) { in shadowOf() method in Robolectric
404 public static ShadowActivity shadowOf(Activity instance) { in shadowOf() method in Robolectric
408 public static ShadowActivityGroup shadowOf(ActivityGroup instance) { in shadowOf() method in Robolectric
412 public static ShadowActivityManager shadowOf(ActivityManager instance) { in shadowOf() method in Robolectric
416 public static ShadowAdapterView shadowOf(AdapterView instance) { in shadowOf() method in Robolectric
420 public static ShadowAddress shadowOf(Address instance) { in shadowOf() method in Robolectric
424 public static ShadowAlarmManager shadowOf(AlarmManager instance) { in shadowOf() method in Robolectric
428 public static ShadowAlertDialog shadowOf(AlertDialog instance) { in shadowOf() method in Robolectric
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DNotificationManagerTest.java12 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
29 assertEquals(1, shadowOf(notificationManager).size()); in testNotify()
30 assertEquals(notification1, shadowOf(notificationManager).getNotification(1)); in testNotify()
33 assertEquals(2, shadowOf(notificationManager).size()); in testNotify()
34 assertEquals(notification2, shadowOf(notificationManager).getNotification(31)); in testNotify()
42 assertEquals(1, shadowOf(notificationManager).size()); in testNotifyReplaces()
43 assertEquals(notification2, shadowOf(notificationManager).getNotification(1)); in testNotifyReplaces()
49 assertEquals(1, shadowOf(notificationManager).size()); in testNotifyWithTag()
50 assertEquals(notification1, shadowOf(notificationManager).getNotification("a tag")); in testNotifyWithTag()
56 assertEquals(1, shadowOf(notificationManager).size()); in notifyWithTag_shouldReturnNullForNullTag()
[all …]
DBitmapTest.java15 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
25 shadowOf(originalBitmap).appendDescription("Original bitmap"); in shouldCreateScaledBitmap()
27 … assertEquals("Original bitmap scaled to 100 x 200", shadowOf(scaledBitmap).getDescription()); in shouldCreateScaledBitmap()
47 shadowOf(originalBitmap).appendDescription("Original bitmap"); in shouldCreateBitmapFromAnotherBitmap()
49 … assertEquals("Original bitmap created from Bitmap object", shadowOf(newBitmap).getDescription()); in shouldCreateBitmapFromAnotherBitmap()
70 shadowOf(bitmapA1).setWidth(100); in equals_shouldCompareWidthAndHeight()
71 shadowOf(bitmapA1).setHeight(100); in equals_shouldCompareWidthAndHeight()
74 shadowOf(bitmapA2).setWidth(101); in equals_shouldCompareWidthAndHeight()
75 shadowOf(bitmapA2).setHeight(101); in equals_shouldCompareWidthAndHeight()
83 shadowOf(bitmap1).appendDescription("Bitmap One"); in shouldReceiveDescriptionWhenDrawingToCanvas()
[all …]
DCanvasTest.java10 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
33 "Bitmap for file:/an/image.jpg at (100,200)", shadowOf(canvas).getDescription()); in shouldDescribeBitmapDrawing()
36 … "Bitmap for file:/an/image.jpg at (100,200)", shadowOf(targetBitmap).getDescription()); in shouldDescribeBitmapDrawing()
46 … "Bitmap for file:/an/image.jpg transformed by matrix", shadowOf(canvas).getDescription()); in shouldDescribeBitmapDrawing_WithMatrix()
49 … "Bitmap for file:/an/image.jpg transformed by matrix", shadowOf(targetBitmap).getDescription()); in shouldDescribeBitmapDrawing_WithMatrix()
70 shadowOf(canvas).getDescription()); in drawColor_shouldReturnDescription()
83 ShadowCanvas shadow = shadowOf(canvas); in drawPath_shouldRecordThePathAndThePaint()
103 assertEquals("Path " + shadowOf(path1).getPoints().toString() + "\n" in drawPath_shouldAppendDescriptionToBitmap()
104 … + "Path " + shadowOf(path2).getPoints().toString(), shadowOf(canvas).getDescription()); in drawPath_shouldAppendDescriptionToBitmap()
106 assertEquals("Path " + shadowOf(path1).getPoints().toString() + "\n" in drawPath_shouldAppendDescriptionToBitmap()
[all …]
DLooperTest.java11 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
73 assertTrue(shadowOf(looper).hasQuit()); in shouldNotQueueMessagesIfLooperIsQuit()
74 assertFalse(shadowOf(looper).post(new Runnable() { in shouldNotQueueMessagesIfLooperIsQuit()
78 assertFalse(shadowOf(looper).postAtFrontOfQueue(new Runnable() { in shouldNotQueueMessagesIfLooperIsQuit()
83 assertFalse(shadowOf(looper).getScheduler().areAnyRunnable()); in shouldNotQueueMessagesIfLooperIsQuit()
91 shadowOf(looper).pause(); in shouldThrowawayRunnableQueueIfLooperQuits()
92 shadowOf(looper).post(new Runnable() { in shouldThrowawayRunnableQueueIfLooperQuits()
98 assertTrue(shadowOf(looper).hasQuit()); in shouldThrowawayRunnableQueueIfLooperQuits()
99 assertFalse(shadowOf(looper).getScheduler().areAnyRunnable()); in shouldThrowawayRunnableQueueIfLooperQuits()
104 assertTrue(shadowOf(Looper.getMainLooper()).getThread() == Thread.currentThread()); in testLoopThread()
DGeocoderTest.java13 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
31 String lastLocationName = shadowOf(geocoder).getLastLocationName(); in shouldRecordLastLocationName()
38 shadowOf(geocoder).setSimulatedHasLatLong(true, true); in setsUpHasLocationInAddressFromLocationName()
42 shadowOf(geocoder).setSimulatedHasLatLong(false, false); in setsUpHasLocationInAddressFromLocationName()
50 shadowOf(geocoder).setReturnNoResults(true); in canReturnNoAddressesOnRequest()
58 assertFalse(shadowOf(geocoder).didResolution()); in answersWhetherResolutionHappened()
59 shadowOf(geocoder).setReturnNoResults(true); in answersWhetherResolutionHappened()
61 assertTrue(shadowOf(geocoder).didResolution()); in answersWhetherResolutionHappened()
DBitmapFactoryTest.java15 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
23 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription()); in decodeResource_shouldSetDescription()
32 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription()); in decodeResourceWithOpts_shouldSetDescription()
42 assertEquals("Bitmap for file:/some/file.jpg", shadowOf(bitmap).getDescription()); in decodeFile_shouldSetDescription()
51 assertEquals("Bitmap for content:/path", shadowOf(bitmap).getDescription()); in decodeStream_shouldSetDescription()
61 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription()); in decodeResource_shouldGetWidthAndHeightFromHints()
72 assertEquals("Bitmap for resource:drawable/an_image", shadowOf(bitmap).getDescription()); in decodeResourceWithOpts_shouldGetWidthAndHeightFromHints()
84 assertEquals(true, shadowOf(bitmap).getDescription().contains("inSampleSize=100")); in decodeResource_canTakeOptions()
92 assertEquals("Bitmap for file:/some/file.jpg", shadowOf(bitmap).getDescription()); in decodeFile_shouldGetWidthAndHeightFromHints()
112 assertEquals("Bitmap for content:/path", shadowOf(bitmap).getDescription()); in decodeUri_shouldGetWidthAndHeightFromHints()
[all …]
DTabSpecTest.java17 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
37 assertThat(shadowOf(spec).getIndicatorAsView(), is(view)); in shouldGetAndSetTheIndicator()
46 assertThat(shadowOf(spec).getContentAsIntent(), is(intent)); in shouldGetAndSetTheIntentContent()
56 assertThat(shadowOf(spec).getIndicatorLabel(), is("labelText")); in shouldGetAndSetTheIndicatorLabel()
57 assertThat(shadowOf(spec).getText(), is("labelText")); in shouldGetAndSetTheIndicatorLabel()
64 assertThat(shadowOf(spec).getIndicatorLabel(), is("labelText")); in shouldGetAndSetTheIndicatorLabelAndIcon()
65 assertThat(shadowOf(spec).getText(), is("labelText")); in shouldGetAndSetTheIndicatorLabelAndIcon()
66 assertThat(shadowOf(spec).getIndicatorIcon(), is(icon1)); in shouldGetAndSetTheIndicatorLabelAndIcon()
80 ShadowTabSpec shadowFoo = shadowOf(foo); in shouldSetTheContentView()
92 ShadowTabSpec shadowFoo = shadowOf(foo); in shouldSetTheContentViewId()
DDrawableTest.java17 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
36 assertEquals("my_source", ((ShadowBitmapDrawable) shadowOf(drawable)).getSource()); in createFromStream__shouldReturnDrawableWithSpecificSource()
52 assertThat(shadowOf(drawable).getInputStream(), equalTo((InputStream) byteInputStream)); in testCreateFromStream_shouldSetTheInputStreamOnTheReturnedDrawable()
82 assertEquals("/foo", ((ShadowBitmapDrawable) shadowOf(drawable)).getPath()); in createFromPath__shouldReturnDrawableWithSpecificPath()
88 assertThat(shadowOf(drawable).getLoadedFromResourceId(), is(-1)); in testGetLoadedFromResourceId_shouldDefaultToNegativeOne()
94 ShadowDrawable shadowDrawable = shadowOf(drawable); in testSetLoadedFromResourceId()
102 ShadowDrawable shadowDrawable = shadowOf(drawable); in testCreateFromResourceId_shouldSetTheId()
109 ShadowDrawable shadowDrawable = shadowOf(drawable); in testWasSelfInvalidated()
126 assertEquals("my_source", ((ShadowBitmapDrawable) shadowOf(drawable)).getSource()); in createFromResourceStream__shouldReturnDrawableWithSpecificSource()
133 assertThat(shadowOf(drawable).getInputStream(), equalTo((InputStream) byteInputStream)); in testCreateFromResourceStream_shouldSetTheInputStreamOnTheReturnedDrawable()
[all …]
DFragmentTransactionTest.java3 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
146 shadowOf(fragment).setActivity(trackingActivity); in startActivity_shouldNotDelegateToParentActivity()
171 shadowOf(fragment).setAttached(false); in attach_shouldCauseFragmentToBecomeAttached()
173 assertTrue(shadowOf(fragment).isAttached()); in attach_shouldCauseFragmentToBecomeAttached()
178 shadowOf(fragment).setHidden(false); in hide_shouldCauseFragmentToBecomeHidden()
180 assertTrue(shadowOf(fragment).isHidden()); in hide_shouldCauseFragmentToBecomeHidden()
185 shadowOf(fragment).setHidden(true); in show_shouldCauseFragmentToBecomeNotHidden()
187 assertFalse(shadowOf(fragment).isHidden()); in show_shouldCauseFragmentToBecomeNotHidden()
201 shadowOf(fragment).setHidden(false); in hide_shouldCallOnHiddenChangedOnFragment()
217 shadowOf(fragment).setHidden(true); in show_shouldCallOnHiddenChangedOnFragment()
[all …]
DVideoViewTest.java32 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetOnPreparedListener()
40 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetOnErrorListener()
48 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetOnCompletionListener()
55 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetVideoPath()
64 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSetVideoURI()
82 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldStartPlaying()
89 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldStopPlayback()
97 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldSuspendPlaying()
107 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldResumePlaying()
117 ShadowVideoView shadowVideoView = Robolectric.shadowOf(view); in shouldPausePlaying()
DAlphaAnimationTest.java8 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
15 assertEquals(99.0f, shadowOf(new AlphaAnimation(99, 88)).getFromAlpha()); in getFromAlpha_shouldReturnTheFromAlphaThatWasPassedToTheConstructor()
16 assertEquals(66.7f, shadowOf(new AlphaAnimation(66.7f, 88)).getFromAlpha()); in getFromAlpha_shouldReturnTheFromAlphaThatWasPassedToTheConstructor()
21 assertEquals(88.0f, shadowOf(new AlphaAnimation(99, 88)).getToAlpha()); in getToAlpha_shouldReturnTheToAlphaThatWasPassedToTheConstructor()
22 assertEquals(98f, shadowOf(new AlphaAnimation(66.7f, 98)).getToAlpha()); in getToAlpha_shouldReturnTheToAlphaThatWasPassedToTheConstructor()
DActivityTest.java30 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
76 shadowOf(activity).receiveResult(new Intent().setType("image/*"), Activity.RESULT_OK, in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity()
94 shadowOf(activity).receiveResult(requestIntent, Activity.RESULT_OK, in startActivityForResultAndReceiveResult_whenNoIntentMatches_shouldThrowException()
105 ShadowActivity shadowActivity = Robolectric.shadowOf(activity); in shouldSupportStartActivityForResult()
119 ShadowActivity shadowActivity = Robolectric.shadowOf(activity); in shouldSupportGetStartedActitivitesForResult()
135 ShadowActivity shadowActivity = Robolectric.shadowOf(activity); in shouldSupportPeekStartedActitivitesForResult()
154 …transcript.add("onContentChanged was called; title is \"" + shadowOf(findViewById(R.id.title)).inn… in onContentChangedShouldBeCalledAfterContentViewIsSet()
280 assertNull(Robolectric.shadowOf(activity).getDialogById(1)); in removeDialog_shouldCreateDialogAgain()
301 ShadowActivity shadowActivity = shadowOf(activity); in shouldCallFinishInOnBackPressed()
308 ShadowActivity shadow = shadowOf(activity); in shouldSupportCurrentFocus()
[all …]
DTextViewTest.java27 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
53 shadowOf(textView).triggerEditorAction(EditorInfo.IME_ACTION_GO); in shouldTriggerTheImeListener()
101 assertThat(shadowOf(textView).getTextAppearanceId(), equalTo(5)); in testGetTextAppearanceId()
111 assertThat(shadowOf(black).getTextColorHexValue(), equalTo(0)); in shouldSetTextAndTextColorWhileInflatingXmlLayout()
115 …assertThat(shadowOf(white).getTextColorHexValue(), equalTo(activity.getResources().getColor(androi… in shouldSetTextAndTextColorWhileInflatingXmlLayout()
119 …assertThat(shadowOf(grey).getTextColorHexValue(), equalTo(activity.getResources().getColor(R.color… in shouldSetTextAndTextColorWhileInflatingXmlLayout()
129 assertThat(shadowOf(black).getHintColorHexValue(), equalTo(0)); in shouldSetHintAndHintColorWhileInflatingXmlLayout()
133 …assertThat(shadowOf(white).getHintColorHexValue(), equalTo(activity.getResources().getColor(androi… in shouldSetHintAndHintColorWhileInflatingXmlLayout()
137 …assertThat(shadowOf(grey).getHintColorHexValue(), equalTo(activity.getResources().getColor(R.color… in shouldSetHintAndHintColorWhileInflatingXmlLayout()
281 assertTrue(shadowOf(textView).getWatchers().contains(watcher)); in removeTextChangedListener_shouldRemoveTheListener()
[all …]
DAlertDialogTest.java3 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
41 ShadowAlertDialog shadowAlertDialog = shadowOf(alert); in testBuilder()
45 … assertThat(shadowOf(ShadowAlertDialog.getLatestAlertDialog()), sameInstance(shadowAlertDialog)); in testBuilder()
63 assertThat(shadowOf(dialog).getButton(AlertDialog.BUTTON_POSITIVE), not(nullValue())); in shouldOnlyCreateRequestedButtons()
64 assertThat(shadowOf(dialog).getButton(AlertDialog.BUTTON_NEGATIVE), nullValue()); in shouldOnlyCreateRequestedButtons()
82 ShadowAlertDialog shadowAlertDialog = shadowOf(alert); in testSetMessageAfterCreation()
98 ShadowAlertDialog shadowAlertDialog = shadowOf(alert); in shouldSetMessageFromResourceId()
110 assertThat(shadowOf(alert).getView(), equalTo((View) view)); in shouldSetView()
121 assertThat(shadowOf(alert).getCustomTitleView(), equalTo((View) view)); in shouldSetCustomTitleView()
132 final Button positiveButton = shadowOf(alertDialog).getButton(AlertDialog.BUTTON_POSITIVE); in shouldSetThePositiveButtonAfterCreation()
[all …]
DTelephonyManagerTest.java13 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
30 shadowManager = shadowOf(manager); in setUp()
47 shadowOf(telephonyManager).setDeviceId(testId); in shouldGiveDeviceId()
54 ShadowTelephonyManager shadowTelephonyManager = shadowOf(telephonyManager); in shouldGiveNetworkOperatorName()
62 ShadowTelephonyManager shadowTelephonyManager = shadowOf(telephonyManager); in shouldGiveNetworkCountryIso()
70 ShadowTelephonyManager shadowTelephonyManager = shadowOf(telephonyManager); in shouldGiveNetworkOperator()
84 ShadowTelephonyManager shadowTelephonyManager = shadowOf(telephonyManager); in shouldGivePhoneType()
DMimeTypeMapTest.java9 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
23shadowOf(MimeTypeMap.getSingleton()).addExtensionMimeTypMapping(VIDEO_EXTENSION, VIDEO_MIMETYPE); in shouldResetStaticStateBetweenTests()
29shadowOf(MimeTypeMap.getSingleton()).addExtensionMimeTypMapping(VIDEO_EXTENSION, VIDEO_MIMETYPE); in shouldResetStaticStateBetweenTests_anotherTime()
48 ShadowMimeTypeMap shadowMimeTypeMap = Robolectric.shadowOf(MimeTypeMap.getSingleton()); in addingMappingShouldWorkCorrectly()
66 ShadowMimeTypeMap shadowMimeTypeMap = Robolectric.shadowOf(MimeTypeMap.getSingleton()); in clearMappingsShouldRemoveAllMappings()
80 ShadowMimeTypeMap shadowMimeTypeMap = Robolectric.shadowOf(MimeTypeMap.getSingleton()); in unknownExtensionShouldProvideNothing()
90 ShadowMimeTypeMap shadowMimeTypeMap = Robolectric.shadowOf(MimeTypeMap.getSingleton()); in unknownMimeTypeShouldProvideNothing()
DArrayAdapterTest.java70 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter).getResourceId()==R.id.title); in hasTheCorrectConstructorResourceIDs()
71 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter).getTextViewResourceId()!=R.id.title); in hasTheCorrectConstructorResourceIDs()
72 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter).getTextViewResourceId()==0); in hasTheCorrectConstructorResourceIDs()
78 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter2).getResourceId()==R.id.title); in hasTheCorrectConstructorResourceIDs()
79 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter2).getTextViewResourceId()!=R.id.title); in hasTheCorrectConstructorResourceIDs()
80 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter2).getTextViewResourceId()==0); in hasTheCorrectConstructorResourceIDs()
86 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter3).getResourceId()==R.id.title); in hasTheCorrectConstructorResourceIDs()
87 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter3).getTextViewResourceId()!=R.id.title); in hasTheCorrectConstructorResourceIDs()
88 Assert.assertTrue(Robolectric.shadowOf(arrayAdapter3).getTextViewResourceId()==0); in hasTheCorrectConstructorResourceIDs()
DKeyguardManagerTest.java10 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
24 ShadowKeyguardManager shadowMgr = shadowOf(mgr); in testIsInRestrcitedInputMode()
34 assertTrue(shadowOf(lock).isEnabled()); in testShouldBeAbleToDisableTheKeyguardLock()
37 assertFalse(shadowOf(lock).isEnabled()); in testShouldBeAbleToDisableTheKeyguardLock()
40 assertTrue(shadowOf(lock).isEnabled()); in testShouldBeAbleToDisableTheKeyguardLock()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowHandler.java16 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
52 return shadowOf(looper).post(r, delayMillis); in postDelayed()
57 return shadowOf(looper).postAtFrontOfQueue(runnable); in postAtFrontOfQueue()
98 …Robolectric.shadowOf(msg).setWhen(Robolectric.shadowOf(looper).getScheduler().getCurrentTime()+del… in sendMessageDelayed()
134 … Robolectric.shadowOf(msg).setWhen(Robolectric.shadowOf(looper).getScheduler().getCurrentTime()); in sendMessageAtFrontOfQueue()
155 shadowOf(looper).getScheduler().remove(r); in removeCallbacks()
207 shadowOf(Looper.myLooper()).idle(); in idleMainLooper()
214 shadowOf(Looper.myLooper()).runToEndOfTasks(); in runMainLooperToEndOfTasks()
222 shadowOf(Looper.myLooper()).runOneTask(); in runMainLooperOneTask()
229 shadowOf(Looper.myLooper()).runToNextTask(); in runMainLooperToNextTask()
DShadowLooper.java9 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);
DShadowImageView.java17 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
65 ResourceLoader resourceLoader = shadowOf(Robolectric.application).getResourceLoader(); in buildDrawable()
80 shadowOf(layerDrawable).setLoadedFromResourceId(resourceId); in buildDrawable()
96 return shadowOf(Robolectric.application).getResourceLoader() in isDrawableXml()
147 canvas.translate(shadowOf(matrix).getTransX(), shadowOf(matrix) in draw()
149 canvas.scale(shadowOf(matrix).getScaleX(), shadowOf(matrix) in draw()
DShadowBitmap.java12 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
41 ShadowBitmap shadowBitmap = shadowOf(scaledBitmap); in createBitmap()
51 ShadowBitmap shadowBitmap = shadowOf(bitmap); in createBitmap()
59 ShadowBitmap shadowBitmap = shadowOf(scaledBitmap); in createScaledBitmap()
60 shadowBitmap.appendDescription(shadowOf(src).getDescription()); in createScaledBitmap()
82 ShadowBitmap shadowBitmap = shadowOf(realBitmap); in copy()
120 shadowOf(bitmap).appendDescription(name); in create()
158 ShadowBitmap that = shadowOf((Bitmap) o); in equals()
DShadowMatrix.java7 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
33 transX = shadowOf(src).transX; in set()
34 scaleX = shadowOf(src).scaleX; in set()
36 transY = shadowOf(src).transY; in set()
37 scaleY = shadowOf(src).scaleY; in set()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/util/
DTestFragmentManager.java22 import static com.xtremelabs.robolectric.Robolectric.shadowOf;
49 shadowOf(Looper.getMainLooper()).getScheduler().remove(runnable); in executePendingTransactions()
145 ShadowFragment shadowFragment = shadowOf(fragment); in addFragment()
157 ShadowFragment shadowFragment = shadowOf(fragment); in startFragment()
158 if (shadowOf(activity).getContentView() != null) { in startFragment()
198 shadowOf(t.getFragment()).setAdded(true); in commitTransaction()
203 shadowOf(fragment).setAdded(false); in commitTransaction()
209 shadowOf(t.getFragmentToAttach()).setAttached(true); in commitTransaction()
214 shadowOf(fragment).setHidden(true); in commitTransaction()
221 shadowOf(fragment).setHidden(false); in commitTransaction()

12345678