Home | History | Annotate | Download | only in proto
      1 syntax = "proto2";
      2 
      3 option java_outer_classname = "SettingsIntelligenceLogProto";
      4 
      5 package com.android.settings.intelligence;
      6 
      7 // Wrapper for SettingsIntelligence event.
      8 // Next index: 3
      9 message SettingsIntelligenceEvent {
     10 
     11     // Event type for this log.
     12     enum EventType {
     13         // Do not use
     14         UNUSED = 0;
     15 
     16         // Gets suggestion list
     17         GET_SUGGESTION = 1;
     18 
     19         // Dismisses a suggestion
     20         DISMISS_SUGGESTION = 2;
     21 
     22         // Launches a suggestion
     23         LAUNCH_SUGGESTION = 3;
     24 
     25         // Opens search page
     26         OPEN_SEARCH_PAGE = 4;
     27 
     28         // Leaves search page
     29         LEAVE_SEARCH_PAGE = 5;
     30 
     31         // User sends a query to settings search
     32         PERFORM_SEARCH = 6;
     33 
     34         // Clicks a search result
     35         CLICK_SEARCH_RESULT = 7;
     36 
     37         // Clicks a saved query
     38         CLICK_SAVED_QUERY = 8;
     39 
     40         // Search service indexes database
     41         INDEX_SEARCH = 9;
     42 
     43         // Displays the no result image in search
     44         SHOW_SEARCH_NO_RESULT = 10;
     45 
     46         // Displays some result in search
     47         SHOW_SEARCH_RESULT = 11;
     48 
     49         // Leaves search page without entering any query
     50         LEAVE_SEARCH_WITHOUT_QUERY = 12;
     51 
     52         // Queries search data during a search session
     53         SEARCH_QUERY_DATABASE = 13;
     54 
     55         // Queries installed app list during a search session
     56         SEARCH_QUERY_INSTALLED_APPS = 14;
     57 
     58         // Queries input device list (keyboards, game controller etc) during
     59         // a search session
     60         SEARCH_QUERY_INPUT_DEVICES = 15;
     61 
     62         // Queries accessiblity service list during a search session
     63         SEARCH_QUERY_ACCESSIBILITY_SERVICES = 16;
     64     }
     65 
     66     message SearchResultMetadata {
     67         // The id of the search result row in this event, this is an internally
     68         // generated key and does not associate with any user data.
     69         optional string search_result_key = 1;
     70 
     71         // The rank of the search result row in this event.
     72         optional int32 search_result_rank = 2;
     73 
     74         // The number of results in this query.
     75         optional int32 result_count = 3;
     76 
     77         // The length of query word.
     78         optional int32 search_query_length = 4;
     79     }
     80 
     81     // The type of suggestion event.
     82     optional EventType event_type = 1;
     83 
     84     // The name/id of the suggestion in this event.
     85     repeated string suggestion_ids = 2;
     86 
     87     // Data about search results in this event.
     88     optional SearchResultMetadata search_result_metadata = 3;
     89 
     90     // Latency for the current event.
     91     optional int64 latency_millis = 4;
     92 }
     93