Home
last modified time | relevance | path

Searched refs:getCurrentUser (Results 1 – 25 of 84) sorted by relevance

1234

/packages/services/Car/service/src/com/android/car/trust/
DCarBleTrustAgent.java100 int uid = ActivityManager.getCurrentUser(); in onDeviceLocked()
122 Log.d(TAG, "onDeviceUnlocked Current user: " + ActivityManager.getCurrentUser()); in onDeviceUnlocked()
159 ActivityManager.getCurrentUser()); in onEscrowTokenRemoved()
173 tokenState == TOKEN_STATE_ACTIVE, ActivityManager.getCurrentUser()); in onEscrowTokenStateReceived()
251 int uid = ActivityManager.getCurrentUser(); in onBluetoothStateChanged()
291 "removeEscrowToken. uid: " + ActivityManager.getCurrentUser()
321 if (ActivityManager.getCurrentUser() != user) {
325 Log.e(TAG, "Expected User: " + ActivityManager.getCurrentUser()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java157 mCurrentUser = ActivityManager.getCurrentUser();
187 mCurrentUser = ActivityManager.getCurrentUser(); in CarMediaService()
290 ActivityManager.getCurrentUser()).size()); in dump()
353 || userHandle != ActivityManager.getCurrentUser()) { in setUserLockStatus()
368 mSessionsListener = new SessionChangedListener(ActivityManager.getCurrentUser()); in updateMediaSessionCallbackForCurrentUser()
370 ActivityManager.getCurrentUser(), null); in updateMediaSessionCallbackForCurrentUser()
372 null, ActivityManager.getCurrentUser())); in updateMediaSessionCallbackForCurrentUser()
423 if (ActivityManager.getCurrentUser() != mCurrentUser) { in onActiveSessionsChanged()
551 .getActiveSessionsForUser(null, ActivityManager.getCurrentUser())); in setPrimaryMediaSource()
641 PackageManager.GET_RESOLVED_FILTER, ActivityManager.getCurrentUser()); in getMediaService()
DCarLocationService.java109 int currentUser = ActivityManager.getCurrentUser();
276 int currentUserId = ActivityManager.getCurrentUser(); in isCurrentUserHeadlessSystemUser()
/packages/apps/Settings/src/com/android/settings/display/
DDisplayWhiteBalancePreferenceController.java82 ActivityManager.getCurrentUser()); in onStart()
86 ActivityManager.getCurrentUser()); in onStart()
90 ActivityManager.getCurrentUser()); in onStart()
DVrDisplayPreferenceController.java49 int currentUser = ActivityManager.getCurrentUser(); in updateState()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java110 loadDefaultsFromSettings(ActivityManager.getCurrentUser()); in PreferredServices()
124 int currentUser = ActivityManager.getCurrentUser(); in onChange()
231 ApduServiceInfo serviceInfo = mServiceCache.getService(ActivityManager.getCurrentUser(), in isForegroundAllowedLocked()
253 ActivityManager.getCurrentUser(), mPaymentDefaults.currentPreferred); in isForegroundAllowedLocked()
DRegisteredServicesCache.java132 int currentUser = ActivityManager.getCurrentUser(); in RegisteredServicesCache()
170 invalidateCache(ActivityManager.getCurrentUser()); in initialize()
652 UserServices userServices = findOrCreateUserLocked(ActivityManager.getCurrentUser()); in dump()
DRegisteredNfcFServicesCache.java138 int currentUser = ActivityManager.getCurrentUser(); in RegisteredNfcFServicesCache()
178 invalidateCache(ActivityManager.getCurrentUser()); in initialize()
720 UserServices userServices = findOrCreateUserLocked(ActivityManager.getCurrentUser()); in dump()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java215 ActivityManager.getCurrentUser()).size() > 0; in hasIntentReceiver()
241 ActivityManager.getCurrentUser()); in tryStartActivity()
252 intentToStart, 0, ActivityManager.getCurrentUser()); in tryStartActivity()
535 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryNdef()
570 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryNdef()
609 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryTech()
663 UserHandle.of(ActivityManager.getCurrentUser()))) { in tryPeripheralHandover()
DRegisteredComponentCache.java149 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in generateComponentsList()
158 PackageManager.GET_META_DATA, ActivityManager.getCurrentUser()); in generateComponentsList()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/
DTrustedDeviceManager.java160 mTrustAgentDelegate.addEscrowToken(token, ActivityManager.getCurrentUser()); in startEnrollment()
167 UserHandle currentUser = UserHandle.of(ActivityManager.getCurrentUser()); in showEnrollmentNotification()
194 ActivityManager.getCurrentUser()); in unlockUser()
256 mDatabase.getTrustedDevicesForUser(ActivityManager.getCurrentUser()); in getTrustedDevicesForActiveUser()
380 trustAgentDelegate.addEscrowToken(mPendingToken, ActivityManager.getCurrentUser()); in setTrustedDeviceAgentDelegate()
456 if (entity.userId != ActivityManager.getCurrentUser()) { in processUnlockMessage()
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/storage/
DConnectedDeviceStorage.java343 return getAssociatedDevicesForUser(ActivityManager.getCurrentUser()); in getActiveUserAssociatedDevices()
371 return getAssociatedDeviceIdsForUser(ActivityManager.getCurrentUser()); in getActiveUserAssociatedDeviceIds()
380 addAssociatedDeviceForUser(ActivityManager.getCurrentUser(), device); in addAssociatedDeviceForActiveUser()
444 removeAssociatedDevice(ActivityManager.getCurrentUser(), deviceId); in removeAssociatedDeviceForActiveUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/
DZenServiceListing.java94 final int user = ActivityManager.getCurrentUser(); in getServices()
120 final int user = ActivityManager.getCurrentUser(); in getActivities()
/packages/apps/Settings/src/com/android/settings/utils/
DZenServiceListing.java94 final int user = ActivityManager.getCurrentUser(); in getServices()
120 final int user = ActivityManager.getCurrentUser(); in getActivities()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationListener.java81 ActivityManager.getCurrentUser()); in registerAsSystemService()
187 return (sbn.getUser().getIdentifier() == ActivityManager.getCurrentUser() in isNotificationForCurrentUser()
/packages/services/Car/service/src/com/android/car/systeminterface/
DDisplayInterface.java139 mActivityManager.getCurrentUser()); in refreshDisplayBrightness()
178 mActivityManager.getCurrentUser()); in setDisplayBrightness()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageFragment.java206 final int currentUser = ActivityManager.getCurrentUser(); in updateDetails()
239 ActivityManager.getCurrentUser()); in totalValues()
/packages/apps/Car/Cluster/src/android/car/cluster/
DClusterRenderingService.java198 userId = ActivityManager.getCurrentUser(); in launchMainActivity()
397 if (userId == ActivityManager.getCurrentUser() && in onReceive()
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/
DCarAssistUtils.java138 Settings.Secure.ENABLED_NOTIFICATION_LISTENERS, ActivityManager.getCurrentUser()); in assistantIsNotificationListener()
141 Log.d(TAG, "Current user: " + ActivityManager.getCurrentUser() in assistantIsNotificationListener()
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserHandle.java29 return ShadowUserManager.getShadow().getCurrentUser(); in myUserId()
DShadowActivityManager.java39 public static int getCurrentUser() { in getCurrentUser() method in ShadowActivityManager
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowActivityManager.java31 protected static int getCurrentUser() { in getCurrentUser() method in ShadowActivityManager
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DVrDisplayPreferenceController.java49 int currentUser = ActivityManager.getCurrentUser(); in updateState()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMtpReceiver.java54 boolean isCurrentUser = UserHandle.myUserId() == ActivityManager.getCurrentUser(); in handleUsbState()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DVmsPublisherClientPermissionTest.java100 getVmsClientManager().mUserCallback.onSwitchUser(ActivityManager.getCurrentUser()); in triggerClientBinding()

1234