Home
last modified time | relevance | path

Searched refs:mCurrentUser (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerTest.java156 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/
DKeyguardQsUserSwitchController.java84 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 …]
DBluetoothControllerImpl.java73 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/
DTunerServiceImpl.java96 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/
DColorDisplayService.java171 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/
DCrossUserPackageVisibilityTests.java102 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/
DKeyguardDisableHandler.java43 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()
DRootWindowContainer.java257 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()
DTaskDisplayArea.java1231 EventLogTags.writeWmFocusedRootTask(mRootWindowContainer.mCurrentUser,
1593 return getHomeActivityForUser(mRootWindowContainer.mCurrentUser);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java110 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/
DManagedProfileControllerImpl.java48 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()
DAutoTileManager.java76 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/
DAccessPointControllerImpl.java67 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/
DSystemServiceManager.java129 @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);
DUiModeManagerService.java199 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/
DSensorPrivacyService.java201 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/
DUsbHandlerTest.java364 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/
DTrustManagerService.java254 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/
DRavenwoodRule.java118 int mCurrentUser = USER_SYSTEM; field in RavenwoodRule
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java588 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/
DKeyguardSecurityContainerController.java157 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/
DRavenwoodRuleImpl.java108 ActivityManager.init$ravenwood(rule.mCurrentUser); in init()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRootWindowContainerTests.java977 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/
DNotificationListenerService.java443 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/
DApplicationsState.java1922 private int mCurrentUser;
1926 mCurrentUser = ActivityManager.getCurrentUser();

12