From 7c90c0a3e2f879866906866d868ee08164c6d42d Mon Sep 17 00:00:00 2001 From: Matt Casey Date: Sat, 14 Jan 2023 19:56:39 +0000 Subject: Add custom action and reselection logging params to IntentResolver Not actually writing real values yet, just updating for the new protos. Bug: 265504112 Test: Presubmits Change-Id: I9cdc15a0ea00cb210290780df0b61aea00f73566 --- .../android/intentresolver/ChooserActivityLogger.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'java/src') diff --git a/java/src/com/android/intentresolver/ChooserActivityLogger.java b/java/src/com/android/intentresolver/ChooserActivityLogger.java index 9109bf93..1725a7bf 100644 --- a/java/src/com/android/intentresolver/ChooserActivityLogger.java +++ b/java/src/com/android/intentresolver/ChooserActivityLogger.java @@ -66,7 +66,9 @@ public class ChooserActivityLogger { int numAppProvidedAppTargets, boolean isWorkProfile, int previewType, - int intentType); + int intentType, + int numCustomActions, + boolean reselectionActionProvided); /** Overload to use for logging {@code FrameworkStatsLog.RANKING_SELECTED}. */ void write( @@ -126,7 +128,9 @@ public class ChooserActivityLogger { /* num_app_provided_app_targets = 6 */ appProvidedApp, /* is_workprofile = 7 */ isWorkprofile, /* previewType = 8 */ typeFromPreviewInt(previewType), - /* intentType = 9 */ typeFromIntentString(intent)); + /* intentType = 9 */ typeFromIntentString(intent), + /* num_provided_custom_actions = 10 */ 0, + /* reselection_action_provided = 11 */ false); } /** @@ -463,7 +467,9 @@ public class ChooserActivityLogger { int numAppProvidedAppTargets, boolean isWorkProfile, int previewType, - int intentType) { + int intentType, + int numCustomActions, + boolean reselectionActionProvided) { FrameworkStatsLog.write( frameworkEventId, /* event_id = 1 */ appEventId, @@ -474,7 +480,9 @@ public class ChooserActivityLogger { /* num_app_provided_app_targets */ numAppProvidedAppTargets, /* is_workprofile */ isWorkProfile, /* previewType = 8 */ previewType, - /* intentType = 9 */ intentType); + /* intentType = 9 */ intentType, + /* num_provided_custom_actions = 10 */ numCustomActions, + /* reselection_action_provided = 11 */ reselectionActionProvided); } @Override -- cgit v1.2.3-59-g8ed1b