/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/ |
D | NotificationLockscreenUserManagerTest.java | 156 private UserInfo mCurrentUser; field in NotificationLockscreenUserManagerTest 181 mCurrentUser = new UserInfo(currentUserId, "", 0); in setUp() 190 mCurrentUser, mWorkUser)); in setUp() 192 Lists.newArrayList(mCurrentUser, mWorkUser, mCommunalUser)); in setUp() 194 mCurrentUser, mWorkUser, mSecondaryUser, mCommunalUser)); in setUp() 204 .setUser(new UserHandle(mCurrentUser.id)) in setUp() 230 .setUser(new UserHandle(mCurrentUser.id)) in setUp() 273 expectedCurProfiles.put(mCurrentUser.id, mCurrentUser); in testGetCurrentProfiles() 308 assertTrue(mLockscreenUserManager.userAllowsPrivateNotificationsInPublic(mCurrentUser.id)); in testLockScreenAllowPrivateNotificationsTrue() 314 mCurrentUser.id); in testLockScreenAllowPrivateNotificationsFalse() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyguardQsUserSwitchController.java | 84 UserRecord mCurrentUser; field in KeyguardQsUserSwitchController 276 UserRecord previousUser = mCurrentUser; in updateCurrentUser() 277 mCurrentUser = null; in updateCurrentUser() 281 mCurrentUser = r; in updateCurrentUser() 282 return !mCurrentUser.equals(previousUser); in updateCurrentUser() 285 return mCurrentUser == null && previousUser != null; in updateCurrentUser() 289 if (mCurrentUser != null && mCurrentUser.info != null in getContentDescription() 290 && !TextUtils.isEmpty(mCurrentUser.info.name)) { in getContentDescription() 294 R.string.accessibility_quick_settings_user, mCurrentUser.info.name); in getContentDescription() 304 int userId = mCurrentUser != null ? mCurrentUser.resolveId() : UserHandle.USER_NULL; in updateView() [all …]
|
D | BluetoothControllerImpl.java | 73 private final int mCurrentUser; field in BluetoothControllerImpl 115 mCurrentUser = userTracker.getUserId(); in BluetoothControllerImpl() 123 UserHandle.of(mCurrentUser)) in canConfigBluetooth() 125 UserHandle.of(mCurrentUser)); in canConfigBluetooth()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunerServiceImpl.java | 96 private int mCurrentUser; field in TunerServiceImpl 121 mCurrentUser = user.getUserHandle().getIdentifier(); in TunerServiceImpl() 127 mCurrentUser = mUserTracker.getUserId(); in TunerServiceImpl() 131 mCurrentUser = newUser; in TunerServiceImpl() 157 TextUtils.join(",", iconHideList), mCurrentUser); in upgradeTuner() 166 final int user = mCurrentUser; in upgradeTuner() 175 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue() 180 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser); in setValue() 185 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser); in getValue() 190 String ret = Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | ColorDisplayService.java | 171 private int mCurrentUser = UserHandle.USER_NULL; field in ColorDisplayService 207 if (mCurrentUser != UserHandle.USER_NULL && mUserSetupObserver == null) { in onBootPhase() 215 if (mCurrentUser == UserHandle.USER_NULL) { in onUserStarting() 231 if (mCurrentUser == user.getUserIdentifier()) { in onUserStopping() 243 if (mCurrentUser != UserHandle.USER_NULL) { in onUserChanged() 252 mCurrentUser = userHandle; in onUserChanged() 254 if (mCurrentUser != UserHandle.USER_NULL) { in onUserChanged() 255 if (!isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged() 259 if (isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged() 270 false /* notifyForDescendants */, mUserSetupObserver, mCurrentUser); in onUserChanged() local [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/ |
D | CrossUserPackageVisibilityTests.java | 102 private UserReference mCurrentUser; field in CrossUserPackageVisibilityTests 114 mCurrentUser = primaryUser; in setup() 117 mCurrentUser = sDeviceState.secondaryUser(); in setup() 199 uninstallPackageForUser(CROSS_USER_TEST_PACKAGE_NAME, mCurrentUser); in testGetFlagsForUid_cannotDetectCrossUserPkg() 229 CROSS_USER_TEST_PACKAGE_NAME, true, mCurrentUser.id())).isTrue(); in testGetBlockUninstallForUser_cannotDetectStubPkg() 232 CROSS_USER_TEST_PACKAGE_NAME, mCurrentUser.id())).isFalse(); in testGetBlockUninstallForUser_cannotDetectStubPkg() 237 CROSS_USER_TEST_PACKAGE_NAME, mCurrentUser.id())).isFalse(); in testGetBlockUninstallForUser_cannotDetectStubPkg() 240 CROSS_USER_TEST_PACKAGE_NAME, false, mCurrentUser.id())).isTrue(); in testGetBlockUninstallForUser_cannotDetectStubPkg() 263 mCurrentUser.id())).isFalse(); in testActivitySupportsIntentAsUser_cannotDetectStubPkg() 271 mCurrentUser.id())).isFalse(); in testActivitySupportsIntentAsUser_cannotDetectStubPkg() [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 | 257 int mCurrentUser; field in RootWindowContainer 1202 mTaskSupervisor.mRecentTasks.isRecentsComponentHomeActivity(mCurrentUser)); in dumpDebug() 1688 if (!StorageManager.isCeStorageUnlocked(mCurrentUser)) { in shouldPlaceSecondaryHomeOnDisplayArea() 1929 mUserRootTaskInFront.put(mCurrentUser, focusRootTaskId); in switchUser() 1930 mCurrentUser = userId; in switchUser() 1942 mUserRootTaskInFront.put(mCurrentUser, focusRootTaskId); in switchUser() 1976 if (userId != mCurrentUser) { in updateUserRootTask() 2786 startHomeOnDisplay(mCurrentUser, "displayAdded", displayContent.getDisplayId()); in startSystemDecorations()
|
D | TaskDisplayArea.java | 1231 EventLogTags.writeWmFocusedRootTask(mRootWindowContainer.mCurrentUser, 1593 return getHomeActivityForUser(mRootWindowContainer.mCurrentUser);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSTileHost.java | 110 private int mCurrentUser; field in QSTileHost 160 mCurrentUser = userTracker.getUserId(); in QSTileHost() 244 return mCurrentUser; in getUserId() 284 if (currentUser != mCurrentUser) { in onTuningChanged() 299 if (tileSpecs.equals(mTileSpecs) && currentUser == mCurrentUser) return; in onTuningChanged() 315 if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) { in onTuningChanged() 353 mCurrentUser = currentUser; in onTuningChanged() 386 setTileAdded(CustomTile.getComponentFromSpec(spec), mCurrentUser, false); in removeTile() local 431 Log.d(TAG, "Saving tiles: " + tileSpecs + " for user: " + mCurrentUser); in saveTilesToSettings() 433 null /* tag */, false /* default */, mCurrentUser, in saveTilesToSettings() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ManagedProfileControllerImpl.java | 48 private int mCurrentUser; field in ManagedProfileControllerImpl 99 if (mProfiles.size() == 0 && hadProfile && (user == mCurrentUser)) { in reloadManagedProfiles() 102 mCurrentUser = user; in reloadManagedProfiles() 114 if (!mListening || mUserTracker.getUserId() != mCurrentUser) { in hasActiveProfile()
|
D | AutoTileManager.java | 76 private UserHandle mCurrentUser; field in AutoTileManager 115 mCurrentUser = mHost.getUserContext().getUser(); in AutoTileManager() 116 mAutoTracker = autoAddTrackerBuilder.setUserId(mCurrentUser.getIdentifier()).build(); in AutoTileManager() 167 .setUser(mCurrentUser.getIdentifier()) in startControllersAndSettingsListeners() 251 mSecureSettings, mHandler, setting, mCurrentUser.getIdentifier(), spec); in populateSettingsList() 271 if (newUser.getIdentifier() == mCurrentUser.getIdentifier()) { in changeUser() 275 mCurrentUser = newUser; in changeUser() 286 return mCurrentUser.getIdentifier(); in getCurrentUserId()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/ |
D | AccessPointControllerImpl.java | 67 private int mCurrentUser; field in AccessPointControllerImpl 77 mCurrentUser = userTracker.getUserId(); in AccessPointControllerImpl() 109 new UserHandle(mCurrentUser)); in canConfigWifi() 114 UserHandle.of(mCurrentUser)) && mUserTracker.getUserInfo().isAdmin(); in canConfigMobileData() 118 mCurrentUser = newUserId; in onUserSwitched()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemServiceManager.java | 129 @Nullable private TargetUser mCurrentUser; field in SystemServiceManager 435 if (mCurrentUser == null) { in onUserSwitching() 441 if (from != mCurrentUser.getUserIdentifier()) { in onUserSwitching() 443 + mCurrentUser + ", it should be " + from); in onUserSwitching() 445 prevUser = mCurrentUser; in onUserSwitching() 447 curUser = mCurrentUser = getTargetUser(to); in onUserSwitching() 450 Slog.d(TAG, "Set mCurrentUser to " + mCurrentUser); in onUserSwitching() 774 if (mCurrentUser != null) { 776 mCurrentUser.dump(pw);
|
D | UiModeManagerService.java | 199 private int mCurrentUser; field in UiModeManagerService 404 mUiModeManagerCallbacks.get(mCurrentUser, new RemoteCallbackList<>()) 433 mCurrentUser = to.getUserIdentifier(); in onUserSwitching() 533 persistComputedNightMode(mCurrentUser); 1010 if (user != mCurrentUser && getContext().checkCallingOrSelfPermission( in setNightModeActivatedForModeInternal() 1034 mOverrideNightModeUser = mCurrentUser; in setNightModeActivatedForModeInternal() 1035 persistNightModeOverrides(mCurrentUser); in setNightModeActivatedForModeInternal() 1045 persistNightMode(mCurrentUser); in setNightModeActivatedForModeInternal() 1265 + " isSystemUser=" + (userId == USER_SYSTEM) + " current user=" + mCurrentUser in enforceValidCallingUser() 1271 if (userId != USER_SYSTEM && userId != mCurrentUser in enforceValidCallingUser() [all …]
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | SensorPrivacyService.java | 201 private int mCurrentUser = USER_NULL; field in SensorPrivacyService 243 if (mCurrentUser == USER_NULL) { in onUserStarting() 244 mCurrentUser = user.getUserIdentifier(); in onUserStarting() 251 mCurrentUser = to.getUserIdentifier(); in onUserSwitching() 437 UserHandle user = UserHandle.of(mCurrentUser); in onSensorUseStarted() 799 userId = mCurrentUser; in setToggleSensorPrivacy() 830 userId = mCurrentUser; in setToggleSensorPrivacyState() 946 userId = mCurrentUser; in setToggleSensorPrivacyStateForProfileGroup() 989 int state = mSensorPrivacyStateController.getState(TOGGLE_TYPE_SOFTWARE, mCurrentUser, in isCameraPrivacyEnabled() 1020 return mSensorPrivacyStateController.getState(toggleType, mCurrentUser, sensor) in getToggleSensorPrivacyState() [all …]
|
/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
D | UsbHandlerTest.java | 364 UsbDeviceManager.UNLOCKED_CONFIG_PREF, mUsbHandler.mCurrentUser), in setScreenUnlockedFunctions() 372 UsbDeviceManager.UNLOCKED_CONFIG_PREF, mUsbHandler.mCurrentUser), "")) in unlockScreen()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 254 private int mCurrentUser = UserHandle.USER_SYSTEM; field in TrustManagerService 383 int userId = mCurrentUser; in handleScheduleTrustTimeout() 630 boolean updatingTrustForCurrentUser = (userId == mCurrentUser); in updateTrust() 1039 if (mCurrentUser == id) { in refreshDeviceLockedForUser() 1460 if (info.userId == mCurrentUser) { in dispatchTrustableDowngrade() 1908 dumpUser(fout, user, user.id == mCurrentUser); 2145 refreshDeviceLockedForUser(mCurrentUser); in createHandler() 2153 mCurrentUser = msg.arg1; in createHandler()
|
/frameworks/base/ravenwood/junit-src/android/platform/test/ravenwood/ |
D | RavenwoodRule.java | 118 int mCurrentUser = USER_SYSTEM; field in RavenwoodRule
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDeviceManager.java | 588 protected int mCurrentUser; field in UsbDeviceManager.UsbHandler 625 mCurrentUser = ActivityManager.getCurrentUser(); in UsbHandler() 634 String.format(Locale.ENGLISH, UNLOCKED_CONFIG_PREF, mCurrentUser), in UsbHandler() 1263 mCurrentUser), in handleMessage() 1334 if (mCurrentUser != msg.arg1) { in handleMessage() 1338 mCurrentUser = msg.arg1; in handleMessage() 1344 UNLOCKED_CONFIG_PREF, mCurrentUser), "")); in handleMessage()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSecurityContainerController.java | 157 private int mCurrentUser = UserHandle.USER_NULL; field in KeyguardSecurityContainerController 162 if (mCurrentUser == mSelectedUserInteractor.getSelectedUserId()) { 165 mCurrentUser = mSelectedUserInteractor.getSelectedUserId();
|
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/ |
D | RavenwoodRuleImpl.java | 108 ActivityManager.init$ravenwood(rule.mCurrentUser); in init()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RootWindowContainerTests.java | 977 final int currentUser = mRootWindowContainer.mCurrentUser; in testStartSecondaryHomeOnDisplayWithUserKeyLocked() 978 mRootWindowContainer.mCurrentUser = -1; in testStartSecondaryHomeOnDisplayWithUserKeyLocked() 986 mRootWindowContainer.mCurrentUser = currentUser; in testStartSecondaryHomeOnDisplayWithUserKeyLocked() 1225 int currentUser = mRootWindowContainer.mCurrentUser; in testSwitchUser_missingHomeRootTask()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotificationListenerService.java | 443 protected int mCurrentUser; field in NotificationListenerService 1312 mCurrentUser = currentUser; in registerAsSystemService() 1328 noMan.unregisterListener(mWrapper, mCurrentUser); in unregisterAsSystemService()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 1922 private int mCurrentUser; 1926 mCurrentUser = ActivityManager.getCurrentUser();
|