Home
last modified time | relevance | path

Searched refs:currentUserId (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/
DActivityIntentHelper.java53 public boolean wouldLaunchResolverActivity(Intent intent, int currentUserId) { in wouldLaunchResolverActivity() argument
54 ActivityInfo targetActivityInfo = getTargetActivityInfo(intent, currentUserId, in wouldLaunchResolverActivity()
69 public ActivityInfo getTargetActivityInfo(Intent intent, int currentUserId, in getTargetActivityInfo() argument
78 intent, flags, currentUserId); in getTargetActivityInfo()
83 flags | PackageManager.GET_META_DATA, currentUserId); in getTargetActivityInfo()
98 public boolean wouldShowOverLockscreen(Intent intent, int currentUserId) { in wouldShowOverLockscreen() argument
100 currentUserId, false /* onlyDirectBootAware */); in wouldShowOverLockscreen()
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImpl.java245 int currentUserId = mEnvironment.getCurrentUserId(); in getCurrentUserConfigurationInternal() local
246 return getConfigurationInternal(currentUserId); in getCurrentUserConfigurationInternal()
284 int currentUserId = mEnvironment.getCurrentUserId(); in suggestGeolocationTimeZone() local
286 mEnvironment.getConfigurationInternal(currentUserId); in suggestGeolocationTimeZone()
310 int currentUserId = mEnvironment.getCurrentUserId(); in suggestManualTimeZone() local
311 if (userId != currentUserId) { in suggestManualTimeZone()
349 int currentUserId = mEnvironment.getCurrentUserId(); in suggestTelephonyTimeZone() local
351 mEnvironment.getConfigurationInternal(currentUserId); in suggestTelephonyTimeZone()
377 int currentUserId = mEnvironment.getCurrentUserId(); in generateMetricsState() local
390 getConfigurationInternal(currentUserId), in generateMetricsState()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DUserAwareBiometricScheduler.java124 final int currentUserId = mCurrentUserRetriever.getCurrentUserId(); in startNextOperationIfIdle() local
127 if (nextUserId == currentUserId) { in startNextOperationIfIdle()
129 } else if (currentUserId == UserHandle.USER_NULL) { in startNextOperationIfIdle()
144 .getStopUserClient(currentUserId); in startNextOperationIfIdle()
148 Slog.d(getTag(), "[Stopping User] current: " + currentUserId in startNextOperationIfIdle()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java468 final int currentUserId = 10; in resolveProfileParent_userIdIsCurrentUser_returnCurrentUser() local
469 final int userId = currentUserId; in resolveProfileParent_userIdIsCurrentUser_returnCurrentUser()
471 .thenReturn(currentUserId); in resolveProfileParent_userIdIsCurrentUser_returnCurrentUser()
474 currentUserId); in resolveProfileParent_userIdIsCurrentUser_returnCurrentUser() local
480 final int currentUserId = 20; in resolveProfileParent_userIdNotCurrentUser_shouldGetProfileParent() local
481 when(mMockA11yUserManager.getCurrentUserIdLocked()).thenReturn(currentUserId); in resolveProfileParent_userIdNotCurrentUser_shouldGetProfileParent()
502 final int currentUserId = callingParentId; in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser() local
504 .thenReturn(currentUserId); in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser()
509 UserHandle.USER_CURRENT_OR_SELF), currentUserId); in resolveCallingUserId_callingParentIsCurrentUser_returnCurrentUser() local
518 final int currentUserId = 30; in resolveCallingUserId_callingParentNotCurrentUserAndNoPerm_shouldException() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaResumeListener.kt65 private var currentUserId: Int = context.userId variable
73 currentUserId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1) in onReceive()
98 mediaDataManager.addResumptionControls(currentUserId, desc, resumeAction, token, in addTrack()
131 val listString = prefs.getString(MEDIA_PREFERENCE_KEY + currentUserId, null) in loadSavedComponents()
252 prefs.edit().putString(MEDIA_PREFERENCE_KEY + currentUserId, sb.toString()).apply() in updateResumptionList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java119 int currentUserId = mUserTracker.getUserId(); in setLocationEnabled() local
120 if (isUserLocationRestricted(currentUserId)) { in setLocationEnabled()
125 updateLocationEnabled(mContext, enabled, currentUserId, in setLocationEnabled()
DCastController.java26 void setCurrentUserId(int currentUserId); in setCurrentUserId() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbleLogger.java139 void logShowOverflow(String packageName, int currentUserId) { in logShowOverflow() argument
140 mUiEventLogger.log(BubbleLogger.Event.BUBBLE_OVERFLOW_SELECTED, currentUserId, in logShowOverflow()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DFingerprintUpdateActiveUserClient.java51 @NonNull String owner, int sensorId, int currentUserId, boolean hasEnrolledBiometrics, in FingerprintUpdateActiveUserClient() argument
56 mCurrentUserId = currentUserId; in FingerprintUpdateActiveUserClient()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DUserAwareController.kt29 val currentUserId: Int constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsListingControllerImpl.kt83 override var currentUserId = userTracker.userId variable
118 currentUserId = newUser.identifier in changeUser()
DControlsRequestDialog.kt62 private val startingUser = controller.currentUserId
79 val currentUser = controller.currentUserId in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsListingControllerImplTest.kt133 assertEquals(user, controller.currentUserId) in testStartsOnUser()
180 assertEquals(otherUser, controller.currentUserId) in testChangeUser()
214 assertEquals(otherUser, controller.currentUserId) in testChangeUserSendsCorrectServiceUpdate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerTest.java115 int currentUserId = ActivityManager.getCurrentUser(); in setUp() local
116 mCurrentUser = new UserInfo(currentUserId, "", 0); in setUp()
117 mSecondaryUser = new UserInfo(currentUserId + 1, "", 0); in setUp()
118 mWorkUser = new UserInfo(currentUserId + 2, "" /* name */, null /* iconPath */, 0, in setUp()
121 when(mUserManager.getProfiles(currentUserId)).thenReturn(Lists.newArrayList( in setUp()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilitySecurityPolicy.java398 final int currentUserId = mAccessibilityUserManager.getCurrentUserIdLocked(); in resolveCallingUserIdEnforcingPermissionsLocked() local
404 return currentUserId; in resolveCallingUserIdEnforcingPermissionsLocked()
413 if (callingUserParentId == currentUserId && (userId == UserHandle.USER_CURRENT in resolveCallingUserIdEnforcingPermissionsLocked()
415 return currentUserId; in resolveCallingUserIdEnforcingPermissionsLocked()
425 return currentUserId; in resolveCallingUserIdEnforcingPermissionsLocked()
/frameworks/opt/car/services/tests/src/com/android/internal/car/
DCarServiceHelperServiceTest.java145 int currentUserId = 10; in testOnUserSwitching_notifiesICar() local
148 mHelper.onUserSwitching(newTargetUser(currentUserId), in testOnUserSwitching_notifiesICar()
152 currentUserId, targetUserId); in testOnUserSwitching_notifiesICar()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
DFakeCastController.java36 public void setCurrentUserId(int currentUserId) { in setCurrentUserId() argument
/frameworks/base/services/core/java/com/android/server/os/
DBugreportManagerServiceImpl.java205 private boolean isCurrentUserAffiliated(int currentUserId) { in isCurrentUserAffiliated() argument
215 + " currentUserId: " + currentUserId); in isCurrentUserAffiliated()
220 if (!dpm.isAffiliatedUser(currentUserId)) { in isCurrentUserAffiliated()
/frameworks/base/services/core/java/com/android/server/wm/
DImmersiveModeConfirmation.java120 static boolean loadSetting(int currentUserId, Context context) { in loadSetting() argument
123 if (DEBUG) Slog.d(TAG, String.format("loadSetting() currentUserId=%d", currentUserId)); in loadSetting()
151 boolean onSettingChanged(int currentUserId) { in onSettingChanged() argument
152 final boolean changed = loadSetting(currentUserId, mContext); in onSettingChanged()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java454 int currentUserId = ActivityManager.getCurrentUser(); in update() local
456 ArraySet<String> allowed = mAllowedPackages.get(currentUserId); in update()
465 if (grantUserId != currentUserId) { in update()
476 revokeNotificationListenerAccess(pkg, currentUserId); in update()
478 revokeCoarseLocationPermissionIfNeeded(pkg, currentUserId); in update()
485 grantNotificationListenerAccess(pkg, currentUserId); in update()
486 grantCoarseLocationPermissionIfNeeded(pkg, currentUserId); in update()
487 mNotificationAccessPackageToUserId.put(pkg, currentUserId); in update()
493 mAllowedPackages.put(currentUserId, allowed); in update()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManager.java84 boolean userAllowsPrivateNotificationsInPublic(int currentUserId); in userAllowsPrivateNotificationsInPublic() argument
DNotificationViewHierarchyManager.java170 int currentUserId = mLockscreenUserManager.getCurrentUserId(); in updateNotificationViews() local
171 boolean devicePublic = mLockscreenUserManager.isLockscreenPublicMode(currentUserId); in updateNotificationViews()
175 && (userId == currentUserId || userId == UserHandle.USER_ALL in updateNotificationViews()
183 currentUserId); in updateNotificationViews()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/
DPeopleHubNotificationListener.kt200 val currentUserId = notifLockscreenUserMgr.currentUserId in extractPersonKey() constant
201 val model = peopleHubManagerForUser[currentUserId]?.getPeopleHubModel() in extractPersonKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DRecordingService.java124 int currentUserId = mUserContextTracker.getUserContext().getUserId(); in onStartCommand() local
125 UserHandle currentUser = new UserHandle(currentUserId); in onStartCommand()
141 currentUserId, in onStartCommand()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java128 public LoaderResult loadBitmap(int currentUserId, UserHandle selectedUser) { in loadBitmap() argument
147 selectedUser != null ? selectedUser.getIdentifier() : currentUserId; in loadBitmap()

123