Home
last modified time | relevance | path

Searched refs:getUserContext (Results 1 – 25 of 72) sorted by relevance

123

/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DUserUtils.java44 Context userContext = getUserContext(context, user); in isProfile()
60 Context userContext = getUserContext(context, user); in isManagedProfile()
76 Context userContext = getUserContext(context, user); in isCloneProfile()
93 Context userContext = getUserContext(context, user); in isPrivateProfile()
107 public static Context getUserContext(@NonNull Context context, @NonNull UserHandle user) { in getUserContext() method in UserUtils
DRoleManagerCompat.java57 Context userContext = UserUtils.getUserContext(context, user); in isRoleFallbackEnabledAsUser()
72 Context userContext = UserUtils.getUserContext(context, user); in setRoleFallbackEnabledAsUser()
DPackageUtils.java48 Context userContext = UserUtils.getUserContext(context, user); in getPackageInfoAsUser()
86 Context userContext = UserUtils.getUserContext(context, user); in getApplicationInfoAsUser()
DNotificationUtils.java74 Context userContext = UserUtils.getUserContext(context, user); in setNotificationGrantStateForPackageAsUser()
85 Context userContext = UserUtils.getUserContext(context, user); in getNotificationListenersForPackageAsUser()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DFirstGrantTimeManager.java102 Integer uid = mPackageInfoHelper.getPackageUid(packageName, user, getUserContext(user)); in getFirstGrantTime()
128 mPackageInfoHelper.getPackageUid(packageName, user, getUserContext(user)); in setFirstGrantTime()
216 packageNames, user, getUserContext(user)); in updateFirstGrantTimesFromPermissionState()
249 packageNames, user, getUserContext(user))); in updateFirstGrantTimesFromPermissionState()
294 removedPackageUid, userHandle, getUserContext(userHandle)); in onPackageRemoved()
408 user, getUserContext(user)); in initAndValidateUserStateIfNeedLocked()
643 mPackageInfoHelper.getSharedUserNameFromUid(uid, getUserContext(user)); in extractUserGrantTimeStateUseSharedNames()
716 mPackageInfoHelper.getPackageUid(packageName, user, getUserContext(user)); in populateFromUserGrantTimeState()
732 private Context getUserContext(UserHandle userHandle) { in getUserContext() method in FirstGrantTimeManager
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockService.java65 private static Context getUserContext(@NonNull Context context, @NonNull UserHandle user) { in getUserContext() method in DeviceLockService
80 getUserContext(getContext(), userHandle).getSystemService(UserManager.class); in isUserSupported()
101 final Context userContext = getUserContext(getContext(), userHandle); in onUserUnlocked()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java57 Context userContext = getUserContext(); in AppPreference()
103 PackageManager pm = getUserContext().getPackageManager(); in getPackageInfo()
118 private Context getUserContext() throws PackageManager.NameNotFoundException { in getUserContext() method in AppPreference
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DHibernatedPackagesLiveData.kt25 import com.android.permissioncontroller.permission.utils.Utils.getUserContext
46 val userContext = getUserContext(PermissionControllerApplication.get(), user) in loadDataAndPostValue()
DBroadcastReceiverLiveData.kt28 import com.android.permissioncontroller.permission.utils.Utils.getUserContext in <lambda>()
75 getUserContext(app, user) in <lambda>()
DServiceLiveData.kt36 import com.android.permissioncontroller.permission.utils.Utils.getUserContext in <lambda>()
165 getUserContext(app, user) in <lambda>()
DSelectedAutofillServiceLiveData.kt41 Utils.getUserContext(app, user) in loadDataAndPostValue()
DSelectedWallpaperServiceLiveData.kt42 Utils.getUserContext(app, user) in loadDataAndPostValue()
DEnabledDeviceAdminsLiveData.kt41 Utils.getUserContext(app, user) in <lambda>()
DSelectedVoiceInteractionServiceLiveData.kt45 Utils.getUserContext(app, user).contentResolver, in loadDataAndPostValue()
DEnabledInputMethodsLiveData.kt42 Utils.getUserContext(app, user) in <lambda>()
DEnabledNotificationListenersLiveData.kt45 Utils.getUserContext(app, user).contentResolver, in <lambda>()
DDisabledPrintServicesLiveData.kt42 Settings.Secure.getString(Utils.getUserContext(app, user).contentResolver, SETTING) in <lambda>()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/v35/
DRetailDemoRoleBehavior.java46 Context userContext = UserUtils.getUserContext(context, user); in isPackageQualifiedAsUser()
60 Context userContext = UserUtils.getUserContext(context, user); in isAvailableAsUser()
DWalletRoleBehavior.java73 Context userContext = UserUtils.getUserContext(context, user); in getDefaultHoldersAsUser()
141 Context userContext = UserUtils.getUserContext(context, user); in getQualifyingApduServicesAsUser()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DNoMockAutoDeleteServiceTest.java52 HealthConnectUserContext context = testRule.getUserContext(); in setup()
74 AutoDeleteService.startAutoDelete(testRule.getUserContext()); in startAutoDelete_changeLogsGenerated()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/behavior/v35/
DWalletRoleUiBehavior.java63 Context userContext = UserUtils.getUserContext(context, user); in preparePreferenceAsUser()
74 Context userContext = UserUtils.getUserContext(context, user); in prepareApplicationPreferenceAsUser()
146 Context userContext = UserUtils.getUserContext(context, user); in getNonPaymentServiceBannerAndLabelIfExists()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPackageInfo.kt112 val userContext = Utils.getUserContext(app, UserHandle.getUserHandleForUid(uid)) in <lambda>()
127 val userContext = Utils.getUserContext(app, UserHandle.getUserHandleForUid(uid)) in <lambda>()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DHomeRoleBehavior.java83 Context userContext = UserUtils.getUserContext(context, user); in getFallbackHolderAsUser()
118 Context userContext = UserUtils.getUserContext(context, user); in isSettingsApplicationAsUser()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectManagerService.java177 getUserContext(mContext, user.getUserHandle()).getSystemService(UserManager.class); in isUserSupported()
242 private static Context getUserContext(@NonNull Context context, @NonNull UserHandle user) { in getUserContext() method in HealthConnectManagerService
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DPackageUtils.java67 return getApplicationInfo(packageName, UserUtils.getUserContext(context, user)); in getApplicationInfoAsUser()

123