Home
last modified time | relevance | path

Searched refs:getUserId (Results 1 – 25 of 63) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/
DDeviceAdminSettings.java194 final UserHandle user = new UserHandle(getUserId(dpi)); in onListItemClick()
303 activityIcon, new UserHandle(getUserId(item))); in bindView()
320 return getUserId(item) == UserHandle.myUserId() in isDeviceOwner()
325 ComponentName profileOwner = mProfileOwnerComponents.get(getUserId(item)); in isProfileOwner()
330 return mDPM.isAdminActiveAsUser(item.getComponent(), getUserId(item)); in isActiveAdmin()
334 return mDPM.isRemovingAdmin(item.getComponent(), getUserId(item)); in isRemovingAdmin()
461 private int getUserId(DeviceAdminInfo adminInfo) { in getUserId() method in DeviceAdminSettings
462 return UserHandle.getUserId(adminInfo.getActivityInfo().applicationInfo.uid); in getUserId()
DTrustedCredentialsDialogBuilder.java151 if (!mDelegate.startConfirmCredentialIfNotConfirmed(certHolder.getUserId(), in onClickTrust()
153 mDpm.approveCaCert(certHolder.getAlias(), certHolder.getUserId(), true); in onClickTrust()
182 && getCurrentCertInfo().getUserId() == userId) { in onCredentialConfirmed()
227 && isUserSecure(certHolder.getUserId()) in updatePositiveButton()
228 && !mDpm.isCaCertApproved(certHolder.getAlias(), certHolder.getUserId()); in updatePositiveButton()
231 mActivity, certHolder.getUserId()) != null; in updatePositiveButton()
244 new UserHandle(certHolder.getUserId())); in updateNegativeButton()
DCredentialStorage.java241 int dstUserId = UserHandle.getUserId(uid); in installIfAvailable()
445 launchedFromUserId = UserHandle.getUserId(launchedFromUid); in checkCallerIsCertInstallerOrSelfInProfile()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppDialogFragment.java145 final int userId = getUserId(); in onForget()
163 final int userId = getUserId(); in onDisconnect()
176 final UserHandle userHandle = UserHandle.of(getUserId()); in isUiRestricted()
180 private int getUserId() { in getUserId() method in AppDialogFragment
181 return UserHandle.getUserId(mPackageInfo.applicationInfo.uid); in getUserId()
DVpnUtils.java63 final int userId = context.getUserId(); in isAnyLockdownActive()
73 return getIConnectivityManager().getVpnConfig(context.getUserId()) != null; in isVpnActive()
97 int userId = context.getUserId(); in disconnectLegacyVpn()
DVpnSettings.java381 UserHandle user = UserHandle.of(pref.getUserId()); in onPreferenceClick()
529 int userId = UserHandle.getUserId(pkg.getUid()); in getVpnApps()
DManageablePreference.java47 public int getUserId() { in getUserId() method in ManageablePreference
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAppManagementFragment.java144 final int userId = UserHandle.getUserId(mEntry.info.uid); in onActivityResult()
154 final int userId = UserHandle.getUserId(mEntry.info.uid); in onActivityResult()
396 final int userId = UserHandle.getUserId(mEntry.info.uid); in dataCleared()
424 final int userId = UserHandle.getUserId(mEntry.info.uid); in cacheCleared()
446 final int userId = UserHandle.getUserId(mEntry.info.uid); in onPackageListChanged()
DForceStopPreference.java60 intent.putExtra(Intent.EXTRA_USER_HANDLE, UserHandle.getUserId(mEntry.info.uid)); in refresh()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DPermissionApps.java221 UserHandle.getUserId(group.getApp().applicationInfo.uid)); in loadPermissionApps()
373 public int getUserId() { in getUserId() method in PermissionApps.PermissionApp
374 return mAppPermissionGroup.getUserId(); in getUserId()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java99 .getUserId(uid))); in getPermissionInfo()
145 int userId = UserHandle.getUserId(app.info.uid); in loadAllExtraInfo()
239 final int userId = UserHandle.getUserId(packageOp.getUid()); in loadAppOpsStates()
DInstalledAppCounter.java48 final int userId = UserHandle.getUserId(info.uid); in includeInCount()
DAppWithAdminGrantedPermissionsCounter.java70 new UserHandle(UserHandle.getUserId(info.uid))) in includeInCount()
/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java72 if (UserManager.get(contextToUse).isUserUnlocked(contextToUse.getUserId())) { in getRingtone()
129 Settings.System.RINGTONE, userContext.getUserId())); in hasDefaultRingtoneForUser()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridge.java78 UserHandle.getUserId(entry.info.uid)); in loadAllExtraInfo()
88 UserHandle.getUserId(app.info.uid)); in updateExtraInfo()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredServicesCache.java132 if (currentUser == UserHandle.getUserId(uid)) { in RegisteredServicesCache()
133 invalidateCache(UserHandle.getUserId(uid)); in RegisteredServicesCache()
380 final int userId = UserHandle.getUserId(currentUid); in readDynamicAidsLocked()
DRegisteredNfcFServicesCache.java139 if (currentUser == UserHandle.getUserId(uid)) { in RegisteredNfcFServicesCache()
140 invalidateCache(UserHandle.getUserId(uid)); in RegisteredNfcFServicesCache()
447 final int userId = UserHandle.getUserId(currentUid); in readDynamicSystemCodeNfcid2Locked()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationStation.java279 if (sbn.getUserId() != UserHandle.USER_ALL & sbn.getUserId() != currentUserId) { in loadNotifications()
286 info.user = sbn.getUserId(); in loadNotifications()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
DPermissionAppsFragment.java246 getActivity(), app.getUserId()); in onPermissionsLoaded()
271 getActivity(), app.getUserId()); in onPermissionsLoaded()
/packages/apps/Settings/src/com/android/settings/print/
DPrintSettingsFragment.java407 context.getUserId()); in PrintJobsLoader()
552 .getGlobalPrintManagerForUser(context.getUserId()); in PrintManagerWrapper()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.java334 final int userId = UserHandle.getUserId(uid); in bindStats()
372 if (!profiles.contains(new UserHandle(UserHandle.getUserId(uid)))) { in bindStats()
/packages/apps/Settings/src/com/android/settings/search2/
DAppSearchResult.java35 return new UserHandle(UserHandle.getUserId(info.uid)); in getAppUserHandle()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAppButtonsPreferenceController.java490 intent.putExtra(Intent.EXTRA_USER_HANDLE, UserHandle.getUserId(mAppEntry.info.uid)); in updateForceStopButton()
530 int userId = UserHandle.getUserId(mAppEntry.info.uid); in forceStopPackage()
DPowerUsageSummary.java487 final UserHandle userHandle = new UserHandle(UserHandle.getUserId(sipper.getUid())); in refreshUi()
661 final int userId = UserHandle.getUserId(entry.sipper.getUid());
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java260 public int getUserId() { in getUserId() method in ContactsActor.AlteringUserContext
353 public int getUserId() { in ContactsActor()

123