Home
last modified time | relevance | path

Searched refs:newContext (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/com/android/internal/policy/
DPhoneLayoutInflater.java47 protected PhoneLayoutInflater(LayoutInflater original, Context newContext) { in PhoneLayoutInflater() argument
48 super(original, newContext); in PhoneLayoutInflater()
71 public LayoutInflater cloneInContext(Context newContext) { in cloneInContext() argument
72 return new PhoneLayoutInflater(this, newContext); in cloneInContext()
/frameworks/base/core/java/android/preference/
DPreferenceInflater.java57 …r<Preference, PreferenceGroup> original, PreferenceManager preferenceManager, Context newContext) { in PreferenceInflater() argument
58 super(original, newContext); in PreferenceInflater()
63 public GenericInflater<Preference, PreferenceGroup> cloneInContext(Context newContext) { in cloneInContext() argument
64 return new PreferenceInflater(this, mPreferenceManager, newContext); in cloneInContext()
DGenericInflater.java128 protected GenericInflater(GenericInflater<T,P> original, Context newContext) { in GenericInflater() argument
129 mContext = newContext; in GenericInflater()
145 public abstract GenericInflater cloneInContext(Context newContext); in cloneInContext() argument
/frameworks/layoutlib/bridge/src/android/view/
DBridgeInflater.java109 private BridgeInflater(LayoutInflater original, Context newContext) { in BridgeInflater() argument
110 super(original, newContext); in BridgeInflater()
111 newContext = getBaseContext(newContext); in BridgeInflater()
112 mLayoutlibCallback = (newContext instanceof BridgeContext) ? in BridgeInflater()
113 ((BridgeContext) newContext).getLayoutlibCallback() : in BridgeInflater()
651 public LayoutInflater cloneInContext(Context newContext) { in cloneInContext() argument
652 return new BridgeInflater(this, newContext); in cloneInContext()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesLocaleTest.java118 Context newContext = getContext().createConfigurationContext(config); in assertResGetString() local
119 assertEquals(expectedString, newContext.getResources().getString(resId)); in assertResGetString()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDexUsageTests.java725 private TestData updateClassLoaderContext(String newContext) { in updateClassLoaderContext() argument
726 return updateClassLoaderContext(newContext, mOverwriteCLC); in updateClassLoaderContext()
729 private TestData updateClassLoaderContext(String newContext, boolean overwriteCLC) { in updateClassLoaderContext() argument
731 mPrimaryOrSplit, mUsedBy, newContext, overwriteCLC); in updateClassLoaderContext()
/frameworks/base/core/java/android/view/
DLayoutInflater.java253 protected LayoutInflater(LayoutInflater original, Context newContext) { in LayoutInflater() argument
254 StrictMode.assertConfigurationContext(newContext, "LayoutInflater"); in LayoutInflater()
255 mContext = newContext; in LayoutInflater()
286 public abstract LayoutInflater cloneInContext(Context newContext); in cloneInContext() argument
/frameworks/base/core/java/android/appwidget/
DAppWidgetHostView.java755 Context newContext = mContext.createApplicationContext( in getRemoteContextEnsuringCorrectCachedApkPath() local
759 mColorResources.apply(newContext); in getRemoteContextEnsuringCorrectCachedApkPath()
761 return newContext; in getRemoteContextEnsuringCorrectCachedApkPath()
/frameworks/base/core/java/android/service/credentials/
DCredentialProviderInfoFactory.java457 Context newContext = context.createContextAsUser(UserHandle.of(userId), 0); in getDeviceManagerPolicy() local
460 DevicePolicyManager dpm = newContext.getSystemService(DevicePolicyManager.class); in getDeviceManagerPolicy()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionManager.java3151 Context newContext = context.createConfigurationContext(overrideConfig); in getResourcesForSubId() local
3152 Resources res = newContext.getResources(); in getResourcesForSubId()