Home
last modified time | relevance | path

Searched refs:dri (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/com/android/internal/app/
DChooserTargetActionsDialogFragment.java88 List<Pair<Drawable, CharSequence>> items = mTargetInfos.stream().map(dri -> { in onCreateView()
89 return new Pair<>(getItemIcon(dri), getItemLabel(dri)); in onCreateView()
187 protected CharSequence getItemLabel(DisplayResolveInfo dri) { in getItemLabel() argument
189 return getPinLabel(dri.isPinned(), dri.getResolveInfo().loadLabel(pm)); in getItemLabel()
193 protected Drawable getItemIcon(DisplayResolveInfo dri) { in getItemIcon() argument
194 return getPinIcon(dri.isPinned()); in getItemIcon()
DChooserStackedAppDialogFragment.java49 protected CharSequence getItemLabel(DisplayResolveInfo dri) { in getItemLabel() argument
51 return dri.getResolveInfo().loadLabel(pm); in getItemLabel()
55 protected Drawable getItemIcon(DisplayResolveInfo dri) { in getItemIcon() argument
DResolverListAdapter.java390 dri = new DisplayResolveInfo(intent, add,
392 dri.setPinned(rci.isPinned());
396 addResolveInfo(dri);
402 dri.addAlternateSourceIntent(altIntent);
423 private void addResolveInfo(DisplayResolveInfo dri) {
424 if (dri != null && dri.getResolveInfo() != null
425 && dri.getResolveInfo().targetUserId == UserHandle.USER_CURRENT) {
426 if (shouldAddResolveInfo(dri)) {
427 mDisplayList.add(dri);
428 Log.i(TAG, "Add DisplayResolveInfo component: " + dri.getResolvedComponentName()
[all …]
DChooserListAdapter.java264 DisplayResolveInfo dri = (DisplayResolveInfo) info; in onBindView() local
265 holder.bindLabel(dri.getDisplayLabel(), dri.getExtendedInfo(), alwaysShowSubLabel()); in onBindView()
266 LoadIconTask task = mIconLoaders.get(dri); in onBindView()
268 task = new LoadIconTask(dri, holder); in onBindView()
269 mIconLoaders.put(dri, task); in onBindView()
487 protected boolean shouldAddResolveInfo(DisplayResolveInfo dri) { in shouldAddResolveInfo() argument
491 .resolveInfoMatch(dri.getResolveInfo(), existingInfo.getResolveInfo())) { in shouldAddResolveInfo()
495 return super.shouldAddResolveInfo(dri); in shouldAddResolveInfo()
DChooserActivity.java1188 final DisplayResolveInfo dri = new DisplayResolveInfo(
1190 dri.setDisplayIcon(icon);
1191 return dri;
1858 final DisplayResolveInfo dri = adapter.getDisplayResolveInfo(i);
1859 if (adapter.getScore(dri) == 0) {
1864 final ActivityInfo ai = dri.getResolveInfo().activityInfo;
1911 new ChooserTargetServiceConnection(this, dri,
1920 Log.d(TAG, "Binding service connection for target " + dri
1981 final DisplayResolveInfo dri = adapter.getDisplayResolveInfo(i);
1982 if (adapter.getScore(dri) == 0) {
[all …]
DResolverActivity.java581 final DisplayResolveInfo dri =
583 if (dri == null) {
590 onTargetSelected(dri, false);
726 final DisplayResolveInfo dri =
728 if (dri != null && !shouldShowTabs()) {
734 ((TextView) text).setText(dri.getDisplayLabel());
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverWrapperAdapter.java55 protected LoadLabelWrapperTask(DisplayResolveInfo dri, ViewHolder holder) { in LoadLabelWrapperTask() argument
56 super(dri, holder); in LoadLabelWrapperTask()