Home
last modified time | relevance | path

Searched refs:nullValue (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DTileListTest.java22 import static org.hamcrest.CoreMatchers.nullValue;
46 assertThat(mTileList.getItemAt(3), nullValue()); in emptyGet()
47 assertThat(mTileList.getItemAt(100), nullValue()); in emptyGet()
52 assertThat(mTileList.addOrReplace(createTile(0, 1, 2, 3)), nullValue()); in getItemAt()
56 assertThat(mTileList.getItemAt(3), nullValue()); in getItemAt()
62 assertThat(mTileList.addOrReplace(createTile(0, 1, 2, 3)), nullValue()); in size()
66 assertThat(mTileList.addOrReplace(createTile(3, 1, 2, 3)), nullValue()); in size()
75 assertThat(mTileList.addOrReplace(createTile(0, 1, 2, 3)), nullValue()); in getAtIndex()
76 assertThat(mTileList.addOrReplace(createTile(3, 1, 2, 3)), nullValue()); in getAtIndex()
77 assertThat(mTileList.addOrReplace(createTile(6, 1, 2, 3)), nullValue()); in getAtIndex()
[all …]
DMessageQueueTest.java20 import static org.hamcrest.CoreMatchers.nullValue;
76 assertThat(msg, nullValue()); in sendInOrder()
98 assertThat(msg, nullValue()); in sendAtFront()
125 assertThat(msg, nullValue()); in remove()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyboardInterceptorTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
86 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms()
95 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped()
105 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms()
112 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms()
122 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped()
129 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped()
144 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder()
146 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder()
153 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder()
[all …]
/frameworks/support/room/runtime/src/test/java/androidx/room/
DObservedTableTrackerTest.java26 import static org.hamcrest.CoreMatchers.nullValue;
63 assertThat(mTracker.getTablesToSync(), is(nullValue())); in noChange()
72 assertThat(mTracker.getTablesToSync(), is(nullValue())); in returnNullUntilSync()
81 assertThat(mTracker.getTablesToSync(), is(nullValue())); in multipleAdditionsDeletions()
83 assertThat(mTracker.getTablesToSync(), is(nullValue())); in multipleAdditionsDeletions()
85 assertThat(mTracker.getTablesToSync(), is(nullValue())); in multipleAdditionsDeletions()
87 assertThat(mTracker.getTablesToSync(), is(nullValue())); in multipleAdditionsDeletions()
DBuilderTest.java22 import static org.hamcrest.CoreMatchers.nullValue;
80 assertThat(migrations.findMigrationPath(2, 0), CoreMatchers.<List<Migration>>nullValue()); in migration()
81 assertThat(migrations.findMigrationPath(0, 3), CoreMatchers.<List<Migration>>nullValue()); in migration()
95 assertThat(migrations.findMigrationPath(0, 3), CoreMatchers.<List<Migration>>nullValue()); in migrationOverride()
233 assertThat(config.name, is(nullValue())); in createBasic()
/frameworks/support/navigation/common/src/test/java/androidx/navigation/
DNavGraphTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
130 assertThat(destination.getParent(), nullValue()); in addReplacementDestination()
154 assertThat(other.findNode(FIRST_DESTINATION_ID), nullValue()); in addAll()
164 assertThat(destination.getParent(), nullValue()); in removeDestination()
165 assertThat(graph.findNode(FIRST_DESTINATION_ID), nullValue()); in removeDestination()
200 assertThat(value.getParent(), nullValue()); in iteratorRemove()
201 assertThat(graph.findNode(value.getId()), nullValue()); in iteratorRemove()
215 assertThat(value.getParent(), nullValue()); in iteratorDoubleRemove()
216 assertThat(graph.findNode(value.getId()), nullValue()); in iteratorDoubleRemove()
238 assertThat(destination.getParent(), nullValue()); in clear()
[all …]
DNavDestinationTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
62 assertThat(destination.getAction(ACTION_ID), not(nullValue())); in putActionByDestinationId()
91 assertThat(destination.getAction(ACTION_ID), nullValue()); in removeAction()
DNavActionTest.java20 import static org.hamcrest.CoreMatchers.nullValue;
48 assertThat(action.getNavOptions(), nullValue()); in createActionWithNullNavOptions()
/frameworks/support/app-toolkit/common/src/test/java/androidx/collection/
DFastSafeIterableMapTest.java20 import static org.hamcrest.CoreMatchers.nullValue;
34 assertThat(map.ceil(1), nullValue()); in testCeil()
36 assertThat(map.ceil(1), nullValue()); in testCeil()
40 assertThat(map.ceil(2), nullValue()); in testCeil()
74 assertThat(map.putIfAbsent(10, 30), nullValue()); in testRemove()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarOverlayLayoutTest.java24 import static org.hamcrest.CoreMatchers.nullValue;
99 assertThat(mContentInsetsListener.captured, nullValue()); in topInset_consumedCutout_stable()
111 assertThat(mContentInsetsListener.captured, nullValue()); in topInset_consumedCutout_notStable()
123 assertThat(mContentInsetsListener.captured, nullValue()); in topInset_noCutout_stable()
135 assertThat(mContentInsetsListener.captured, nullValue()); in topInset_noCutout_notStable()
147 assertThat(mContentInsetsListener.captured, nullValue()); in topInset_cutout_stable()
159 assertThat(mContentInsetsListener.captured, nullValue()); in topInset_cutout_notStable()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/paging/
DDataSourceFactoryTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
118 assertThat(observer.get(), nullValue()); in validateUsersAsPagedList()
128 assertThat(getAndLoad(pagedList1, 20), is(nullValue())); in validateUsersAsPagedList()
130 assertThat(getAndLoad(pagedList1, 31), nullValue()); in validateUsersAsPagedList()
136 assertThat(getAndLoad(pagedList1, 50), nullValue()); in validateUsersAsPagedList()
143 assertThat(getAndLoad(pagedList1, 70), nullValue()); in validateUsersAsPagedList()
145 assertThat(getAndLoad(pagedList1, 70), nullValue()); in validateUsersAsPagedList()
148 assertThat(getAndLoad(pagedList, 70), nullValue()); in validateUsersAsPagedList()
/frameworks/support/lifecycle/viewmodel/src/test/java/androidx/lifecycle/
DViewModelStoreTest.java20 import static org.hamcrest.CoreMatchers.nullValue;
42 assertThat(store.get("a"), nullValue()); in testClear()
43 assertThat(store.get("b"), nullValue()); in testClear()
/frameworks/support/navigation/common/src/androidTest/java/androidx/navigation/
DNavDeepLinkTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
70 assertThat(matchArgs, not(nullValue())); in deepLinkArgumentMatch()
82 assertThat(matchArgs, not(nullValue())); in deepLinkArgumentMatchEncoded()
95 assertThat(matchArgs, not(nullValue())); in deepLinkMultipleArgumentMatch()
138 assertThat(matchArgs, not(nullValue())); in deepLinkMultipleMatch()
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/test/
DDependencyDaoTest.kt27 import org.hamcrest.CoreMatchers.nullValue
51 assertThat(dao.findById(5), `is`(nullValue())) in insertAndGetByQuery()
58 assertThat(dao.findEmbedded(5), `is`(nullValue())) in insertAndGetByQuery_embedded()
67 assertThat(dao.findPojo(5), `is`(nullValue())) in insertAndGetByQuery_pojo()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DMainThreadCheckTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
65 assertThat(error, nullValue()); in testFlowableOnMainThread()
77 assertThat(error, nullValue()); in testLiveDataOnMainThread()
89 assertThat(error, nullValue()); in testAllowMainThread()
DEmbeddedTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
120 assertThat(all.get(0).getPet(), is(nullValue())); in loadFromUsersWithNullPet()
152 assertThat(all.get(0).getUser(), is(nullValue())); in loadFromPetsWithNullUser()
205 assertThat(schools.get(0).address, nullValue()); in loadSubFieldsTest()
206 assertThat(schools.get(1).address, nullValue()); in loadSubFieldsTest()
208 assertThat(schools.get(1).getManager(), nullValue()); in loadSubFieldsTest()
226 assertThat(asSchool.getManager(), nullValue()); in loadNestedSub()
227 assertThat(asSchool.address.getStreet(), nullValue()); in loadNestedSub()
259 assertThat(loaded.getFemale(), is(nullValue())); in sameFieldOneNull()
DRawQueryTest.java20 import static org.hamcrest.CoreMatchers.nullValue;
58 assertThat(user, is(nullValue())); in entity_null()
99 assertThat(liveData.getValue(), is(nullValue())); in liveDataTest()
185 assertThat(received.getPet(), is(nullValue())); in embedded_nullField()
207 assertThat(received.get(2).getPet(), is(nullValue())); in embedded_list()
238 assertThat(justUsers.get(0).getPet(), is(nullValue())); in embedded_liveData()
239 assertThat(justUsers.get(1).getPet(), is(nullValue())); in embedded_liveData()
254 assertThat(allItems.get(2).getPet(), is(nullValue())); in embedded_liveData()
DFunnyNamedDaoTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
68 assertThat(mFunnyNamedDao.load(1), nullValue()); in delete()
81 assertThat(item[0], nullValue()); in observe()
DLiveDataQueryTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
83 assertThat(observer.get(), is(nullValue())); in observeById()
88 assertThat(observer.get(), is(nullValue())); in observeById()
177 assertThat(observer.get(), is(nullValue())); in liveDataWithPojo()
198 assertThat(observer.get(), is(nullValue())); in withRelation()
290 assertThat(observer.get(), is(nullValue())); in handleGc()
316 assertThat(weakLiveData.get(), nullValue()); in handleGc()
329 assertThat(observer.get(), is(nullValue())); in booleanLiveData()
/frameworks/support/room/runtime/src/test/java/androidx/room/util/
DStringUtilTest.java20 import static org.hamcrest.CoreMatchers.nullValue;
42 assertThat(StringUtil.splitToIntList(null), nullValue()); in testNull()
43 assertThat(StringUtil.joinIntoString(null), nullValue()); in testNull()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
DWorkManagerImplTest.java34 import static org.hamcrest.CoreMatchers.nullValue;
528 assertThat(workSpecDao.getWorkSpec(originalWork.getStringId()), is(nullValue())); in testBeginUniqueWork_deletesOldWorkOnReplace()
529 assertThat(workSpecDao.getWorkSpec(replacementWork1.getStringId()), is(not(nullValue()))); in testBeginUniqueWork_deletesOldWorkOnReplace()
530 assertThat(workSpecDao.getWorkSpec(replacementWork2.getStringId()), is(not(nullValue()))); in testBeginUniqueWork_deletesOldWorkOnReplace()
562 assertThat(workSpecDao.getWorkSpec(originalWork.getStringId()), is(nullValue())); in testEnqueueUniquePeriodicWork_deletesOldWorkOnReplace()
563 assertThat(workSpecDao.getWorkSpec(replacementWork.getStringId()), is(not(nullValue()))); in testEnqueueUniquePeriodicWork_deletesOldWorkOnReplace()
592 assertThat(workSpecDao.getWorkSpec(originalWork.getStringId()), is(not(nullValue()))); in testBeginUniqueWork_keepsExistingWorkOnKeep()
593 assertThat(workSpecDao.getWorkSpec(replacementWork1.getStringId()), is(nullValue())); in testBeginUniqueWork_keepsExistingWorkOnKeep()
594 assertThat(workSpecDao.getWorkSpec(replacementWork2.getStringId()), is(nullValue())); in testBeginUniqueWork_keepsExistingWorkOnKeep()
626 assertThat(workSpecDao.getWorkSpec(originalWork.getStringId()), is(not(nullValue()))); in testEnqueueUniquePeriodicWork_keepsExistingWorkOnKeep()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorCursorTest.java29 import static org.hamcrest.Matchers.nullValue;
120 assertThat(mEditText.getHint(), nullValue()); in testCursorIsOnLeft_withFirstStrongLtrAlgorithm()
139 assertThat(mEditText.getHint(), nullValue()); in testCursorIsOnRight_withFirstStrongRtlAlgorithm()
158 assertThat(mEditText.getHint(), nullValue()); in testCursorIsOnLeft_withLtrAlgorithm()
177 assertThat(mEditText.getHint(), nullValue()); in testCursorIsOnRight_withRtlAlgorithm()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
DLiveDataUtilsTest.java20 import static org.hamcrest.CoreMatchers.nullValue;
62 assertThat(dedupedLiveData.getValue(), is(nullValue())); in testDedupedMappedLiveData_dedupesValues()
99 assertThat(mappedLiveData.getValue(), is(nullValue())); in testDedupedMappedLiveData_mapsValues()
/frameworks/support/navigation/safe-args-generator/src/tests/kotlin/androidx/navigation/safe/args/generator/
DNavParserTest.kt30 import org.hamcrest.CoreMatchers.nullValue in <lambda>()
79 assertThat(parseIntValue("foo"), nullValue()) in <lambda>()
84 assertThat(parseIntValue("0x1FFFFFFFF"), nullValue()) in <lambda>()
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/processor/
DInsertionMethodProcessorTest.kt40 import org.hamcrest.CoreMatchers.nullValue in <lambda>()
105 assertThat(param.entityType, `is`(nullValue())) in <lambda>()
316 assertThat(insertion.insertionType, `is`(nullValue())) in <lambda>()
328 assertThat(insertion.insertionType, `is`(nullValue())) in <lambda>()
342 assertThat(insertion.insertionType, `is`(nullValue())) in <lambda>()
356 assertThat(insertion.insertionType, `is`(nullValue())) in <lambda>()

123