Home
last modified time | relevance | path

Searched refs:currentUser (Results 1 – 17 of 17) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DStorageFragment.java206 final int currentUser = ActivityManager.getCurrentUser(); in updateDetails() local
207 final long dcimSize = totalValues(details.mediaSize.get(currentUser), in updateDetails()
211 final long musicSize = totalValues(details.mediaSize.get(currentUser), in updateDetails()
216 final long downloadsSize = totalValues(details.mediaSize.get(currentUser), in updateDetails()
220 mAppsUsagePref.setSize(details.appsSize.get(currentUser)); in updateDetails()
225 mMiscUsagePref.setSize(details.miscSize.get(currentUser)); in updateDetails()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java162 final int currentUser = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, -1); in onReceive() local
163 if (currentUser > UserHandle.USER_SYSTEM in onReceive()
164 && mCarUserManagerHelper.isPersistentUser(currentUser)) { in onReceive()
165 mCarUserManagerHelper.setLastActiveUser(currentUser); in onReceive()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java535 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryNdef() local
537 currentUser).getPackageManager(); in tryNdef()
570 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryNdef() local
572 currentUser).getPackageManager(); in tryNdef()
609 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in tryTech() local
611 currentUser).getPackageManager(); in tryTech()
DRegisteredComponentCache.java149 UserHandle currentUser = new UserHandle(ActivityManager.getCurrentUser()); in generateComponentsList() local
151 currentUser).getPackageManager(); in generateComponentsList()
/packages/apps/Settings/src/com/android/settings/display/
DVrDisplayPreferenceController.java49 int currentUser = ActivityManager.getCurrentUser(); in updateState() local
52 currentUser); in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DVrDisplayPreferenceController.java49 int currentUser = ActivityManager.getCurrentUser(); in updateState() local
52 currentUser); in updateState()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedCallNotifierImplTest.java331 private void notifySingleCallTestInternal(PhoneAccount phoneAccount, UserHandle currentUser) { in notifySingleCallTestInternal() argument
338 currentUser); in notifySingleCallTestInternal()
349 expectedUserHandle = currentUser; in notifySingleCallTestInternal()
592 NotificationBuilderFactory fakeBuilderFactory, UserHandle currentUser) { in makeMissedCallNotifier() argument
595 missedCallNotifier.setCurrentUserHandle(currentUser); in makeMissedCallNotifier()
DTelecomServiceImplTest.java757 int currentUser = ActivityManager.getCurrentUser(); in testSetDefaultDialer() local
762 mDefaultDialerObserver.accept(currentUser); in testSetDefaultDialer()
764 }).when(mDefaultDialerCache).setDefaultDialer(eq(packageName), eq(currentUser)); in testSetDefaultDialer()
766 .getDefaultDialerApplication(eq(currentUser)); in testSetDefaultDialer()
770 verify(mDefaultDialerCache).setDefaultDialer(eq(packageName), eq(currentUser)); in testSetDefaultDialer()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java109 int currentUser = ActivityManager.getCurrentUser();
110 logd("Current user: " + currentUser);
112 && currentUser > UserHandle.USER_SYSTEM) {
DCarMediaService.java258 SessionChangedListener(int currentUser) { in SessionChangedListener() argument
259 mCurrentUser = currentUser; in SessionChangedListener()
/packages/apps/Settings/src/com/android/settings/
DUtils.java459 UserHandle currentUser = new UserHandle(UserHandle.myUserId()); in getSecureTargetUser() local
467 if (launchedFromUser != null && !launchedFromUser.equals(currentUser)) { in getSecureTargetUser()
474 if (extrasUser != null && !extrasUser.equals(currentUser)) { in getSecureTargetUser()
481 if (argumentsUser != null && !argumentsUser.equals(currentUser)) { in getSecureTargetUser()
491 return currentUser; in getSecureTargetUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java464 UserHandle currentUser = new UserHandle(UserHandle.myUserId()); in getSecureTargetUser() local
472 if (launchedFromUser != null && !launchedFromUser.equals(currentUser)) { in getSecureTargetUser()
479 if (extrasUser != null && !extrasUser.equals(currentUser)) { in getSecureTargetUser()
486 if (argumentsUser != null && !argumentsUser.equals(currentUser)) { in getSecureTargetUser()
496 return currentUser; in getSecureTargetUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAdvancedPowerUsageDetailTest.java332 final int currentUser = 20; in testStartBatteryDetailPage_typeUser_startByCurrentUser() local
333 ShadowActivityManager.setCurrentUser(currentUser); in testStartBatteryDetailPage_typeUser_startByCurrentUser()
337 verify(mActivity).startActivityAsUser(any(Intent.class), eq(new UserHandle(currentUser))); in testStartBatteryDetailPage_typeUser_startByCurrentUser()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DPreferredServices.java124 int currentUser = ActivityManager.getCurrentUser(); in onChange() local
125 loadDefaultsFromSettings(currentUser); in onChange()
DRegisteredServicesCache.java132 int currentUser = ActivityManager.getCurrentUser(); in RegisteredServicesCache()
133 if (currentUser == UserHandle.getUserId(uid)) { in RegisteredServicesCache()
DRegisteredNfcFServicesCache.java138 int currentUser = ActivityManager.getCurrentUser(); in RegisteredNfcFServicesCache()
139 if (currentUser == UserHandle.getUserId(uid)) { in RegisteredNfcFServicesCache()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioRouteStateMachine.java1683 UserInfo currentUser = ActivityManager.getService().getCurrentUser(); in getCurrentUserId() local
1684 return currentUser.id; in getCurrentUserId()