Home
last modified time | relevance | path

Searched refs:newUser (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DGracePeriodObserverTest.java84 final int newUser = 10; in testGracePeriod() local
85 doReturn(true).when(mUserManagerInternal).exists(newUser); in testGracePeriod()
86 mGracePeriodObserver.onUserSwitchComplete(newUser); in testGracePeriod()
97 final int newUser = 10; in testCleanUp() local
98 mGracePeriodObserver.onUserSwitchComplete(newUser); in testCleanUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DUserTrackerImpl.kt146 private fun handleSwitchUser(newUser: Int) { in handleSwitchUser()
148 if (newUser == UserHandle.USER_NULL) { in handleSwitchUser()
153 if (newUser == userId) return in handleSwitchUser()
154 Log.i(TAG, "Switching to user $newUser") in handleSwitchUser()
156 val (ctx, profiles) = setUserIdInternal(newUser) in handleSwitchUser()
159 onUserChanged(newUser, ctx) in handleSwitchUser()
DUserTracker.kt71 fun onUserChanged(newUser: Int, userContext: Context) {} in addCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsListingControllerImpl.kt112 override fun changeUser(newUser: UserHandle) { in changeUser()
118 currentUserId = newUser.identifier in changeUser()
119 val contextForUser = context.createContextAsUser(newUser, 0) in changeUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DAutoAddTracker.java81 public void changeUser(UserHandle newUser) { in changeUser() argument
82 if (newUser.getIdentifier() == mUserId) { in changeUser()
85 mUserId = newUser.getIdentifier(); in changeUser()
DReduceBrightColorsController.java79 public void onUserChanged(int newUser, Context userContext) { in ReduceBrightColorsController()
86 false, mContentObserver, newUser); in ReduceBrightColorsController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java225 public void changeUser(UserHandle newUser) { in changeUser() argument
230 mHandler.post(() -> changeUser(newUser)); in changeUser()
233 if (newUser.getIdentifier() == mCurrentUser.getIdentifier()) { in changeUser()
237 mCurrentUser = newUser; in changeUser()
240 mAutoAddSettingList.get(i).setUserId(newUser.getIdentifier()); in changeUser()
242 mAutoTracker.changeUser(newUser); in changeUser()
/frameworks/base/services/core/java/com/android/server/am/
DUserSwitchingDialog.java65 UserInfo newUser, boolean aboveSystem, String switchingFromSystemUserMessage, in UserSwitchingDialog() argument
71 mUserId = newUser.id; in UserSwitchingDialog()
73 mNewUser = newUser; in UserSwitchingDialog()
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DInstallNonMarketAppsDeprecationTest.java119 UserInfo newUser = mUm.createUser("TEST_USER", 0); in testValueForNewUser() local
120 mUsersAddedByTest.add(newUser.id); in testValueForNewUser()
121 String value = getSecureSettingForUserViaShell(newUser.id); in testValueForNewUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsControllerImpl.kt112 private fun setValuesForUser(newUser: UserHandle) { in <lambda>()
113 Log.d(TAG, "Changing to user: $newUser") in <lambda>()
114 currentUser = newUser in <lambda>()
122 bindingController.changeUser(newUser) in <lambda>()
123 listingController.changeUser(newUser) in <lambda>()
131 val newUser = in <lambda>() constant
133 if (currentUser == newUser) { in <lambda>()
137 setValuesForUser(newUser) in <lambda>()
DControlsBindingControllerImpl.kt173 override fun changeUser(newUser: UserHandle) { in changeUser()
174 if (newUser == currentUser) return in changeUser()
177 currentUser = newUser in changeUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DUserAwareController.kt27 fun changeUser(newUser: UserHandle) {} in changeUser()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DStartUserClient.java40 void onUserStarted(int newUserId, U newUser); in onUserStarted() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DUserTrackerImplTest.kt281 override fun onUserChanged(newUser: Int, userContext: Context) { in <lambda>()
283 lastUser = newUser in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java120 public void onUserChanged(int newUser, Context userContext) { in TunerServiceImpl()
121 mCurrentUser = newUser; in TunerServiceImpl()
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DWebViewUpdateServiceTest.java660 int newUser = 100; in testAddingNewUserWithUninstalledPackage() local
661 mTestSystemImpl.addUser(newUser); in testAddingNewUserWithUninstalledPackage()
663 mTestSystemImpl.setPackageInfoForUser(newUser, in testAddingNewUserWithUninstalledPackage()
666 mTestSystemImpl.setPackageInfoForUser(newUser, in testAddingNewUserWithUninstalledPackage()
669 mWebViewUpdateServiceImpl.handleNewUser(newUser); in testAddingNewUserWithUninstalledPackage()
/frameworks/base/services/core/java/com/android/server/media/
DMediaRouterService.java670 UserRecord newUser = mUserRecords.get(userId); in switchUser() local
671 if (newUser != null) { in switchUser()
672 newUser.mHandler.sendEmptyMessage(UserHandler.MSG_START); in switchUser()
690 boolean newUser = false; in registerClientLocked()
694 newUser = true; in registerClientLocked()
703 if (newUser) { in registerClientLocked()
DMediaRouter2ServiceImpl.java608 UserRecord newUser = mUserRecords.get(userId); in switchUser() local
609 if (newUser != null) { in switchUser()
610 newUser.mHandler.sendMessage( in switchUser()
611 obtainMessage(UserHandler::start, newUser.mHandler)); in switchUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/
DLockscreenSmartspaceController.kt208 override fun onUserChanged(newUser: Int, userContext: Context) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DPrivacyItemController.kt165 override fun onUserChanged(newUser: Int, userContext: Context) { in onUserChanged()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java3519 UserInfo newUser = null; in createUserInternalUnchecked() local
3521 newUser = createUserInternalUncheckedNoTracing(name, userType, flags, parentId, in createUserInternalUnchecked()
3523 return newUser; in createUserInternalUnchecked()
3525 logUserCreateJourneyFinish(sessionId, nextProbableUserId, newUser != null); in createUserInternalUnchecked()
DPackageManagerService.java6207 for (int newUser : res.newUsers) { in handlePackagePostInstall()
6208 final boolean isInstantApp = ps.getInstantApp(newUser); in handlePackagePostInstall()
6211 firstInstantUserIds = ArrayUtils.appendInt(firstInstantUserIds, newUser); in handlePackagePostInstall()
6213 firstUserIds = ArrayUtils.appendInt(firstUserIds, newUser); in handlePackagePostInstall()
6219 if (origUser == newUser) { in handlePackagePostInstall()
6226 firstInstantUserIds = ArrayUtils.appendInt(firstInstantUserIds, newUser); in handlePackagePostInstall()
6228 firstUserIds = ArrayUtils.appendInt(firstUserIds, newUser); in handlePackagePostInstall()
6232 instantUserIds = ArrayUtils.appendInt(instantUserIds, newUser); in handlePackagePostInstall()
6234 updateUserIds = ArrayUtils.appendInt(updateUserIds, newUser); in handlePackagePostInstall()