/frameworks/base/core/java/android/content/ |
D | RestrictionsManager.java | 558 Context appContext; in loadManifestRestrictions() local 560 appContext = mContext.createPackageContext(packageName, 0 /* flags */); in loadManifestRestrictions() 571 restriction = loadRestrictionElement(appContext, xml); in loadManifestRestrictions() 589 private RestrictionEntry loadRestrictionElement(Context appContext, XmlResourceParser xml) in loadRestrictionElement() argument 594 TypedArray a = appContext.obtainStyledAttributes(attrSet, in loadRestrictionElement() 596 return loadRestriction(appContext, a, xml); in loadRestrictionElement() 602 … private RestrictionEntry loadRestriction(Context appContext, TypedArray a, XmlResourceParser xml) in loadRestriction() argument 626 restriction.setChoiceEntries(appContext, entries); in loadRestriction() 629 restriction.setChoiceValues(appContext, entryValues); in loadRestriction() 647 appContext.getResources().getStringArray(resId)); in loadRestriction() [all …]
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | ActionsModelParamsSupplier.java | 63 final Context appContext = Preconditions.checkNotNull(context).getApplicationContext(); in ActionsModelParamsSupplier() local 65 mAppContext = appContext != null ? appContext : context; in ActionsModelParamsSupplier() 195 SettingsObserver(Context appContext, Runnable listener) { in SettingsObserver() argument 198 appContext.getContentResolver().registerContentObserver( in SettingsObserver()
|
/frameworks/base/telephony/java/android/telephony/ |
D | CellLocation.java | 55 final Context appContext = ActivityThread.currentApplication(); in requestLocationUpdate() local 56 if (appContext == null) return; // should never happen in requestLocationUpdate() 61 phone.updateServiceLocationWithPackageName(appContext.getOpPackageName()); in requestLocationUpdate()
|
D | TelephonyManager.java | 324 Context appContext = context.getApplicationContext(); in TelephonyManager() local 325 if (appContext != null) { in TelephonyManager() 326 mContext = appContext; in TelephonyManager()
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | CarHelperRegistry.java | 39 H createHelper(@NonNull Context appContext); in createHelper() argument 108 @NonNull Context appContext, @NonNull Class<H> cls, @NonNull HelperCreator<H> creator) { in getOrCreateHelper() 113 helper = creator.createHelper(appContext); in getOrCreateHelper()
|
/frameworks/base/startop/apps/ColorChanging/app/src/androidTest/java/com/android/startop/colorchanging/ |
D | ExampleInstrumentedTest.java | 23 Context appContext = InstrumentationRegistry.getTargetContext(); in useAppContext() local 25 assertEquals("com.android.startop.colorchanging", appContext.getPackageName()); in useAppContext()
|
/frameworks/base/core/java/android/security/ |
D | NetworkSecurityPolicy.java | 114 Context appContext = context.createPackageContext(packageName, 0); in getApplicationConfigForPackage() local 115 ManifestConfigSource source = new ManifestConfigSource(appContext); in getApplicationConfigForPackage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | PreviewInflater.java | 82 Context appContext = mContext.createPackageContext( in inflateWidgetView() local 85 appContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in inflateWidgetView() 86 appInflater = appInflater.cloneInContext(appContext); in inflateWidgetView()
|
/frameworks/base/core/java/android/util/ |
D | NtpTrustedTime.java | 135 Context appContext = context.getApplicationContext(); in getInstance() local 136 sSingleton = new NtpTrustedTime(appContext); in getInstance()
|
/frameworks/base/media/java/android/media/ |
D | MediaRouter.java | 117 Static(Context appContext) { in Static() argument 118 mPackageName = appContext.getPackageName(); in Static() 119 mResources = appContext.getResources(); in Static() 120 mHandler = new Handler(appContext.getMainLooper()); in Static() 125 mDisplayService = (DisplayManager) appContext.getSystemService(Context.DISPLAY_SERVICE); in Static() 138 mCanConfigureWifiDisplays = appContext.checkPermission( in Static() 144 void startMonitoringRoutes(Context appContext) { in startMonitoringRoutes() argument 149 if (((AudioManager) appContext.getSystemService(Context.AUDIO_SERVICE)) in startMonitoringRoutes() 159 appContext.registerReceiver(new WifiDisplayStatusChangedReceiver(), in startMonitoringRoutes() 161 appContext.registerReceiver(new VolumeChangeReceiver(), in startMonitoringRoutes() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothManager.java | 166 void onBluetoothManagerInitialized(Context appContext, in onBluetoothManagerInitialized() argument
|
/frameworks/base/telecomm/java/android/telecom/ |
D | TelecomManager.java | 939 Context appContext = context.getApplicationContext(); in TelecomManager() local 940 if (appContext != null) { in TelecomManager() 941 mContext = appContext; in TelecomManager()
|
/frameworks/base/core/java/android/app/ |
D | ActivityThread.java | 3197 ContextImpl appContext = createBaseContextForActivity(r); in performLaunchActivity() local 3200 java.lang.ClassLoader cl = appContext.getClassLoader(); in performLaunchActivity() 3229 CharSequence title = r.activityInfo.loadLabel(appContext.getPackageManager()); in performLaunchActivity() 3242 appContext.setOuterContext(activity); in performLaunchActivity() 3243 activity.attach(appContext, this, getInstrumentation(), r.token, in performLaunchActivity() 3374 ContextImpl appContext = ContextImpl.createActivityContext( in createBaseContextForActivity() local 3387 dm.getCompatibleDisplay(id, appContext.getResources()); in createBaseContextForActivity() 3388 appContext = (ContextImpl) appContext.createDisplayContext(display); in createBaseContextForActivity() 3393 return appContext; in createBaseContextForActivity() 6383 final ContextImpl appContext = ContextImpl.createAppContext(this, data.info); in handleBindApplication() local [all …]
|
D | LoadedApk.java | 1193 ContextImpl appContext = ContextImpl.createAppContext(mActivityThread, this); in makeApplication() local 1195 cl, appClass, appContext); in makeApplication() 1196 appContext.setOuterContext(app); in makeApplication()
|
D | Instrumentation.java | 2024 Context instrContext, Context appContext, ComponentName component, in init() argument 2029 mAppContext = appContext; in init()
|
D | SystemServiceRegistry.java | 1542 Context appContext = ctx.getApplicationContext(); in getService() local 1548 mCachedInstance = createService(appContext != null ? appContext : ctx); in getService()
|