Home
last modified time | relevance | path

Searched refs:DisplayResolveInfo (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/IntentResolver/java/src/com/android/intentresolver/chooser/
DMultiDisplayResolveInfo.java36 public class MultiDisplayResolveInfo extends DisplayResolveInfo {
38 final ArrayList<DisplayResolveInfo> mTargetInfos;
48 List<DisplayResolveInfo> targetInfos) { in newMultiDisplayResolveInfo()
56 private MultiDisplayResolveInfo(List<DisplayResolveInfo> targetInfos) { in MultiDisplayResolveInfo()
79 public ArrayList<DisplayResolveInfo> getAllDisplayTargets() { in getAllDisplayTargets()
90 public DisplayResolveInfo getSelectedTarget() { in getSelectedTarget()
105 ArrayList<DisplayResolveInfo> targetInfos = new ArrayList<>(size); in tryToCloneWithAppliedRefinement()
107 DisplayResolveInfo target = mTargetInfos.get(i); in tryToCloneWithAppliedRefinement()
108 DisplayResolveInfo targetClone = (i == mSelected) in tryToCloneWithAppliedRefinement()
110 : new DisplayResolveInfo(target); in tryToCloneWithAppliedRefinement()
DDisplayResolveInfo.java38 public class DisplayResolveInfo implements TargetInfo { class
49 public static DisplayResolveInfo newDisplayResolveInfo( in newDisplayResolveInfo()
62 public static DisplayResolveInfo newDisplayResolveInfo( in newDisplayResolveInfo()
68 return new DisplayResolveInfo( in newDisplayResolveInfo()
76 private DisplayResolveInfo( in DisplayResolveInfo() method in DisplayResolveInfo
93 private DisplayResolveInfo( in DisplayResolveInfo() method in DisplayResolveInfo
94 DisplayResolveInfo other, in DisplayResolveInfo()
109 protected DisplayResolveInfo(DisplayResolveInfo other) { in DisplayResolveInfo() method in DisplayResolveInfo
160 public DisplayResolveInfo tryToCloneWithAppliedRefinement(Intent proposedRefinement) { in tryToCloneWithAppliedRefinement()
171 return new DisplayResolveInfo( in tryToCloneWithAppliedRefinement()
[all …]
DDisplayResolveInfoAzInfoComparator.java28 public class DisplayResolveInfoAzInfoComparator implements Comparator<DisplayResolveInfo> {
29 Comparator<DisplayResolveInfo> mComparator;
35 mComparator = Comparator.comparing(DisplayResolveInfo::getDisplayLabel, collator) in DisplayResolveInfoAzInfoComparator()
41 DisplayResolveInfo lhsp, DisplayResolveInfo rhsp) { in compare()
DImmutableTargetInfo.java106 private DisplayResolveInfo mDisplayResolveInfo;
135 private ImmutableList<DisplayResolveInfo> mAllDisplayTargets = ImmutableList.of();
250 public Builder setAllDisplayTargets(List<DisplayResolveInfo> targets) { in setAllDisplayTargets()
286 public Builder setDisplayResolveInfo(@Nullable DisplayResolveInfo displayResolveInfo) { in setDisplayResolveInfo()
363 private final DisplayResolveInfo mDisplayResolveInfo;
376 private final ImmutableList<DisplayResolveInfo> mAllDisplayTargets;
501 public ArrayList<DisplayResolveInfo> getAllDisplayTargets() { in getAllDisplayTargets()
502 ArrayList<DisplayResolveInfo> targets = new ArrayList<>(); in getAllDisplayTargets()
536 public DisplayResolveInfo getDisplayResolveInfo() { in getDisplayResolveInfo()
600 ImmutableList<DisplayResolveInfo> allDisplayTargets, in ImmutableTargetInfo()
[all …]
DSelectableTargetInfo.java68 private final DisplayResolveInfo mSourceInfo;
107 @Nullable DisplayResolveInfo sourceInfo, in newSelectableTargetInfo()
141 @Nullable DisplayResolveInfo sourceInfo, in newSelectableTargetInfo()
168 @Nullable DisplayResolveInfo sourceInfo, in SelectableTargetInfo()
305 public DisplayResolveInfo getDisplayResolveInfo() { in getDisplayResolveInfo()
400 @Nullable DisplayResolveInfo sourceInfo, Intent fallbackSourceIntent) { in getAllSourceIntents()
420 @Nullable DisplayResolveInfo sourceInfo, ResolveInfo backupResolveInfo) { in getResolvedComponentName()
DTargetInfo.java237 ArrayList<DisplayResolveInfo> getAllDisplayTargets(); in getAllDisplayTargets()
337 default DisplayResolveInfo getDisplayResolveInfo() { in getDisplayResolveInfo()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DResolverListAdapter.java48 import com.android.intentresolver.chooser.DisplayResolveInfo;
82 private final Set<DisplayResolveInfo> mRequestedIcons = new HashSet<>();
83 private final Set<DisplayResolveInfo> mRequestedLabels = new HashSet<>();
89 private DisplayResolveInfo mOtherProfile;
93 private final List<DisplayResolveInfo> mDisplayList;
167 public final DisplayResolveInfo getFirstDisplayResolveInfo() { in getFirstDisplayResolveInfo()
171 public final ImmutableList<DisplayResolveInfo> getTargetsInCurrentDisplayList() { in getTargetsInCurrentDisplayList()
188 public DisplayResolveInfo getFilteredItem() { in getFilteredItem()
196 public DisplayResolveInfo getOtherProfile() { in getOtherProfile()
211 public float getScore(DisplayResolveInfo target) { in getScore()
[all …]
DChooserListAdapter.java50 import com.android.intentresolver.chooser.DisplayResolveInfo;
116 private final List<DisplayResolveInfo> mCallerTargets = new ArrayList<>();
121 private final List<DisplayResolveInfo> mSortedList = new ArrayList<>();
305 DisplayResolveInfo displayResolveInfo = in ChooserListAdapter()
306 DisplayResolveInfo.newDisplayResolveInfo(ii, ri, ii); in ChooserListAdapter()
391 DisplayResolveInfo rInfo = info.getDisplayResolveInfo(); in onBindView()
415 DisplayResolveInfo dri = (DisplayResolveInfo) info; in onBindView()
515 final List<DisplayResolveInfo> allTargets = new ArrayList<>(); in updateAlphabeticalList()
519 new AsyncTask<Void, Void, List<DisplayResolveInfo>>() { in updateAlphabeticalList()
521 protected List<DisplayResolveInfo> doInBackground(Void... voids) { in updateAlphabeticalList()
[all …]
DChooserTargetActionsDialogFragment.java53 import com.android.intentresolver.chooser.DisplayResolveInfo;
67 private final List<DisplayResolveInfo> mTargetInfos;
82 List<DisplayResolveInfo> targetInfos, in show()
266 protected CharSequence getItemLabel(DisplayResolveInfo dri) { in getItemLabel()
273 protected Drawable getItemIcon(DisplayResolveInfo dri) { in getItemIcon()
287 private boolean isPinned(DisplayResolveInfo dri) { in isPinned()
296 List<DisplayResolveInfo> targetInfos, UserHandle userHandle) { in ChooserTargetActionsDialogFragment()
301 List<DisplayResolveInfo> targetInfos, in ChooserTargetActionsDialogFragment()
DChooserStackedAppDialogFragment.java28 import com.android.intentresolver.chooser.DisplayResolveInfo;
72 protected CharSequence getItemLabel(DisplayResolveInfo dri) { in getItemLabel()
78 protected Drawable getItemIcon(DisplayResolveInfo dri) { in getItemIcon()
DShortcutSelectionLogic.java30 import com.android.intentresolver.chooser.DisplayResolveInfo;
71 @Nullable DisplayResolveInfo origTarget, in addServiceResults()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/chooser/
DTargetInfoTest.kt86 DisplayResolveInfo.newDisplayResolveInfo( in testNewSelectableTargetInfo()
179 DisplayResolveInfo.newDisplayResolveInfo( in testSelectableTargetInfo_noSourceIntentMatchingProposedRefinement()
227 DisplayResolveInfo.newDisplayResolveInfo( in testNewDisplayResolveInfo()
251 DisplayResolveInfo.newDisplayResolveInfo( in test_DisplayResolveInfo_refinementToAlternateSourceIntent()
284 DisplayResolveInfo.newDisplayResolveInfo( in testDisplayResolveInfo_noSourceIntentMatchingProposedRefinement()
309 DisplayResolveInfo.newDisplayResolveInfo( in testNewMultiDisplayResolveInfo()
317 DisplayResolveInfo.newDisplayResolveInfo( in testNewMultiDisplayResolveInfo()
365 DisplayResolveInfo.newDisplayResolveInfo( in testNewMultiDisplayResolveInfo_getAllSourceIntents_fromSelectedTarget()
374 DisplayResolveInfo.newDisplayResolveInfo( in testNewMultiDisplayResolveInfo_getAllSourceIntents_fromSelectedTarget()
383 DisplayResolveInfo.newDisplayResolveInfo( in testNewMultiDisplayResolveInfo_getAllSourceIntents_fromSelectedTarget()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icons/
DTargetDataLoader.kt21 import com.android.intentresolver.chooser.DisplayResolveInfo
29 info: DisplayResolveInfo,
42 abstract fun loadLabel(info: DisplayResolveInfo, callback: Consumer<LabelInfo>)
45 abstract fun getOrLoadLabel(info: DisplayResolveInfo)
DCachingTargetDataLoader.kt23 import com.android.intentresolver.chooser.DisplayResolveInfo in <lambda>()
40 info: DisplayResolveInfo, in <lambda>()
67 override fun loadLabel(info: DisplayResolveInfo, callback: Consumer<LabelInfo>) = in <lambda>()
70 override fun getOrLoadLabel(info: DisplayResolveInfo) = targetDataLoader.getOrLoadLabel(info) in <lambda>()
80 private fun DisplayResolveInfo.toCacheKey() = in <lambda>() method
DLoadLabelTask.java27 import com.android.intentresolver.chooser.DisplayResolveInfo;
33 private final DisplayResolveInfo mDisplayResolveInfo;
38 LoadLabelTask(Context context, DisplayResolveInfo dri, in LoadLabelTask()
61 DisplayResolveInfo displayResolveInfo, in loadLabel()
DDefaultTargetDataLoader.kt30 import com.android.intentresolver.chooser.DisplayResolveInfo in <lambda>()
66 info: DisplayResolveInfo, in <lambda>()
99 override fun loadLabel(info: DisplayResolveInfo, callback: Consumer<LabelInfo>) { in <lambda>()
109 override fun getOrLoadLabel(info: DisplayResolveInfo) { in <lambda>()
DLoadIconTask.java28 import com.android.intentresolver.chooser.DisplayResolveInfo;
34 protected final DisplayResolveInfo mDisplayResolveInfo;
39 Context context, DisplayResolveInfo dri, in LoadIconTask()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/shortcuts/
DShortcutLoader.kt38 import com.android.intentresolver.chooser.DisplayResolveInfo in <lambda>()
82 MutableSharedFlow<Array<DisplayResolveInfo>?>( in <lambda>()
154 open fun updateAppTargets(appTargets: Array<DisplayResolveInfo>) { in <lambda>()
256 appTargets: Array<DisplayResolveInfo>, in <lambda>()
326 val appTargets: Array<DisplayResolveInfo>, in <lambda>()
335 val appTarget: DisplayResolveInfo, in <lambda>()
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DResolverWrapperActivity.java36 import com.android.intentresolver.chooser.DisplayResolveInfo;
176 @NonNull DisplayResolveInfo info, in getOrLoadAppTargetIcon()
193 @NonNull DisplayResolveInfo info, in loadLabel()
205 public void getOrLoadLabel(@NonNull DisplayResolveInfo info) { in getOrLoadLabel()
DIChooserWrapper.java26 import com.android.intentresolver.chooser.DisplayResolveInfo;
41 DisplayResolveInfo createTestDisplayResolveInfo( in createTestDisplayResolveInfo()
DChooserWrapperActivity.java35 import com.android.intentresolver.chooser.DisplayResolveInfo;
175 public DisplayResolveInfo createTestDisplayResolveInfo( in createTestDisplayResolveInfo()
181 return DisplayResolveInfo.newDisplayResolveInfo( in createTestDisplayResolveInfo()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DChooserListAdapterTest.kt31 import com.android.intentresolver.chooser.DisplayResolveInfo
129 DisplayResolveInfo.newDisplayResolveInfo( in onBindView_AppTargetIconAndLabelLoadedOnlyOnce()
209 private fun createDisplayResolveInfo(isPinned: Boolean = false): DisplayResolveInfo = in createDisplayResolveInfo()
210 DisplayResolveInfo.newDisplayResolveInfo( in createDisplayResolveInfo()
DShortcutSelectionLogicTest.kt27 import com.android.intentresolver.chooser.DisplayResolveInfo in <lambda>()
62 DisplayResolveInfo.newDisplayResolveInfo( in <lambda>()
71 DisplayResolveInfo.newDisplayResolveInfo( in <lambda>()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeGeneratorFragment.java44 import com.android.internal.app.chooser.DisplayResolveInfo;
219 final DisplayResolveInfo dri = new DisplayResolveInfo( in getNearbySharingTarget()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/shortcuts/
DShortcutLoaderTest.kt30 import com.android.intentresolver.chooser.DisplayResolveInfo
88 mock<DisplayResolveInfo> { on { resolvedComponentName } doReturn componentName } in <lambda>()
495 testSubject.updateAppTargets(arrayOf<DisplayResolveInfo>(mock())) in testDisabledWorkProfileDoNotCallSystem()
527 testSubject.updateAppTargets(arrayOf<DisplayResolveInfo>(mock())) in testAlwaysCallSystemForMainProfile()

12