Home
last modified time | relevance | path

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

/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
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()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortModelTest.java20 import static org.junit.Assert.assertSame;
91 assertSame(DIMENSIONS[i], mModel.getDimensionAt(i)); in testDimensionSame_getDimensionAt()
98 assertSame(dimension, mModel.getDimensionById(dimension.getId())); in testDimensionSame_getDimensionById()
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()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
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 …]
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()
DDragAndDropManagerTests.java22 import static junit.framework.Assert.assertSame;
131 assertSame(mStartDragView, v); in setUp()
132 assertSame(mShadowBuilder, builder); in setUp()
141 assertSame(mUpdateShadowView, v); in setUp()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
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()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
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()
204 assertSame("array after set", dst.getPrimitiveArray(), src.getPrimitiveArray()); in testSet()
219 assertSame("array after copy", array, dst.getPrimitiveArray()); in testCopy()
257 assertSame("array after append zero", array, dst.getPrimitiveArray()); in testAppend()
[all …]
DInputPointersTests.java22 import static org.junit.Assert.assertSame;
127 assertSame("xCoordinates after set", dst.getXCoordinates(), src.getXCoordinates()); in testSet()
128 assertSame("yCoordinates after set", dst.getYCoordinates(), src.getYCoordinates()); in testSet()
129 assertSame("pointerIds after set", dst.getPointerIds(), src.getPointerIds()); in testSet()
130 assertSame("times after set", dst.getTimes(), src.getTimes()); in testSet()
/packages/modules/Connectivity/tests/unit/java/com/android/server/
DLegacyTypeTrackerTest.kt55 import org.junit.Assert.assertSame
163 assertSame(tracker.getNetworkForType(TYPE_MOBILE), mobileNai) in testAddNetwork()
164 assertSame(tracker.getNetworkForType(TYPE_WIFI), wifiNai) in testAddNetwork()
168 assertSame(tracker.getNetworkForType(TYPE_MOBILE), mobileNai) in testAddNetwork()
169 assertSame(tracker.getNetworkForType(TYPE_WIFI), wifiNai) in testAddNetwork()
172 assertSame(tracker.getNetworkForType(TYPE_MOBILE), mobileNai) in testAddNetwork()
173 assertSame(tracker.getNetworkForType(TYPE_WIFI), wifiNai) in testAddNetwork()
177 assertSame(tracker.getNetworkForType(TYPE_MOBILE), secondMobileNai) in testAddNetwork()
178 assertSame(tracker.getNetworkForType(TYPE_WIFI), wifiNai) in testAddNetwork()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/touchinputconsumer/
DNullGestureConsumerTests.java20 import static org.junit.Assert.assertSame;
53 assertSame(GestureConsumer.NULL_GESTURE_CONSUMER, in testNewInstanceGivesNullGestureConsumerForInvalidInputs()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestLastAccessedStorage.java20 import static junit.framework.Assert.assertSame;
57 assertSame(expected, mLastAccessedStack); in assertSameStack()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DExpiredTimersActivityTest.java34 import static org.junit.Assert.assertSame;
66 assertSame(timer, dm.getTimer(timer.getId())); in configurationChanges_DoNotResetFiringTimer()
DTimerFragmentTest.java53 import static org.junit.Assert.assertSame;
400 assertSame(Timer.State.RUNNING, DataModel.getDataModel().getTimers().get(0).getState()); in clickAdd_addsOneMinuteToTimer()
425 assertSame(Timer.State.RUNNING, DataModel.getDataModel().getTimers().get(1).getState()); in clickAdd_addsOneMinuteToSecondTimer()
426 assertSame(Timer.State.RESET, DataModel.getDataModel().getTimers().get(0).getState()); in clickAdd_addsOneMinuteToSecondTimer()
679 assertSame(expectedState, actualState); in assertStateEquals()
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/setup/
DTunerHalCreatorTest.java21 import static org.junit.Assert.assertSame;
75 assertSame(tunerHal, tunerHalCreator.getOrCreate()); in test_asyncGet()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DNameNormalizerTest.java108 assertSame(compressing1, compressing2); in testGetCollators()
109 assertSame(complexity1, complexity2); in testGetCollators()
DBaseDatabaseHelperUpgradeTest.java138 public void assertSame(TableColumn[] columns) { in assertSame() method in BaseDatabaseHelperUpgradeTest.TableStructure
196 structure.assertSame(entry.columns); in assertDatabaseStructureSameAsList()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java110 assertSame(cookie, cookieHolder.obj); in testCursorContainsCorrectCookies()
137 assertSame(PROJECTION, cursorHolder.obj.getColumnNames()); in testCursorContainsCorrectColumns()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/
DUserIdTest.java77 assertSame(mContext, userId.asContext(mContext)); in testAsContext_sameUserReturnProvidedContext()
82 assertSame(mContext, UserId.UNSPECIFIED_USER.asContext(mContext)); in testAsContext_unspecifiedUserReturnProvidedContext()
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/core/
DOfflineLocationTimeZoneDelegateTest.java26 import static org.junit.Assert.assertSame;
357 assertSame(this, mPassiveLocationListeningState);
391 assertSame(this, mActiveLocationListeningState);
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DActionHandlerTest.java31 import static org.junit.Assert.assertSame;
545 assertSame(clipData, actual.first); in testDragAndDrop_DropsOnWritableRoot()
546 assertSame(TestProvidersAccess.DOWNLOADS, actual.second); in testDragAndDrop_DropsOnWritableRoot()
/packages/apps/Gallery/tests/src/com/android/camera/
DBitmapManagerUnitTests.java68 assertSame(manager, mBitmapManager); in testSingleton()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DTestUtils.java113 Assert.assertSame("AdapterService.getAdapterService() must return the same object as the" in clearAdapterService()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java78 import static org.junit.Assert.assertSame;
5147 assertSame(cause, internalException.getCause()); in testHandleUnexpectedExceptionInEnterState()