Home
last modified time | relevance | path

Searched refs:assertSame (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DItemGroupTest.java38 assertSame("Item at position 0 should be child1", CHILD_1, itemGroup.getItemAt(0)); in testGroup()
39 assertSame("Item at position 1 should be child2", CHILD_2, itemGroup.getItemAt(1)); in testGroup()
51 assertSame("Item at position 0 should be child2", CHILD_2, itemGroup.getItemAt(0)); in testRemoveChild()
82 assertSame("Position 0 should be child 1", CHILD_1, parentGroup.getItemAt(0)); in testNestedGroup()
83 assertSame("Position 1 should be child 2", CHILD_2, parentGroup.getItemAt(1)); in testNestedGroup()
84 assertSame("Position 2 should be child 3", CHILD_3, parentGroup.getItemAt(2)); in testNestedGroup()
85 assertSame("Position 3 should be child 4", CHILD_4, parentGroup.getItemAt(3)); in testNestedGroup()
97 assertSame("Position 0 should be child 1", CHILD_1, parentGroup.getItemAt(0)); in testEmptyChildGroup()
98 assertSame("Position 1 should be child 2", CHILD_2, parentGroup.getItemAt(1)); in testEmptyChildGroup()
110 assertSame("Find item 23456 should return child 2", CHILD_2, itemGroup.findItemById(23456)); in testFindItemById()
DDrawableLayoutDirectionHelperTest.java45 assertSame("Drawable from getDrawable() should be same as passed in", drawable, in testCreateRelativeInsetDrawableLtr()
62 assertSame("Drawable from getDrawable() should be same as passed in", drawable, in testCreateRelativeInsetDrawableRtl()
79 assertSame("Drawable from getDrawable() should be same as passed in", drawable, in testCreateRelativeInsetDrawableViewRtl()
106 assertSame("Drawable from getDrawable() should be same as passed in", drawable, in testCreateRelativeInsetDrawableContextRtl()
DItemTest.java58 assertSame("Icon should be the icon shape drawable", icon, mIconView.getDrawable()); in testOnBindView()
90 assertSame("Icon should be same as set", icon, item.getIcon()); in testProperties()
115 assertSame("getItemAt should return itself", item, item.getItemAt(0)); in testHierarchyImplementation()
116 assertSame("findItemById with same ID should return itself", item, in testHierarchyImplementation()
DTemplateLayoutTest.java46 assertSame("The view added should be the same text view", tv, view); in testAddView()
72 assertSame("The view added should be the same text view", tv, contentView); in testTemplate()
DSpanHelperTest.java39 assertSame("The span should be newSpan", newSpan, spans[0]); in testReplaceSpan()
DStatusBarBackgroundLayoutTest.java33 assertSame("Status bar background drawable should be same as set", in testSetStatusBarBackground()
DLinkSpanTest.java37 assertSame("Clicked LinkSpan should be passed to setup", linkSpan, context.clickedSpan); in testOnClick()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DItemAnimatorV2ApiTest.java27 import static org.junit.Assert.assertSame;
197 assertSame(vh, log.viewHolder); in simpleAdd()
222 assertSame(vh, log.viewHolder); in simpleRemove()
246 assertSame(vh, log.viewHolder); in simpleUpdate()
247 assertSame(vh, log.newHolder); in simpleUpdate()
270 assertSame(viewHolder, vh); in updateWithDuplicateViewHolder()
281 assertSame(vh, log.viewHolder); in updateWithDuplicateViewHolder()
282 assertSame(newVh, log.newHolder); in updateWithDuplicateViewHolder()
323 assertSame(reused, mRecyclerView.findViewHolderForAdapterPosition(3)); in updateWithOneDuplicateAndOneInPlace()
336 assertSame(replaced, logReplaced.viewHolder); in updateWithOneDuplicateAndOneInPlace()
[all …]
DGridLayoutManagerBaseConfigSetTest.java31 import static org.junit.Assert.assertSame;
69 assertSame("test sanity", mRecyclerView, rv); in scrollBackAndPreservePositionsTest()
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChangeTest.java61 assertSame(mLeft, mActivity.mOldFocus); in testFocusChange()
62 assertSame(mRight, mActivity.mNewFocus); in testFocusChange()
72 assertSame(mLeft, mActivity.mOldFocus); in testEnterTouchMode()
73 assertSame(null, mActivity.mNewFocus); in testEnterTouchMode()
86 assertSame(null, mActivity.mOldFocus); in testLeaveTouchMode()
87 assertSame(mLeft, mActivity.mNewFocus); in testLeaveTouchMode()
DSetTagsTest.java59 assertSame("The stored tag is inccorect", o, stored); in testGetTag()
74 assertSame("The stored tag is inccorect", o, stored); in testGetTagWithKey()
DRemoteViewsTest.java40 import static org.junit.Assert.assertSame;
73 assertSame(bitmap, ((BitmapDrawable)drawable).getBitmap()); in clone_doesNotCopyBitmap()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DByteArrayRingBufferTest.java21 import static org.junit.Assert.assertSame;
48 assertSame(data, rb.getBuffer(0)); in canAddAndRetrieveSingleElement()
59 assertSame(data1, rb.getBuffer(0)); in canAddAndRetrieveMultipleElements()
60 assertSame(data2, rb.getBuffer(1)); in canAddAndRetrieveMultipleElements()
100 assertSame(data2, rb.getBuffer(0)); in appendPrunesBufferIfNecessary()
114 assertSame(data3, rb.getBuffer(0)); in appendPrunesMultipleBuffersIfNecessary()
139 assertSame(data2, rb.getBuffer(0)); in appendPrunesInFifoOrder()
140 assertSame(data3, rb.getBuffer(1)); in appendPrunesInFifoOrder()
/frameworks/support/v4/tests/java/android/support/v4/graphics/
DDrawableCompatTest.java36 import static org.junit.Assert.assertSame;
52 assertSame(original, wrappedDrawable); in testDrawableWrap()
60 assertSame(original, DrawableCompat.unwrap(wrappedDrawable)); in testDrawableUnwrap()
79 assertSame(wrappedDrawable, DrawableCompat.wrap(wrappedDrawable)); in testDrawableWrapOnlyWrapsOnce()
116 assertSame(tintAwareDrawable, wrapped); in testDoesNotWrapTintAwareDrawable()
/frameworks/base/core/tests/utiltests/src/android/util/
DMemoryIntArrayTest.java21 import static org.junit.Assert.assertSame;
219 assertSame("Remote should be able to modify", 1, remoteIntArray.get(0)); in testNotMutableByUnprivilegedClients()
227 assertSame("Local shouldn't be able to modify", 1, localIntArray.get(0)); in testNotMutableByUnprivilegedClients()
228 assertSame("Local shouldn't be able to modify", 1, remoteIntArray.get(0)); in testNotMutableByUnprivilegedClients()
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DViewInfoStoreTest.java63 assertSame(info2, find(vh, FLAG_PRE)); in addOverridePre()
73 assertSame(info2, find(vh, FLAG_POST)); in addOverridePost()
92 assertSame(info, find(vh, FLAG_PRE)); in addToPreLayout()
103 assertSame(info, find(vh, FLAG_POST)); in addToPostLayout()
114 assertSame(info, mStore.popFromPreLayout(vh)); in popFromPreLayout()
122 assertSame(vh, mStore.getFromOldChangeHolders(1)); in addToOldChangeHolders()
234 assertSame(mCallback.unused.get(0), vh); in processAppearAndDisappearInPostLayout()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
DExpressionVisitorTest.java42 import static org.junit.Assert.assertSame;
55 assertSame(klass, parsed.getClass()); in parse()
155 assertSame(id, dep.getOther()); in testInheritedFieldResolution()
171 assertSame(id, dep.getOther()); in testGetterResolution()
183 assertSame(mParser.parse("user", null), dep.getOther()); in testMethodCall()
DLayoutBinderTest.java34 import static org.junit.Assert.assertSame;
105 assertSame(id, fa.getChild()); in testParseWithMethods()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DRequestFocusTest.java123 assertSame("The clearing focus button is the first focusable.", in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
125 assertSame("The gaining focus button is the first focusable.", in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
168 assertSame("The gaining focus button is the first focusable.", in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java80 assertSame(resources, newResources); in testMultipleCallsWithIdenticalParametersCacheReference()
177 assertSame(resources1.getImpl(), resources2.getImpl()); in testTwoActivitiesWithIdenticalParametersShareImpl()
189 assertSame(resources1, theme.getResources()); in testThemesGetUpdatedWithNewImpl()
200 assertSame(resources1, theme.getResources()); in testThemesGetUpdatedWithNewImpl()
/frameworks/volley/src/test/java/com/android/volley/
DCacheDispatcherTest.java101 assertSame(entry, request.getCacheEntry()); in softExpiredCacheHit()
113 assertSame(entry, request.getCacheEntry()); in expiredCacheHit()
/frameworks/base/test-runner/tests/src/android/test/
DAndroidTestRunnerTest.java93 assertSame(mStubContext, in testRunTestWithAndroidTestCase()
109 assertSame(mStubContext, ((AndroidTestCase) testCase).getContext()); in testRunTestWithAndroidTestCaseInSuite()
125 assertSame(mStubContext, ((AndroidTestCase) testCase).getContext()); in testRunTestWithAndroidTestCaseInNestedSuite()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
DExprModelTest.java46 import static org.junit.Assert.assertSame;
110 assertSame(d, mExprModel.register(d)); in testAddNormal()
111 assertSame(d, mExprModel.register(d)); in testAddNormal()
118 assertSame(d, mExprModel.register(d)); in testAddDupe1()
119 assertSame(d, mExprModel.register(new DummyExpr("a"))); in testAddDupe1()
159 assertSame(a, first); in testShouldRead()
202 assertSame(user, readNow.get(0)); in testTernaryWithPlus()
221 assertSame(parsed.getRight(), readNow.get(0)); in testTernaryWithPlus()
226 assertSame(parsed, readNow.get(0)); in testTernaryWithPlus()
321 assertSame(a, first); in testRequirementFlags()
[all …]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DLayoutInflaterFactoryTestCase.java41 import static org.junit.Assert.assertSame;
177 assertSame("View is " + expectedClass.getSimpleName(), expectedClass, in testAppCompatWidgetInflation()
/frameworks/support/v4/tests/java/android/support/v4/app/
DFragmentLifecycleTest.java51 import static junit.framework.Assert.assertSame;
278 assertSame("parent fragment is not a child of grandparent", in restoreRetainedInstanceFragments()
289 assertSame("child fragment is not a child of grandpanret", in restoreRetainedInstanceFragments()
338 assertSame("parent fragment instance was not saved", parentFragment, restoredParent); in restoreRetainedInstanceFragments()
558 assertSame("child FragmentManagers not the same instance", mSavedChildFragmentManager, in onCreateView()

123