Home
last modified time | relevance | path

Searched refs:createPackageContextAsUser (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DWorkSoundPreferenceControllerTest.java128 when(mAudioHelper.createPackageContextAsUser(anyInt())).thenReturn(mContext); in onManagedProfileAdded_shouldDisplayPreferenceCategory()
150 when(mAudioHelper.createPackageContextAsUser(anyInt())).thenReturn(mContext); in onManagedProfileRemoved_shouldHidePreferenceCategory()
176 when(mAudioHelper.createPackageContextAsUser(anyInt())).thenReturn(mContext); in displayPreference_isAvailable_shouldShowPreferenceCategory()
213 when(mAudioHelper.createPackageContextAsUser(anyInt())).thenReturn(mContext); in onResume_noVoiceCapability_shouldHidePhoneRingtone()
234 when(mAudioHelper.createPackageContextAsUser(anyInt())).thenReturn(mContext); in onResume_availableButLocked_shouldRedactPreferences()
262 when(mAudioHelper.createPackageContextAsUser(anyInt())).thenReturn(mContext); in onResume_shouldSetUserIdToPreference()
/packages/apps/Settings/src/com/android/settings/accounts/
DCrossProfileCalendarPreferenceController.java75 final Context managedProfileContext = createPackageContextAsUser(context, userId); in isCrossProfileCalendarDisallowedByAdmin()
85 private static Context createPackageContextAsUser(Context context, int userId) { in createPackageContextAsUser() method in CrossProfileCalendarPreferenceController
87 return context.createPackageContextAsUser( in createPackageContextAsUser()
DChooseAccountPreferenceController.java241 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getDrawableForType()
270 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getLabelForType()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DRingtonePreferenceController.java53 mUserContext = createPackageContextAsUser(getContext(), UserHandle.myUserId()); in RingtonePreferenceController()
119 private Context createPackageContextAsUser(Context context, int userId) { in createPackageContextAsUser() method in RingtonePreferenceController
121 return context.createPackageContextAsUser( in createPackageContextAsUser()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/enterprise/
DCrossProfileCalendarHelper.java101 private Context createPackageContextAsUser(Context context, int userId) { in createPackageContextAsUser() method in CrossProfileCalendarHelper
103 return context.createPackageContextAsUser( in createPackageContextAsUser()
124 final Context managedProfileUserContext = createPackageContextAsUser( in isPackageAllowedToAccessCalendar()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DAudioHelper.java53 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() method in AudioHelper
54 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
/packages/apps/Settings/src/com/android/settings/notification/
DAudioHelper.java55 public Context createPackageContextAsUser(@UserIdInt int profileId) { in createPackageContextAsUser() method in AudioHelper
56 return Utils.createPackageContextAsUser(mContext, profileId); in createPackageContextAsUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DChooseAccountPreferenceController.java241 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getDrawableForType()
270 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getLabelForType()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java536 pm = mContext.createPackageContextAsUser("android", 0, in tryNdef()
571 PackageManager pm = mContext.createPackageContextAsUser("android", 0, in tryNdef()
610 pm = mContext.createPackageContextAsUser("android", 0, in tryTech()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt141 doReturn(mCurrentUserContext).`when`(mContext).createPackageContextAsUser( in setUp()
143 doReturn(mAllUserContext).`when`(mContext).createPackageContextAsUser( in setUp()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/
DAutoPermissionsUtils.java44 return activity.createPackageContextAsUser(packageName, 0, userHandle) in getPackageInfo()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/
DUserUtils.java93 return context.createPackageContextAsUser(context.getPackageName(), 0, user); in getUserContext()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java96 return getContext().createPackageContextAsUser( in getUserContext()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DAppPreference.java96 return getContext().createPackageContextAsUser( in getUserContext()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DCrossProfileCalendarDisabledPreferenceControllerTest.java72 doReturn(mContext).when(mContext).createPackageContextAsUser( in setUp()
DCrossProfileCalendarPreferenceControllerTest.java82 doReturn(mContext).when(mContext).createPackageContextAsUser( in setUp()
/packages/apps/Settings/src/com/android/settings/location/
DAppLocationPermissionPreferenceController.java96 final Context userContext = Utils.createPackageContextAsUser(mContext, in updateState()
DTopLevelLocationPreferenceController.java87 final Context userContext = Utils.createPackageContextAsUser(mContext, in updateState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DRingtonePreference.java80 mUserContext = Utils.createPackageContextAsUser(getContext(), mUserId); in setUserId()
/packages/apps/Settings/src/com/android/settings/
DRingtonePreference.java80 mUserContext = Utils.createPackageContextAsUser(getContext(), mUserId); in setUserId()
/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java138 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, userHandle); in getContextForUserHandle()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissions.java112 mPackageInfo = mContext.createPackageContextAsUser(mPackageInfo.packageName, 0, in loadPackageInfo()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/data/
DPerUserUidToSensitivityLiveData.java91 mContext = application.createPackageContextAsUser(application.getPackageName(), 0, in PerUserUidToSensitivityLiveData()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DMasterClearAccountsPreferenceController.java124 Context authContext = getContext().createPackageContextAsUser( in getAccountIcon()
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java250 return mContext.createPackageContextAsUser(mContext.getPackageName(), /* flags= */ in getContextForForegroundUser()

123