From 56b31af4f36f405c7bb4a8515eae05df5ed418da Mon Sep 17 00:00:00 2001 From: Samuel Fufa Date: Thu, 23 Jan 2020 16:41:07 -0800 Subject: [PATCH] Log App Predictions from AiAi + Update edu screen strings Bug:142753423 Test:Manual Change-Id: If2424d134a5f9d2cafa248949a249ee2c7296276 (cherry picked from commit 68c57419c05f10ccce61a6412c4ac19c1aaa3160) --- .../hybridhotseat/HotseatPredictionController.java | 8 ++++++++ quickstep/res/values/strings.xml | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java index 8f6081bd69..c2b55ab0c9 100644 --- a/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java +++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/HotseatPredictionController.java @@ -56,6 +56,7 @@ import com.android.launcher3.appprediction.DynamicItemCache; import com.android.launcher3.dragndrop.DragController; import com.android.launcher3.dragndrop.DragOptions; import com.android.launcher3.icons.IconCache; +import com.android.launcher3.logging.FileLog; import com.android.launcher3.popup.SystemShortcut; import com.android.launcher3.shortcuts.ShortcutKey; import com.android.launcher3.touch.ItemLongClickListener; @@ -300,6 +301,7 @@ public class HotseatPredictionController implements DragController.DragListener, private void setPredictedApps(List appTargets) { mComponentKeyMappers.clear(); + StringBuilder predictionLog = new StringBuilder("predictedApps: [\n"); for (AppTarget appTarget : appTargets) { ComponentKey key; if (appTarget.getShortcutInfo() != null) { @@ -308,8 +310,14 @@ public class HotseatPredictionController implements DragController.DragListener, key = new ComponentKey(new ComponentName(appTarget.getPackageName(), appTarget.getClassName()), appTarget.getUser()); } + predictionLog.append(key.toString()); + predictionLog.append(",rank:"); + predictionLog.append(appTarget.getRank()); + predictionLog.append("\n"); mComponentKeyMappers.add(new ComponentKeyMapper(key, mDynamicItemCache)); } + predictionLog.append("]"); + FileLog.d(TAG, predictionLog.toString()); updateDependencies(); if (isReady()) { fillGapsWithPrediction(); diff --git a/quickstep/res/values/strings.xml b/quickstep/res/values/strings.xml index 2b21df8ed2..5f81e1f5e5 100644 --- a/quickstep/res/values/strings.xml +++ b/quickstep/res/values/strings.xml @@ -75,11 +75,11 @@ To pin a favorite app, drag it over a suggested app. To hide a suggested app, touch & hold it. - Your hotseat items have been moved to the last page. + Bottom row of apps moved to last screen - You can remove items from the hotseat manually to see suggested apps in their spot. + Bottom row won\'t be replaced. Manually drag apps for predictions. - I\'m in + Turn On No thanks