Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/app/
DAppPredictionServiceResolverComparator.java110 float getScore(TargetInfo targetInfo) { in getScore() argument
111 return mComparatorModel.getScore(targetInfo); in getScore()
115 void updateModel(TargetInfo targetInfo) { in updateModel() argument
116 mComparatorModel.notifyOnTargetSelected(targetInfo); in updateModel()
243 public float getScore(TargetInfo targetInfo) { in adaptLegacyResolverComparatorToComparatorModel() argument
244 return comparator.getScore(targetInfo); in adaptLegacyResolverComparatorToComparatorModel()
248 public void notifyOnTargetSelected(TargetInfo targetInfo) { in adaptLegacyResolverComparatorToComparatorModel() argument
249 comparator.updateModel(targetInfo); in adaptLegacyResolverComparatorToComparatorModel()
290 public float getScore(TargetInfo targetInfo) {
291 Integer rank = mTargetRanks.get(targetInfo.getResolvedComponentName());
[all …]
DResolverRankerServiceResolverComparator.java268 public float getScore(TargetInfo targetInfo) { in getScore() argument
269 return mComparatorModel.getScore(targetInfo); in getScore()
274 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
276 mComparatorModel.notifyOnTargetSelected(targetInfo); in updateModel()
589 public float getScore(TargetInfo targetInfo) { in getScore() argument
590 if (mTargetsDictPerUser.containsKey(targetInfo.getResolveInfo().userHandle) in getScore()
591 && mTargetsDictPerUser.get(targetInfo.getResolveInfo().userHandle) in getScore()
592 .get(targetInfo.getResolvedComponentName()) != null) { in getScore()
593 return mTargetsDictPerUser.get(targetInfo.getResolveInfo().userHandle) in getScore()
594 .get(targetInfo.getResolvedComponentName()).getSelectProbability(); in getScore()
[all …]
DResolverComparatorModel.java48 float getScore(TargetInfo targetInfo); in getScore() argument
56 void notifyOnTargetSelected(TargetInfo targetInfo); in notifyOnTargetSelected() argument
DNoOpResolverComparator.java69 public float getScore(TargetInfo targetInfo) { in getScore() argument
70 return getScore(targetInfo.getResolveInfo()); in getScore()
DResolverListController.java413 public float getScore(TargetInfo targetInfo) { in getScore() argument
414 return mResolverComparator.getScore(targetInfo); in getScore()
417 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
418 mResolverComparator.updateModel(targetInfo); in updateModel()
DAbstractResolverComparator.java248 abstract float getScore(TargetInfo targetInfo); in getScore() argument
272 void updateModel(TargetInfo targetInfo) { in updateModel() argument
DResolverListAdapter.java167 public float getScore(TargetInfo targetInfo) { in getScore() argument
168 return mResolverListController.getScore(targetInfo); in getScore()
171 public void updateModel(TargetInfo targetInfo) { in updateModel() argument
172 mResolverListController.updateModel(targetInfo); in updateModel()
DChooserListAdapter.java792 private LoadDirectShareIconTask(SelectableTargetInfo targetInfo) {
793 mTargetInfo = targetInfo;
/frameworks/base/core/tests/coretests/src/android/content/pm/
DModuleInfoTest.java89 final ModuleInfo targetInfo = ModuleInfo.CREATOR.createFromParcel(p); in testModuleInfoParcelizeDeparcelize() local
92 assertThat(info.isHidden()).isEqualTo(targetInfo.isHidden()); in testModuleInfoParcelizeDeparcelize()
93 assertThat(info.getApexModuleName()).isEqualTo(targetInfo.getApexModuleName()); in testModuleInfoParcelizeDeparcelize()
94 assertThat(info.getPackageName()).isEqualTo(targetInfo.getPackageName()); in testModuleInfoParcelizeDeparcelize()
95 assertThat(TextUtils.equals(info.getName(), targetInfo.getName())).isTrue(); in testModuleInfoParcelizeDeparcelize()
97 targetInfo.getApkInApexPackageNames().toArray()); in testModuleInfoParcelizeDeparcelize()
/frameworks/base/packages/PrintSpooler/jni/
Dcom_android_printspooler_util_BitmapSerializeUtils.cpp94 AndroidBitmapInfo targetInfo; in readBitmapPixels() local
95 int result = AndroidBitmap_getInfo(env, jbitmap, &targetInfo); in readBitmapPixels()
102 if (readInfo.width != targetInfo.width || readInfo.height != targetInfo.height in readBitmapPixels()
103 || readInfo.stride != targetInfo.stride || readInfo.format != targetInfo.format in readBitmapPixels()
104 || readInfo.flags != targetInfo.flags) { in readBitmapPixels()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DFakeResolverComparatorModel.java50 public float getScore(TargetInfo targetInfo) { in getScore() argument
55 public void notifyOnTargetSelected(TargetInfo targetInfo) { in notifyOnTargetSelected() argument
57 "User selected " + targetInfo.getResolvedComponentName() + " under model " in notifyOnTargetSelected()
DChooserListAdapterTest.kt96 val targetInfo = createSelectableTargetInfo() in createChooserListAdapter() constant
99 testSubject.testViewBind(view, targetInfo, 0) in createChooserListAdapter()
109 val targetInfo = createSelectableTargetInfo() in testOnlyOneTaskPerTarget() constant
114 testSubject.testViewBind(view, targetInfo, 0) in testOnlyOneTaskPerTarget()
120 testSubject.testViewBind(view, targetInfo, 0) in testOnlyOneTaskPerTarget()
DChooserActivityTest.java449 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in twoOptionsAndUserSelectsOne()
450 chosen[0] = targetInfo.getResolveInfo(); in twoOptionsAndUserSelectsOne()
504 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in fourOptionsStackedIntoOneTarget()
505 chosen[0] = targetInfo.getResolveInfo(); in fourOptionsStackedIntoOneTarget()
544 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in updateChooserCountsAndModelAfterUserSelection()
595 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in autoLaunchSingleResult()
596 chosen[0] = targetInfo.getResolveInfo(); in autoLaunchSingleResult()
641 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in hasOtherProfileOneOption()
642 chosen[0] = targetInfo.getResolveInfo(); in hasOtherProfileOneOption()
684 ChooserActivityOverrideData.getInstance().onSafelyStartInternalCallback = targetInfo -> { in hasOtherProfileTwoOptionsAndUserSelectsOne()
[all …]
DAbstractResolverComparatorTest.java118 float getScore(TargetInfo targetInfo) { in getTestComparator()
/frameworks/native/services/inputflinger/dispatcher/trace/
DInputTracer.cpp128 const InputTargetInfo& targetInfo = getTargetInfo(target); in dispatchToTargetHint() local
131 if (eventState->metadata.targets.count(targetInfo.uid) == 0) { in dispatchToTargetHint()
138 if (eventState->metadata.targets.count(targetInfo.uid) == 0) { in dispatchToTargetHint()
144 eventState->metadata.targets.emplace(targetInfo.uid); in dispatchToTargetHint()
145 eventState->metadata.isSecure |= targetInfo.isSecureWindow; in dispatchToTargetHint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/
DMediaProjectionAppSelectorActivity.kt160 val targetInfo = currentListAdapter.targetInfoForPosition(which, filtered) ?: return in appliedThemeResId() constant
161 if (targetInfo is NotSelectableTargetInfo) return in appliedThemeResId()
163 val intent = createIntent(targetInfo) in appliedThemeResId()
182 if (!targetInfo.isSuspended && activityStarted) { in appliedThemeResId()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DCertificateMonitor.java203 ActivityInfo targetInfo = dialogIntent.resolveActivityInfo( in buildNotification() local
205 if (targetInfo != null) { in buildNotification()
206 dialogIntent.setComponent(targetInfo.getComponentName()); in buildNotification()
DRemoteBugreportManager.java139 final ActivityInfo targetInfo = dialogIntent.resolveActivityInfo( in buildNotification() local
141 if (targetInfo != null) { in buildNotification()
142 dialogIntent.setComponent(targetInfo.getComponentName()); in buildNotification()
DDevicePolicyManagerService.java15155 ActivityInfo targetInfo = intent.resolveActivityInfo( in showLocationSettingsEnabledNotification() local
15158 if (targetInfo != null) { in showLocationSettingsEnabledNotification()
15159 intent.setComponent(targetInfo.getComponentName()); in showLocationSettingsEnabledNotification()
/frameworks/base/core/java/android/app/
DIApplicationThread.aidl177 in ApplicationInfo targetInfo); in instrumentWithoutRestart() argument
DActivityThread.java2165 IUiAutomationConnection instrumentationUiConnection, ApplicationInfo targetInfo) { in instrumentWithoutRestart() argument
2171 data.appInfo = targetInfo; in instrumentWithoutRestart()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java1484 ItemInfo targetInfo = infoForPosition(mCurItem);
1486 (int) (targetInfo.offset * width), 0, newDuration);