Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DUserTracker.kt77 fun onBeforeUserSwitching(newUser: Int) {} in addCallback()
83 fun onUserChanging(newUser: Int, userContext: Context) {} in addCallback()
93 fun onUserChanging(newUser: Int, userContext: Context, resultCallback: Runnable) { in addCallback()
94 onUserChanging(newUser, userContext) in addCallback()
103 fun onUserChanged(newUser: Int, userContext: Context) {} in addCallback()
/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/
DGuestResumeSessionReceiver.java69 public void onUserChanged(int newUser, @NonNull Context userContext) {
78 SETTING_GUEST_HAS_LOGGED_IN, 0, newUser);
84 newUser);
89 newUser);
96 mNewSessionDialog = mResetSessionDialogFactory.create(newUser);
/frameworks/base/services/core/java/com/android/server/pm/
DInstallRequest.java892 for (int newUser : mNewUsers) { in populateBroadcastUsers()
894 mScanResult.mPkgSetting.getUserStateOrDefault(newUser).isInstantApp(); in populateBroadcastUsers()
897 ArrayUtils.appendInt(mFirstTimeBroadcastInstantUserIds, newUser); in populateBroadcastUsers()
900 ArrayUtils.appendInt(mFirstTimeBroadcastUserIds, newUser); in populateBroadcastUsers()
906 for (int newUser : mNewUsers) { in populateBroadcastUsers()
907 boolean isFirstTimeUser = !ArrayUtils.contains(mOrigUsers, newUser); in populateBroadcastUsers()
909 mScanResult.mPkgSetting.getUserStateOrDefault(newUser).isInstantApp(); in populateBroadcastUsers()
913 ArrayUtils.appendInt(mFirstTimeBroadcastInstantUserIds, newUser); in populateBroadcastUsers()
916 ArrayUtils.appendInt(mFirstTimeBroadcastUserIds, newUser); in populateBroadcastUsers()
921 ArrayUtils.appendInt(mUpdateBroadcastInstantUserIds, newUser); in populateBroadcastUsers()
[all …]
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
DInstallNonMarketAppsDeprecationTest.java133 UserInfo newUser = mUm.createUser("TEST_USER", 0); in testValueForNewUser() local
134 mUsersAddedByTest.add(newUser.id); in testValueForNewUser()
138 () -> getSecureSettingForUserViaShell(newUser.id)); in testValueForNewUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsListingControllerImpl.kt139 override fun changeUser(newUser: UserHandle) { in changeUser()
145 currentUserId = newUser.identifier in changeUser()
146 val contextForUser = context.createContextAsUser(newUser, 0) in changeUser()
DControlsRequestDialog.kt67 override fun onUserChanged(newUser: Int, userContext: Context) { in onUserChanged()
68 if (newUser != startingUser) { in onUserChanged()
DControlsProviderSelectorActivity.kt73 override fun onUserChanged(newUser: Int, userContext: Context) { in <lambda>()
74 if (newUser != startingUser) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DUserAwareController.kt26 fun changeUser(newUser: UserHandle) {} in changeUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java263 public void changeUser(UserHandle newUser) { in changeUser() argument
268 mHandler.post(() -> changeUser(newUser)); in changeUser()
271 if (newUser.getIdentifier() == mCurrentUser.getIdentifier()) { in changeUser()
275 mCurrentUser = newUser; in changeUser()
278 mAutoAddSettingList.get(i).setUserId(newUser.getIdentifier()); in changeUser()
280 mAutoTracker.changeUser(newUser); in changeUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DReduceBrightColorsControllerImpl.java77 public void onUserChanged(int newUser, Context userContext) { in ReduceBrightColorsControllerImpl()
83 false, mContentObserver, newUser); in ReduceBrightColorsControllerImpl()
DAutoAddTracker.kt182 override fun changeUser(newUser: UserHandle) { in <lambda>()
183 if (newUser.identifier == userId) return in <lambda>()
185 userId = newUser.identifier in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsControllerImpl.kt111 private fun setValuesForUser(newUser: UserHandle) { in <lambda>()
112 Log.d(TAG, "Changing to user: $newUser") in <lambda>()
113 currentUser = newUser in <lambda>()
121 bindingController.changeUser(newUser) in <lambda>()
122 listingController.changeUser(newUser) in <lambda>()
126 override fun changeUser(newUser: UserHandle) { in <lambda>()
128 if (currentUser == newUser) { in <lambda>()
132 setValuesForUser(newUser) in <lambda>()
DControlsBindingControllerImpl.kt179 override fun changeUser(newUser: UserHandle) { in changeUser()
180 if (newUser == currentUser) return in changeUser()
183 currentUser = newUser in changeUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/quickaffordance/
DKeyguardQuickAffordanceRemoteUserSelectionManager.kt61 override fun onUserChanged(newUser: Int, userContext: Context) { in <lambda>()
62 trySendWithFailureLogging(newUser, TAG) in <lambda>()
DKeyguardQuickAffordanceLocalUserSelectionManager.kt64 override fun onUserChanged(newUser: Int, userContext: Context) { in <lambda>()
65 trySendWithFailureLogging(newUser, TAG) in <lambda>()
/frameworks/base/services/core/java/com/android/server/am/
DUserSwitchingDialog.java88 UserSwitchingDialog(Context context, UserInfo oldUser, UserInfo newUser, in UserSwitchingDialog() argument
95 mNewUser = newUser; in UserSwitchingDialog()
101 mNeedToFreezeScreen = !mDisableAnimations && !isUserSetupComplete(newUser); in UserSwitchingDialog()
102 mTraceCookie = UserHandle.MAX_SECONDARY_USER_ID * oldUser.id + newUser.id; in UserSwitchingDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/log/
DScreenDecorationsLogger.kt206 fun logUserSwitched(newUser: Int) { in logUserSwitched()
210 { int1 = newUser }, in logUserSwitched()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/start/
DControlsStartable.kt89 override fun onUserChanged(newUser: Int, userContext: Context) { in <lambda>()
90 controlsController.changeUser(UserHandle.of(newUser)) in <lambda>()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DStartUserClient.java43 void onUserStarted(int newUserId, U newUser, int halInterfaceVersion); in onUserStarted() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationSettingsController.java90 public void onUserChanged(int newUser, Context userContext) { in NotificationSettingsController()
98 uri, false, mContentObserver, newUser); in NotificationSettingsController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeviceProvisionedControllerImpl.kt106 override fun onUserChanged(newUser: Int, userContext: Context) { in onUserChanged()
107 updateValues(updateDeviceProvisioned = false, updateUser = newUser) in onUserChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationModeController.java76 public void onUserChanged(int newUser, @NonNull Context userContext) {
79 + newUser);
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/
DWebViewUpdateServiceTest.java715 int newUser = 100; in testAddingNewUserWithUninstalledPackage() local
716 mTestSystemImpl.addUser(newUser); in testAddingNewUserWithUninstalledPackage()
718 mTestSystemImpl.setPackageInfoForUser(newUser, in testAddingNewUserWithUninstalledPackage()
721 mTestSystemImpl.setPackageInfoForUser(newUser, in testAddingNewUserWithUninstalledPackage()
724 mWebViewUpdateServiceImpl.handleNewUser(newUser); in testAddingNewUserWithUninstalledPackage()
1625 int newUser = 100; in testAddingNewUserWithDefaultdPackageNotInstalled() local
1626 mTestSystemImpl.addUser(newUser); in testAddingNewUserWithDefaultdPackageNotInstalled()
1627 mTestSystemImpl.setPackageInfoForUser(newUser, in testAddingNewUserWithDefaultdPackageNotInstalled()
1631 mWebViewUpdateServiceImpl.handleNewUser(newUser); in testAddingNewUserWithDefaultdPackageNotInstalled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
DUserTrackerImplTest.kt475 override fun onUserChanging(newUser: Int, userContext: Context) { in <lambda>()
477 lastUser = newUser in <lambda>()
481 override fun onUserChanged(newUser: Int, userContext: Context) { in <lambda>()
483 lastUser = newUser in <lambda>()

1234