From 6d8b85e83aa517dbcbe6550bb44fd726613e1004 Mon Sep 17 00:00:00 2001 From: Holly Sun Date: Fri, 5 Apr 2024 11:16:39 -0700 Subject: [PATCH] [omni] Log LP duration & slop's data source and value. For duration, the data source and value should be the same for LPNH and LPH. E.g., if AGSA overrides duration, it applies for both LPNH and LPH. When there is no AGSA override, there are cases that one of our feature flag is enabled and the other one is disabled. We just simply rely on LPNH's feature flag in this case. This should be fine because the purpose is to cross check the data source and its value. Bug: 332722082 Test: manual Flag: legacy CUSTOM_LPNH_THRESHOLDS enabled Change-Id: I3f10b944257e7021ae7c930b782f1d963c0e505b --- .../quickstep/util/AssistStateManager.java | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/util/AssistStateManager.java b/quickstep/src/com/android/quickstep/util/AssistStateManager.java index 87d51387ed..a3904bc3e6 100644 --- a/quickstep/src/com/android/quickstep/util/AssistStateManager.java +++ b/quickstep/src/com/android/quickstep/util/AssistStateManager.java @@ -52,16 +52,38 @@ public class AssistStateManager implements ResourceBasedOverride { return Optional.empty(); } - /** Get the Launcher overridden long press duration to trigger Assistant. */ + /** Get the Launcher overridden long press nav handle duration to trigger Assistant. */ public Optional getLPNHDurationMillis() { return Optional.empty(); } - /** Get the Launcher overridden long press touch slop multiplier to trigger Assistant. */ + /** + * Get the Launcher overridden long press nav handle touch slop multiplier to trigger Assistant. + */ public Optional getLPNHCustomSlopMultiplier() { return Optional.empty(); } + /** Get the Launcher overridden long press home duration to trigger Assistant. */ + public Optional getLPHDurationMillis() { + return Optional.empty(); + } + + /** Get the Launcher overridden long press home touch slop multiplier to trigger Assistant. */ + public Optional getLPHCustomSlopMultiplier() { + return Optional.empty(); + } + + /** Get the long press duration data source. */ + public int getDurationDataSource() { + return 0; + } + + /** Get the long press touch slop multiplier data source. */ + public int getSlopDataSource() { + return 0; + } + /** Return {@code true} if the Settings toggle is enabled. */ public boolean isSettingsAllEntrypointsEnabled() { return false;