/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ViewGroupTest.java | 24 import static org.hamcrest.CoreMatchers.sameInstance; 85 assertThat(root.getLayoutAnimationListener(), sameInstance(animationListener)); 93 assertThat(root.getChildAt(0), sameInstance(child1)); 94 assertThat(root.getChildAt(1), sameInstance((View) child3)); 105 assertThat(root.getChildAt(0), sameInstance(child1)); 106 assertThat(root.getChildAt(1), sameInstance((View) child3)); 107 assertThat(root.getChildAt(2), sameInstance(child2)); 119 assertThat(root.findViewWithTag("tag1"), sameInstance(child1)); 120 assertThat(root.findViewWithTag("tag2"), sameInstance(child2)); 121 assertThat((ViewGroup) root.findViewWithTag("tag3"), sameInstance(child3)) [all...] |
SpannableStringTest.java | 5 import static org.hamcrest.CoreMatchers.sameInstance; 33 assertThat(spanStr.toString(), sameInstance(TEST_STRING)); 57 assertThat((UnderlineSpan) spans[0], sameInstance(s2)); 75 assertThat((URLSpan) spans[0], sameInstance(s1)); 80 assertThat((UnderlineSpan) spans[0], sameInstance(s2)); 85 assertThat((UnderlineSpan) spans[0], sameInstance(s2)); 90 assertThat((URLSpan) spans[0], sameInstance(s1)); 126 assertThat((URLSpan) spans[0], sameInstance(s1)); 128 assertThat((UnderlineSpan) spans[0], sameInstance(s2)); 131 assertThat((UnderlineSpan) spans[1], sameInstance(s2)) [all...] |
GalleryTest.java | 12 import static org.hamcrest.CoreMatchers.sameInstance; 34 assertThat((Gallery) listener.view, sameInstance(gallery)); 35 assertThat(listener.event, sameInstance(event)); 42 assertThat((Gallery)listener.view, sameInstance(gallery)); 43 assertThat(listener.event, sameInstance(event));
|
RemoteCallbackListTest.java | 12 import static org.hamcrest.CoreMatchers.sameInstance; 25 assertThat(fooRemoteCallbackList.getBroadcastItem(0), sameInstance(callback));
|
AnimationSetTest.java | 40 assertThat(list.get(0), sameInstance(alpha)); 41 assertThat(list.get(1), sameInstance(translate)); 42 assertThat(list.get(2), sameInstance(rotate));
|
ShadowBinderTest.java | 12 import static org.hamcrest.CoreMatchers.sameInstance; 24 assertThat(testBinder.data, sameInstance(data)); 25 assertThat(testBinder.reply, sameInstance(reply));
|
DialogPreferenceTest.java | 17 import static org.hamcrest.CoreMatchers.sameInstance; 47 assertThat(shadow.getContext(), sameInstance(context)); 48 assertThat(shadow.getAttrs(), sameInstance((AttributeSet) attrs)); 53 assertThat(shadow.getContext(), sameInstance(context)); 54 assertThat(shadow.getAttrs(), sameInstance((AttributeSet) attrs));
|
ContextWrapperTest.java | 25 import static org.hamcrest.CoreMatchers.sameInstance; 115 assertThat(activity.getApplication(), sameInstance(activity.getApplication())); 117 assertThat(activity.getApplication(), sameInstance(new Activity().getApplication())); 123 assertThat(activity.getApplicationContext(), sameInstance(activity.getApplicationContext())); 125 assertThat(activity.getApplicationContext(), sameInstance(new Activity().getApplicationContext())); 131 assertThat(activity.getContentResolver(), sameInstance(activity.getContentResolver())); 133 assertThat(activity.getContentResolver(), sameInstance(new Activity().getContentResolver())); 168 assertThat(contextWrapper.getBaseContext(), sameInstance((Context) baseContext)); 173 assertThat(activity.getSystemService(serviceName), sameInstance(activity.getSystemService(serviceName))); 175 assertThat(activity.getSystemService(serviceName), sameInstance(new Activity().getSystemService(serviceName))) [all...] |
ListPreferenceTest.java | 16 import static org.hamcrest.CoreMatchers.sameInstance; 42 assertThat(listPreference.getEntries(), sameInstance(entries)); 58 assertThat(listPreference.getEntryValues(), sameInstance(entryValues));
|
PreferenceTest.java | 7 import static org.hamcrest.CoreMatchers.sameInstance; 53 assertThat(shadow.getContext(), sameInstance(context)); 54 assertThat(shadow.getAttrs(), sameInstance((AttributeSet)attrs)); 59 assertThat(shadow.getContext(), sameInstance( context )); 60 assertThat(shadow.getAttrs(), sameInstance((AttributeSet)attrs)); 65 assertThat(shadow.getContext(), sameInstance( context )); 132 assertThat(shadow.getDefaultValue(), sameInstance(defaultValue)); 193 assertThat(shadow.getOnPreferenceClickListener(), sameInstance(onPreferenceClickListener)); 218 assertThat(shadow.getCallChangeListenerValue(), sameInstance((Object)newValue));
|
ExpandableListViewTest.java | 11 import static org.hamcrest.CoreMatchers.sameInstance; 44 assertThat(myOnChildClickListener.expandableListView, sameInstance(expandableListView));
|
ListActivityTest.java | 15 import static org.hamcrest.CoreMatchers.sameInstance; 52 assertThat(listView.getAdapter(), sameInstance(adapter));
|
PreferenceScreenTest.java | 14 import static org.hamcrest.CoreMatchers.sameInstance; 40 assertThat(screen.getDialog(), sameInstance(dialog));
|
SeekBarTest.java | 4 import static org.hamcrest.CoreMatchers.sameInstance; 37 assertThat(shadow.getOnSeekBarChangeListener(), sameInstance(listener));
|
MapViewTest.java | 18 import static org.hamcrest.CoreMatchers.sameInstance; 48 assertThat(overlay1.lastMotionEvent, sameInstance(sourceEvent)); 60 assertThat(overlay1.lastMotionEvent, sameInstance(sourceEvent)); 61 assertThat(overlay2.lastMotionEvent, sameInstance(sourceEvent)); 72 assertThat(overlay1.lastMotionEvent, sameInstance(sourceEvent)); 73 assertThat(overlay2.lastMotionEvent, sameInstance(sourceEvent)); 74 assertThat(mapTouchListener.lastMotionEvent, sameInstance(sourceEvent));
|
SQLiteOpenHelperTest.java | 15 import static org.hamcrest.CoreMatchers.sameInstance; 48 assertThat(db1, sameInstance(db2)); 70 assertThat(db1, sameInstance(db2));
|
ListFragmentTest.java | 15 import static org.hamcrest.CoreMatchers.sameInstance;
|
RatingBarTest.java | 5 import static org.hamcrest.CoreMatchers.sameInstance; 39 assertThat(shadow.getOnRatingBarChangeListener(), sameInstance(listener));
|
PreferenceGroupTest.java | 5 import static org.hamcrest.CoreMatchers.sameInstance; 92 assertThat( group.getPreference(0), sameInstance(pref1)); 93 assertThat( group.getPreference(1), sameInstance(pref2)); 139 assertThat( group.findPreference(pref1.getKey()), sameInstance(pref1)); 140 assertThat( group.findPreference(pref2.getKey()), sameInstance(pref2)); 151 assertThat( group.findPreference(pref2.getKey()), sameInstance(pref2));
|
CursorAdapterTest.java | 6 import static org.hamcrest.CoreMatchers.sameInstance; 66 assertThat(adapter.getCursor(), sameInstance(curs)); 98 assertThat(adapter.getView(i, null, null), sameInstance(views.get(i)));
|
FragmentManagerTest.java | 25 import static org.hamcrest.CoreMatchers.sameInstance; 51 assertThat(manager.findFragmentById(CONTAINER_VIEW_ID), sameInstance((Fragment) fragment)); 58 assertThat(manager.findFragmentByTag("tag1"), sameInstance((Fragment) fragment)); 95 assertThat(fragment.getView(), sameInstance(fragment.onCreateViewReturnValue)); 111 assertThat(activity.findViewById(TestFragment.FRAGMENT_VIEW_ID), sameInstance(fragment.onCreateViewReturnValue)); 112 assertThat(fragmentViewParent, sameInstance((View) containerView));
|
TelephonyManagerTest.java | 16 import static org.hamcrest.CoreMatchers.sameInstance; 39 assertThat((MyPhoneStateListener) shadowManager.getListener(), sameInstance(listener));
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
EditorCursorTest.java | 35 import static org.hamcrest.Matchers.sameInstance; 79 onView(sameInstance(mEditText)).perform(click()); 88 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); 97 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); 106 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()); 115 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); 125 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); 130 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); 135 onView(sameInstance(mEditText)).check(hasInsertionPointerOnLeft()); 144 onView(sameInstance(mEditText)).check(hasInsertionPointerOnRight()) [all...] |
/external/hamcrest/src/org/hamcrest/core/ |
IsSame.java | 36 public static <T> Matcher<T> sameInstance(T object) {
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
BottomSheetBehaviorTouchTest.java | 22 import static org.hamcrest.CoreMatchers.sameInstance; 89 assertThat(mBehavior, is(sameInstance(BottomSheetBehavior.from(mBottomSheet)))); 96 Espresso.onView(sameInstance((View) activity.mCoordinatorLayout))
|