Log App Predictions from AiAi
+ Update edu screen strings
Bug:142753423
Test:Manual
Change-Id: If2424d134a5f9d2cafa248949a249ee2c7296276
(cherry picked from commit 68c57419c0)
This commit is contained in:
1 parent
3970b8b797
commit
56b31af4f3
2 files changed
+11
-3
No files matched your search
+8
@@ -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<AppTarget> 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();
|
||||
|
||||
@@ -75,11 +75,11 @@
|
||||
<!-- Hotseat migration wizard message -->
|
||||
<string translatable="false" name="hotseat_migrate_message">To pin a favorite app, drag it over a suggested app. To hide a suggested app, touch & hold it.</string>
|
||||
<!-- Toast message user sees after opting into fully predicted hybrid hotseat -->
|
||||
<string translatable="false" name="hotseat_items_migrated">Your hotseat items have been moved to the last page.</string>
|
||||
<string translatable="false" name="hotseat_items_migrated">Bottom row of apps moved to last screen</string>
|
||||
<!-- Toast message user sees after opting into fully predicted hybrid hotseat -->
|
||||
<string translatable="false" name="hotseat_no_migration">You can remove items from the hotseat manually to see suggested apps in their spot.</string>
|
||||
<string translatable="false" name="hotseat_no_migration">Bottom row won\'t be replaced. Manually drag apps for predictions.</string>
|
||||
<!-- Button text to opt in for fully predicted hotseat -->
|
||||
<string translatable="false" name="hotseat_migrate_accept">I\'m in</string>
|
||||
<string translatable="false" name="hotseat_migrate_accept">Turn On</string>
|
||||
<!-- Button text to dismiss opt in for fully predicted hotseat -->
|
||||
<string translatable="false" name="hotseat_migrate_dismiss">No thanks</string>
|
||||
<!-- Hotseat onboard notification title -->
|
||||
|
||||
Reference in new issue
Block a user