[AA+] Log LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME event.
Bug: 178562918 Test: Manual Change-Id: Id40f80aae652dcc6c16ad35a003c91fd97750608
This commit is contained in:
1 parent
729761e4e0
commit
8e16391b49
2 files changed
+7
No files matched your search
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package com.android.launcher3.allapps.search;
|
||||
|
||||
import static com.android.launcher3.logging.StatsLogManager.LauncherEvent.LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME;
|
||||
|
||||
import android.text.Editable;
|
||||
import android.text.TextUtils;
|
||||
import android.text.TextWatcher;
|
||||
@@ -105,6 +107,8 @@ public class AllAppsSearchBarController
|
||||
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
|
||||
if (FeatureFlags.ENABLE_DEVICE_SEARCH.get()) {
|
||||
if (actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO) {
|
||||
mLauncher.getStatsLogManager().logger()
|
||||
.log(LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME);
|
||||
// selectFocusedView should return SearchTargetEvent that is passed onto onClick
|
||||
if (Launcher.getLauncher(mLauncher).getAppsView().selectFocusedView(v)) {
|
||||
return true;
|
||||
|
||||
@@ -393,6 +393,9 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
@UiEvent(doc = "User selected from a selection row of Slice.")
|
||||
LAUNCHER_SLICE_SELECTION_ACTION(707),
|
||||
|
||||
@UiEvent(doc = "IME is used for selecting the focused item on the AllApps screen.")
|
||||
LAUNCHER_ALLAPPS_FOCUSED_ITEM_SELECTED_WITH_IME(718),
|
||||
|
||||
@UiEvent(doc = "Launcher entered into AllApps state with device search enabled.")
|
||||
LAUNCHER_ALLAPPS_ENTRY_WITH_DEVICE_SEARCH(720),
|
||||
;
|
||||
|
||||
Reference in new issue
Block a user