Home
last modified time | relevance | path

Searched refs:testUser (Results 1 – 2 of 2) sorted by relevance

/frameworks/data-binding/samples/BindingDemo/app/src/test/java/com/android/example/bindingdemo/vo/
DUnitTest.java18 private User testUser; field in UnitTest
22 testUser = new User("Ted", "Tester", R.drawable.george, User.ROBOTS); in setUp()
27 assertEquals("Ted", testUser.getName()); in settersWorkFineOnTheJvm()
28 testUser.setName("Tom"); in settersWorkFineOnTheJvm()
29 assertEquals("Tom", testUser.getName()); in settersWorkFineOnTheJvm()
35 testUser.addOnPropertyChangedListener(mockListener); in listeners()
36 testUser.setName("Tom"); in listeners()
37 verify(mockListener).onPropertyChanged(testUser, BR.name); in listeners()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java469 UserInfo testUser = createUser("User 1", 0); in testRestrictions() local
472 UserManager.DISALLOW_INSTALL_APPS, true, new UserHandle(testUser.id)); in testRestrictions()
474 UserManager.DISALLOW_CONFIG_WIFI, false, new UserHandle(testUser.id)); in testRestrictions()
476 Bundle stored = mUserManager.getUserRestrictions(new UserHandle(testUser.id)); in testRestrictions()