Home
last modified time | relevance | path

Searched refs:TestUtil (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/test/
DBooksDaoTest.kt47 booksDao.addAuthors(TestUtil.AUTHOR_1) in bookById()
48 booksDao.addPublishers(TestUtil.PUBLISHER) in bookById()
49 booksDao.addBooks(TestUtil.BOOK_1) in bookById()
51 assertThat(booksDao.getBook(TestUtil.BOOK_1.bookId), `is`<Book>(TestUtil.BOOK_1)) in bookById()
57 booksDao.addAuthors(TestUtil.AUTHOR_1) in bookByIdJavaOptional()
58 booksDao.addPublishers(TestUtil.PUBLISHER) in bookByIdJavaOptional()
59 booksDao.addBooks(TestUtil.BOOK_1) in bookByIdJavaOptional()
62 booksDao.getBookJavaOptional(TestUtil.BOOK_1.bookId), in bookByIdJavaOptional()
63 `is`<java.util.Optional<Book>>(java.util.Optional.of(TestUtil.BOOK_1))) in bookByIdJavaOptional()
70 booksDao.getBookJavaOptional(TestUtil.BOOK_1.bookId), in bookByIdJavaOptionalEmpty()
[all …]
DRxJava2QueryTest.kt29 booksDao.addAuthors(TestUtil.AUTHOR_1) in <lambda>()
30 booksDao.addPublishers(TestUtil.PUBLISHER) in <lambda>()
31 booksDao.addBooks(TestUtil.BOOK_1) in <lambda>()
33 booksDao.getBookFlowable(TestUtil.BOOK_1.bookId) in <lambda>()
35 .assertValue { book -> book == TestUtil.BOOK_1 } in <lambda>()
40 booksDao.addAuthors(TestUtil.AUTHOR_1) in <lambda>()
41 booksDao.addPublishers(TestUtil.PUBLISHER) in <lambda>()
42 booksDao.addBooks(TestUtil.BOOK_1) in <lambda>()
44 booksDao.getBookSingle(TestUtil.BOOK_1.bookId) in <lambda>()
47 .assertValue { book -> book == TestUtil.BOOK_1 } in <lambda>()
[all …]
DLiveDataQueryTest.kt32 booksDao.addAuthors(TestUtil.AUTHOR_1) in observeBooksById()
33 booksDao.addPublishers(TestUtil.PUBLISHER) in observeBooksById()
34 booksDao.addBooks(TestUtil.BOOK_1) in observeBooksById()
36 val book = LiveDataTestUtil.getValue(booksDao.getBookLiveData(TestUtil.BOOK_1.bookId)) in observeBooksById()
38 assertThat(book, `is`<Book>(TestUtil.BOOK_1)) in observeBooksById()
43 booksDao.addAuthors(TestUtil.AUTHOR_1) in observeBooksWithPublisher()
44 booksDao.addPublishers(TestUtil.PUBLISHER) in observeBooksWithPublisher()
45 booksDao.addBooks(TestUtil.BOOK_1) in observeBooksWithPublisher()
47 var expected = BookWithPublisher(TestUtil.BOOK_1.bookId, TestUtil.BOOK_1.title, in observeBooksWithPublisher()
48 TestUtil.PUBLISHER) in observeBooksWithPublisher()
[all …]
DTestUtil.kt25 class TestUtil { class
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DSimpleEntityReadWriteTest.java88 User user = TestUtil.createUser(3); in writeUserAndReadInList()
111 User user1 = TestUtil.createUser(3); in insertDifferentEntities()
113 Pet pet = TestUtil.createPet(1); in insertDifferentEntities()
132 User user2 = TestUtil.createUser(5); in insertDifferentEntities()
143 Pet pet = TestUtil.createPet(1); in insertDifferentEntities_transaction()
146 User user = TestUtil.createUser(3); in insertDifferentEntities_transaction()
158 User user = TestUtil.createUser(3); in throwExceptionOnConflict()
161 User user2 = TestUtil.createUser(3); in throwExceptionOnConflict()
171 User user = TestUtil.createUser(3); in replaceOnConflict()
174 User user2 = TestUtil.createUser(3); in replaceOnConflict()
[all …]
DPojoWithRelationTest.java50 User[] users = TestUtil.createUsersArray(1, 2, 3); in fetchAll()
54 Pet[] pets = TestUtil.createPetsForUser(user.getId(), user.getId() * 10, in fetchAll()
72 User[] users = TestUtil.createUsersArray(1, 2); in createData()
74 Pet user1_pet1 = TestUtil.createPet(1); in createData()
79 Pet user1_pet2 = TestUtil.createPet(2); in createData()
84 Pet user2_pet1 = TestUtil.createPet(3); in createData()
123 User[] users = TestUtil.createUsersArray(1, 2); in duplicateParentField()
124 Pet[] pets_1 = TestUtil.createPetsForUser(1, 1, 2); in duplicateParentField()
125 Pet[] pets_2 = TestUtil.createPetsForUser(2, 10, 1); in duplicateParentField()
152 Pet pet1 = TestUtil.createPet(3); in boxedPrimitiveList()
[all …]
DRawQueryTest.java63 User expected = TestUtil.createUser(3); in entity_one()
72 List<User> expected = TestUtil.createUsersList(1, 2, 3, 4); in entity_list()
100 User user = TestUtil.createUser(3); in liveDataTest()
112 User user = TestUtil.createUser(3); in entity_supportSql()
122 User user = TestUtil.createUser(3); in embedded()
123 Pet[] pets = TestUtil.createPetsForUser(3, 1, 1); in embedded()
134 User user = TestUtil.createUser(3); in relation()
136 Pet[] pets = TestUtil.createPetsForUser(3, 1, 10); in relation()
147 User user = TestUtil.createUser(3); in pojo()
156 User user = TestUtil.createUser(3); in pojo_supportSql()
[all …]
DEmbeddedTest.java76 Pet pet = TestUtil.createPet(1); in loadAll()
77 User user = TestUtil.createUser(2); in loadAll()
89 Pet pet = TestUtil.createPet(1); in loadAllGeneric()
90 User user = TestUtil.createUser(2); in loadAllGeneric()
102 Pet pet = TestUtil.createPet(1); in loadFromUsers()
103 User user = TestUtil.createUser(2); in loadFromUsers()
115 User user = TestUtil.createUser(2); in loadFromUsersWithNullPet()
125 User user = TestUtil.createUser(2); in loadFromUsersWithNonNullPet()
135 Pet pet = TestUtil.createPet(1); in loadFromPets()
136 User user = TestUtil.createUser(2); in loadFromPets()
[all …]
DRxJava2Test.java103 User user = TestUtil.createUser(3); in maybeUser_WithData()
128 User[] users = TestUtil.createUsersArray(3, 5); in maybeUsers_WithValue()
142 User[] users = TestUtil.createUsersArray(1, 2); in maybeUsers_keepMaybeReference()
190 User user = TestUtil.createUser(3); in singleUser_WithData()
215 User[] users = TestUtil.createUsersArray(3, 5); in singleUsers_WithValue()
229 User[] users = TestUtil.createUsersArray(1, 2); in singleUser_keepSingleReference()
263 User user = TestUtil.createUser(3); in observeOnce()
275 User user = TestUtil.createUser(3); in observeChangeAndDispose()
303 User user = TestUtil.createUser(3); in observeEmpty()
316 User[] users = TestUtil.createUsersArray(1, 2); in observeFlowable_keepReference()
[all …]
DInvalidationTest.java78 User user = TestUtil.createUser(3); in testInvalidationOnUpdate()
91 User user = TestUtil.createUser(3); in testInvalidationOnDelete()
107 mUserDao.insert(TestUtil.createUser(3)); in testInvalidationOnInsert()
116 mUserDao.insert(TestUtil.createUser(3)); in testDontInvalidateOnLateInsert()
128 mUserDao.insert(TestUtil.createUser(3)); in testMultipleTables()
DLiveDataQueryTest.java87 mUserDao.insert(TestUtil.createUser(7)); in observeById()
91 final User u5 = TestUtil.createUser(5); in observeById()
120 final User user1 = TestUtil.createUser(3); in observeListQuery()
126 final User user2 = TestUtil.createUser(5); in observeListQuery()
139 final User user3 = TestUtil.createUser(9); in observeListQuery()
145 final User user4 = TestUtil.createUser(11); in observeListQuery()
157 User[] users = TestUtil.createUsersArray(3, 5, 7, 9); in liveDataWithPojo()
201 User user = TestUtil.createUser(3); in withRelation()
207 Pet[] pets = TestUtil.createPetsForUser(3, 1, 2); in withRelation()
292 final User user = TestUtil.createUser(3); in handleGc()
[all …]
DIdentityDetectionTest.java55 mTestDatabase.getUserDao().insert(TestUtil.createUser(3)); in reOpenWithoutIssues()
65 mTestDatabase.getUserDao().insert(TestUtil.createUser(3)); in reOpenChangedHash()
85 mTestDatabase.getUserDao().insert(TestUtil.createUser(3)); in reOpenMasterTableDropped()
DWriteAheadLoggingTest.java130 dao.insert(TestUtil.createUser(1)); in observeLiveData()
141 dao.insert(TestUtil.createUser(1)); in observeLiveDataWithTransaction()
155 User user = TestUtil.createUser(id); in parallelWrites()
174 final User user1 = TestUtil.createUser(1); in readInBackground()
194 final User user1 = TestUtil.createUser(1); in observeInvalidationInBackground()
235 mDatabase.getUserDao().insert(TestUtil.createUser(1)); in invalidation()
DTestUtil.java31 public class TestUtil { class
110 private TestUtil() { in TestUtil() method in TestUtil
DRxJava2WithInstantTaskExecutorTest.java63 mDatabase.getUserDao().insert(TestUtil.createUser(3)); in testFlowableInTransaction()
DPojoTest.java53 User[] users = TestUtil.createUsersArray(3, 5, 7, 10); in weightsByAge()
DDatabaseCallbackTest.java62 User user1 = TestUtil.createUser(3); in createAndOpen()
/frameworks/support/media/version-compat-tests/lib/src/main/java/android/support/mediacompat/testlib/util/
DTestUtil.java27 public final class TestUtil { class
42 private TestUtil() { in TestUtil() method in TestUtil
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DOsuNetworkConnectionTest.java47 import com.android.server.wifi.TestUtil;
143 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
145 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
148 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
150 TestUtil.sendWifiStateChanged(broadcastReceiver, mContext, in verifyWifiStateCallbacks()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/paging/
DDataSourceFactoryTest.java40 import androidx.room.integration.testapp.test.TestUtil;
100 final User user = TestUtil.createUser(i + 1); in validateUsersAsPagedList()
189 User user = TestUtil.createUser(3); in withRelation()
196 Pet[] pets = TestUtil.createPetsForUser(3, 1, 2); in withRelation()
DLimitOffsetDataSourceTest.java29 import androidx.room.integration.testapp.test.TestUtil;
109 User user = TestUtil.createUser(i); in createUsers()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestUtil.java33 final class TestUtil { class
34 private TestUtil() {} in TestUtil() method in TestUtil
DMtpManagerTest.java48 mUsbDevice = TestUtil.setupMtpDevice(getInstrumentation(), mUsbManager, mManager); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiServiceImplTest.java501 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testSetWifiEnabledFromNetworkSettingsHolderWhenApEnabled()
526 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testSetWifiEnabledFromAppFailsWhenApEnabled()
897 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testGetWifiApEnabled()
1651 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testRegisteredCallbacksTriggeredOnSoftApFailureGeneric()
1676 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testRegisteredCallbacksTriggeredOnSoftApFailureNoChannel()
1709 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testRegisteredCallbacksTriggeredOnSoftApDisabling()
1742 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testRegisteredCallbacksTriggeredOnSoftApDisabled()
1767 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testRegisteredCallbacksNotTriggeredOnSoftApStart()
1798 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testRegisteredCallbacksTriggeredOnlyOnceWhenSoftApDisabling()
1801 TestUtil.sendWifiApStateChanged(mBroadcastReceiverCaptor.getValue(), mContext, in testRegisteredCallbacksTriggeredOnlyOnceWhenSoftApDisabling()
[all …]
DTestUtil.java33 public class TestUtil { class

12