Home
last modified time | relevance | path

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

1234

/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()
DViewGroupScrollCaptureTest.java26 import static org.testng.AssertJUnit.assertSame;
133 assertSame("Target has the wrong callback", callback, target.getCallback()); in testDispatchScrollCaptureSearch_noCallback_hintAuto()
134 assertSame("Target has the wrong View", viewGroup, target.getContainingView()); in testDispatchScrollCaptureSearch_noCallback_hintAuto()
207 assertSame("Target has the wrong callback", callback, target.getCallback()); in testDispatchScrollCaptureSearch_withCallback_hintAuto()
208 assertSame("Target has the wrong View", viewGroup, target.getContainingView()); in testDispatchScrollCaptureSearch_withCallback_hintAuto()
351 assertSame("Result is the wrong View", view5, target.getContainingView()); in testDispatchScrollCaptureSearch_toChildren()
352 assertSame("Result is the wrong callback", callback2, target.getCallback()); in testDispatchScrollCaptureSearch_toChildren()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DObjectPoolTests.java28 import static org.junit.Assert.assertSame;
81 assertSame(item, item2); in testRecycleActivityConfigurationChangeItem()
96 assertSame(item, item2); in testRecycleActivityResultItem()
111 assertSame(item, item2); in testRecycleConfigurationChangeItem()
126 assertSame(item, item2); in testRecycleDestroyActivityItem()
170 assertSame(item, item2); in testRecycleLaunchActivityItem()
189 assertSame(item, item2); in testRecycleActivityRelaunchItem()
204 assertSame(item, item2); in testRecycleMoveToDisplayItem()
219 assertSame(item, item2); in testRecycleNewIntentItem()
234 assertSame(item, item2); in testRecyclePauseActivityItemItem()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
DBroadcastDispatcherTest.kt35 import junit.framework.Assert.assertSame
126 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in testAddingReceiverToCorrectUBR()
127 assertSame(intentFilter, argumentCaptor.value.filter) in testAddingReceiverToCorrectUBR()
130 assertSame(broadcastReceiverOther, argumentCaptor.value.receiver) in testAddingReceiverToCorrectUBR()
131 assertSame(intentFilterOther, argumentCaptor.value.filter) in testAddingReceiverToCorrectUBR()
144 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in testAddingReceiverToCorrectUBR_executor()
145 assertSame(intentFilter, argumentCaptor.value.filter) in testAddingReceiverToCorrectUBR_executor()
148 assertSame(broadcastReceiverOther, argumentCaptor.value.receiver) in testAddingReceiverToCorrectUBR_executor()
149 assertSame(intentFilterOther, argumentCaptor.value.filter) in testAddingReceiverToCorrectUBR_executor()
192 assertSame(broadcastReceiver, argumentCaptor.value.receiver) in testRegisterCurrentAsActualUser()
/frameworks/base/core/tests/coretests/src/android/os/vibrator/
DPrebakedSegmentTest.java20 import static junit.framework.Assert.assertSame;
77 assertSame(prebaked, prebaked.resolve(1000)); in testResolve_ignoresAndReturnsSameEffect()
97 assertSame(medium, medium.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_MEDIUM)); in testApplyEffectStrength()
99 assertSame(medium, medium.applyEffectStrength(1000)); in testApplyEffectStrength()
106 assertSame(prebaked, prebaked.scale(0.5f)); in testScale_ignoresAndReturnsSameEffect()
DRampSegmentTest.java21 import static junit.framework.Assert.assertSame;
86 assertSame(ramp, ramp.resolve(100)); in testResolve()
92 assertSame(ramp, ramp.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_STRONG)); in testApplyEffectStrength_ignoresAndReturnsSameEffect()
DPrimitiveSegmentTest.java20 import static junit.framework.Assert.assertSame;
78 assertSame(primitive, primitive.resolve(1000)); in testResolve_ignoresAndReturnsSameEffect()
85 assertSame(primitive, in testApplyEffectStrength_ignoresAndReturnsSameEffect()
DStepSegmentTest.java21 import static junit.framework.Assert.assertSame;
86 assertSame(resolved, resolved.resolve(100)); in testResolve()
94 assertSame(step, step.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_STRONG)); in testApplyEffectStrength_ignoresAndReturnsSameEffect()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DDrawableLayoutDirectionHelperTest.java20 import static org.junit.Assert.assertSame;
57 assertSame( in testCreateRelativeInsetDrawableLtr()
80 assertSame( in testCreateRelativeInsetDrawableRtl()
98 assertSame( in testCreateRelativeInsetDrawableViewRtl()
125 assertSame( in testCreateRelativeInsetDrawableContextRtl()
DItemTest.java22 import static org.junit.Assert.assertSame;
84 assertSame("Icon should be the icon shape drawable", icon, mIconView.getDrawable()); in testOnBindView()
129 assertSame("Icon should be same as set", icon, item.getIcon()); in testProperties()
156 assertSame("getItemAt should return itself", item, item.getItemAt(0)); in testHierarchyImplementation()
157 assertSame("findItemById with same ID should return itself", item, item.findItemById(12345)); in testHierarchyImplementation()
DSpanHelperTest.java20 import static org.junit.Assert.assertSame;
45 assertSame("The span should be newSpan", newSpan, spans[0]); in testReplaceSpan()
DStatusBarBackgroundLayoutTest.java19 import static org.junit.Assert.assertSame;
41 assertSame( in testSetStatusBarBackground()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccConnectorTest.java20 import static org.junit.Assert.assertSame;
92 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noPermission()
101 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noBindPermission()
110 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noPriority()
162 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testInitialState_available()
169 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testPackageChange_unavailableToAvailable()
179 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testPackageChange_unavailableToAvailable()
188 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testPackageChange_availableToUnavailable()
199 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testPackageChange_availableToUnavailable()
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DPriorityDumpTest.java22 import static org.junit.Assert.assertSame;
123 assertSame(mFd, fakeDumper.criticalFd); in testNoPriorityCallsAllMethods()
124 assertSame(mPw, fakeDumper.criticalPw); in testNoPriorityCallsAllMethods()
126 assertSame(mFd, fakeDumper.highFd); in testNoPriorityCallsAllMethods()
127 assertSame(mPw, fakeDumper.highPw); in testNoPriorityCallsAllMethods()
129 assertSame(mFd, fakeDumper.normalFd); in testNoPriorityCallsAllMethods()
130 assertSame(mPw, fakeDumper.normalPw); in testNoPriorityCallsAllMethods()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
DIconMixinTest.java21 import static org.junit.Assert.assertSame;
67 assertSame(mIconView, mixin.getView()); in testGetIconView()
76 assertSame(drawable, mIconView.getDrawable()); in testSetIcon()
105 assertSame(drawable, mixin.getIcon()); in testGetIcon()
DNavigationBarMixinTest.java20 import static org.junit.Assert.assertSame;
63 assertSame(mNavigationBar, mixin.getNavigationBar()); in testGetNavigationBar()
82 assertSame("lorem ipsum", mixin.getNextButtonText()); in testGetNextButtonText()
DListMixinTest.java21 import static org.junit.Assert.assertSame;
78 assertSame(mListView, mixin.getListView()); in testGetListView()
86 assertSame(mAdapter, mixin.getAdapter()); in testGetAdapter()
96 assertSame(mAdapter, mListView.getAdapter()); in testSetAdapter()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/carrier/
DCellSignalStateTest.kt23 import org.junit.Assert.assertSame
37 assertSame(c, other) in testChangeVisibility_sameObject()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DStringPoolTest.java29 assertSame(bcd, stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3)); in testStringPool()
42 assertSame(bString, stringPool.get(b, 0, 2)); in testHashCollision()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/
DRecyclerMixinTest.java21 import static org.junit.Assert.assertSame;
74 assertSame(mRecyclerView, mixin.getRecyclerView()); in testGetRecyclerView()
82 assertSame(mAdapter, mixin.getAdapter()); in testGetAdapter()
92 assertSame(mAdapter, mRecyclerView.getAdapter()); in testSetAdapter()
/frameworks/base/core/tests/utiltests/src/android/util/
DMemoryIntArrayTest.java21 import static org.junit.Assert.assertSame;
232 assertSame("Remote should be able to modify", 1, remoteIntArray.get(0)); in testNotMutableByUnprivilegedClients()
240 assertSame("Local shouldn't be able to modify", 1, localIntArray.get(0)); in testNotMutableByUnprivilegedClients()
241 assertSame("Local shouldn't be able to modify", 1, remoteIntArray.get(0)); in testNotMutableByUnprivilegedClients()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/
DTemplateLayoutTest.java21 import static org.junit.Assert.assertSame;
57 assertSame("The view added should be the same text view", tv, view); in testAddView()
82 assertSame("The view added should be the same text view", tv, contentView); in testTemplate()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DDrawableWrapperTest.java20 import static org.junit.Assert.assertSame;
54 assertSame(xferModeDrawable, wrapper.getDrawable()); in testSetXfermode()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/
DLocationTimeZoneProviderTest.java32 import static org.junit.Assert.assertSame;
95 assertSame(provider, currentState.provider); in lifecycle()
109 assertSame(provider, currentState.provider); in lifecycle()
133 assertSame(provider, currentState.provider); in lifecycle()
145 assertSame(provider, currentState.provider); in lifecycle()
157 assertSame(provider, currentState.provider); in lifecycle()
/frameworks/base/core/tests/coretests/src/android/app/
DLoaderLifecycleTest.java21 import static junit.framework.TestCase.assertSame;
127 assertSame("didn't get same LoaderManager instance back", lm2, lm12); in loaderIdentityTest()
205 assertSame("LoaderManager did not refrence new FragmentHostCallback", in backStackLoaderIdentityTest()
222 assertSame("didn't get same LoaderManager instance back", lm2, lm1); in backStackLoaderIdentityTest()

1234