Searched refs:foregroundUserId (Results 1 – 4 of 4) sorted by relevance
76 int foregroundUserId = ActivityManager.getCurrentUser(); in setUp() local77 when(mContext.getUser()).thenReturn(UserHandle.of(foregroundUserId)); in setUp()145 int foregroundUserId = ActivityManager.getCurrentUser(); in userCreatedOnPassenger_success_stopsAndStartsUser() local146 when(mContext.getUser()).thenReturn(UserHandle.of(foregroundUserId + 1)); in userCreatedOnPassenger_success_stopsAndStartsUser()173 int foregroundUserId = ActivityManager.getCurrentUser(); in userCreatedOnPassenger_failure_doesNotStartUser() local174 when(mContext.getUser()).thenReturn(UserHandle.of(foregroundUserId + 1)); in userCreatedOnPassenger_failure_doesNotStartUser()
201 int foregroundUserId = ActivityManager.getCurrentUser(); in isNonCurrentForegroundUser() local202 return userInfo.id == foregroundUserId && UserHandle.myUserId() != foregroundUserId; in isNonCurrentForegroundUser()
391 final int foregroundUserId = ActivityManager.getCurrentUser(); in getAllSwitchableProfiles() local392 return getAllLivingProfiles(userInfo -> userInfo.id != foregroundUserId); in getAllSwitchableProfiles()
608 int foregroundUserId = in BluetoothManagerService()610 propagateForegroundUserId(foregroundUserId); in BluetoothManagerService()