Searched refs:serviceUsers (Results 1 – 2 of 2) sorted by relevance
167 SparseArray<UserBackupManagerService> serviceUsers = backupManagerService.getServiceUsers(); in testStartServiceForUser_registersUser() local168 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() local180 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() local194 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 …]
136 SparseArray<UserBackupManagerService> serviceUsers = new SparseArray<>(); in setUp() local137 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()