Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerServiceImpl.java81 private int mCurrentUser; field in TunerServiceImpl
94 mCurrentUser = user.getUserHandle().getIdentifier(); in TunerServiceImpl()
100 mCurrentUser = ActivityManager.getCurrentUser(); in TunerServiceImpl()
104 mCurrentUser = newUserId; in TunerServiceImpl()
129 TextUtils.join(",", iconBlacklist), mCurrentUser); in upgradeTuner()
138 final int user = mCurrentUser; in upgradeTuner()
147 return Settings.Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue()
152 Settings.Secure.putStringForUser(mContentResolver, setting, value, mCurrentUser); in setValue()
157 return Settings.Secure.getIntForUser(mContentResolver, setting, def, mCurrentUser); in getValue()
162 String ret = Secure.getStringForUser(mContentResolver, setting, mCurrentUser); in getValue()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DCurrentUserObservable.java31 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/
DColorDisplayService.java168 private int mCurrentUser = UserHandle.USER_NULL; field in ColorDisplayService
201 if (mCurrentUser != UserHandle.USER_NULL && mUserSetupObserver == null) { in onBootPhase()
211 if (mCurrentUser == UserHandle.USER_NULL) { in onStartUser()
231 if (mCurrentUser == userHandle) { in onStopUser()
241 if (mCurrentUser != UserHandle.USER_NULL) { in onUserChanged()
250 mCurrentUser = userHandle; in onUserChanged()
252 if (mCurrentUser != UserHandle.USER_NULL) { in onUserChanged()
253 if (!isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged()
257 if (isUserSetupCompleted(cr, mCurrentUser)) { in onUserChanged()
268 false /* notifyForDescendants */, mUserSetupObserver, mCurrentUser); in onUserChanged() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerTest.java100 private UserInfo mCurrentUser; field in NotificationLockscreenUserManagerTest
114 mCurrentUser = new UserInfo(currentUserId, "", 0); in setUp()
120 mCurrentUser, mSecondaryUser, mWorkUser)); in setUp()
128 .setUser(new UserHandle(mCurrentUser.id)) in setUp()
170 assertTrue(mLockscreenUserManager.userAllowsPrivateNotificationsInPublic(mCurrentUser.id)); in testLockScreenAllowPrivateNotificationsTrue()
176 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 0, mCurrentUser.id); in testLockScreenAllowPrivateNotificationsFalse()
178 assertFalse(mLockscreenUserManager.userAllowsPrivateNotificationsInPublic(mCurrentUser.id)); in testLockScreenAllowPrivateNotificationsFalse()
201 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 0, mCurrentUser.id); in testCurrentUserPrivateNotificationsNotRedacted()
212 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1, mCurrentUser.id); in testCurrentUserPrivateNotificationsRedacted()
247 Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 0, mCurrentUser.id); in testWorkPrivateNotificationsNotRedacted_otherUsersRedacted()
[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.java252 int mCurrentUser; field in RootWindowContainer
1280 mStackSupervisor.mRecentTasks.isRecentsComponentHomeActivity(mCurrentUser)); in dumpDebug()
1465 startHomeOnTaskDisplayArea(mCurrentUser, reason, taskDisplayArea, in startHomeOnEmptyDisplays()
1677 return startHomeOnTaskDisplayArea(mCurrentUser, myReason, taskDisplayArea, in resumeHomeActivity()
1707 if (!StorageManager.isUserKeyUnlocked(mCurrentUser)) { in shouldPlaceSecondaryHomeOnDisplayArea()
2023 mUserStackInFront.put(mCurrentUser, focusStackId); in switchUser()
2024 mCurrentUser = userId; in switchUser()
2062 if (userId != mCurrentUser) { in updateUserStack()
2444 info.userId = stack.mCurrentUser; in getStackInfo()
2548 startHomeOnDisplay(mCurrentUser, "displayAdded", displayContent.getDisplayId()); in startSystemDecorations()
DActivityStack.java244 int mCurrentUser; field in ActivityStack
565 mCurrentUser = mAtmService.mAmInternal.getCurrentUserId(); in ActivityStack()
925 if (mCurrentUser == userId) { in switchUser()
928 mCurrentUser = userId; in switchUser()
DTaskDisplayArea.java832 EventLogTags.writeWmFocusedStack(mRootWindowContainer.mCurrentUser, in positionStackAt()
1616 return getHomeActivityForUser(mRootWindowContainer.mCurrentUser); in getHomeActivity()
DActivityStackSupervisor.java520 return getNextTaskIdForUser(mRootWindowContainer.mCurrentUser); in getNextTaskIdForUser()
1806 if (userId == mRootWindowContainer.mCurrentUser) return true; in isCurrentProfileLocked()
1913 pw.println(mRecentTasks.isRecentsComponentHomeActivity(mRootWindowContainer.mCurrentUser)); in dump()
DActivityStarter.java2840 pw.println(mRootWindowContainer.mCurrentUser); in dump()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/
DClockManagerTest.java71 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DAccessPointControllerImpl.java52 private int mCurrentUser; field in AccessPointControllerImpl
58 mCurrentUser = ActivityManager.getCurrentUser(); in AccessPointControllerImpl()
69 new UserHandle(mCurrentUser)); in canConfigWifi()
73 mCurrentUser = newUserId; in onUserSwitched()
DBluetoothControllerImpl.java61 private final int mCurrentUser; field in BluetoothControllerImpl
90 mCurrentUser = ActivityManager.getCurrentUser(); in BluetoothControllerImpl()
96 UserHandle.of(mCurrentUser)) in canConfigBluetooth()
98 UserHandle.of(mCurrentUser)); in canConfigBluetooth()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java59 private UserHandle mCurrentUser; field in AutoTileManager
83 mCurrentUser = mHost.getUserContext().getUser(); in AutoTileManager()
84 mAutoTracker = autoAddTrackerBuilder.setUserId(mCurrentUser.getIdentifier()).build(); in AutoTileManager()
177 if (newUser.getIdentifier() == mCurrentUser.getIdentifier()) { in changeUser()
181 mCurrentUser = newUser; in changeUser()
192 return mCurrentUser.getIdentifier(); in getCurrentUserId()
DManagedProfileControllerImpl.java48 private int mCurrentUser; field in ManagedProfileControllerImpl
97 if (mProfiles.size() == 0 && hadProfile && (user == mCurrentUser)) { in reloadManagedProfiles()
102 mCurrentUser = user; in reloadManagedProfiles()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java99 private int mCurrentUser; field in QSTileHost
256 if (currentUser != mCurrentUser) { in onTuningChanged()
262 if (tileSpecs.equals(mTileSpecs) && currentUser == mCurrentUser) return; in onTuningChanged()
277 if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) { in onTuningChanged()
314 mCurrentUser = currentUser; in onTuningChanged()
348 false /* default */, mCurrentUser, true /* overrideable by restore */); in saveTilesToSettings()
353 TILES_SETTING, mCurrentUser); in changeTileSpecs()
399 new UserHandle(mCurrentUser), in changeTiles()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLocationPermissionCheckerTest.java85 private int mCurrentUser; field in LocationPermissionCheckerTest
136 mCurrentUser = ActivityManager.getCurrentUser(); in initTestVars()
182 mUid = mCurrentUser;
196 mUid = mCurrentUser;
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java184 private int mCurrentUser = UserHandle.USER_SYSTEM; field in TrustManagerService
255 mCurrentUser); in updateContentObserver()
259 mCurrentUser); in updateContentObserver()
278 mCurrentUser) != 0; in onChange()
285 mCurrentUser) != 0; in onChange()
299 if (userId != mCurrentUser) { in maybeLockScreen()
331 userId = mCurrentUser; in handleScheduleTrustTimeout()
415 && userId == mCurrentUser; in updateTrust()
419 + " && " + Boolean.toString(userId == mCurrentUser)); in updateTrust()
673 if (mCurrentUser == id) { in refreshDeviceLockedForUser()
[all …]
/frameworks/base/tests/UsbTests/src/com/android/server/usb/
DUsbHandlerTest.java310 UsbDeviceManager.UNLOCKED_CONFIG_PREF, mUsbHandler.mCurrentUser), in setScreenUnlockedFunctions()
318 UsbDeviceManager.UNLOCKED_CONFIG_PREF, mUsbHandler.mCurrentUser), "")) in unlockScreen()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DWifiPermissionsUtilTest.java118 private int mCurrentUser; field in WifiPermissionsUtilTest
181 mCurrentUser = UserHandle.USER_SYSTEM; in testCanReadPeersMacAddressCurrentUserAndAllPermissions()
294 mCurrentUser = UserHandle.USER_SYSTEM; in testLegacyForegroundAppWithOtherPermissionsDenied()
1296 mCurrentUser = UserHandle.USER_SYSTEM;
1312 when(mMockPermissionsWrapper.getCurrentUser()).thenReturn(mCurrentUser);
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRootActivityContainerTests.java640 final int currentUser = mRootWindowContainer.mCurrentUser; in testStartSecondaryHomeOnDisplayWithUserKeyLocked()
641 mRootWindowContainer.mCurrentUser = -1; in testStartSecondaryHomeOnDisplayWithUserKeyLocked()
649 mRootWindowContainer.mCurrentUser = currentUser; in testStartSecondaryHomeOnDisplayWithUserKeyLocked()
890 int currentUser = mRootWindowContainer.mCurrentUser; in testSwitchUser_missingHomeRootTask()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbDeviceManager.java485 protected int mCurrentUser; field in UsbDeviceManager.UsbHandler
503 mCurrentUser = ActivityManager.getCurrentUser(); in UsbHandler()
512 String.format(Locale.ENGLISH, UNLOCKED_CONFIG_PREF, mCurrentUser), in UsbHandler()
910 mCurrentUser), in handleMessage()
976 if (mCurrentUser != msg.arg1) { in handleMessage()
980 mCurrentUser = msg.arg1; in handleMessage()
986 UNLOCKED_CONFIG_PREF, mCurrentUser), "")); in handleMessage()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java1733 private int mCurrentUser;
1737 mCurrentUser = ActivityManager.getCurrentUser();
1742 return UserHandle.getUserId(entry.info.uid) == mCurrentUser;
1760 private int mCurrentUser;
1764 mCurrentUser = ActivityManager.getCurrentUser();
1769 return UserHandle.getUserId(entry.info.uid) != mCurrentUser;
/frameworks/base/core/java/android/service/notification/
DNotificationListenerService.java331 protected int mCurrentUser; field in NotificationListenerService
1171 mCurrentUser = currentUser; in registerAsSystemService()
1187 noMan.unregisterListener(mWrapper, mCurrentUser); in unregisterAsSystemService()