OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:sameInstance
(Results
1 - 25
of
31
) sorted by null
1
2
/external/hamcrest/src/org/hamcrest/core/
IsSame.java
36
public static <T> Matcher<T>
sameInstance
(T object) {
/external/hamcrest/src/org/hamcrest/
CoreMatchers.java
103
public static <T> org.hamcrest.Matcher<T>
sameInstance
(T object) {
104
return org.hamcrest.core.IsSame.
sameInstance
(object);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
AnimationSetTest.java
40
assertThat(list.get(0),
sameInstance
(alpha));
41
assertThat(list.get(1),
sameInstance
(translate));
42
assertThat(list.get(2),
sameInstance
(rotate));
PreferenceScreenTest.java
14
import static org.hamcrest.CoreMatchers.
sameInstance
;
40
assertThat(screen.getDialog(),
sameInstance
(dialog));
RemoteCallbackListTest.java
12
import static org.hamcrest.CoreMatchers.
sameInstance
;
25
assertThat(fooRemoteCallbackList.getBroadcastItem(0),
sameInstance
(callback));
SeekBarTest.java
4
import static org.hamcrest.CoreMatchers.
sameInstance
;
37
assertThat(shadow.getOnSeekBarChangeListener(),
sameInstance
(listener));
CursorWrapperTest.java
102
assertThat(shadow.getWrappedCursor(), is(
sameInstance
(mockCursor)));
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));
ListActivityTest.java
15
import static org.hamcrest.CoreMatchers.
sameInstance
;
52
assertThat(listView.getAdapter(),
sameInstance
(adapter));
ListPreferenceTest.java
16
import static org.hamcrest.CoreMatchers.
sameInstance
;
42
assertThat(listPreference.getEntries(),
sameInstance
(entries));
58
assertThat(listPreference.getEntryValues(),
sameInstance
(entryValues));
RatingBarTest.java
5
import static org.hamcrest.CoreMatchers.
sameInstance
;
39
assertThat(shadow.getOnRatingBarChangeListener(),
sameInstance
(listener));
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
...]
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
...]
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)));
DialogTest.java
17
import static org.hamcrest.CoreMatchers.
sameInstance
;
32
assertThat((Dialog) dialogInListener,
sameInstance
(dialog));
117
assertThat(ShadowDialog.getLatestDialog(),
sameInstance
(dialog));
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));
WifiManagerTest.java
23
import static org.hamcrest.CoreMatchers.
sameInstance
;
81
assertThat(wifiManager.getScanResults(),
sameInstance
(scanResults));
90
assertThat(wifiManager.getConfiguredNetworks().get(0), not(
sameInstance
(wifiConfiguration)));
CameraTest.java
22
import static org.hamcrest.CoreMatchers.
sameInstance
;
83
assertThat(shadowCamera.getPreviewDisplay(),
sameInstance
(previewSurfaceHolder));
117
assertThat(callback.camera,
sameInstance
(camera));
130
assertThat(callback.camera,
sameInstance
(camera));
143
assertThat(callback.camera,
sameInstance
(camera));
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));
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
...]
WebViewTest.java
72
assertThat(shadowWebView.getWebViewClient(),
sameInstance
(webViewClient));
80
assertThat(shadowWebView.getWebChromeClient(),
sameInstance
(webChromeClient));
94
assertThat(shadowWebView.getPictureListener(),
sameInstance
(pictureListener));
104
assertThat(shadowWebView.getJavascriptInterface(name),
sameInstance
(obj));
AlertDialogTest.java
45
assertThat(shadowOf(ShadowAlertDialog.getLatestAlertDialog()),
sameInstance
(shadowAlertDialog));
46
assertThat(ShadowAlertDialog.getLatestAlertDialog(),
sameInstance
(alert));
54
assertThat(ShadowAlertDialog.getLatestAlertDialog(),
sameInstance
(dialog));
118
assertThat(builder.setCustomTitle(view),
sameInstance
(builder));
225
assertThat(shadowOf(ShadowAlertDialog.getLatestAlertDialog()),
sameInstance
(shadowAlertDialog));
226
assertThat(ShadowAlertDialog.getLatestAlertDialog(),
sameInstance
(alert));
298
assertThat(ShadowAlertDialog.getLatestAlertDialog(),
sameInstance
(alert));
358
assertThat(dialog.findViewById(99),
sameInstance
(view));
MediaRecorderTest.java
73
assertThat(shadowMediaRecorder.getCamera(),
sameInstance
(c));
96
assertThat(shadowMediaRecorder.getErrorListener(),
sameInstance
((MediaRecorder.OnErrorListener) listener));
105
assertThat(shadowMediaRecorder.getInfoListener(),
sameInstance
((MediaRecorder.OnInfoListener) listener));
133
assertThat(shadowMediaRecorder.getPreviewDisplay(),
sameInstance
(surface));
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));
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
RobolectricPackageManagerTest.java
96
assertThat(rpm.resolveActivity(i, 0),
sameInstance
(info));
115
assertThat(rpm.resolveService(i, 0),
sameInstance
(info));
132
assertThat(rpm.getActivityIcon(i),
sameInstance
(d));
133
assertThat(rpm.getActivityIcon(i.getComponent()),
sameInstance
(d));
Completed in 567 milliseconds
1
2