Home
last modified time | relevance | path

Searched refs:baseContext (Results 1 – 15 of 15) sorted by relevance

/packages/services/Car/service-builtin/src/com/android/car/
DUpdatablePackageContext.java50 public static UpdatablePackageContext create(Context baseContext) { in create() argument
53 PackageInfo info = findUpdatableServicePackage(baseContext); in create()
62 enableRROForCarServiceUpdatable(baseContext); in create()
66 packageContext = baseContext.createPackageContext(info.packageName, in create()
72 return new UpdatablePackageContext(baseContext, packageContext); in create()
76 private static PackageInfo findUpdatableServicePackage(Context baseContext) { in findUpdatableServicePackage() argument
85 info = baseContext.getPackageManager().getPackageInfo(packageName, /* flags= */ 0); in findUpdatableServicePackage()
94 private static void enableRROForCarServiceUpdatable(Context baseContext) { in enableRROForCarServiceUpdatable() argument
95 List<String> packages = getEligibleRROPackages(baseContext); in enableRROForCarServiceUpdatable()
101 OverlayManager manager = baseContext.getSystemService(OverlayManager.class); in enableRROForCarServiceUpdatable()
[all …]
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/
DSandboxedSdkContext.java67 @NonNull Context baseContext, in SandboxedSdkContext()
75 baseContext, in SandboxedSdkContext()
87 @NonNull Context baseContext, in SandboxedSdkContext()
95 super(baseContext); in SandboxedSdkContext()
101 resources = baseContext.getPackageManager().getResourcesForApplication(info); in SandboxedSdkContext()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSandboxedSdkContextUnitTest.java89 Context baseContext = context; in setUp() local
97 baseContext = context.createContextForSdkInSandbox(info, 0); in setUp()
98 loader = baseContext.getClassLoader(); in setUp()
103 baseContext, in setUp()
282 TestContext baseContext = new TestContext(testService); in testCreateContextWithNewBase() local
285 baseContext, in testCreateContextWithNewBase()
292 assertThat(sdkContext.getBaseContext()).isEqualTo(baseContext); in testCreateContextWithNewBase()
/packages/modules/Permission/service/java/com/android/safetycenter/notifications/
DSafetyCenterNotificationChannels.java60 Context baseContext, UserHandle userHandle) { in getNotificationManagerForUser() argument
61 Context contextAsUser = getContextAsUser(baseContext, userHandle); in getNotificationManagerForUser()
76 static Context getContextAsUser(Context baseContext, UserHandle userHandle) { in getContextAsUser() argument
80 return baseContext.createContextAsUser(userHandle, /* flags= */ 0); in getContextAsUser()
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/di/
DServiceModule.kt54 val baseContext = service.createWindowContext( in provideUiContext() constant
59 return ContextThemeWrapper(baseContext, R.style.BaseTheme) in provideUiContext()
/packages/modules/AdServices/sdksandbox/SdkSandbox/src/com/android/sdksandbox/
DSdkSandboxServiceImpl.java357 Context baseContext; in loadSdkInternal() local
359 baseContext = createBaseContext(customizedApplicationInfo); in loadSdkInternal()
373 ? baseContext.getClassLoader() in loadSdkInternal()
378 baseContext, in loadSdkInternal()
/packages/modules/NetworkStack/src/com/android/networkstack/
DNetworkStackNotifier.java297 private static Context getContextAsUser(Context baseContext, UserHandle user) { in getContextAsUser() argument
299 return baseContext.createPackageContextAsUser( in getContextAsUser()
300 baseContext.getPackageName(), 0 /* flags */, user); in getContextAsUser()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DReceiverTrackingContext.java46 ReceiverTrackingContext(Context baseContext) { in ReceiverTrackingContext() argument
47 super(baseContext); in ReceiverTrackingContext()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/navigation/utils/
DDialogUtils.kt40 is ContextWrapper -> baseContext.getActivityWindow() in getActivityWindow()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DAndroidUtils.kt39 is ContextWrapper -> baseContext.application in <lambda>()
/packages/modules/Permission/tests/cts/permissionui/CreateNotificationChannelsApp31/src/android/permissionui/cts/usepermission/
DCreateNotificationChannelsActivity.kt74 notificationManager = baseContext.getSystemService(NotificationManager::class.java)!! in handleIntent()
/packages/apps/Settings/src/com/android/settings/spa/network/
DSimOnboardingPageProvider.kt91 is ContextWrapper -> baseContext.getActivity() in getRoute()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java487 final Context baseContext = mInstrumentation.getTargetContext(); in getNavBarCanMove() local
489 final Context ctx = getLauncherContext(baseContext); in getNavBarCanMove()
498 final Context baseContext = mInstrumentation.getTargetContext(); in getNavigationModel() local
500 final Context ctx = getLauncherContext(baseContext); in getNavigationModel()
2489 private Context getLauncherContext(Context baseContext)
2493 return baseContext.createPackageContext(getLauncherPackageName(), 0);
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/
DWallpaperPreviewActivity.kt156 return !ActivityUtils.isSUWMode(baseContext) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/
DScrollableScreen.kt322 context = context.baseContext in findActivity()