/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyguardQsUserSwitchController.java | 79 UserSwitcherController.UserRecord mCurrentUser; field in KeyguardQsUserSwitchController 207 UserSwitcherController.UserRecord previousUser = mCurrentUser; in updateCurrentUser() 208 mCurrentUser = null; in updateCurrentUser() 212 mCurrentUser = r; in updateCurrentUser() 213 return !mCurrentUser.equals(previousUser); in updateCurrentUser() 216 return mCurrentUser == null && previousUser != null; in updateCurrentUser() 228 if (mCurrentUser != null && mCurrentUser.info != null && !TextUtils.isEmpty( in updateView() 229 mCurrentUser.info.name)) { in updateView() 233 mCurrentUser.info.name); in updateView() 244 int userId = mCurrentUser != null ? mCurrentUser.resolveId() : UserHandle.USER_NULL; in updateView() [all …]
|
D | AccessPointControllerImpl.java | 78 private int mCurrentUser; field in AccessPointControllerImpl 87 mCurrentUser = userTracker.getUserId(); in AccessPointControllerImpl() 118 new UserHandle(mCurrentUser)); in canConfigWifi() 122 mCurrentUser = newUserId; in onUserSwitched()
|
D | BluetoothControllerImpl.java | 66 private final int mCurrentUser; field in BluetoothControllerImpl 101 mCurrentUser = ActivityManager.getCurrentUser(); in BluetoothControllerImpl() 108 UserHandle.of(mCurrentUser)) in canConfigBluetooth() 110 UserHandle.of(mCurrentUser)); in canConfigBluetooth()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunerServiceImpl.java | 88 private int mCurrentUser; field in TunerServiceImpl 111 mCurrentUser = user.getUserHandle().getIdentifier(); in TunerServiceImpl() 117 mCurrentUser = mUserTracker.getUserId(); in TunerServiceImpl() 121 mCurrentUser = newUser; in TunerServiceImpl() 147 TextUtils.join(",", iconHideList), mCurrentUser); in upgradeTuner() 156 final int user = mCurrentUser; in upgradeTuner() 165 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue() 170 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser); in setValue() 175 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser); in getValue() 180 String ret = Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | CurrentUserObservable.java | 31 private final MutableLiveData<Integer> mCurrentUser = new MutableLiveData<Integer>() { field in CurrentUserObservable 49 mCurrentUser.setValue(newUserId); in CurrentUserObservable() 58 if (mCurrentUser.getValue() == null) { in getCurrentUser() 59 mCurrentUser.setValue(mTracker.getCurrentUserId()); in getCurrentUser() 61 return mCurrentUser; in getCurrentUser()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | ColorDisplayService.java | 169 private int mCurrentUser = UserHandle.USER_NULL; field in ColorDisplayService 203 if (mCurrentUser != UserHandle.USER_NULL && mUserSetupObserver == null) { in onBootPhase() 211 if (mCurrentUser == UserHandle.USER_NULL) { in onUserStarting() 227 if (mCurrentUser == user.getUserIdentifier()) { in onUserStopping() 237 if (mCurrentUser != UserHandle.USER_NULL) { in onUserChanged() 246 mCurrentUser = userHandle; in onUserChanged() 248 if (mCurrentUser != UserHandle.USER_NULL) { in onUserChanged() 249 if (!isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged() 253 if (isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged() 264 false /* notifyForDescendants */, mUserSetupObserver, mCurrentUser); in onUserChanged() local [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationLockscreenUserManagerTest.java | 102 private UserInfo mCurrentUser; field in NotificationLockscreenUserManagerTest 116 mCurrentUser = new UserInfo(currentUserId, "", 0); in setUp() 122 mCurrentUser, mSecondaryUser, mWorkUser)); in setUp() 130 .setUser(new UserHandle(mCurrentUser.id)) in setUp() 172 assertTrue(mLockscreenUserManager.userAllowsPrivateNotificationsInPublic(mCurrentUser.id)); in testLockScreenAllowPrivateNotificationsTrue() 178 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 0, mCurrentUser.id); in testLockScreenAllowPrivateNotificationsFalse() 180 assertFalse(mLockscreenUserManager.userAllowsPrivateNotificationsInPublic(mCurrentUser.id)); in testLockScreenAllowPrivateNotificationsFalse() 203 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 0, mCurrentUser.id); in testCurrentUserPrivateNotificationsNotRedacted() 214 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1, mCurrentUser.id); in testCurrentUserPrivateNotificationsRedacted() 249 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 0, mCurrentUser.id); in testWorkPrivateNotificationsNotRedacted_otherUsersRedacted() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | KeyguardDisableHandler.java | 43 private int mCurrentUser = UserHandle.USER_SYSTEM; field in KeyguardDisableHandler 55 mCurrentUser = user; in setCurrentUser() 67 if (mCurrentUser == userId || userId == UserHandle.USER_ALL) { in updateKeyguardEnabledLocked() 68 mInjector.enableKeyguard(shouldKeyguardBeEnabled(mCurrentUser)); in updateKeyguardEnabledLocked() 97 final boolean dpmRequiresPassword = mInjector.dpmRequiresPassword(mCurrentUser); in shouldKeyguardBeEnabled() 98 final boolean keyguardSecure = mInjector.isKeyguardSecure(mCurrentUser); in shouldKeyguardBeEnabled()
|
D | RootWindowContainer.java | 261 int mCurrentUser; field in RootWindowContainer 1278 mTaskSupervisor.mRecentTasks.isRecentsComponentHomeActivity(mCurrentUser)); in dumpDebug() 1462 startHomeOnTaskDisplayArea(mCurrentUser, reason, taskDisplayArea, in startHomeOnEmptyDisplays() 1676 return startHomeOnTaskDisplayArea(mCurrentUser, myReason, taskDisplayArea, in resumeHomeActivity() 1712 if (!StorageManager.isUserKeyUnlocked(mCurrentUser)) { in shouldPlaceSecondaryHomeOnDisplayArea() 2008 mUserRootTaskInFront.put(mCurrentUser, focusRootTaskId); in switchUser() 2009 mCurrentUser = userId; in switchUser() 2040 if (userId != mCurrentUser) { in updateUserRootTask() 2557 startHomeOnDisplay(mCurrentUser, "displayAdded", displayContent.getDisplayId()); in startSystemDecorations()
|
D | ActivityTaskSupervisor.java | 518 return getNextTaskIdForUser(mRootWindowContainer.mCurrentUser); in getNextTaskIdForUser() 1861 if (userId == mRootWindowContainer.mCurrentUser) return true; in isCurrentProfileLocked() 1963 pw.println(mRecentTasks.isRecentsComponentHomeActivity(mRootWindowContainer.mCurrentUser)); in dump()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/ |
D | ClockManagerTest.java | 71 private MutableLiveData<Integer> mCurrentUser; field in ClockManagerTest 90 mCurrentUser = new MutableLiveData<>(); in setUp() 91 mCurrentUser.setValue(MAIN_USER_ID); in setUp() 92 when(mMockCurrentUserObserable.getCurrentUser()).thenReturn(mCurrentUser); in setUp() 228 mCurrentUser.setValue(SECONDARY_USER_ID); in onUserChanged_defaultClock() 239 mCurrentUser.setValue(SECONDARY_USER_ID); in onUserChanged_customClock() 251 mCurrentUser.setValue(SECONDARY_USER_ID); in onUserChanged_docked()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemServiceManager.java | 99 private @Nullable TargetUser mCurrentUser; field in SystemServiceManager 322 if (mCurrentUser == null) { in onUserSwitching() 328 if (from != mCurrentUser.getUserIdentifier()) { in onUserSwitching() 330 + mCurrentUser + ", it should be " + from); in onUserSwitching() 332 prevUser = mCurrentUser; in onUserSwitching() 334 curUser = mCurrentUser = getTargetUser(to); in onUserSwitching() 336 Slog.d(TAG, "Set mCurrentUser to " + mCurrentUser); in onUserSwitching() 502 if (mCurrentUser != null) { in dump() 503 pw.print("Current user: "); mCurrentUser.dump(pw); pw.println(); in dump()
|
D | SensorPrivacyService.java | 198 private int mCurrentUser = -1; field in SensorPrivacyService 231 if (mCurrentUser == -1) { in onUserStarting() 232 mCurrentUser = user.getUserIdentifier(); in onUserStarting() 239 mCurrentUser = to.getUserIdentifier(); in onUserSwitching() 713 userId = mCurrentUser; in setIndividualSensorPrivacy() 841 userId = mCurrentUser; in setIndividualSensorPrivacyForProfileGroup() 897 userId = mCurrentUser; in isIndividualSensorPrivacyEnabled() 1225 userId = mCurrentUser; in suppressIndividualSensorPrivacyReminders() 1258 if (!isIndividualSensorPrivacyEnabled(mCurrentUser, sensor)) { in showSensorUseDialog() 1262 -1, UserHandle.of(mCurrentUser), "android", sensor); in showSensorUseDialog() [all …]
|
D | UiModeManagerService.java | 152 private int mCurrentUser; field in UiModeManagerService 350 mCurrentUser = to.getUserIdentifier(); in onUserSwitching() 443 persistComputedNightMode(mCurrentUser); 819 if (user != mCurrentUser && getContext().checkCallingOrSelfPermission( 834 mOverrideNightModeUser = mCurrentUser; 835 persistNightModeOverrides(mCurrentUser); 845 persistNightMode(mCurrentUser);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSTileHost.java | 103 private int mCurrentUser; field in QSTileHost 247 return mCurrentUser; in getUserId() 270 if (currentUser != mCurrentUser) { in onTuningChanged() 276 if (tileSpecs.equals(mTileSpecs) && currentUser == mCurrentUser) return; in onTuningChanged() 291 if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) { in onTuningChanged() 328 mCurrentUser = currentUser; in onTuningChanged() 386 null /* tag */, false /* default */, mCurrentUser, in saveTilesToSettings() 391 final String setting = mSecureSettings.getStringForUser(TILES_SETTING, mCurrentUser); in changeTileSpecs() 442 new UserHandle(mCurrentUser), in changeTiles() 446 mCustomTileStatePersister.removeState(new TileServiceKey(component, mCurrentUser)); in changeTiles()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | AutoTileManager.java | 69 private UserHandle mCurrentUser; field in AutoTileManager 104 mCurrentUser = mHost.getUserContext().getUser(); in AutoTileManager() 105 mAutoTracker = autoAddTrackerBuilder.setUserId(mCurrentUser.getIdentifier()).build(); in AutoTileManager() 213 mSecureSettings, mHandler, setting, mCurrentUser.getIdentifier(), spec); in populateSettingsList() 233 if (newUser.getIdentifier() == mCurrentUser.getIdentifier()) { in changeUser() 237 mCurrentUser = newUser; in changeUser() 248 return mCurrentUser.getIdentifier(); in getCurrentUserId()
|
D | ManagedProfileControllerImpl.java | 50 private int mCurrentUser; field in ManagedProfileControllerImpl 101 if (mProfiles.size() == 0 && hadProfile && (user == mCurrentUser)) { in reloadManagedProfiles() 106 mCurrentUser = user; in reloadManagedProfiles()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 190 private int mCurrentUser = UserHandle.USER_SYSTEM; field in TrustManagerService 261 mCurrentUser); in updateContentObserver() 265 mCurrentUser); in updateContentObserver() 284 mCurrentUser) != 0; in onChange() 291 mCurrentUser) != 0; in onChange() 305 if (userId != mCurrentUser) { in maybeLockScreen() 337 userId = mCurrentUser; in handleScheduleTrustTimeout() 421 && userId == mCurrentUser; in updateTrust() 425 + " && " + Boolean.toString(userId == mCurrentUser)); in updateTrust() 679 if (mCurrentUser == id) { in refreshDeviceLockedForUser() [all …]
|
/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
D | UsbHandlerTest.java | 328 UsbDeviceManager.UNLOCKED_CONFIG_PREF, mUsbHandler.mCurrentUser), in setScreenUnlockedFunctions() 336 UsbDeviceManager.UNLOCKED_CONFIG_PREF, mUsbHandler.mCurrentUser), "")) in unlockScreen()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 539 protected int mCurrentUser; field in UsbDeviceManager.UsbHandler 559 mCurrentUser = ActivityManager.getCurrentUser(); in UsbHandler() 568 String.format(Locale.ENGLISH, UNLOCKED_CONFIG_PREF, mCurrentUser), in UsbHandler() 1004 mCurrentUser), in handleMessage() 1070 if (mCurrentUser != msg.arg1) { in handleMessage() 1074 mCurrentUser = msg.arg1; in handleMessage() 1080 UNLOCKED_CONFIG_PREF, mCurrentUser), "")); in handleMessage()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 1740 private int mCurrentUser; 1744 mCurrentUser = ActivityManager.getCurrentUser(); 1749 return UserHandle.getUserId(entry.info.uid) == mCurrentUser; 1767 private int mCurrentUser; 1771 mCurrentUser = ActivityManager.getCurrentUser(); 1776 return UserHandle.getUserId(entry.info.uid) != mCurrentUser;
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RootWindowContainerTests.java | 746 final int currentUser = mRootWindowContainer.mCurrentUser; in testStartSecondaryHomeOnDisplayWithUserKeyLocked() 747 mRootWindowContainer.mCurrentUser = -1; in testStartSecondaryHomeOnDisplayWithUserKeyLocked() 755 mRootWindowContainer.mCurrentUser = currentUser; in testStartSecondaryHomeOnDisplayWithUserKeyLocked() 998 int currentUser = mRootWindowContainer.mCurrentUser; in testSwitchUser_missingHomeRootTask()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/ |
D | OneHandedStateTest.java | 57 private int mCurrentUser = UserHandle.myUserId(); field in OneHandedStateTest
|
D | OneHandedControllerTest.java | 62 private int mCurrentUser = UserHandle.myUserId(); field in OneHandedControllerTest
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 401 protected int mCurrentUser; field in NotificationListenerService 1263 mCurrentUser = currentUser; in registerAsSystemService() 1279 noMan.unregisterListener(mWrapper, mCurrentUser); in unregisterAsSystemService()
|