Home
last modified time | relevance | path

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

/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DBackupManagerServiceTest.java167 SparseArray<UserBackupManagerService> serviceUsers = backupManagerService.getServiceUsers(); in testStartServiceForUser_registersUser() local
168 assertThat(serviceUsers.size()).isEqualTo(1); in testStartServiceForUser_registersUser()
169 assertThat(serviceUsers.get(mUserOneId)).isNotNull(); in testStartServiceForUser_registersUser()
179 SparseArray<UserBackupManagerService> serviceUsers = backupManagerService.getServiceUsers(); in testStartServiceForUser_withServiceInstance_registersUser() local
180 assertThat(serviceUsers.size()).isEqualTo(1); in testStartServiceForUser_withServiceInstance_registersUser()
181 assertThat(serviceUsers.get(mUserOneId)).isEqualTo(mUserOneService); in testStartServiceForUser_withServiceInstance_registersUser()
193 SparseArray<UserBackupManagerService> serviceUsers = backupManagerService.getServiceUsers(); in testStopServiceForUser_forRegisteredUser_unregistersCorrectUser() local
194 assertThat(serviceUsers.size()).isEqualTo(1); in testStopServiceForUser_forRegisteredUser_unregistersCorrectUser()
195 assertThat(serviceUsers.get(mUserOneId)).isNull(); in testStopServiceForUser_forRegisteredUser_unregistersCorrectUser()
196 assertThat(serviceUsers.get(mUserTwoId)).isEqualTo(mUserTwoService); in testStopServiceForUser_forRegisteredUser_unregistersCorrectUser()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DTrampolineTest.java136 SparseArray<UserBackupManagerService> serviceUsers = new SparseArray<>(); in setUp() local
137 serviceUsers.append(UserHandle.USER_SYSTEM, mUserBackupManagerService); in setUp()
138 serviceUsers.append(NON_USER_SYSTEM, mUserBackupManagerService); in setUp()
139 when(mBackupManagerServiceMock.getServiceUsers()).thenReturn(serviceUsers); in setUp()