Home
last modified time | relevance | path

Searched refs:targetInfo (Results 1 – 17 of 17) sorted by relevance

/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/chooser/
DTargetInfoTest.kt101 val targetInfo = SelectableTargetInfo.newSelectableTargetInfo( in testNewSelectableTargetInfo() constant
111 assertThat(targetInfo.isSelectableTargetInfo).isTrue() in testNewSelectableTargetInfo()
112 assertThat(targetInfo.isChooserTargetInfo).isTrue() // From legacy inheritance model. in testNewSelectableTargetInfo()
113 assertThat(targetInfo.displayResolveInfo).isSameInstanceAs(baseDisplayInfo) in testNewSelectableTargetInfo()
114 assertThat(targetInfo.chooserTargetComponentName).isEqualTo(chooserTarget.componentName) in testNewSelectableTargetInfo()
115 assertThat(targetInfo.directShareShortcutId).isEqualTo(shortcutInfo.id) in testNewSelectableTargetInfo()
116 assertThat(targetInfo.directShareShortcutInfo).isSameInstanceAs(shortcutInfo) in testNewSelectableTargetInfo()
117 assertThat(targetInfo.directShareAppTarget).isSameInstanceAs(appTarget) in testNewSelectableTargetInfo()
118 assertThat(targetInfo.resolvedIntent).isSameInstanceAs(resolvedIntent) in testNewSelectableTargetInfo()
141 val targetInfo = SelectableTargetInfo.newSelectableTargetInfo( in test_SelectableTargetInfo_componentName_no_source_info() constant
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserActivity.java262 TargetInfo targetInfo = completion.getTargetInfo(); in onCreate()
264 if (targetInfo != null) { in onCreate()
265 maybeRemoveSharedText(targetInfo); in onCreate()
271 ChooserActivity.super.onTargetSelected(targetInfo, false); in onCreate()
830 private void showTargetDetails(TargetInfo targetInfo) {
831 if (targetInfo == null) return;
833 List<DisplayResolveInfo> targetList = targetInfo.getAllDisplayTargets();
841 boolean isShortcutPinned = targetInfo.isSelectableTargetInfo() && targetInfo.isPinned();
842 IntentFilter intentFilter = targetInfo.isSelectableTargetInfo()
844 String shortcutTitle = targetInfo.isSelectableTargetInfo()
[all …]
DResolverListController.java350 public float getScore(TargetInfo targetInfo) { in getScore() argument
351 return mResolverComparator.getScore(targetInfo); in getScore()
357 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
358 mResolverComparator.updateModel(targetInfo); in updateModel()
DChooserRefinementManager.java63 RefinementCompletion(TargetInfo targetInfo) { in RefinementCompletion() argument
64 mTargetInfo = targetInfo; in RefinementCompletion()
DResolverListAdapter.java173 public float getScore(TargetInfo targetInfo) { in getScore() argument
174 return mResolverListController.getScore(targetInfo); in getScore()
180 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
181 mResolverListController.updateModel(targetInfo); in updateModel()
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/
DChooserListAdapterTest.kt89 val targetInfo = createSelectableTargetInfo() in testDirectShareTargetLoadingIconIsStarted() constant
90 testSubject.onBindView(view, targetInfo, 0) in testDirectShareTargetLoadingIconIsStarted()
100 val targetInfo = createSelectableTargetInfo() in onBindView_DirectShareTargetIconAndLabelLoadedOnlyOnce() constant
101 testSubject.onBindView(view, targetInfo, 0) in onBindView_DirectShareTargetIconAndLabelLoadedOnlyOnce()
106 testSubject.onBindView(view, targetInfo, 0) in onBindView_DirectShareTargetIconAndLabelLoadedOnlyOnce()
116 val targetInfo = in onBindView_AppTargetIconAndLabelLoadedOnlyOnce() constant
125 testSubject.onBindView(view, targetInfo, 0) in onBindView_AppTargetIconAndLabelLoadedOnlyOnce()
130 testSubject.onBindView(view, targetInfo, 0) in onBindView_AppTargetIconAndLabelLoadedOnlyOnce()
DChooserRefinementManagerTest.kt62 val targetInfo = completion.targetInfo in onChanged() constant
63 if (targetInfo == null) { in onChanged()
66 latestTargetInfo = targetInfo in onChanged()
164 val targetInfo = in testMaybeHandleSelection_suspended() constant
172 targetInfo, in testMaybeHandleSelection_suspended()
235 assertThat(refinementCompletion.targetInfo).isEqualTo(exampleTargetInfo) in testRefinementCompletion()
237 assertThat(refinementCompletion.targetInfo).isEqualTo(exampleTargetInfo) in testRefinementCompletion()
DUnbundledChooserActivityTest.java468 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in twoOptionsAndUserSelectsOne()
469 chosen[0] = targetInfo.getResolveInfo(); in twoOptionsAndUserSelectsOne()
514 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in fourOptionsStackedIntoOneTarget()
515 chosen[0] = targetInfo.getResolveInfo(); in fourOptionsStackedIntoOneTarget()
545 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in updateChooserCountsAndModelAfterUserSelection()
587 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in autoLaunchSingleResult()
588 chosen[0] = targetInfo.getResolveInfo(); in autoLaunchSingleResult()
622 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in hasOtherProfileOneOption()
623 chosen[0] = targetInfo.getResolveInfo(); in hasOtherProfileOneOption()
657 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in hasOtherProfileTwoOptionsAndUserSelectsOne()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/model/
DAppPredictionServiceResolverComparator.java178 public float getScore(TargetInfo targetInfo) { in getScore() argument
179 return mComparatorModel.getScore(targetInfo); in getScore()
183 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
184 mComparatorModel.notifyOnTargetSelected(targetInfo); in updateModel()
257 public float getScore(TargetInfo targetInfo) { in getScore() argument
259 return mResolverRankerService.getScore(targetInfo); in getScore()
261 Integer rank = mTargetRanks.get(targetInfo.getResolvedComponentName()); in getScore()
271 public void notifyOnTargetSelected(TargetInfo targetInfo) { in notifyOnTargetSelected() argument
273 mResolverRankerService.updateModel(targetInfo); in notifyOnTargetSelected()
276 ComponentName targetComponent = targetInfo.getResolvedComponentName(); in notifyOnTargetSelected()
DResolverRankerServiceResolverComparator.java288 public float getScore(TargetInfo targetInfo) { in getScore() argument
289 return mComparatorModel.getScore(targetInfo); in getScore()
294 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
296 mComparatorModel.notifyOnTargetSelected(targetInfo); in updateModel()
611 public float getScore(TargetInfo targetInfo) { in getScore() argument
613 targetInfo.getResolvedComponentName(), targetInfo.getResolveInfo().userHandle); in getScore()
621 public void notifyOnTargetSelected(TargetInfo targetInfo) { in notifyOnTargetSelected() argument
625 if (mTargetsDictPerUser.containsKey(targetInfo.getResolveInfo().userHandle)) { in notifyOnTargetSelected()
627 .get(targetInfo.getResolveInfo().userHandle).keySet()) in notifyOnTargetSelected()
628 .indexOf(targetInfo.getResolvedComponentName()); in notifyOnTargetSelected()
[all …]
DResolverComparatorModel.java48 float getScore(TargetInfo targetInfo); in getScore() argument
56 void notifyOnTargetSelected(TargetInfo targetInfo); in notifyOnTargetSelected() argument
DAbstractResolverComparator.java254 public abstract float getScore(TargetInfo targetInfo); in getScore() argument
281 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
/packages/apps/Launcher3/src/com/android/launcher3/
DAbstractFloatingView.java197 Pair<View, String> targetInfo = getAccessibilityTarget(); in announceAccessibilityChanges() local
198 if (targetInfo == null || !isAccessibilityEnabled(getContext())) { in announceAccessibilityChanges()
202 targetInfo.first, TYPE_WINDOW_STATE_CHANGED, targetInfo.second); in announceAccessibilityChanges()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icons/
DLoadDirectShareIconTask.java51 SelectableTargetInfo targetInfo, in LoadDirectShareIconTask() argument
55 mTargetInfo = targetInfo; in LoadDirectShareIconTask()
/packages/services/Car/service/src/com/android/car/hal/
DUserHalHelper.java533 UserInfo targetInfo = request.targetUser; in toHalPropValue() local
535 Objects.requireNonNull(targetInfo); in toHalPropValue()
542 addUserInfo(intValues, targetInfo); in toHalPropValue()
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/model/
DAbstractResolverComparatorTest.java131 public float getScore(TargetInfo targetInfo) { in getTestComparator()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DQuickstepLauncher.java285 ItemInfo targetInfo = mAllAppsPredictions.items.get(i); in logAppLaunch() local
286 if (targetInfo.itemType == info.itemType in logAppLaunch()
287 && targetInfo.user.equals(info.user) in logAppLaunch()
288 && Objects.equals(targetInfo.getIntent(), info.getIntent())) { in logAppLaunch()