summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
author Matt Casey <mrcasey@google.com> 2023-01-14 19:56:39 +0000
committer Matt Casey <mrcasey@google.com> 2023-01-15 15:03:03 +0000
commit7c90c0a3e2f879866906866d868ee08164c6d42d (patch)
treed97c7857eb38af591a3a9089ce8d3eaa20ee6119 /java/src
parent5ad17a7876e37738fa0356db8e590e5d1daa9ad8 (diff)
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
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/intentresolver/ChooserActivityLogger.java16
1 files changed, 12 insertions, 4 deletions
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