Setup logging pipeline for search results

Bug: 168121204
Test: Manual
Change-Id: I4abb6c75aa0f22416616a713733bef2802b703d1
This commit is contained in:
Samuel Fufa
2020-09-10 12:05:19 -07:00
parent 4dfd31024e
commit f4eb70c96e
10 changed files with 264 additions and 61 deletions

View File

@@ -22,18 +22,19 @@ import android.os.Bundle;
* Event used for the feedback loop to the plugin. (and future aiai)
*/
public class SearchTargetEvent {
public static final int SELECT = 0;
public static final int QUICK_SELECT = 1;
public static final int LONG_PRESS = 2;
public static final int CHILD_SELECT = 3;
public SearchTarget.ItemType type;
public ShortcutInfo shortcut;
public int eventType;
public Bundle bundle;
public float score;
public SearchTargetEvent(SearchTarget.ItemType itemType,
ShortcutInfo shortcut,
Bundle bundle,
float score) {
public SearchTargetEvent(SearchTarget.ItemType itemType, int eventType) {
this.type = itemType;
this.shortcut = shortcut;
this.bundle = bundle;
this.score = score;
this.eventType = eventType;
}
}