/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | WorkSoundPreferenceControllerTest.java | 128 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/ |
D | CrossProfileCalendarPreferenceController.java | 75 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()
|
D | ChooseAccountPreferenceController.java | 241 .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/ |
D | RingtonePreferenceController.java | 53 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/ |
D | CrossProfileCalendarHelper.java | 101 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/ |
D | AudioHelper.java | 53 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/ |
D | AudioHelper.java | 55 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/ |
D | ChooseAccountPreferenceController.java | 241 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getDrawableForType() 270 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getLabelForType()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDispatcher.java | 536 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/ |
D | NetworkStackNotifierTest.kt | 141 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/ |
D | AutoPermissionsUtils.java | 44 return activity.createPackageContextAsUser(packageName, 0, userHandle) in getPackageInfo()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/utils/ |
D | UserUtils.java | 93 return context.createPackageContextAsUser(context.getPackageName(), 0, user); in getUserContext()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppPreference.java | 96 return getContext().createPackageContextAsUser( in getUserContext()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | AppPreference.java | 96 return getContext().createPackageContextAsUser( in getUserContext()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/ |
D | CrossProfileCalendarDisabledPreferenceControllerTest.java | 72 doReturn(mContext).when(mContext).createPackageContextAsUser( in setUp()
|
D | CrossProfileCalendarPreferenceControllerTest.java | 82 doReturn(mContext).when(mContext).createPackageContextAsUser( in setUp()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | AppLocationPermissionPreferenceController.java | 96 final Context userContext = Utils.createPackageContextAsUser(mContext, in updateState()
|
D | TopLevelLocationPreferenceController.java | 87 final Context userContext = Utils.createPackageContextAsUser(mContext, in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | RingtonePreference.java | 80 mUserContext = Utils.createPackageContextAsUser(getContext(), mUserId); in setUserId()
|
/packages/apps/Settings/src/com/android/settings/ |
D | RingtonePreference.java | 80 mUserContext = Utils.createPackageContextAsUser(getContext(), mUserId); in setUserId()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RingtoneFactory.java | 138 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, userHandle); in getContextForUserHandle()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/ |
D | AppPermissions.java | 112 mPackageInfo = mContext.createPackageContextAsUser(mPackageInfo.packageName, 0, in loadPackageInfo()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/data/ |
D | PerUserUidToSensitivityLiveData.java | 91 mContext = application.createPackageContextAsUser(application.getPackageName(), 0, in PerUserUidToSensitivityLiveData()
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | MasterClearAccountsPreferenceController.java | 124 Context authContext = getContext().createPackageContextAsUser( in getAccountIcon()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | Beeper.java | 250 return mContext.createPackageContextAsUser(mContext.getPackageName(), /* flags= */ in getContextForForegroundUser()
|