Home
last modified time | relevance | path

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

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DChooserListAdapterTest.kt101 val targetInfo = createSelectableTargetInfo() in testDirectShareTargetLoadingIconIsStarted() constant
102 testSubject.onBindView(view, targetInfo, 0) in testDirectShareTargetLoadingIconIsStarted()
112 val targetInfo = createSelectableTargetInfo() in onBindView_DirectShareTargetIconAndLabelLoadedOnlyOnce() constant
113 testSubject.onBindView(view, targetInfo, 0) in onBindView_DirectShareTargetIconAndLabelLoadedOnlyOnce()
118 testSubject.onBindView(view, targetInfo, 0) in onBindView_DirectShareTargetIconAndLabelLoadedOnlyOnce()
128 val targetInfo = in onBindView_AppTargetIconAndLabelLoadedOnlyOnce() constant
136 testSubject.onBindView(view, targetInfo, 0) in onBindView_AppTargetIconAndLabelLoadedOnlyOnce()
141 testSubject.onBindView(view, targetInfo, 0) in onBindView_AppTargetIconAndLabelLoadedOnlyOnce()
151 val targetInfo = createSelectableTargetInfo() in onBindView_contentDescription() constant
152 testSubject.onBindView(view, targetInfo, 0) in onBindView_contentDescription()
[all …]
DChooserRefinementManagerTest.kt164 val targetInfo = in testMaybeHandleSelection_suspended() constant
172 targetInfo, in testMaybeHandleSelection_suspended()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/chooser/
DTargetInfoTest.kt109 val targetInfo = in testNewSelectableTargetInfo() constant
120 assertThat(targetInfo.isSelectableTargetInfo).isTrue() in testNewSelectableTargetInfo()
121 assertThat(targetInfo.isChooserTargetInfo).isTrue() // From legacy inheritance model. in testNewSelectableTargetInfo()
122 assertThat(targetInfo.displayResolveInfo).isSameInstanceAs(baseDisplayInfo) in testNewSelectableTargetInfo()
123 assertThat(targetInfo.chooserTargetComponentName).isEqualTo(chooserTarget.componentName) in testNewSelectableTargetInfo()
124 assertThat(targetInfo.directShareShortcutId).isEqualTo(shortcutInfo.id) in testNewSelectableTargetInfo()
125 assertThat(targetInfo.directShareShortcutInfo).isSameInstanceAs(shortcutInfo) in testNewSelectableTargetInfo()
126 assertThat(targetInfo.directShareAppTarget).isSameInstanceAs(appTarget) in testNewSelectableTargetInfo()
127 assertThat(targetInfo.resolvedIntent).isSameInstanceAs(resolvedIntent) in testNewSelectableTargetInfo()
159 val targetInfo = in test_SelectableTargetInfo_componentName_no_source_info() constant
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/model/
DAppPredictionServiceResolverComparator.java195 public float getScore(TargetInfo targetInfo) { in getScore() argument
196 return mComparatorModel.getScore(targetInfo); in getScore()
200 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
201 mComparatorModel.notifyOnTargetSelected(targetInfo); in updateModel()
274 public float getScore(TargetInfo targetInfo) { in getScore() argument
276 return mResolverRankerService.getScore(targetInfo); in getScore()
278 Integer rank = mTargetRanks.get(targetInfo.getResolvedComponentName()); in getScore()
288 public void notifyOnTargetSelected(TargetInfo targetInfo) { in notifyOnTargetSelected() argument
290 mResolverRankerService.updateModel(targetInfo); in notifyOnTargetSelected()
293 ComponentName targetComponent = targetInfo.getResolvedComponentName(); in notifyOnTargetSelected()
DResolverRankerServiceResolverComparator.java290 public float getScore(TargetInfo targetInfo) { in getScore() argument
291 return mComparatorModel.getScore(targetInfo); in getScore()
296 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
298 mComparatorModel.notifyOnTargetSelected(targetInfo); in updateModel()
626 public float getScore(TargetInfo targetInfo) { in getScore() argument
628 targetInfo.getResolvedComponentName(), targetInfo.getResolveInfo().userHandle); in getScore()
636 public void notifyOnTargetSelected(TargetInfo targetInfo) { in notifyOnTargetSelected() argument
640 if (mTargetsDictPerUser.containsKey(targetInfo.getResolveInfo().userHandle)) { in notifyOnTargetSelected()
642 .get(targetInfo.getResolveInfo().userHandle).keySet()) in notifyOnTargetSelected()
643 .indexOf(targetInfo.getResolvedComponentName()); in notifyOnTargetSelected()
[all …]
DResolverComparatorModel.java48 float getScore(TargetInfo targetInfo); in getScore() argument
56 void notifyOnTargetSelected(TargetInfo targetInfo); in notifyOnTargetSelected() argument
DAbstractResolverComparator.java264 public abstract float getScore(TargetInfo targetInfo); in getScore() argument
291 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/icons/
DCachingTargetDataLoaderTest.kt82 val targetInfo = in serviceShortcutsAreCached() constant
104 .getOrLoadDirectShareIcon(eq(targetInfo), eq(userHandle), any()) in serviceShortcutsAreCached()
108 testSubject.getOrLoadDirectShareIcon(targetInfo, userHandle, callback) in serviceShortcutsAreCached()
109 testSubject.getOrLoadDirectShareIcon(targetInfo, userHandle, callback) in serviceShortcutsAreCached()
112 1 * { getOrLoadDirectShareIcon(eq(targetInfo), eq(userHandle), any()) } in serviceShortcutsAreCached()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserActivity.java1681 private void showTargetDetails(TargetInfo targetInfo) {
1682 if (targetInfo == null) return;
1684 List<DisplayResolveInfo> targetList = targetInfo.getAllDisplayTargets();
1692 boolean isShortcutPinned = targetInfo.isSelectableTargetInfo() && targetInfo.isPinned();
1694 intentFilter = targetInfo.isSelectableTargetInfo()
1696 String shortcutTitle = targetInfo.isSelectableTargetInfo()
1697 ? targetInfo.getDisplayLabel().toString() : null;
1698 String shortcutIdKey = targetInfo.getDirectShareShortcutId();
1705 targetInfo.getResolveInfo().userHandle,
1733 TargetInfo targetInfo = currentListAdapter
[all …]
DResolverListController.java349 public float getScore(TargetInfo targetInfo) { in getScore() argument
350 return mResolverComparator.getScore(targetInfo); in getScore()
356 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
357 mResolverComparator.updateModel(targetInfo); in updateModel()
DResolverListAdapter.java218 public float getScore(TargetInfo targetInfo) { in getScore() argument
219 return mResolverListController.getScore(targetInfo); in getScore()
225 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
226 mResolverListController.updateModel(targetInfo); in updateModel()
/packages/apps/Launcher3/src/com/android/launcher3/
DAbstractFloatingView.java203 Pair<View, String> targetInfo = getAccessibilityTarget(); in announceAccessibilityChanges() local
204 if (targetInfo == null || !isAccessibilityEnabled(getContext())) { in announceAccessibilityChanges()
208 targetInfo.first, TYPE_WINDOW_STATE_CHANGED, targetInfo.second); in announceAccessibilityChanges()
/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DChooserActivityTest.java521 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in twoOptionsAndUserSelectsOne()
522 chosen[0] = targetInfo.getResolveInfo(); in twoOptionsAndUserSelectsOne()
567 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in fourOptionsStackedIntoOneTarget()
568 chosen[0] = targetInfo.getResolveInfo(); in fourOptionsStackedIntoOneTarget()
598 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in updateChooserCountsAndModelAfterUserSelection()
640 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in autoLaunchSingleResult()
641 chosen[0] = targetInfo.getResolveInfo(); in autoLaunchSingleResult()
675 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in hasOtherProfileOneOption()
676 chosen[0] = targetInfo.getResolveInfo(); in hasOtherProfileOneOption()
710 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in hasOtherProfileTwoOptionsAndUserSelectsOne()
[all …]
/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/tests/unit/src/com/android/intentresolver/model/
DAbstractResolverComparatorTest.java131 public float getScore(TargetInfo targetInfo) { in getTestComparator()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DQuickstepLauncher.java327 ItemInfo targetInfo = mAllAppsPredictions.items.get(i); in logAppLaunch() local
328 if (targetInfo.itemType == info.itemType in logAppLaunch()
329 && targetInfo.user.equals(info.user) in logAppLaunch()
330 && Objects.equals(targetInfo.getIntent(), info.getIntent())) { in logAppLaunch()
/packages/apps/Car/DebuggingRestrictionController/libs/
Dhttpclient-4.5.12.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/apache/ org/ ...