Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
DAuthenticatorHelper.java105 Context authContext = context.createPackageContextAsUser(desc.packageName, 0, in getDrawableForType()
132 Context authContext = context.createPackageContextAsUser(desc.packageName, 0, in getLabelForType()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerService.java56 return context.createPackageContextAsUser(context.getPackageName(), 0, in userContext()
/frameworks/base/services/core/java/com/android/server/
DAttributeCache.java135 context = mContext.createPackageContextAsUser(packageName, 0, in get()
/frameworks/base/media/java/android/media/
DRingtoneManager.java454 final Context parentContext = createPackageContextAsUser(mContext, parentInfo.id); in getParentProfileRingtones()
1091 private static Context createPackageContextAsUser(Context context, int userId) { in createPackageContextAsUser() method in RingtoneManager
1093 return context.createPackageContextAsUser(context.getPackageName(), 0 /* flags */, in createPackageContextAsUser()
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java54 userContext = context.createPackageContextAsUser(context.getPackageName(), 0, user); in getProfileOrDeviceOwner()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java435 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in DpmMockContext
437 return mMockSystemServices.createPackageContextAsUser(packageName, flags, user); in createPackageContextAsUser()
DMockSystemServices.java331 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in MockSystemServices
/frameworks/base/core/tests/coretests/src/android/content/
DAbstractCrossUserContentResolverTest.java126 InstrumentationRegistry.getContext().createPackageContextAsUser( in testRegisterContentObserver()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserInfoControllerImpl.java130 currentUserContext = mContext.createPackageContextAsUser("android", 0, in queryForUserInformation()
DSecurityControllerImpl.java320 Context userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), in getNameForVpnConfig()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DRingtonePlayer.java233 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, user); in getContextForUser()
/frameworks/base/services/core/java/com/android/server/notification/
DEventConditionProvider.java310 return context.createPackageContextAsUser(context.getPackageName(), 0, user); in getContextForUser()
DValidateNotificationPeople.java205 context = mBaseContext.createPackageContextAsUser("android", 0, userHandle); in getContextAsUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java139 when(mMockContext.createPackageContextAsUser( in setUp()
1627 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenFromInternal()
1660 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenSuccess()
1690 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenReturnWithInvalidIntent()
1723 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenReturnWithValidIntent()
1758 when(mMockContext.createPackageContextAsUser( in testGetAuthTokenError()
3287 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in AccountManagerServiceTest.MyMockContext
3289 return mMockContext.createPackageContextAsUser(packageName, flags, user); in createPackageContextAsUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationModeController.java240 return mContext.createPackageContextAsUser(mContext.getPackageName(), in getCurrentUserContext()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserSettingsManager.java74 mUserContext = context.createPackageContextAsUser("android", 0, user); in UsbUserSettingsManager()
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallerInfoAsyncQuery.java117 otherContext = context.createPackageContextAsUser(context.getPackageName(), in getCurrentProfileContentResolver()
DSmsApplication.java808 userContext = mContext.createPackageContextAsUser(mContext.getPackageName(), 0, in onPackageChanged()
/frameworks/base/core/java/android/content/
DContextWrapper.java881 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in ContextWrapper
883 return mBase.createPackageContextAsUser(packageName, flags, user); in createPackageContextAsUser()
/frameworks/base/core/java/android/app/
DSearchableInfo.java529 userContext = context.createPackageContextAsUser("system", 0, in getActivityMetaData()
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java754 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in MockContext
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java464 public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) in createPackageContextAsUser() method in ContextFixture.FakeContext
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java320 return context.createPackageContextAsUser(context.getPackageName(), 0, user); in getUserContext()
/frameworks/base/core/java/android/provider/
DMediaStore.java3523 .createPackageContextAsUser(packageName, 0, user).getContentResolver(); in getContributedMediaSize()
3551 .createPackageContextAsUser(packageName, 0, user).getContentResolver(); in deleteContributedMedia()
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java331 context = systemContext.createPackageContextAsUser( in getOrCreateController()

12