Home
last modified time | relevance | path

Searched refs:createPackageContext (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/core/java/android/security/
DNetworkSecurityPolicy.java129 Context appContext = context.createPackageContext(packageName, 0); in getApplicationConfigForPackage()
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/
DVersionDialog.java43 context = activity.createPackageContext(SharedLibraryMain.LIBRARY_PACKAGE, 0); in onCreateDialog()
/frameworks/base/services/tests/servicestests/test-apps/SimpleServiceTestApp/src/com/android/servicestests/apps/simpleservicetestapp/
DSimpleService.java135 pkgContext = createPackageContext(targetPkg, in onBind()
/frameworks/base/core/java/com/android/internal/app/
DAppLocaleStore.java47 localeConfig = new LocaleConfig(context.createPackageContext(packageName, 0)); in getAppSupportedLocales()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DUtils.java97 return context.createPackageContext(packageName, /* flags= */ 0).getDrawable(resId); in getVendorHeaderIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
DRoundedCornerResDelegateTest.kt128 return mContext.createPackageContext("com.android.systemui.tests", 0) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/
DImageLoaderTest.kt44 val context = context.createPackageContext("com.android.systemui.tests", 0) in setUp()
108 val context = context.createPackageContext("com.android.systemui.tests", 0) in validBitmapResource_loadDrawable_returnsBitmapDrawable()
/frameworks/base/services/core/java/com/android/server/pm/
DModuleInfoProvider.java111 Context packageContext = mContext.createPackageContext(mPackageName, 0); in systemReady()
/frameworks/base/core/java/android/accounts/
DGrantCredentialsPermissionActivity.java157 return createPackageContext(desc.packageName, 0).getString(desc.labelId); in getAccountLabel()
DChooseAccountTypeActivity.java135 Context authContext = createPackageContext(desc.packageName, 0); in buildTypeToAuthDescriptionMap()
DChooseAccountActivity.java124 Context authContext = createPackageContext(desc.packageName, 0); in getDrawableForType()
/frameworks/base/core/java/android/app/
DSearchableInfo.java264 theirContext = context.createPackageContext(activity.getPackageName(), 0); in createActivityContext()
291 theirContext = context.createPackageContext(mSuggestProviderPackage, 0); in getProviderContext()
/frameworks/base/services/core/java/com/android/server/gpu/
DGpuService.java250 final Context driverContext = mContext.createPackageContext(mProdDriverPackageName, in fetchProductionDriverPackageProperties()
/frameworks/base/core/java/android/content/
DRestrictionsManager.java621 appContext = mContext.createPackageContext(packageName, 0 /* flags */); in loadManifestRestrictions()
DContextWrapper.java1088 public Context createPackageContext(String packageName, int flags) in createPackageContext() method in ContextWrapper
1090 return mBase.createPackageContext(packageName, flags); in createPackageContext()
/frameworks/base/core/java/android/preference/
DPreferenceManager.java303 context = mContext.createPackageContext(activityInfo.packageName, 0); in inflateFromIntent()
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/
DRavenwoodBaseContext.java688 public Context createPackageContext(String packageName, int flags) in createPackageContext() method in RavenwoodBaseContext
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DApplicationContext.java1118 public Context createPackageContext(String packageName, int flags) in createPackageContext() method in ApplicationContext
1122 return context.createPackageContext(packageName, flags); in createPackageContext()
/frameworks/base/core/tests/overlaytests/device_self_targeting/src/com/android/overlaytest/
DOverlayManagerImplTest.java449 mContext.createPackageContext("com.android.systemui", 0 /* flags */); in ensureBaseDir_forOtherPackage_shouldFail()
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java793 public Context createPackageContext(String packageName, int flags) in createPackageContext() method in MockContext
/frameworks/base/core/java/android/os/
DGraphicsEnvironment.java887 context.createPackageContext(driverPackageName, Context.CONTEXT_RESTRICTED); in getSphalLibraries()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperDataParser.java606 Context c = mContext.createPackageContext(pkg, Context.CONTEXT_RESTRICTED); in restoreNamedResourceLocked()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodInfo.java813 final Resources res = context.createPackageContext(getPackageName(), 0).getResources(); in isDefault()
/frameworks/base/services/core/java/com/android/server/locales/
DLocaleManagerService.java617 mContext.createPackageContext(appPackageName, 0)); in setOverrideLocaleConfigUnchecked()
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java429 Context pkgContext = userContext.createPackageContext(packageInfo.packageName, 0); in getSubattributionLabelsForPackage()

12