Home
last modified time | relevance | path

Searched refs:User (Results 1 – 25 of 57) 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/android/arch/persistence/room/integration/testapp/dao/
DUserDao.java31 import android.arch.persistence.room.integration.testapp.vo.User;
55 public abstract List<User> findUsersByName(String name); in findUsersByName()
58 public abstract User load(int id); in load()
61 public abstract User[] loadByIds(int... ids); in loadByIds()
64 public abstract List<User> findByCustomField(String customField); in findByCustomField()
67 public abstract void insert(User user); in insert()
70 public abstract void insertOrReplace(User user); in insertOrReplace()
73 public abstract int delete(User user); in delete()
76 public abstract int deleteAll(User[] users); in deleteAll()
82 public abstract int update(User user); in update()
[all …]
DUserPetDao.java27 import android.arch.persistence.room.integration.testapp.vo.User;
69 void insertUserAndPet(User user, Pet pet); in insertUserAndPet()
72 void updateUsersAndPets(User[] users, Pet[] pets); in updateUsersAndPets()
75 void delete2UsersAndPets(User user1, User user2, Pet[] pets); in delete2UsersAndPets()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/paging/
DLimitOffsetDataSourceTest.java26 import android.arch.persistence.room.integration.testapp.vo.User;
48 private LimitOffsetDataSource<User> loadUsersByAgeDesc() { in loadUsersByAgeDesc()
49 return (LimitOffsetDataSource<User>) mUserDao.loadUsersByAgeDesc(); in loadUsersByAgeDesc()
54 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc(); in emptyPage()
61 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc(); in loadCount()
67 List<User> users = createUsers(1); in singleItem()
68 LimitOffsetDataSource<User> dataSource = loadUsersByAgeDesc(); in singleItem()
70 List<User> initial = dataSource.loadRange(0, 10); in singleItem()
78 List<User> users = createUsers(10); in initial()
79 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/android/arch/persistence/room/integration/testapp/test/
DSimpleEntityReadWriteTest.java40 import android.arch.persistence.room.integration.testapp.vo.User;
85 User user = TestUtil.createUser(3); in writeUserAndReadInList()
88 List<User> byName = mUserDao.findUsersByName("george"); in writeUserAndReadInList()
108 User user1 = TestUtil.createUser(3); in insertDifferentEntities()
124 mUserPetDao.updateUsersAndPets(new User[]{user1}, new Pet[]{pet}); in insertDifferentEntities()
129 User user2 = TestUtil.createUser(5); in insertDifferentEntities()
143 User user = TestUtil.createUser(3); in insertDifferentEntities_transaction()
155 User user = TestUtil.createUser(3); in throwExceptionOnConflict()
158 User user2 = TestUtil.createUser(3); in throwExceptionOnConflict()
168 User user = TestUtil.createUser(3); in replaceOnConflict()
[all …]
DQueryDataSourceTest.java28 import android.arch.persistence.room.integration.testapp.vo.User;
50 public class KeyedUserQueryDataSource extends KeyedDataSource<String, User> {
53 public String getKey(@NonNull User item) { in getKey()
69 public List<User> loadInitial(int pageSize) { in loadInitial()
75 public List<User> loadBefore(@NonNull String userName, int pageSize) { in loadBefore()
81 public List<User> loadAfter(@Nullable String userName, int pageSize) { in loadAfter()
89 public class OffsetUserQueryDataSource extends BoundedDataSource<User> {
97 public List<User> loadRange(int startPosition, int loadCount) { in loadRange()
102 private static final User[] USERS_BY_NAME = new User[50];
115 Arrays.sort(USERS_BY_NAME, new Comparator<User>() { in setup()
[all …]
DComplexQueryDataSourceTest.java21 import android.arch.persistence.room.integration.testapp.vo.User;
58 public class KeyedUserQueryDataSource extends KeyedDataSource<LastFirstIdKey, User> {
62 public LastFirstIdKey getKey(@NonNull User user) { in getKey()
87 public List<User> loadInitial(int pageSize) { in loadInitial()
93 public List<User> loadBefore(@NonNull LastFirstIdKey key, int pageSize) { in loadBefore()
103 public List<User> loadAfter(@Nullable LastFirstIdKey key, int pageSize) { in loadAfter()
115 public class OffsetUserQueryDataSource extends BoundedDataSource<User> {
124 public List<User> loadRange(int startPosition, int loadCount) { in loadRange()
129 private static final User[] USERS_BY_LAST_FIRST_ID = new User[100];
142 User user = new User(); in setupClass()
[all …]
DRxJava2Test.java25 import android.arch.persistence.room.integration.testapp.vo.User;
85 TestObserver<User> testObserver = new TestObserver<>(); in maybeUser_Empty()
96 User user = TestUtil.createUser(3); in maybeUser_WithData()
98 TestObserver<User> testObserver = new TestObserver<>(); in maybeUser_WithData()
110 TestObserver<List<User>> testObserver = new TestObserver<>(); in maybeUsers_EmptyList()
115 testObserver.assertValue(Collections.<User>emptyList()); in maybeUsers_EmptyList()
121 User[] users = TestUtil.createUsersArray(3, 5); in maybeUsers_WithValue()
123 TestObserver<List<User>> testObserver = new TestObserver<>(); in maybeUsers_WithValue()
135 TestObserver<User> testObserver = new TestObserver<>(); in singleUser_Empty()
147 User user = TestUtil.createUser(3); in singleUser_WithData()
[all …]
DTestUtil.java23 import android.arch.persistence.room.integration.testapp.vo.User;
31 public static User[] createUsersArray(int... ids) { in createUsersArray()
32 User[] result = new User[ids.length]; in createUsersArray()
39 public static List<User> createUsersList(int... ids) { in createUsersList()
40 List<User> result = new ArrayList<>(); in createUsersList()
47 public static User createUser(int id) { in createUser()
48 User user = new User(); in createUser()
DLiveDataQueryTest.java36 import android.arch.persistence.room.integration.testapp.vo.User;
71 final LiveData<User> userLiveData = mUserDao.liveUserById(5); in observeById()
74 final TestObserver<User> observer = new TestObserver<>(); in observeById()
88 final User u5 = TestUtil.createUser(5); in observeById()
95 final User updated = observer.get(); in observeById()
109 final LiveData<List<User>> userLiveData = mUserDao.liveUsersListByName("frida"); in observeListQuery()
112 final TestObserver<List<User>> observer = new TestObserver<>(); in observeListQuery()
114 assertThat(observer.get(), is(Collections.<User>emptyList())); in observeListQuery()
117 final User user1 = TestUtil.createUser(3); in observeListQuery()
123 final User user2 = TestUtil.createUser(5); in observeListQuery()
[all …]
DWithClauseTest.java22 import android.arch.persistence.room.integration.testapp.vo.User;
54 User user = new User(); in sourceOfData()
61 user = new User(); in sourceOfData()
69 user = new User(); in sourceOfData()
/frameworks/support/room/compiler/src/test/data/daoWriter/input/
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()
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()
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.java40 this.__insertionAdapterOfUser = new EntityInsertionAdapter<User>(__db) { in WriterDao_Impl()
48 public void bind(SupportSQLiteStatement stmt, User value) { in WriterDao_Impl()
63 this.__insertionAdapterOfUser_1 = new EntityInsertionAdapter<User>(__db) { in WriterDao_Impl()
71 public void bind(SupportSQLiteStatement stmt, User value) { in WriterDao_Impl()
101 public void insertUser(User user) { in insertUser()
112 public void insertUsers(User user1, List<User> others) { in insertUsers()
124 public void insertUsers(User[] users) { in insertUsers()
135 public void insertUserAndBook(User user, Book book) { in insertUserAndBook()
DComplexDao.java67 public User getById(int id) { in getById()
78 final User _result; in getById()
80 _result = new User(); in getById()
98 public User findByName(String name, String lastName) { in findByName()
119 final User _result; in findByName()
121 _result = new User(); in findByName()
139 public List<User> loadAllByIds(int... ids) { in loadAllByIds()
159 final List<User> _result = new ArrayList<User>(_cursor.getCount()); in loadAllByIds()
161 final User _item_1; in loadAllByIds()
162 _item_1 = new User(); in loadAllByIds()
[all …]
DUpdateDao.java28 this.__updateAdapterOfUser = new EntityDeletionOrUpdateAdapter<User>(__db) { in UpdateDao_Impl()
35 public void bind(SupportSQLiteStatement stmt, User value) { in UpdateDao_Impl()
111 public void updateUser(User user) { in updateUser()
122 public void updateUsers(User user1, List<User> others) { in updateUsers()
134 public void updateArrayOfUsers(User[] users) { in updateArrayOfUsers()
145 public int updateUserAndReturnCount(User user) { in updateUserAndReturnCount()
158 public int updateUserAndReturnCount(User user1, List<User> others) { in updateUserAndReturnCount()
172 public int updateUserAndReturnCount(User[] users) { in updateUserAndReturnCount()
198 public void updateUserAndBook(User user, Book book) { in updateUserAndBook()
DDeletionDao.java30 this.__deletionAdapterOfUser = new EntityDeletionOrUpdateAdapter<User>(__db) { in DeletionDao_Impl()
37 public void bind(SupportSQLiteStatement stmt, User value) { in DeletionDao_Impl()
89 public void deleteUser(User user) { in deleteUser()
100 public void deleteUsers(User user1, List<User> others) { in deleteUsers()
112 public void deleteArrayOfUsers(User[] users) { in deleteArrayOfUsers()
123 public int deleteUserAndReturnCount(User user) { in deleteUserAndReturnCount()
136 public int deleteUserAndReturnCount(User user1, List<User> others) { in deleteUserAndReturnCount()
150 public int deleteUserAndReturnCount(User[] users) { in deleteUserAndReturnCount()
176 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/android/arch/persistence/room/integration/testapp/vo/
DUserAndPet.java22 private User mUser;
26 public User getUser() { in getUser()
30 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()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DReadComplexTernaryTest.java6 import android.databinding.testapp.vo.User;
16 User user = new User(); in testWhenNull()

123