Home
last modified time | relevance | path

Searched refs:User (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/vo/
DUsers.java25 public static final User[] robots = new User[]{
26 new User("romain", "guy", R.drawable.emo_im_yelling, User.ROBOT),
28 public static final User[] toolkities = new User[]{
29 new User("chet", "haase", R.drawable.emo_im_angel, User.KITTEN),
30 new User("adam", "powell", R.drawable.emo_im_cool, User.KITTEN),
31 new User("alan", "viverette", R.drawable.emo_im_crying, User.KITTEN),
32 new User("chris", "craik", R.drawable.emo_im_embarrassed, User.KITTEN),
33 new User("george", "mount", R.drawable.emo_im_foot_in_mouth, User.KITTEN),
34 new User("john", "reck", R.drawable.emo_im_happy, User.KITTEN),
35 new User("Doris", "liu", R.drawable.emo_im_winking, User.KITTEN),
[all …]
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/dao/
DUserDao.java35 import androidx.room.integration.testapp.vo.User;
60 public abstract List<User> findUsersByName(String name); in findUsersByName()
63 public abstract User load(int id); in load()
66 public abstract User[] loadByIds(int... ids); in loadByIds()
69 public abstract List<User> findByCustomField(String customField); in findByCustomField()
72 public abstract void insert(User user); in insert()
75 public abstract void insertOrReplace(User user); in insertOrReplace()
78 public abstract int delete(User user); in delete()
81 public abstract int deleteAll(User[] users); in deleteAll()
87 public abstract int update(User user); in update()
[all …]
DRawDao.java24 import androidx.room.integration.testapp.vo.User;
41 User getUser(SupportSQLiteQuery query); in getUser()
49 @RawQuery(observedEntities = User.class)
56 List<User> getUserList(SupportSQLiteQuery query); in getUserList()
64 @RawQuery(observedEntities = User.class)
65 LiveData<User> getUserLiveData(SupportSQLiteQuery query); in getUserLiveData()
DUserPetDao.java28 import androidx.room.integration.testapp.vo.User;
86 void insertUserAndPet(User user, Pet pet); in insertUserAndPet()
89 void updateUsersAndPets(User[] users, Pet[] pets); in updateUsersAndPets()
92 void delete2UsersAndPets(User user1, User user2, Pet[] pets); in delete2UsersAndPets()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/paging/
DLimitOffsetDataSourceTest.java30 import androidx.room.integration.testapp.vo.User;
49 private LimitOffsetDataSource<User> loadUsersByAgeDesc() { in loadUsersByAgeDesc()
50 return (LimitOffsetDataSource<User>) mUserDao.loadUsersByAgeDesc().create(); in loadUsersByAgeDesc()
55 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc(); in emptyPage()
62 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc(); in loadCount()
68 List<User> users = createUsers(1); in singleItem()
69 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc(); in singleItem()
71 List<User> initial = dataSource.loadRange(0, 10); in singleItem()
79 List<User> users = createUsers(10); in initial()
80 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc(); in initial()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DEventLogTags.logtags17 30001 am_finish_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Reason|3)
19 30002 am_task_to_front (User|1|5),(Task|1|5)
21 30003 am_new_intent (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Action|3),(MIME Type|3…
23 30004 am_create_task (User|1|5),(Task ID|1|5)
25 30005 am_create_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3),(Action|3),(MIME T…
27 30006 am_restart_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3)
29 30007 am_resume_activity (User|1|5),(Token|1|5),(Task ID|1|5),(Component Name|3)
31 30008 am_anr (User|1|5),(pid|1|5),(Package Name|3),(Flags|1|5),(reason|3)
33 30009 am_activity_launch_time (User|1|5),(Token|1|5),(Component Name|3),(time|2|3)
35 30010 am_proc_bound (User|1|5),(PID|1|5),(Process Name|3)
[all …]
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DSimpleEntityReadWriteTest.java50 import androidx.room.integration.testapp.vo.User;
88 User user = TestUtil.createUser(3); in writeUserAndReadInList()
91 List<User> byName = mUserDao.findUsersByName("george"); in writeUserAndReadInList()
111 User user1 = TestUtil.createUser(3); in insertDifferentEntities()
127 mUserPetDao.updateUsersAndPets(new User[]{user1}, new Pet[]{pet}); in insertDifferentEntities()
132 User user2 = TestUtil.createUser(5); in insertDifferentEntities()
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()
[all …]
DRxJava2Test.java30 import androidx.room.integration.testapp.vo.User;
92 TestObserver<User> testObserver = new TestObserver<>(); in maybeUser_Empty()
103 User user = TestUtil.createUser(3); in maybeUser_WithData()
105 TestObserver<User> testObserver = new TestObserver<>(); in maybeUser_WithData()
117 TestObserver<List<User>> testObserver = new TestObserver<>(); in maybeUsers_EmptyList()
122 testObserver.assertValue(Collections.<User>emptyList()); in maybeUsers_EmptyList()
128 User[] users = TestUtil.createUsersArray(3, 5); in maybeUsers_WithValue()
130 TestObserver<List<User>> testObserver = new TestObserver<>(); in maybeUsers_WithValue()
142 User[] users = TestUtil.createUsersArray(1, 2); in maybeUsers_keepMaybeReference()
144 TestObserver<User> testObserver1 = new TestObserver<>(); in maybeUsers_keepMaybeReference()
[all …]
DRawQueryTest.java34 import androidx.room.integration.testapp.vo.User;
57 User user = mRawDao.getUser(new SimpleSQLiteQuery("SELECT * FROM User WHERE mId = 0")); in entity_null()
63 User expected = TestUtil.createUser(3); in entity_one()
65 User received = mRawDao.getUser(new SimpleSQLiteQuery("SELECT * FROM User WHERE mId = ?", in entity_one()
72 List<User> expected = TestUtil.createUsersList(1, 2, 3, 4); in entity_list()
73 mUserDao.insertAll(expected.toArray(new User[4])); in entity_list()
74 List<User> received = mRawDao.getUserList( in entity_list()
95 final LiveData<User> liveData) throws TimeoutException, InterruptedException { in liveDataTest()
100 User user = TestUtil.createUser(3); in liveDataTest()
112 User user = TestUtil.createUser(3); in entity_supportSql()
[all …]
DLiveDataQueryTest.java44 import androidx.room.integration.testapp.vo.User;
74 final LiveData<User> userLiveData = mUserDao.liveUserById(5); in observeById()
77 final TestObserver<User> observer = new TestObserver<>(); in observeById()
91 final User u5 = TestUtil.createUser(5); in observeById()
98 final User updated = observer.get(); in observeById()
112 final LiveData<List<User>> userLiveData = mUserDao.liveUsersListByName("frida"); in observeListQuery()
115 final TestObserver<List<User>> observer = new TestObserver<>(); in observeListQuery()
117 assertThat(observer.get(), is(Collections.<User>emptyList())); in observeListQuery()
120 final User user1 = TestUtil.createUser(3); in observeListQuery()
126 final User user2 = TestUtil.createUser(5); in observeListQuery()
[all …]
DTestUtil.java24 import androidx.room.integration.testapp.vo.User;
32 public static User[] createUsersArray(int... ids) { in createUsersArray()
33 User[] result = new User[ids.length]; in createUsersArray()
40 public static List<User> createUsersList(int... ids) { in createUsersList()
41 List<User> result = new ArrayList<>(); in createUsersList()
48 public static User createUser(int id) { in createUser()
49 User user = new User(); in createUser()
DWithClauseTest.java27 import androidx.room.integration.testapp.vo.User;
58 User user = new User(); in sourceOfData()
65 user = new User(); in sourceOfData()
73 user = new User(); in sourceOfData()
/frameworks/support/room/compiler/src/test/data/daoWriter/input/
DUpdateDao.java24 void updateUser(User user); in updateUser()
26 void updateUsers(User user1, List<User> others); in updateUsers()
28 void updateArrayOfUsers(User[] users); in updateArrayOfUsers()
31 int updateUserAndReturnCount(User user); in updateUserAndReturnCount()
33 int updateUserAndReturnCount(User user1, List<User> others); in updateUserAndReturnCount()
35 int updateUserAndReturnCount(User[] users); in updateUserAndReturnCount()
41 void updateUserAndBook(User user, Book book); in updateUserAndBook()
50 default void updateAndAge(User user) { in updateAndAge()
DDeletionDao.java24 void deleteUser(User user); in deleteUser()
26 void deleteUsers(User user1, List<User> others); in deleteUsers()
28 void deleteArrayOfUsers(User[] users); in deleteArrayOfUsers()
31 int deleteUserAndReturnCount(User user); in deleteUserAndReturnCount()
33 int deleteUserAndReturnCount(User user1, List<User> others); in deleteUserAndReturnCount()
35 int deleteUserAndReturnCount(User[] users); in deleteUserAndReturnCount()
47 void deleteUserAndBook(User user, Book book); in deleteUserAndBook()
DWriterDao.java24 void insertUser(User user); in insertUser()
26 void insertUsers(User user1, List<User> others); in insertUsers()
28 void insertUsers(User[] users); in insertUsers()
30 void insertUserAndBook(User user, Book book); in insertUserAndBook()
DComplexDao.java43 abstract public User getById(int id); in getById()
46 abstract public User findByName(String name, String lastName); in findByName()
49 abstract public List<User> loadAllByIds(int... ids); in loadAllByIds()
61 abstract public LiveData<User> getByIdLive(int id); in getByIdLive()
64 abstract public LiveData<List<User>> loadUsersByIdsLive(int... ids); in loadUsersByIdsLive()
/frameworks/support/room/compiler/src/test/data/daoWriter/output/
DWriterDao.java42 this.__insertionAdapterOfUser = new EntityInsertionAdapter<User>(__db) { in WriterDao_Impl()
50 public void bind(SupportSQLiteStatement stmt, User value) { in WriterDao_Impl()
65 this.__insertionAdapterOfUser_1 = new EntityInsertionAdapter<User>(__db) { in WriterDao_Impl()
73 public void bind(SupportSQLiteStatement stmt, User value) { in WriterDao_Impl()
103 public void insertUser(User user) { in insertUser()
114 public void insertUsers(User user1, List<User> others) { in insertUsers()
126 public void insertUsers(User[] users) { in insertUsers()
137 public void insertUserAndBook(User user, Book book) { in insertUserAndBook()
DUpdateDao.java30 this.__updateAdapterOfUser = new EntityDeletionOrUpdateAdapter<User>(__db) { in UpdateDao_Impl()
37 public void bind(SupportSQLiteStatement stmt, User value) { in UpdateDao_Impl()
113 public void updateUser(User user) { in updateUser()
124 public void updateUsers(User user1, List<User> others) { in updateUsers()
136 public void updateArrayOfUsers(User[] users) { in updateArrayOfUsers()
147 public int updateUserAndReturnCount(User user) { in updateUserAndReturnCount()
160 public int updateUserAndReturnCount(User user1, List<User> others) { in updateUserAndReturnCount()
174 public int updateUserAndReturnCount(User[] users) { in updateUserAndReturnCount()
200 public void updateUserAndBook(User user, Book book) { in updateUserAndBook()
212 public void updateAndAge(User user) { in updateAndAge()
DComplexDao.java69 public User getById(int id) { in getById()
80 final User _result; in getById()
82 _result = new User(); in getById()
100 public User findByName(String name, String lastName) { in findByName()
121 final User _result; in findByName()
123 _result = new User(); in findByName()
141 public List<User> loadAllByIds(int... ids) { in loadAllByIds()
161 final List<User> _result = new ArrayList<User>(_cursor.getCount()); in loadAllByIds()
163 final User _item_1; in loadAllByIds()
164 _item_1 = new User(); in loadAllByIds()
[all …]
DDeletionDao.java32 this.__deletionAdapterOfUser = new EntityDeletionOrUpdateAdapter<User>(__db) { in DeletionDao_Impl()
39 public void bind(SupportSQLiteStatement stmt, User value) { in DeletionDao_Impl()
91 public void deleteUser(User user) { in deleteUser()
102 public void deleteUsers(User user1, List<User> others) { in deleteUsers()
114 public void deleteArrayOfUsers(User[] users) { in deleteArrayOfUsers()
125 public int deleteUserAndReturnCount(User user) { in deleteUserAndReturnCount()
138 public int deleteUserAndReturnCount(User user1, List<User> others) { in deleteUserAndReturnCount()
152 public int deleteUserAndReturnCount(User[] users) { in deleteUserAndReturnCount()
178 public void deleteUserAndBook(User user, Book book) { in deleteUserAndBook()
/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/
DMainActivity.java19 import com.android.example.bindingdemo.vo.User;
35 User selected;
60 public User getSelected() { in getSelected()
64 private void setSelected(User selected) { in setSelected()
80 if (selected.getGroup() == User.KITTEN) { in onDelete()
82 selected.setGroup(User.ROBOT); in onDelete()
88 selected.setGroup(User.KITTEN); in onDelete()
127 final private List<User> userList = new ArrayList<>();
130 public UserAdapter(User[] toolkities) { in UserAdapter()
154 public void add(User user) { in add()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
DUser.java7 public class User extends BaseObservable { class
9 private User friend;
15 public User getFriend() { in getFriend()
19 public void setFriend(User friend) { in setFriend()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/migration/
DJournalDbPostMigrationTest.java79 public static class User { class in JournalDbPostMigrationTest
99 List<User> getAll(); in getAll()
102 LiveData<User> getUser(int uid); in getUser()
105 void insert(User user); in insert()
108 @Database(entities = {User.class}, version = 3, exportSchema = false)
191 List<User> users = getDb().userDao().getAll();
206 LiveData<User> liveData = dao.getUser(3);
214 User user = new User();
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/vo/
DUserAndPet.java23 private User mUser;
27 public User getUser() { in getUser()
31 public void setUser(User user) { in setUser()
DUserAndPetNonNull.java24 private User mUser;
29 public User getUser() { in getUser()
33 public void setUser(User user) { in setUser()

123