Home
last modified time | relevance | path

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

12345

/aosp12/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
H A DTabModelTest.java35 import static org.junit.Assert.assertSame;
46 assertSame(ALARMS, tabModel.getTabAt(0)); in ltrTabLayoutIndex()
47 assertSame(CLOCKS, tabModel.getTabAt(1)); in ltrTabLayoutIndex()
48 assertSame(TIMERS, tabModel.getTabAt(2)); in ltrTabLayoutIndex()
49 assertSame(STOPWATCH, tabModel.getTabAt(3)); in ltrTabLayoutIndex()
56 assertSame(STOPWATCH, tabModel.getTabAt(0)); in rtlTabLayoutIndex()
57 assertSame(TIMERS, tabModel.getTabAt(1)); in rtlTabLayoutIndex()
58 assertSame(CLOCKS, tabModel.getTabAt(2)); in rtlTabLayoutIndex()
59 assertSame(ALARMS, tabModel.getTabAt(3)); in rtlTabLayoutIndex()
/aosp12/art/test/981-dedup-original-dex/src-art/art/
H A DTest981.java145 private static void assertSame(Object a, Object b) throws Exception { in assertSame() method in Test981
177 assertSame(null, getOriginalDexFile(t1.getClass())); in doTest()
178 assertSame(null, getOriginalDexFile(t2.getClass())); in doTest()
179 assertSame(null, getOriginalDexFile(Test981.class)); in doTest()
186 assertSame(getOriginalDexFile(t1.getClass()), getOriginalDexFile(t2.getClass())); in doTest()
187 assertSame(null, getOriginalDexFile(Test981.class)); in doTest()
189 assertSame(getOriginalDexFile(t1.getClass()).getClass(), Class.forName("java.lang.DexCache")); in doTest()
194 assertSame((new byte[0]).getClass(), getOriginalDexFile(t1.getClass()).getClass()); in doTest()
201 assertSame(null, getOriginalDexFile(transform3Class)); in doTest()
208 assertSame(Long.class, getOriginalDexFile(transform3ClassTransformed).getClass()); in doTest()
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
H A DSortModelTest.java20 import static org.junit.Assert.assertSame;
122 assertSame(DIMENSION_1, sortedDimension); in testSortByDefault()
125 assertSame(mModel, STUB_LISTENER.mLastSortModel); in testSortByDefault()
134 assertSame(DIMENSION_1, sortedDimension); in testSortByUser()
137 assertSame(mModel, STUB_LISTENER.mLastSortModel); in testSortByUser()
147 assertSame(DIMENSION_1, sortedDimension); in testOrderNotChanged_sortByDefaultAfterSortByUser()
150 assertSame(mModel, STUB_LISTENER.mLastSortModel); in testOrderNotChanged_sortByDefaultAfterSortByUser()
160 assertSame(DIMENSION_1, sortedDimension); in testOrderChanged_sortByUserAfterSortByDefault()
163 assertSame(mModel, STUB_LISTENER.mLastSortModel); in testOrderChanged_sortByUserAfterSortByDefault()
173 assertSame(DIMENSION_2, sortedDimension); in testSortByUserTwice()
[all …]
/aosp12/art/tools/ahat/src/test/com/android/ahat/
H A DSiteTest.java28 import static org.junit.Assert.assertSame;
41 assertSame(sKnownSite, snapshot.getSite(sKnownSite.getId())); in objectsAllocatedAtKnownSites()
48 assertSame(sKnownSubSite, snapshot.getSite(sKnownSubSite.getId())); in objectsAllocatedAtKnownSites()
54 assertSame(sKnownSubSiteParent, snapshot.getSite(sKnownSubSiteParent.getId())); in objectsAllocatedAtKnownSites()
57 assertSame(sKnownSite.getParent(), sKnownSubSiteParent.getParent()); in objectsAllocatedAtKnownSites()
63 assertSame(sKnownSiteParent, snapshot.getSite(sKnownSiteParent.getId())); in objectsAllocatedAtKnownSites()
70 assertSame(sObfSuperSite, snapshot.getSite(sObfSuperSite.getId())); in objectsAllocatedAtKnownSites()
77 assertSame(sUnObfSuperSite, snapshot.getSite(sUnObfSuperSite.getId())); in objectsAllocatedAtKnownSites()
84 assertSame(sOverriddenSite, snapshot.getSite(sOverriddenSite.getId())); in objectsAllocatedAtKnownSites()
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A DItemDragListenerTest.java22 import static org.junit.Assert.assertSame;
77 assertSame(mTestView, mTestDragHost.mHighlightedView); in testDragEntered_HighlightsView()
121 assertSame(mTestView, mTestDragHost.mLastEnteredView); in testHover_OpensView()
122 assertSame(mTestView, mTestDragHost.mLastHoveredView); in testHover_OpensView()
134 assertSame(mTestView, mTestDragHost.mLastEnteredView); in testHover_usesCustomTimeout()
135 assertSame(mTestView, mTestDragHost.mLastHoveredView); in testHover_usesCustomTimeout()
146 assertSame(mTestView, mTestDragHost.mLastEnteredView); in testDragExited_CancelsHoverTask()
147 assertSame(mTestView, mTestDragHost.mLastExitedView); in testDragExited_CancelsHoverTask()
159 assertSame(mTestView, mTestDragHost.mLastEnteredView); in testDragEnded_CancelsHoverTask()
179 assertSame(mTestView, mListener.mLastDropOnView); in testDoDropWithClipData()
[all …]
H A DThumbnailCacheTest.java21 import static org.junit.Assert.assertSame;
93 assertSame(MIDSIZE_BITMAP, result.getThumbnail()); in testHit_Exact()
103 assertSame(MIDSIZE_BITMAP, result.getThumbnail()); in testHit_Smaller()
113 assertSame(MIDSIZE_BITMAP, result.getThumbnail()); in testHit_Larger()
124 assertSame(LARGE_BITMAP, result.getThumbnail()); in testHit_Larger_HasBothSize()
138 assertSame(localBitmap, result.getThumbnail()); in testHit_Exact_MultiplePut()
188 assertSame(SMALL_BITMAP, result.getThumbnail()); in testCacheShrink_OnTrimMemory_Background()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
H A DObjectPoolTests.java81 assertSame(item, item2); in testRecycleActivityConfigurationChangeItem()
96 assertSame(item, item2); in testRecycleActivityResultItem()
111 assertSame(item, item2); in testRecycleConfigurationChangeItem()
126 assertSame(item, item2); in testRecycleDestroyActivityItem()
171 assertSame(item, item2); in testRecycleLaunchActivityItem()
190 assertSame(item, item2); in testRecycleActivityRelaunchItem()
205 assertSame(item, item2); in testRecycleMoveToDisplayItem()
220 assertSame(item, item2); in testRecycleNewIntentItem()
235 assertSame(item, item2); in testRecyclePauseActivityItemItem()
250 assertSame(item, item2); in testRecycleResumeActivityItem()
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A 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()
H A 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()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A DByteArrayRingBufferTest.java21 import static org.junit.Assert.assertSame;
49 assertSame(data, rb.getBuffer(0)); in canAddAndRetrieveSingleElement()
60 assertSame(data1, rb.getBuffer(0)); in canAddAndRetrieveMultipleElements()
61 assertSame(data2, rb.getBuffer(1)); in canAddAndRetrieveMultipleElements()
101 assertSame(data2, rb.getBuffer(0)); in appendPrunesBufferIfNecessary()
115 assertSame(data3, rb.getBuffer(0)); in appendPrunesMultipleBuffersIfNecessary()
140 assertSame(data2, rb.getBuffer(0)); in appendPrunesInFifoOrder()
141 assertSame(data3, rb.getBuffer(1)); in appendPrunesInFifoOrder()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
H A DBroadcastDispatcherTest.kt35 import junit.framework.Assert.assertSame
126 assertSame(broadcastReceiver, argumentCaptor.value.receiver)
127 assertSame(intentFilter, argumentCaptor.value.filter)
130 assertSame(broadcastReceiverOther, argumentCaptor.value.receiver)
131 assertSame(intentFilterOther, argumentCaptor.value.filter)
144 assertSame(broadcastReceiver, argumentCaptor.value.receiver)
145 assertSame(intentFilter, argumentCaptor.value.filter)
148 assertSame(broadcastReceiverOther, argumentCaptor.value.receiver)
149 assertSame(intentFilterOther, argumentCaptor.value.filter)
192 assertSame(broadcastReceiver, argumentCaptor.value.receiver)
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/server/
H A DLegacyTypeTrackerTest.kt55 import org.junit.Assert.assertSame
163 assertSame(tracker.getNetworkForType(TYPE_MOBILE), mobileNai)
164 assertSame(tracker.getNetworkForType(TYPE_WIFI), wifiNai)
168 assertSame(tracker.getNetworkForType(TYPE_MOBILE), mobileNai)
169 assertSame(tracker.getNetworkForType(TYPE_WIFI), wifiNai)
172 assertSame(tracker.getNetworkForType(TYPE_MOBILE), mobileNai)
173 assertSame(tracker.getNetworkForType(TYPE_WIFI), wifiNai)
177 assertSame(tracker.getNetworkForType(TYPE_MOBILE), secondMobileNai)
178 assertSame(tracker.getNetworkForType(TYPE_WIFI), wifiNai)
/aosp12/frameworks/base/core/tests/coretests/src/android/os/vibrator/
H A 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()
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
H A DResizableIntArrayTests.java22 import static org.junit.Assert.assertSame;
65 assertSame("array after add " + i, array, src.getPrimitiveArray()); in testAdd()
67 assertSame("array after add " + i, array2, src.getPrimitiveArray()); in testAdd()
69 assertSame("array after add " + i, array3, src.getPrimitiveArray()); in testAdd()
148 assertSame("array after add " + i, array2, src.getPrimitiveArray()); in testReset()
150 assertSame("array after add " + i, array3, src.getPrimitiveArray()); in testReset()
184 assertSame("array after smaller setLength", array2, array3); in testSetLength()
219 assertSame("array after copy", array, dst.getPrimitiveArray()); in testCopy()
257 assertSame("array after append zero", array, dst.getPrimitiveArray()); in testAppend()
263 assertSame("array after append", array, dst.getPrimitiveArray()); in testAppend()
[all …]
/aosp12/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
H A DDrawableLayoutDirectionHelperTest.java20 import static org.junit.Assert.assertSame;
57 assertSame( in testCreateRelativeInsetDrawableLtr()
80 assertSame( in testCreateRelativeInsetDrawableRtl()
98 assertSame( in testCreateRelativeInsetDrawableViewRtl()
125 assertSame( in testCreateRelativeInsetDrawableContextRtl()
H A 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()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
H A 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()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
H A 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()
/aosp12/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/
H A 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()
H A DNavigationBarMixinTest.java20 import static org.junit.Assert.assertSame;
63 assertSame(mNavigationBar, mixin.getNavigationBar()); in testGetNavigationBar()
82 assertSame("lorem ipsum", mixin.getNextButtonText()); in testGetNextButtonText()
H A 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()
/aosp12/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/template/
H A 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()
/aosp12/frameworks/base/core/tests/utiltests/src/android/util/
H A 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()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/
H A 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()
/aosp12/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/
H A DUpdateConfigTest.java20 import static org.junit.Assert.assertSame;
74 assertSame("type is parsed", in fromJson_parsesNonStreaming()
85 assertSame(UpdateConfig.AB_INSTALL_TYPE_STREAMING, config.getInstallType()); in fromJson_parsesStreaming()

12345