Home
last modified time | relevance | path

Searched refs:user1 (Results 1 – 14 of 14) sorted by relevance

/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DWriteAheadLoggingTest.java128 LiveData<User> user1 = dao.liveUserById(1); in observeLiveData() local
129 Observer<User> observer = startObserver(user1); in observeLiveData()
133 stopObserver(user1, observer); in observeLiveData()
139 LiveData<User> user1 = dao.liveUserByIdInTransaction(1); in observeLiveDataWithTransaction() local
140 Observer<User> observer = startObserver(user1); in observeLiveDataWithTransaction()
144 stopObserver(user1, observer); in observeLiveDataWithTransaction()
174 final User user1 = TestUtil.createUser(1); in readInBackground() local
175 dao.insert(user1); in readInBackground()
178 dao.delete(user1); in readInBackground()
181 assertThat(dao.load(1), is(equalTo(user1)))); in readInBackground()
[all …]
DSimpleEntityReadWriteTest.java111 User user1 = TestUtil.createUser(3); in insertDifferentEntities() local
112 user1.setName("george"); in insertDifferentEntities()
116 mUserPetDao.insertUserAndPet(user1, pet); in insertDifferentEntities()
127 mUserPetDao.updateUsersAndPets(new User[]{user1}, new Pet[]{pet}); in insertDifferentEntities()
136 mUserPetDao.delete2UsersAndPets(user1, user2, new Pet[]{pet}); in insertDifferentEntities()
260 User user1 = TestUtil.createUser(3); in findByBoolean() local
261 user1.setAdmin(true); in findByBoolean()
264 mUserDao.insert(user1); in findByBoolean()
266 assertThat(mUserDao.findByAdmin(true), is(Arrays.asList(user1))); in findByBoolean()
272 User user1 = TestUtil.createUser(1); in returnBoolean() local
[all …]
DDatabaseCallbackTest.java62 User user1 = TestUtil.createUser(3); in createAndOpen() local
63 user1.setName("george"); in createAndOpen()
64 db1.getUserDao().insert(user1); in createAndOpen()
DLiveDataQueryTest.java120 final User user1 = TestUtil.createUser(3); in observeListQuery() local
121 user1.setName("dog frida"); in observeListQuery()
122 mUserDao.insert(user1); in observeListQuery()
123 assertThat(observer.get(), is(Collections.singletonList(user1))); in observeListQuery()
129 assertThat(observer.get(), is(Collections.singletonList(user1))); in observeListQuery()
132 user1.setName("i don't match either"); in observeListQuery()
133 mUserDao.insertOrReplace(user1); in observeListQuery()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java145 UserInfo user1 = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAdd2Users() local
148 assertTrue(user1 != null); in testAdd2Users()
152 assertTrue(findUser(user1.id)); in testAdd2Users()
419 UserInfo user1 = createUser("User 1", 0); in testSerialNumber() local
420 int serialNumber1 = user1.serialNumber; in testSerialNumber()
421 assertEquals(serialNumber1, mUserManager.getUserSerialNumber(user1.id)); in testSerialNumber()
422 assertEquals(user1.id, mUserManager.getUserHandle(serialNumber1)); in testSerialNumber()
432 UserInfo user1 = createUser("User 1", 0); in testGetSerialNumbersOfUsers() local
436 assertTrue(errMsg + user1.serialNumber, in testGetSerialNumbersOfUsers()
437 ArrayUtils.contains(serialNumbersOfUsers, user1.serialNumber)); in testGetSerialNumbersOfUsers()
[all …]
/frameworks/support/room/compiler/src/test/data/daoWriter/input/
DDeletionDao.java26 void deleteUsers(User user1, List<User> others); in deleteUsers() argument
33 int deleteUserAndReturnCount(User user1, List<User> others); in deleteUserAndReturnCount() argument
DUpdateDao.java26 void updateUsers(User user1, List<User> others); in updateUsers() argument
33 int updateUserAndReturnCount(User user1, List<User> others); in updateUserAndReturnCount() argument
DWriterDao.java26 void insertUsers(User user1, List<User> others); in insertUsers() argument
/frameworks/support/room/compiler/src/test/data/daoWriter/output/
DDeletionDao.java102 public void deleteUsers(User user1, List<User> others) { in deleteUsers() argument
105 __deletionAdapterOfUser.handle(user1); in deleteUsers()
138 public int deleteUserAndReturnCount(User user1, List<User> others) { in deleteUserAndReturnCount() argument
142 _total +=__deletionAdapterOfUser.handle(user1); in deleteUserAndReturnCount()
DUpdateDao.java124 public void updateUsers(User user1, List<User> others) { in updateUsers() argument
127 __updateAdapterOfUser.handle(user1); in updateUsers()
160 public int updateUserAndReturnCount(User user1, List<User> others) { in updateUserAndReturnCount() argument
164 _total +=__updateAdapterOfUser.handle(user1); in updateUserAndReturnCount()
DWriterDao.java114 public void insertUsers(User user1, List<User> others) { in insertUsers() argument
117 __insertionAdapterOfUser.insert(user1); in insertUsers()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigManagerTest.java2123 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchDoesNotChangeSharedNetworksId() local
2132 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchDoesNotChangeSharedNetworksId()
2207 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchRemovesOldUserPrivateNetworks() local
2216 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchRemovesOldUserPrivateNetworks()
2286 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchWithNoOldUserPrivateNetworks() local
2334 int user1 = TEST_DEFAULT_USER; in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore() local
2343 user1Network.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore()
2369 mWifiConfigManager.handleUserUnlock(user1); in testHandleUserSwitchPushesOtherPrivateNetworksToSharedStore()
2425 int user1 = TEST_DEFAULT_USER; in testHandleUserUnlockRemovePasspointConfigFromSharedConfig() local
2430 passpointConfig.creatorUid = UserHandle.getUid(user1, appId); in testHandleUserUnlockRemovePasspointConfigFromSharedConfig()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DUserManagerHelperTest.java111 UserInfo user1 = createUserInfoForId(10); in getAllUsersExceptUser() local
116 testUsers.add(user1); in getAllUsersExceptUser()
133 assertThat(mHelper.getAllUsersExceptUser(12)).contains(user1); in getAllUsersExceptUser()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/dao/
DUserPetDao.java92 void delete2UsersAndPets(User user1, User user2, Pet[] pets); in delete2UsersAndPets() argument