Searched refs:appTarget (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/people/java/com/android/server/people/prediction/ |
D | ShareTargetPredictor.java | 121 AppTarget appTarget = shareTarget.getAppTarget(); in sortTargets() local 122 appTargetList.add(new AppTarget.Builder(appTarget.getId(), appTarget.getPackageName(), in sortTargets() 123 appTarget.getUser()) in sortTargets() 124 .setClassName(appTarget.getClassName()) in sortTargets() 139 AppTarget appTarget = new AppTarget.Builder( in getDirectShareTargets() local 158 shareTargets.add(new ShareTarget(appTarget, eventHistory, conversationInfo)); in getDirectShareTargets() 193 ShareTarget(@NonNull AppTarget appTarget, in ShareTarget() argument 196 mAppTarget = appTarget; in ShareTarget()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | DataManager.java | 214 AppTarget appTarget = event.getTarget(); in reportShareTargetEvent() local 215 if (appTarget == null || event.getAction() != AppTargetEvent.ACTION_LAUNCH) { in reportShareTargetEvent() 218 UserData userData = getUnlockedUserData(appTarget.getUser().getIdentifier()); in reportShareTargetEvent() 222 PackageData packageData = userData.getOrCreatePackageData(appTarget.getPackageName()); in reportShareTargetEvent() 227 if (appTarget.getShortcutInfo() == null) { in reportShareTargetEvent() 230 String shortcutId = appTarget.getShortcutInfo().getId(); in reportShareTargetEvent() 236 addOrUpdateConversationInfo(appTarget.getShortcutInfo()); in reportShareTargetEvent() 243 EventStore.CATEGORY_CLASS_BASED, appTarget.getClassName()); in reportShareTargetEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | DataManagerTest.java | 298 AppTarget appTarget = new AppTarget.Builder(new AppTargetId(TEST_SHORTCUT_ID), shortcut) in testReportAppTargetEvent_directSharing() local 301 new AppTargetEvent.Builder(appTarget, AppTargetEvent.ACTION_LAUNCH) in testReportAppTargetEvent_directSharing() 318 AppTarget appTarget = new AppTarget.Builder(new AppTargetId(TEST_SHORTCUT_ID), shortcut) in testReportAppTargetEvent_directSharing_createConversation() local 321 new AppTargetEvent.Builder(appTarget, AppTargetEvent.ACTION_LAUNCH) in testReportAppTargetEvent_directSharing_createConversation() 342 AppTarget appTarget = new AppTarget.Builder( in testReportAppTargetEvent_appSharing() local 349 new AppTargetEvent.Builder(appTarget, AppTargetEvent.ACTION_LAUNCH) in testReportAppTargetEvent_appSharing() 792 AppTarget appTarget = new AppTarget.Builder(new AppTargetId(TEST_SHORTCUT_ID), shortcut) in testBackupAndRestoration() local 795 new AppTargetEvent.Builder(appTarget, AppTargetEvent.ACTION_LAUNCH) in testBackupAndRestoration()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserActivity.java | 836 for (AppTarget appTarget : resultList) { in createAppPredictorCallback() 837 if (appTarget.getShortcutInfo() == null) { in createAppPredictorCallback() 840 if (appTarget.getShortcutInfo().getId().equals(CHOOSER_TARGET)) { in createAppPredictorCallback() 841 chooserTargetScores.add(appTarget); in createAppPredictorCallback() 843 shortcutResults.add(appTarget); in createAppPredictorCallback() 851 for (AppTarget appTarget : resultList) { in createAppPredictorCallback() 853 appTarget.getShortcutInfo(), in createAppPredictorCallback() 855 appTarget.getPackageName(), appTarget.getClassName()))); in createAppPredictorCallback() 2322 AppTarget appTarget = null; 2324 appTarget = mDirectShareAppTargetCache.get(chooserTarget); [all …]
|