/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | NotificationManagerTest.java | 12 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 29 assertEquals(1, shadowOf(notificationManager).size()); 30 assertEquals(notification1, shadowOf(notificationManager).getNotification(1)); 33 assertEquals(2, shadowOf(notificationManager).size()); 34 assertEquals(notification2, shadowOf(notificationManager).getNotification(31)); 42 assertEquals(1, shadowOf(notificationManager).size()); 43 assertEquals(notification2, shadowOf(notificationManager).getNotification(1)); 49 assertEquals(1, shadowOf(notificationManager).size()); 50 assertEquals(notification1, shadowOf(notificationManager).getNotification("a tag")); 56 assertEquals(1, shadowOf(notificationManage [all...] |
H A D | AlphaAnimationTest.java | 8 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 15 assertEquals(99.0f, shadowOf(new AlphaAnimation(99, 88)).getFromAlpha()); 16 assertEquals(66.7f, shadowOf(new AlphaAnimation(66.7f, 88)).getFromAlpha()); 21 assertEquals(88.0f, shadowOf(new AlphaAnimation(99, 88)).getToAlpha()); 22 assertEquals(98f, shadowOf(new AlphaAnimation(66.7f, 98)).getToAlpha());
|
H A D | JsResultTest.java | 9 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 20 assertFalse(shadowOf(jsResult).wasCancelled()); 23 assertTrue(shadowOf(jsResult).wasCancelled());
|
H A D | GeocoderTest.java | 13 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 31 String lastLocationName = shadowOf(geocoder).getLastLocationName(); 38 shadowOf(geocoder).setSimulatedHasLatLong(true, true); 42 shadowOf(geocoder).setSimulatedHasLatLong(false, false); 50 shadowOf(geocoder).setReturnNoResults(true); 58 assertFalse(shadowOf(geocoder).didResolution()); 59 shadowOf(geocoder).setReturnNoResults(true); 61 assertTrue(shadowOf(geocoder).didResolution());
|
H A D | LooperTest.java | 11 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 73 assertTrue(shadowOf(looper).hasQuit()); 74 assertFalse(shadowOf(looper).post(new Runnable() { 78 assertFalse(shadowOf(looper).postAtFrontOfQueue(new Runnable() { 83 assertFalse(shadowOf(looper).getScheduler().areAnyRunnable()); 91 shadowOf(looper).pause(); 92 shadowOf(looper).post(new Runnable() { 98 assertTrue(shadowOf(looper).hasQuit()); 99 assertFalse(shadowOf(looper).getScheduler().areAnyRunnable()); 104 assertTrue(shadowOf(Loope [all...] |
H A D | BitmapTest.java | 15 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 25 shadowOf(originalBitmap).appendDescription("Original bitmap"); 27 assertEquals("Original bitmap scaled to 100 x 200", shadowOf(scaledBitmap).getDescription()); 47 shadowOf(originalBitmap).appendDescription("Original bitmap"); 49 assertEquals("Original bitmap created from Bitmap object", shadowOf(newBitmap).getDescription()); 70 shadowOf(bitmapA1).setWidth(100); 71 shadowOf(bitmapA1).setHeight(100); 74 shadowOf(bitmapA2).setWidth(101); 75 shadowOf(bitmapA2).setHeight(101); 83 shadowOf(bitmap [all...] |
H A D | CanvasTest.java | 10 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 33 "Bitmap for file:/an/image.jpg at (100,200)", shadowOf(canvas).getDescription()); 36 "Bitmap for file:/an/image.jpg at (100,200)", shadowOf(targetBitmap).getDescription()); 46 "Bitmap for file:/an/image.jpg transformed by matrix", shadowOf(canvas).getDescription()); 49 "Bitmap for file:/an/image.jpg transformed by matrix", shadowOf(targetBitmap).getDescription()); 70 shadowOf(canvas).getDescription()); 83 ShadowCanvas shadow = shadowOf(canvas); 103 assertEquals("Path " + shadowOf(path1).getPoints().toString() + "\n" 104 + "Path " + shadowOf(path2).getPoints().toString(), shadowOf(canva [all...] |
H A D | KeyguardManagerTest.java | 10 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 24 ShadowKeyguardManager shadowMgr = shadowOf(mgr); 34 assertTrue(shadowOf(lock).isEnabled()); 37 assertFalse(shadowOf(lock).isEnabled()); 40 assertTrue(shadowOf(lock).isEnabled());
|
H A D | StateListDrawableTest.java | 11 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 27 ShadowStateListDrawable shadow = shadowOf(stateListDrawable); 30 assertThat(((ShadowBitmapDrawable) shadowOf(drawableForState)).getPath(), is("/foo")); 40 ShadowStateListDrawable shadow = shadowOf(stateListDrawable); 43 assertThat(((ShadowBitmapDrawable) shadowOf(drawableForState)).getPath(), is("/foo"));
|
H A D | ActivityGroupTest.java | 9 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 20 shadowOf(activityGroup).setCurrentActivity(activity);
|
H A D | BaseAdapterTest.java | 10 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 20 assertTrue(shadowOf(adapter).wasNotifyDataSetChangedCalled()); 27 shadowOf(adapter).clearWasDataSetChangedCalledFlag(); 28 assertFalse(shadowOf(adapter).wasNotifyDataSetChangedCalled());
|
H A D | 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);
|
H A D | 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);
|
H A D | 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(fo [all...] |
H A D | ViewTreeObserverTest.java | 12 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 35 shadowOf(viewTreeObserver).fireOnGlobalLayoutListeners(); 42 shadowOf(viewTreeObserver).fireOnGlobalLayoutListeners(); 50 shadowOf(viewTreeObserver).fireOnGlobalLayoutListeners(); 61 List<ViewTreeObserver.OnGlobalLayoutListener> listeners = shadowOf(viewTreeObserver).getOnGlobalLayoutListeners();
|
H A D | LayerDrawableTest.java | 13 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 51 assertSame("drawables", drawables, shadowOf(layerDrawable).drawables); 69 assertEquals(shadowOf(drawable4000).getLoadedFromResourceId(), 70 shadowOf(layerDrawable.getDrawable(index)).getLoadedFromResourceId()); 82 assertEquals(shadowOf(drawable4000).getLoadedFromResourceId(), 83 shadowOf(layerDrawable.getDrawable(index)).getLoadedFromResourceId());
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
H A D | Robolectric.java | 392 public static ShadowAbsListView shadowOf(AbsListView instance) { method in class:Robolectric 396 public static ShadowAbsSeekBar shadowOf(AbsSeekBar instance) { method in class:Robolectric 400 public static ShadowAccountManager shadowOf(AccountManager instance) { method in class:Robolectric 404 public static ShadowActivity shadowOf(Activity instance) { method in class:Robolectric 408 public static ShadowActivityGroup shadowOf(ActivityGroup instance) { method in class:Robolectric 412 public static ShadowActivityManager shadowOf(ActivityManager instance) { method in class:Robolectric 416 public static ShadowAdapterView shadowOf(AdapterView instance) { method in class:Robolectric 420 public static ShadowAddress shadowOf(Address instance) { method in class:Robolectric 424 public static ShadowAlarmManager shadowOf(AlarmManager instance) { method in class:Robolectric 428 public static ShadowAlertDialog shadowOf(AlertDialo method in class:Robolectric 432 public static ShadowAlphaAnimation shadowOf(AlphaAnimation instance) { method in class:Robolectric 436 public static ShadowAnimation shadowOf(Animation instance) { method in class:Robolectric 440 public static ShadowAnimationDrawable shadowOf(AnimationDrawable instance) { method in class:Robolectric 444 public static ShadowAnimationSet shadowOf(AnimationSet instance) { method in class:Robolectric 448 public static ShadowAnimationUtils shadowOf(AnimationUtils instance) { method in class:Robolectric 452 public static ShadowApplication shadowOf(Application instance) { method in class:Robolectric 456 public static ShadowAppWidgetManager shadowOf(AppWidgetManager instance) { method in class:Robolectric 460 public static ShadowArrayAdapter shadowOf(ArrayAdapter instance) { method in class:Robolectric 464 public static ShadowAssetManager shadowOf(AssetManager instance) { method in class:Robolectric 469 public static ShadowAsyncTask shadowOf(AsyncTask instance){ method in class:Robolectric 473 public static ShadowAudioManager shadowOf(AudioManager instance) { method in class:Robolectric 477 public static ShadowAutoCompleteTextView shadowOf(AutoCompleteTextView instance) { method in class:Robolectric 481 public static ShadowBaseAdapter shadowOf(BaseAdapter other) { method in class:Robolectric 485 public static ShadowBitmap shadowOf(Bitmap other) { method in class:Robolectric 489 public static ShadowBitmapDrawable shadowOf(BitmapDrawable instance) { method in class:Robolectric 493 public static ShadowBluetoothAdapter shadowOf(BluetoothAdapter other) { method in class:Robolectric 497 public static ShadowBluetoothDevice shadowOf(BluetoothDevice other) { method in class:Robolectric 501 public static ShadowBundle shadowOf(Bundle instance) { method in class:Robolectric 505 public static ShadowCamera shadowOf(Camera instance) { method in class:Robolectric 509 public static ShadowCameraParameters shadowOf(Camera.Parameters instance) { method in class:Robolectric 513 public static ShadowCameraSize shadowOf(Camera.Size instance) { method in class:Robolectric 517 public static ShadowCanvas shadowOf(Canvas instance) { method in class:Robolectric 521 public static ShadowCheckedTextView shadowOf(CheckedTextView instance) { method in class:Robolectric 525 public static ShadowClipboardManager shadowOf(ClipboardManager instance) { method in class:Robolectric 529 public static ShadowColor shadowOf(Color instance) { method in class:Robolectric 533 public static ShadowColorDrawable shadowOf(ColorDrawable instance) { method in class:Robolectric 537 public static ShadowColorMatrix shadowOf(ColorMatrix instance) { method in class:Robolectric 541 public static ShadowConfiguration shadowOf(Configuration instance) { method in class:Robolectric 545 public static ShadowConnectivityManager shadowOf(ConnectivityManager instance) { method in class:Robolectric 549 public static ShadowCookieManager shadowOf(CookieManager instance) { method in class:Robolectric 553 public static ShadowContentResolver shadowOf(ContentResolver instance) { method in class:Robolectric 557 public static ShadowContentProviderOperation shadowOf(ContentProviderOperation instance) { method in class:Robolectric 561 public static ShadowContentProviderOperationBuilder shadowOf(ContentProviderOperation.Builder instance) { method in class:Robolectric 565 public static ShadowContentProviderResult shadowOf(ContentProviderResult instance) { method in class:Robolectric 569 public static ShadowCookieSyncManager shadowOf(CookieSyncManager instance) { method in class:Robolectric 573 public static ShadowContext shadowOf(Context instance) { method in class:Robolectric 577 public static ShadowContentValues shadowOf(ContentValues other) { method in class:Robolectric 581 public static ShadowContextWrapper shadowOf(ContextWrapper instance) { method in class:Robolectric 585 public static ShadowCountDownTimer shadowOf(CountDownTimer instance) { method in class:Robolectric 589 public static ShadowCursorAdapter shadowOf(CursorAdapter instance) { method in class:Robolectric 593 public static ShadowCursorLoader shadowOf(CursorLoader instance) { method in class:Robolectric 597 public static ShadowCursorWrapper shadowOf(CursorWrapper instance) { method in class:Robolectric 601 public static ShadowDateFormat shadowOf(DateFormat instance) { method in class:Robolectric 605 public static ShadowDefaultRequestDirector shadowOf(DefaultRequestDirector instance) { method in class:Robolectric 609 public static ShadowDialog shadowOf(Dialog instance) { method in class:Robolectric 613 public static ShadowDialogFragment shadowOf(DialogFragment instance) { method in class:Robolectric 617 public static ShadowDialogPreference shadowOf(DialogPreference instance) { method in class:Robolectric 621 public static ShadowDrawable shadowOf(Drawable instance) { method in class:Robolectric 625 public static ShadowDisplay shadowOf(Display instance) { method in class:Robolectric 629 public static ShadowExpandableListView shadowOf(ExpandableListView instance) { method in class:Robolectric 633 public static ShadowFilter shadowOf(Filter instance) { method in class:Robolectric 637 public static ShadowFragment shadowOf(Fragment instance) { method in class:Robolectric 641 public static ShadowFragmentActivity shadowOf(FragmentActivity instance) { method in class:Robolectric 645 public static ShadowFragmentPagerAdapter shadowOf(FragmentPagerAdapter instance) { method in class:Robolectric 649 public static ShadowFrameLayout shadowOf(FrameLayout instance) { method in class:Robolectric 653 public static ShadowGallery shadowOf(Gallery instance) { method in class:Robolectric 657 public static ShadowGeocoder shadowOf(Geocoder instance) { method in class:Robolectric 661 public static ShadowGridView shadowOf(GridView instance) { method in class:Robolectric 665 public static ShadowHandler shadowOf(Handler instance) { method in class:Robolectric 669 public static ShadowHandlerThread shadowOf(HandlerThread instance) { method in class:Robolectric 673 public static ShadowImageView shadowOf(ImageView instance) { method in class:Robolectric 677 public static ShadowInputMethodManager shadowOf(InputMethodManager instance) { method in class:Robolectric 681 public static ShadowIntent shadowOf(Intent instance) { method in class:Robolectric 685 public static ShadowJsPromptResult shadowOf(JsPromptResult instance) { method in class:Robolectric 689 public static ShadowJsResult shadowOf(JsResult instance) { method in class:Robolectric 693 public static ShadowKeyguardManager shadowOf(KeyguardManager instance) { method in class:Robolectric 697 public static ShadowKeyGuardLock shadowOf(KeyguardManager.KeyguardLock instance) { method in class:Robolectric 701 public static ShadowLayerDrawable shadowOf(LayerDrawable instance) { method in class:Robolectric 705 public static ShadowLayoutInflater shadowOf(LayoutInflater instance) { method in class:Robolectric 709 public static ShadowListActivity shadowOf(ListActivity instance) { method in class:Robolectric 713 public static ShadowListFragment shadowOf(ListFragment instance) { method in class:Robolectric 717 public static ShadowListPreference shadowOf(ListPreference instance) { method in class:Robolectric 721 public static ShadowListView shadowOf(ListView instance) { method in class:Robolectric 725 public static ShadowLocationManager shadowOf(LocationManager instance) { method in class:Robolectric 729 public static ShadowLooper shadowOf(Looper instance) { method in class:Robolectric 733 public static ShadowMatrix shadowOf(Matrix other) { method in class:Robolectric 737 public static ShadowMediaPlayer shadowOf(MediaPlayer instance) { method in class:Robolectric 741 public static ShadowMediaRecorder shadowOf(MediaRecorder instance) { method in class:Robolectric 745 public static ShadowMenuInflater shadowOf(MenuInflater instance) { method in class:Robolectric 749 public static ShadowMessage shadowOf(Message instance) { method in class:Robolectric 753 public static ShadowMimeTypeMap shadowOf(MimeTypeMap instance) { method in class:Robolectric 757 public static ShadowMotionEvent shadowOf(MotionEvent other) { method in class:Robolectric 761 public static ShadowNetworkInfo shadowOf(NetworkInfo instance) { method in class:Robolectric 765 public static ShadowNotification shadowOf(Notification other) { method in class:Robolectric 769 public static ShadowNotificationManager shadowOf(NotificationManager other) { method in class:Robolectric 773 public static ShadowPagerAdapter shadowOf(PagerAdapter instance) { method in class:Robolectric 777 public static ShadowPaint shadowOf(Paint instance) { method in class:Robolectric 781 public static ShadowParcel shadowOf(Parcel instance) { method in class:Robolectric 785 public static ShadowPasswordTransformationMethod shadowOf(PasswordTransformationMethod instance) { method in class:Robolectric 789 public static ShadowPath shadowOf(Path instance) { method in class:Robolectric 793 public static ShadowPendingIntent shadowOf(PendingIntent instance) { method in class:Robolectric 797 public static ShadowPhoneNumberUtils shadowOf(PhoneNumberUtils instance) { method in class:Robolectric 801 public static ShadowPopupWindow shadowOf(PopupWindow instance) { method in class:Robolectric 805 public static ShadowPowerManager shadowOf(PowerManager instance) { method in class:Robolectric 809 public static ShadowPreference shadowOf(Preference instance) { method in class:Robolectric 813 public static ShadowPreferenceActivity shadowOf(PreferenceActivity instance) { method in class:Robolectric 817 public static ShadowPreferenceCategory shadowOf(PreferenceCategory instance) { method in class:Robolectric 821 public static ShadowPreferenceGroup shadowOf(PreferenceGroup instance) { method in class:Robolectric 825 public static ShadowPreferenceScreen shadowOf(PreferenceScreen instance) { method in class:Robolectric 829 public static ShadowProgressBar shadowOf(ProgressBar instance) { method in class:Robolectric 833 public static ShadowProgressDialog shadowOf(ProgressDialog instance) { method in class:Robolectric 837 public static ShadowRect shadowOf(Rect instance) { method in class:Robolectric 841 public static ShadowRatingBar shadowOf(RatingBar instance) { method in class:Robolectric 845 public static ShadowRemoteViews shadowOf(RemoteViews instance) { method in class:Robolectric 849 public static ShadowResolveInfo shadowOf(ResolveInfo instance) { method in class:Robolectric 853 public static ShadowResourceCursorAdapter shadowOf(ResourceCursorAdapter instance) { method in class:Robolectric 857 public static ShadowResources shadowOf(Resources instance) { method in class:Robolectric 861 public static ShadowResultReceiver shadowOf(ResultReceiver instance) { method in class:Robolectric 865 public static ShadowScanResult shadowOf(ScanResult instance) { method in class:Robolectric 869 public static ShadowScrollView shadowOf(ScrollView instance) { method in class:Robolectric 873 public static ShadowSeekBar shadowOf(SeekBar instance) { method in class:Robolectric 877 public static ShadowSensorManager shadowOf(SensorManager instance) { method in class:Robolectric 881 public static ShadowService shadowOf(Service instance) { method in class:Robolectric 885 public static ShadowShapeDrawable shadowOf(ShapeDrawable instance) { method in class:Robolectric 889 public static ShadowSignature shadowOf(Signature instance) { method in class:Robolectric 893 public static ShadowSimpleCursorAdapter shadowOf(SimpleCursorAdapter instance) { method in class:Robolectric 897 public static ShadowSmsManager shadowOf(SmsManager instance) { method in class:Robolectric 901 public static <E> ShadowSparseArray<E> shadowOf(SparseArray<E> other) { method in class:Robolectric 906 public static ShadowSparseBooleanArray shadowOf(SparseBooleanArray other) { method in class:Robolectric 910 public static ShadowSparseIntArray shadowOf(SparseIntArray other){ method in class:Robolectric 914 public static ShadowSQLiteCursor shadowOf(SQLiteCursor other) { method in class:Robolectric 918 public static ShadowSQLiteDatabase shadowOf(SQLiteDatabase other) { method in class:Robolectric 922 public static ShadowSQLiteOpenHelper shadowOf(SQLiteOpenHelper other) { method in class:Robolectric 926 public static ShadowSQLiteProgram shadowOf(SQLiteProgram other) { method in class:Robolectric 930 public static ShadowSQLiteQueryBuilder shadowOf(SQLiteQueryBuilder other) { method in class:Robolectric 934 public static ShadowSQLiteStatement shadowOf(SQLiteStatement other) { method in class:Robolectric 938 public static ShadowSslErrorHandler shadowOf(SslErrorHandler instance) { method in class:Robolectric 942 public static ShadowStateListDrawable shadowOf(StateListDrawable instance) { method in class:Robolectric 946 public static ShadowTabHost shadowOf(TabHost instance) { method in class:Robolectric 950 public static ShadowTabSpec shadowOf(TabHost.TabSpec instance) { method in class:Robolectric 954 public static ShadowTelephonyManager shadowOf(TelephonyManager instance) { method in class:Robolectric 958 public static ShadowTextPaint shadowOf(TextPaint instance) { method in class:Robolectric 962 public static ShadowTextView shadowOf(TextView instance) { method in class:Robolectric 966 public static ShadowToast shadowOf(Toast instance) { method in class:Robolectric 970 public static ShadowTranslateAnimation shadowOf(TranslateAnimation instance) { method in class:Robolectric 974 public static ShadowUriMatcher shadowOf(UriMatcher instance) { method in class:Robolectric 978 public static ShadowView shadowOf(View instance) { method in class:Robolectric 982 public static ShadowViewAnimator shadowOf(ViewAnimator instance) { method in class:Robolectric 986 public static ShadowViewConfiguration shadowOf(ViewConfiguration instance) { method in class:Robolectric 990 public static ShadowViewFlipper shadowOf(ViewFlipper instance) { method in class:Robolectric 994 public static ShadowViewPager shadowOf(ViewPager instance) { method in class:Robolectric 998 public static ShadowViewTreeObserver shadowOf(ViewTreeObserver instance) { method in class:Robolectric 1002 public static ShadowViewGroup shadowOf(ViewGroup instance) { method in class:Robolectric 1006 public static ShadowVibrator shadowOf(Vibrator instance) { method in class:Robolectric 1010 public static ShadowVideoView shadowOf(VideoView instance) { method in class:Robolectric 1014 public static ShadowWebView shadowOf(WebView instance) { method in class:Robolectric 1018 public static ShadowWifiConfiguration shadowOf(WifiConfiguration instance) { method in class:Robolectric 1022 public static ShadowWifiInfo shadowOf(WifiInfo instance) { method in class:Robolectric 1026 public static ShadowWifiManager shadowOf(WifiManager instance) { method in class:Robolectric 1030 public static ShadowZoomButtonsController shadowOf(ZoomButtonsController instance) { method in class:Robolectric 1034 public static ShadowTheme shadowOf(Theme instance) { method in class:Robolectric [all...] |
H A D | RobolectricShadowOfLevel9.java | 13 public static ShadowNdefMessage shadowOf(NdefMessage instance) { method in class:RobolectricShadowOfLevel9 17 public static ShadowNdefRecord shadowOf(NdefRecord instance) { method in class:RobolectricShadowOfLevel9 21 public static ShadowNfcAdapter shadowOf(NfcAdapter instance) { method in class:RobolectricShadowOfLevel9
|
H A D | RobolectricForMaps.java | 13 public static ShadowGeoPoint shadowOf(GeoPoint instance) { method in class:RobolectricForMaps 17 public static ShadowMapView shadowOf(MapView instance) { method in class:RobolectricForMaps 21 public static ShadowMapController shadowOf(MapController instance) { method in class:RobolectricForMaps 25 public static ShadowItemizedOverlay shadowOf(ItemizedOverlay instance) { method in class:RobolectricForMaps
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowMatrix.java | 7 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 33 transX = shadowOf(src).transX; 34 scaleX = shadowOf(src).scaleX; 36 transY = shadowOf(src).transY; 37 scaleY = shadowOf(src).scaleY;
|
H A D | ShadowMenuInflater.java | 9 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 26 shadowOf(context.getApplicationContext()).getResourceLoader().inflateMenu(context, resource, root);
|
H A D | 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);
|
H A D | ShadowBitmap.java | 12 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 41 ShadowBitmap shadowBitmap = shadowOf(scaledBitmap); 51 ShadowBitmap shadowBitmap = shadowOf(bitmap); 59 ShadowBitmap shadowBitmap = shadowOf(scaledBitmap); 60 shadowBitmap.appendDescription(shadowOf(src).getDescription()); 82 ShadowBitmap shadowBitmap = shadowOf(realBitmap); 120 shadowOf(bitmap).appendDescription(name); 158 ShadowBitmap that = shadowOf((Bitmap) o);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/ |
H A D | AppSingletonizer.java | 8 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 19 ShadowApplication shadowApplication = (ShadowApplication) shadowOf(applicationContext);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/ |
H A D | HasResourceMatcher.java | 9 import static com.xtremelabs.robolectric.Robolectric.shadowOf; 25 actualResourceId = shadowOf(actual).getResourceId();
|