Home
last modified time | relevance | path

Searched refs:packageContext (Results 1 – 16 of 16) sorted by relevance

/packages/modules/Permission/service/java/com/android/safetycenter/
DPendingIntentFactory.java83 Context packageContext = createPackageContextAsUser(mContext, packageName, userId); in getPendingIntent() local
84 if (packageContext == null) { in getPendingIntent()
87 Intent intent = createIntent(packageContext, sourceId, intentAction, isQuietModeEnabled); in getPendingIntent()
92 packageContext, DEFAULT_REQUEST_CODE, intent, PendingIntent.FLAG_IMMUTABLE); in getPendingIntent()
97 Context packageContext, in createIntent() argument
117 if (intentResolvesToActivity(packageContext, intent)) { in createIntent()
124 Intent explicitIntent = new Intent(intent).setPackage(packageContext.getPackageName()); in createIntent()
125 if (intentResolvesToActivity(packageContext, explicitIntent)) { in createIntent()
150 private static boolean intentResolvesToActivity(Context packageContext, Intent intent) { in intentResolvesToActivity() argument
151 ResolveInfo resolveInfo = resolveActivity(packageContext, intent); in intentResolvesToActivity()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DPreIndexDataCollector.java132 List<SearchIndexableResource> getIndexablesForXmlResourceUri(Context packageContext, in getIndexablesForXmlResourceUri() argument
135 final ContentResolver resolver = packageContext.getContentResolver(); in getIndexablesForXmlResourceUri()
148 SearchIndexableResource sir = new SearchIndexableResource(packageContext); in getIndexablesForXmlResourceUri()
182 final Context packageContext = mContext.createPackageContext(packageName, 0); in getNonIndexablesKeysFromRemoteProvider() local
185 return getNonIndexablesKeys(packageContext, uriForNonIndexableKeys, in getNonIndexablesKeysFromRemoteProvider()
215 List<SearchIndexableRaw> getIndexablesForRawDataUri(Context packageContext, String packageName, in getIndexablesForRawDataUri() argument
217 final ContentResolver resolver = packageContext.getContentResolver(); in getIndexablesForRawDataUri()
250 SearchIndexableRaw data = new SearchIndexableRaw(packageContext); in getIndexablesForRawDataUri()
277 List<Pair<String, String>> getSiteMapFromProvider(Context packageContext, Uri uri) { in getSiteMapFromProvider() argument
278 final ContentResolver resolver = packageContext.getContentResolver(); in getSiteMapFromProvider()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DUtil.kt41 fun getResourceUri(packageContext: Context?, res: Int): Uri? { in getResourceUri()
43 val resources: Resources? = packageContext?.getResources() in getResourceUri()
44 getResourceUri(resources, packageContext?.getPackageName(), res) in getResourceUri()
46 Log.e(TAG, "Resource not found: " + res + " in " + packageContext?.getPackageName()) in getResourceUri()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DFullPreviewActivity.java45 public static Intent newIntent(Context packageContext, WallpaperInfo wallpaperInfo) { in newIntent() argument
46 Intent intent = new Intent(packageContext, FullPreviewActivity.class); in newIntent()
56 public static Intent newIntent(Context packageContext, WallpaperInfo wallpaperInfo, in newIntent() argument
58 return newIntent(packageContext, wallpaperInfo).putExtra(EXTRA_VIEW_AS_HOME, viewAsHome) in newIntent()
DPreviewActivity.java48 public static Intent newIntent(Context packageContext, WallpaperInfo wallpaperInfo, in newIntent() argument
50 Intent intent = new Intent(packageContext, PreviewActivity.class); in newIntent()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/
DCursorToSearchResultConverter.java164 Context packageContext = contextMap.get(pkgName); in getIconForPackage() local
165 if (packageContext == null) { in getIconForPackage()
169 packageContext = new ContextThemeWrapper( in getIconForPackage()
172 contextMap.put(pkgName, packageContext); in getIconForPackage()
179 final Drawable drawable = packageContext.getDrawable(iconId); in getIconForPackage()
/packages/services/Car/service-builtin/src/com/android/car/
DUpdatablePackageContext.java51 Context packageContext; in create() local
66 packageContext = baseContext.createPackageContext(info.packageName, in create()
72 return new UpdatablePackageContext(baseContext, packageContext); in create()
211 private UpdatablePackageContext(Context baseContext, Context packageContext) { in UpdatablePackageContext() argument
213 mPackageContext = packageContext; in UpdatablePackageContext()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationHeaderView.java132 Context packageContext = sbn.getPackageContext(getContext()); in bind() local
137 Drawable drawable = notification.getSmallIcon().loadDrawable(packageContext); in bind()
251 final Context packageContext = sbn.getPackageContext(mContext); in loadHeaderAppName() local
252 final PackageManager pm = packageContext.getPackageManager(); in loadHeaderAppName()
254 CharSequence name = pm.getApplicationLabel(packageContext.getApplicationInfo()); in loadHeaderAppName()
DCarNotificationBodyView.java340 Context packageContext = sbn.getPackageContext(getContext()); in loadAppLauncherIcon() local
341 PackageManager pm = packageContext.getPackageManager(); in loadAppLauncherIcon()
342 return pm.getApplicationIcon(packageContext.getApplicationInfo()); in loadAppLauncherIcon()
DGroupNotificationViewHolder.java458 Context packageContext = sbn.getPackageContext(getContext()); in loadHeaderAppName() local
459 PackageManager pm = packageContext.getPackageManager(); in loadHeaderAppName()
461 CharSequence name = pm.getApplicationLabel(packageContext.getApplicationInfo()); in loadHeaderAppName()
DCarNotificationActionsView.java214 Context packageContext = alertEntry.getStatusBarNotification().getPackageContext(mContext); in bind() local
229 icon.loadDrawableAsync(packageContext, button::setImageDrawable, getAsyncHandler()); in bind()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/
DActivityInstrumentationTestCaseIntent.java28 public ActivityInstrumentationTestCaseIntent(Context packageContext, Class<?> cls) { in ActivityInstrumentationTestCaseIntent() argument
29 super(packageContext, cls); in ActivityInstrumentationTestCaseIntent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
DAction.java299 Context packageContext = context.createPackageContext(mResourcePackageName, 0); in getIndicator() local
300 icon = packageContext.getDrawable(mDrawableResource); in getIndicator()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DWifiSlice.java188 Context packageContext; in isPermissionGranted() local
190 packageContext = settingsContext.createPackageContext(callingPackage, 0); in isPermissionGranted()
197 final boolean hasPermission = packageContext.checkPermission( in isPermissionGranted()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/networkstack/
DModuleNetworkStackClient.java46 public static synchronized ModuleNetworkStackClient getInstance(Context packageContext) { in getInstance() argument
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java4991 final Context packageContext = getContext().createPackageContext(packageName, 0); in getTitleFromResourceUri() local
4992 final Configuration configuration = packageContext.getResources().getConfiguration(); in getTitleFromResourceUri()
4994 resources = packageContext.createConfigurationContext(configuration).getResources(); in getTitleFromResourceUri()