/packages/modules/Permission/service/java/com/android/safetycenter/ |
D | PendingIntentFactory.java | 83 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/ |
D | PreIndexDataCollector.java | 132 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/ |
D | Util.kt | 41 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/ |
D | FullPreviewActivity.java | 45 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()
|
D | PreviewActivity.java | 48 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/ |
D | CursorToSearchResultConverter.java | 164 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/ |
D | UpdatablePackageContext.java | 51 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/ |
D | CarNotificationHeaderView.java | 132 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()
|
D | CarNotificationBodyView.java | 340 Context packageContext = sbn.getPackageContext(getContext()); in loadAppLauncherIcon() local 341 PackageManager pm = packageContext.getPackageManager(); in loadAppLauncherIcon() 342 return pm.getApplicationIcon(packageContext.getApplicationInfo()); in loadAppLauncherIcon()
|
D | GroupNotificationViewHolder.java | 458 Context packageContext = sbn.getPackageContext(getContext()); in loadHeaderAppName() local 459 PackageManager pm = packageContext.getPackageManager(); in loadHeaderAppName() 461 CharSequence name = pm.getApplicationLabel(packageContext.getApplicationInfo()); in loadHeaderAppName()
|
D | CarNotificationActionsView.java | 214 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/ |
D | ActivityInstrumentationTestCaseIntent.java | 28 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/ |
D | Action.java | 299 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/ |
D | WifiSlice.java | 188 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/ |
D | ModuleNetworkStackClient.java | 46 public static synchronized ModuleNetworkStackClient getInstance(Context packageContext) { in getInstance() argument
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 4991 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()
|