Home
last modified time | relevance | path

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

1234

/packages/services/Car/service/src/com/android/car/trust/
DCarBleTrustAgent.java104 int uid = ActivityManager.getCurrentUser(); in onDeviceLocked()
126 Log.d(TAG, "onDeviceUnlocked Current user: " + ActivityManager.getCurrentUser()); in onDeviceUnlocked()
163 ActivityManager.getCurrentUser()); in onEscrowTokenRemoved()
177 tokenState == TOKEN_STATE_ACTIVE, ActivityManager.getCurrentUser()); in onEscrowTokenStateReceived()
255 int uid = ActivityManager.getCurrentUser(); in onBluetoothStateChanged()
295 "removeEscrowToken. uid: " + ActivityManager.getCurrentUser()
325 if (ActivityManager.getCurrentUser() != user) {
329 Log.e(TAG, "Expected User: " + ActivityManager.getCurrentUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DUserHelperTest.java130 int fgUserId = ActivityManager.getCurrentUser(); in testGetAllsers()
150 int fgUserId = ActivityManager.getCurrentUser(); in testGetAllUsers_notHeadless()
169 int fgUserId = ActivityManager.getCurrentUser(); in testGetAllSwitchableUsers()
188 int fgUserId = ActivityManager.getCurrentUser(); in testGetAllSwitchableUsers_notHeadless()
205 int fgUserId = ActivityManager.getCurrentUser(); in testGetAllPersistentUsers()
226 int fgUserId = ActivityManager.getCurrentUser(); in testGetAllPersistentUsers_notHeadless()
245 int fgUserId = ActivityManager.getCurrentUser(); in testGetAllAdminUsers()
265 int fgUserId = ActivityManager.getCurrentUser(); in testGetAllAdminUsers_notHeadless()
292 int fgUserId = ActivityManager.getCurrentUser(); in testRemoveUser_isAdmin_canRemoveOtherUsers()
309 int fgUserId = ActivityManager.getCurrentUser(); in testRemoveUser_isNonAdmin_cannotRemoveOtherUsers()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java245 int currentUser = ActivityManager.getCurrentUser(); in init()
323 return mUserManager.getUserInfo(ActivityManager.getCurrentUser()).isEphemeral(); in isCurrentUserEphemeral()
348 .getActiveSessionsForUser(null, ActivityManager.getCurrentUser()).size()); in dump()
445 || userId != ActivityManager.getCurrentUser()) { in onUserUnlock()
463 mSessionsListener = new SessionChangedListener(ActivityManager.getCurrentUser()); in updateMediaSessionCallbackForCurrentUser()
465 ActivityManager.getCurrentUser(), null); in updateMediaSessionCallbackForCurrentUser()
467 null, ActivityManager.getCurrentUser())); in updateMediaSessionCallbackForCurrentUser()
500 if (ActivityManager.getCurrentUser() != mCurrentUser) { in onActiveSessionsChanged()
643 new UserHandle(ActivityManager.getCurrentUser())); in setPlaybackMediaSource()
649 .getActiveSessionsForUser(null, ActivityManager.getCurrentUser())); in setPlaybackMediaSource()
[all …]
DCarOccupantZoneService.java572 return getCurrentUser(); in getDriverUserId()
626 int currentUser = getCurrentUser(); in assignProfileUserToOccupantZone()
1060 int getCurrentUser() { in getCurrentUser() method in CarOccupantZoneService
1061 return ActivityManager.getCurrentUser(); in getCurrentUser()
1075 int driverUserId = getCurrentUser(); in handleUserChangesLocked()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUserManagerTest.java90 sInitialUserId = ActivityManager.getCurrentUser(); in setupUsers()
116 int oldUserId = ActivityManager.getCurrentUser(); in testLifecycleListener()
250 .isEqualTo(ActivityManager.getCurrentUser()); in testGuestUserResumeToNewGuestUser()
290 .that(ActivityManager.getCurrentUser()).isEqualTo(guestUserId); in testSecuredGuestUserResumeToSameUser()
319 .that(ActivityManager.getCurrentUser()).isEqualTo(newUserId); in testPersistentUserResumeToUser()
351 int currentUserId = am.getCurrentUser(); in switchUserDirectly()
/packages/apps/Settings/src/com/android/settings/display/
DDisplayWhiteBalancePreferenceController.java82 ActivityManager.getCurrentUser()); in onStart()
86 ActivityManager.getCurrentUser()); in onStart()
90 ActivityManager.getCurrentUser()); in onStart()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java111 loadDefaultsFromSettings(ActivityManager.getCurrentUser()); in PreferredServices()
125 int currentUser = ActivityManager.getCurrentUser(); in onChange()
232 ApduServiceInfo serviceInfo = mServiceCache.getService(ActivityManager.getCurrentUser(), in isForegroundAllowedLocked()
254 ActivityManager.getCurrentUser(), mPaymentDefaults.currentPreferred); in isForegroundAllowedLocked()
DRegisteredServicesCache.java133 int currentUser = ActivityManager.getCurrentUser(); in RegisteredServicesCache()
171 invalidateCache(ActivityManager.getCurrentUser()); in initialize()
653 UserServices userServices = findOrCreateUserLocked(ActivityManager.getCurrentUser()); in dump()
671 UserServices userServices = findOrCreateUserLocked(ActivityManager.getCurrentUser()); in dumpDebug()
DRegisteredNfcFServicesCache.java139 int currentUser = ActivityManager.getCurrentUser(); in RegisteredNfcFServicesCache()
179 invalidateCache(ActivityManager.getCurrentUser()); in initialize()
721 UserServices userServices = findOrCreateUserLocked(ActivityManager.getCurrentUser()); in dump()
741 UserServices userServices = findOrCreateUserLocked(ActivityManager.getCurrentUser()); in dumpDebug()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java216 ActivityManager.getCurrentUser()).size() > 0; in hasIntentReceiver()
242 ActivityManager.getCurrentUser()); in tryStartActivity()
254 intentToStart, 0, ActivityManager.getCurrentUser()); in tryStartActivity()
542 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryNdef()
578 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryNdef()
617 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryTech()
671 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/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java150 final int fgUser = ActivityManager.getCurrentUser(); in doSwitchUser()
173 final int currentUserId = ActivityManager.getCurrentUser(); in doUserLockChanged()
206 int userId = ActivityManager.getCurrentUser(); in startOrBindServicesIfNeeded()
361 if (UserHandle.of(ActivityManager.getCurrentUser()).equals(mUser) in tryToRebind()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DProfileUserFragment.java151 int currentUserId = ActivityManager.getCurrentUser(); in updateTextInfo()
193 ActivityManager.getCurrentUser()); in createUser()
209 int currentUser = ActivityManager.getCurrentUser(); in removeUser()
273 int currentUser = ActivityManager.getCurrentUser(); in canChangeUser()
439 int currentUser = ActivityManager.getCurrentUser(); in getUsers()
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/storage/
DConnectedDeviceStorage.java424 return getAssociatedDevicesForUser(ActivityManager.getCurrentUser()); in getActiveUserAssociatedDevices()
452 return getAssociatedDeviceIdsForUser(ActivityManager.getCurrentUser()); in getActiveUserAssociatedDeviceIds()
461 addAssociatedDeviceForUser(ActivityManager.getCurrentUser(), device); in addAssociatedDeviceForActiveUser()
525 removeAssociatedDevice(ActivityManager.getCurrentUser(), deviceId); in removeAssociatedDeviceForActiveUser()
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/overlays/
DOverlayManagerImpl.java64 mOverlayManager.getAllOverlays(ActivityManager.getCurrentUser());
75 mOverlayManager.setEnabled(packageName, enable, ActivityManager.getCurrentUser());
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DBrightnessTile.java63 ActivityManager.getCurrentUser()); in onProgressChanged()
84 ActivityManager.getCurrentUser()); in getCurrent()
/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/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java234 doReturn(CURRENT_USER).when(mService).getCurrentUser(); in setUp()
310 doReturn(CURRENT_USER).when(mService).getCurrentUser(); in setUpServiceWithProfileSupportEnabled()
413 doReturn(newUserId).when(mService).getCurrentUser(); in testAssignProfileFollowedByUserSwitch()
626 doReturn(newUserId).when(mService).getCurrentUser(); in testActiveUserAfterUserSwitching()
841 doReturn(newUserId).when(mService).getCurrentUser(); in testManagerGetUserForOccupantAfterUserSwitch()
/packages/services/Car/service/src/com/android/car/systeminterface/
DDisplayInterface.java152 ActivityManager.getCurrentUser()); in refreshDisplayBrightness()
194 ActivityManager.getCurrentUser()); in setDisplayBrightness()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationListener.java86 ActivityManager.getCurrentUser()); in registerAsSystemService()
221 return (sbn.getUser().getIdentifier() == ActivityManager.getCurrentUser() in isNotificationForCurrentUser()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java312 int currentUser = ActivityManager.getCurrentUser(); in clearRunningActivitiesLocked()
441 if (info != null && info.userId == ActivityManager.getCurrentUser()) { in launchIfNecessary()
575 int currentUser = ActivityManager.getCurrentUser(); in isUserAllowedToLaunchActivity()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserHelper.java119 if (userInfo.id == ActivityManager.getCurrentUser()) { in removeUser()
271 final int foregroundUserId = ActivityManager.getCurrentUser(); in getAllSwitchableUsers()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java558 int currentUser = ActivityManager.getCurrentUser(); in stopPassengerInternal()
793 int currentUser = ActivityManager.getCurrentUser(); in switchUser()
928 if (ActivityManager.getCurrentUser() == userId) { in removeUser()
1449 if (userId == ActivityManager.getCurrentUser()) { in onUserUnlocked()
1488 if (user == ActivityManager.getCurrentUser()) { in startAllBackgroundUsers()
1533 if (userId == ActivityManager.getCurrentUser()) { in stopBackgroundUser()
1893 int currentUser = ActivityManager.getCurrentUser(); in setupPassengerUser()

1234