diff options
Diffstat (limited to 'java/com/android/dialer/logging')
10 files changed, 344 insertions, 20 deletions
diff --git a/java/com/android/dialer/logging/LoggingBindings.java b/java/com/android/dialer/logging/LoggingBindings.java index 526cb2088..ca9a0533e 100644 --- a/java/com/android/dialer/logging/LoggingBindings.java +++ b/java/com/android/dialer/logging/LoggingBindings.java @@ -14,8 +14,8 @@ package com.android.dialer.logging; - import android.app.Activity; +import android.widget.QuickContactBadge; /** Allows the container application to gather analytics. */ public interface LoggingBindings { @@ -62,6 +62,29 @@ public interface LoggingBindings { */ void logScreenView(com.android.dialer.logging.ScreenEvent.Type screenEvent, Activity activity); + /** Logs the composition of contact tiles in the speed dial tab. */ + void logSpeedDialContactComposition( + int counter, + int starredContactsCount, + int pinnedContactsCount, + int multipleNumbersContactsCount, + int contactsWithPhotoCount, + int contactsWithNameCount, + int lightbringerReachableContactsCount); + /** Logs a hit event to the analytics server. */ void sendHitEventAnalytics(String category, String action, String label, long value); + + /** Logs where a quick contact badge is clicked */ + void logQuickContactOnTouch( + QuickContactBadge quickContact, + InteractionEvent.Type interactionEvent, + boolean shouldPerformClick); + + /** Logs People Api lookup result with error */ + void logPeopleApiLookupReportWithError( + long latency, int httpResponseCode, PeopleApiLookupError.Type errorType); + + /** Logs successful People Api lookup result */ + void logSuccessfulPeopleApiLookupReport(long latency, int httpResponseCode); } diff --git a/java/com/android/dialer/logging/LoggingBindingsStub.java b/java/com/android/dialer/logging/LoggingBindingsStub.java index f7ca6ecb0..2dbcc3ffb 100644 --- a/java/com/android/dialer/logging/LoggingBindingsStub.java +++ b/java/com/android/dialer/logging/LoggingBindingsStub.java @@ -15,6 +15,7 @@ package com.android.dialer.logging; import android.app.Activity; +import android.widget.QuickContactBadge; /** Default implementation for logging bindings. */ public class LoggingBindingsStub implements LoggingBindings { @@ -36,5 +37,28 @@ public class LoggingBindingsStub implements LoggingBindings { public void logScreenView(ScreenEvent.Type screenEvent, Activity activity) {} @Override + public void logSpeedDialContactComposition( + int counter, + int starredContactsCount, + int pinnedContactsCount, + int multipleNumbersContactsCount, + int contactsWithPhotoCount, + int contactsWithNameCount, + int lightbringerReachableContactsCount) {} + + @Override public void sendHitEventAnalytics(String category, String action, String label, long value) {} + + @Override + public void logQuickContactOnTouch( + QuickContactBadge quickContact, + InteractionEvent.Type interactionEvent, + boolean shouldPerformClick) {} + + @Override + public void logPeopleApiLookupReportWithError( + long latency, int httpResponseCode, PeopleApiLookupError.Type errorType) {} + + @Override + public void logSuccessfulPeopleApiLookupReport(long latency, int httpResponseCode) {} } diff --git a/java/com/android/dialer/logging/contact_lookup_result.proto b/java/com/android/dialer/logging/contact_lookup_result.proto index 835d7d7dc..6c83908b9 100644 --- a/java/com/android/dialer/logging/contact_lookup_result.proto +++ b/java/com/android/dialer/logging/contact_lookup_result.proto @@ -5,6 +5,9 @@ option java_package = "com.android.dialer.logging"; option java_multiple_files = true; option optimize_for = LITE_RUNTIME; + + + message ContactLookupResult { // The different results of a contact lookup done using a phone number. enum Type { @@ -16,10 +19,10 @@ message ContactLookupResult { // Contact was found in the local database. LOCAL_CONTACT = 2; - // Contact was found in Google Dialer's internal phone number cache + // DEPRECATED: see subcategories below LOCAL_CACHE = 3; - // Contact was found via Google Caller ID + // DEPRECATED: see subcategories below REMOTE = 4; // Phone number was an emergency phone number @@ -27,5 +30,40 @@ message ContactLookupResult { // Phone number was the SIM card's voicemail number VOICEMAIL = 6; + + // Phone number was identified via the places part of the People API. + REMOTE_PLACES = 7; + + // Phone number was identified via the profile part of the People API. + REMOTE_PROFILE = 8; + + // Number was found in Dialer's local cache but we don't know how it was + // originally identified. + LOCAL_CACHE_UNKNOWN = 9; + + // Number was found in Dialer's local cache and was originally identified + // as a personal contact. + LOCAL_CACHE_DIRECTORY = 10; + + // Number was found in Dialer's local cache and was originally identified + // via a custom extended directory. + LOCAL_CACHE_EXTENDED = 11; + + // Number was found in Dialer's local cache and was originally identified + // via the places part of the People API. + LOCAL_CACHE_PLACES = 12; + + // Number was found in Dialer's local cache and was originally identified + // via the profile part of the People API. + LOCAL_CACHE_PROFILE = 13; + + // Number was found in Dialer's local cache and was originally identified + // via Caller Name Presentation (CNAP) information. Calls in this + // category would have had ContactLookupResultType NOT_FOUND originally. + LOCAL_CACHE_CNAP = 14; + + // Number was found in Dialer's local cache and was originally identified + // via Cequint caller ID. + LOCAL_CACHE_CEQUINT = 15; } } diff --git a/java/com/android/dialer/logging/contact_source.proto b/java/com/android/dialer/logging/contact_source.proto index 470cf8bd7..3a24da1d0 100644 --- a/java/com/android/dialer/logging/contact_source.proto +++ b/java/com/android/dialer/logging/contact_source.proto @@ -5,6 +5,9 @@ option java_package = "com.android.dialer.logging"; option java_multiple_files = true; option optimize_for = LITE_RUNTIME; + + + message ContactSource { // Applies only to reports made from call history. If we have contact // information for the phone number, this field indicates its source. diff --git a/java/com/android/dialer/logging/dialer_impression.proto b/java/com/android/dialer/logging/dialer_impression.proto index 541614623..ef249c262 100644 --- a/java/com/android/dialer/logging/dialer_impression.proto +++ b/java/com/android/dialer/logging/dialer_impression.proto @@ -5,11 +5,13 @@ option java_package = "com.android.dialer.logging"; option java_multiple_files = true; option optimize_for = LITE_RUNTIME; + + + message DialerImpression { // Event enums to be used for Impression Logging in Dialer. // It's perfectly acceptable for this enum to be large // Values should be from 1000 to 100000. - // Next Tag:1191 enum Type { UNKNOWN_AOSP_EVENT_TYPE = 1000; @@ -47,6 +49,7 @@ message DialerImpression { // This happens when the user had initially blocked a number and also claimed the number was // spam and had now proceeded to undo that. REPORT_AS_NOT_SPAM_VIA_UNBLOCK_NUMBER = 1009 + ; // A number that was identified as spam and the user proceeded to block it. However this @@ -62,10 +65,12 @@ message DialerImpression { // the number via call log. This is for case where the user wants to block a number and also // report it as spam REPORT_CALL_AS_SPAM_VIA_CALL_LOG_BLOCK_REPORT_SPAM_SENT_VIA_BLOCK_NUMBER_DIALOG = 1011 + ; // User made it to the last step and actually blocked the number USER_ACTION_BLOCKED_NUMBER = 1012 + ; // User made it to the last step and actually unblocked the number @@ -88,16 +93,19 @@ message DialerImpression { // User added the number to contacts from the after call notification SPAM_AFTER_CALL_NOTIFICATION_ADD_TO_CONTACTS = 1019 + ; // User marked the number as spam on the after call notification flow SPAM_AFTER_CALL_NOTIFICATION_MARKED_NUMBER_AS_SPAM = 1020 + ; SPAM_AFTER_CALL_NOTIFICATION_MARKED_NUMBER_AS_NOT_SPAM_AND_BLOCKED = 1021; // User reported the number as not spam SPAM_AFTER_CALL_NOTIFICATION_REPORT_NUMBER_AS_NOT_SPAM = 1022 + ; // User dismissed the spam notification @@ -119,6 +127,7 @@ message DialerImpression { // able to stitch different types of events if they make sense e.g user pressed a speaker button // and we want to associate that to a call event USER_PARTICIPATED_IN_A_CALL = 1028 + ; // Incoming call is a spam call @@ -151,44 +160,54 @@ message DialerImpression { // User deleted a call log entry USER_DELETED_CALL_LOG_ITEM = 1048 + ; // User tapped on "Send a message" CALL_LOG_SEND_MESSAGE = 1049 + ; // User tapped on "Add to contact" CALL_LOG_ADD_TO_CONTACT = 1050 + ; // User tapped on "Create new contact" CALL_LOG_CREATE_NEW_CONTACT = 1051 + ; // User deleted an entry from the voicemail tab VOICEMAIL_DELETE_ENTRY = 1052 + ; // Voicemail call log entry was expanded. Could be either if the user tapped the voicemail // call log entry or pressed the play button when the voicemail call log entry was not expanded VOICEMAIL_EXPAND_ENTRY = 1053 + ; // The play button for voicemail call log entry was tapped directly (i.e when the voicemail // call log entry was not expanded and the playbutton was tapped) VOICEMAIL_PLAY_AUDIO_DIRECTLY= 1054 + ; // The play button after expanding the voicemail call log entry was tapped VOICEMAIL_PLAY_AUDIO_AFTER_EXPANDING_ENTRY= 1055 + ; // Incoming call was rejected from the notifications REJECT_INCOMING_CALL_FROM_NOTIFICATION= 1056 + ; // Incoming call was rejected from the answer screen including rejecting via sms and talkback REJECT_INCOMING_CALL_FROM_ANSWER_SCREEN= 1057 + ; // User tapped block and spam buttons in context menu, same as buttons in @@ -248,24 +267,24 @@ message DialerImpression { VOICEMAIL_CONFIGURATION_STATE_CORRUPTION_DETECTED_FROM_NOTIFICATION = 1080; // Android Auto Backup and Restore (Dolly) - BACKUP_ON_BACKUP = 1081; - BACKUP_ON_FULL_BACKUP = 1082; - BACKUP_ON_BACKUP_DISABLED = 1083; - BACKUP_VOICEMAIL_BACKED_UP = 1084; - BACKUP_FULL_BACKED_UP = 1085; - BACKUP_ON_BACKUP_JSON_EXCEPTION = 1086; + BACKUP_ON_BACKUP = 1081 [deprecated = true]; + BACKUP_ON_FULL_BACKUP = 1082 [deprecated = true]; + BACKUP_ON_BACKUP_DISABLED = 1083 [deprecated = true]; + BACKUP_VOICEMAIL_BACKED_UP = 1084 [deprecated = true]; + BACKUP_FULL_BACKED_UP = 1085 [deprecated = true]; + BACKUP_ON_BACKUP_JSON_EXCEPTION = 1086 [deprecated = true]; - BACKUP_ON_QUOTA_EXCEEDED = 1087; + BACKUP_ON_QUOTA_EXCEEDED = 1087 [deprecated = true]; - BACKUP_ON_RESTORE = 1088; - BACKUP_RESTORED_FILE = 1089; - BACKUP_RESTORED_VOICEMAIL = 1090; - BACKUP_ON_RESTORE_FINISHED = 1091; - BACKUP_ON_RESTORE_DISABLED = 1092; - BACKUP_ON_RESTORE_JSON_EXCEPTION = 1093; - BACKUP_ON_RESTORE_IO_EXCEPTION = 1094; + BACKUP_ON_RESTORE = 1088 [deprecated = true]; + BACKUP_RESTORED_FILE = 1089 [deprecated = true]; + BACKUP_RESTORED_VOICEMAIL = 1090 [deprecated = true]; + BACKUP_ON_RESTORE_FINISHED = 1091 [deprecated = true]; + BACKUP_ON_RESTORE_DISABLED = 1092 [deprecated = true]; + BACKUP_ON_RESTORE_JSON_EXCEPTION = 1093 [deprecated = true]; + BACKUP_ON_RESTORE_IO_EXCEPTION = 1094 [deprecated = true]; - BACKUP_MAX_VM_BACKUP_REACHED = 1095; + BACKUP_MAX_VM_BACKUP_REACHED = 1095 [deprecated = true]; EVENT_ANSWER_HINT_ACTIVATED = 1096; EVENT_ANSWER_HINT_DEACTIVATED = 1097; @@ -279,7 +298,7 @@ message DialerImpression { INCOMING_VIDEO_CALL = 1102; USER_PARTICIPATED_IN_A_VIDEO_CALL = 1103; - BACKUP_ON_RESTORE_VM_DUPLICATE_NOT_RESTORING = 1104; + BACKUP_ON_RESTORE_VM_DUPLICATE_NOT_RESTORING = 1104 [deprecated = true]; // User tapped the 'Share and call' button to start the call composer CALL_LOG_SHARE_AND_CALL = 1105; @@ -361,14 +380,19 @@ message DialerImpression { EMERGENCY_LAUNCHED_MAP = 1173; VIDEO_CALL_UPGRADE_REQUESTED = 1174 + ; VIDEO_CALL_REQUEST_ACCEPTED = 1175 + ; VIDEO_CALL_REQUEST_ACCEPTED_AS_AUDIO = 1176 + ; VIDEO_CALL_REQUEST_DECLINED = 1177 + ; VIDEO_CALL_REQUEST_RECEIVED = 1178 + ; RCS_VIDEO_SHARE_UPGRADE_REQUESTED = 1179; @@ -386,5 +410,125 @@ message DialerImpression { VVM_STATUS_CHECK_REACTIVATION = 1189; VVM_ARCHIVE_AUTO_DELETE_FAILED_DUE_TO_FAILED_QUOTA_CHECK = 1190; + + // User pressed the speaker phone button on the return-to-call bubble + BUBBLE_TURN_ON_SPEAKERPHONE = 1191; + // User pressed the speaker phone button again on the return-to-call bubble + BUBBLE_TURN_ON_WIRED_OR_EARPIECE = 1192; + // User muted the call from the return-to-call bubble + BUBBLE_MUTE_CALL = 1193; + // User unmuted the call from the return-to-call bubble + BUBBLE_UNMUTE_CALL = 1194; + // User ended the call from the return-to-call bubble + BUBBLE_END_CALL = 1195; + + LIGHTBRINGER_VIDEO_REQUESTED_FROM_SEARCH = 1196; + LIGHTBRINGER_VIDEO_REQUESTED_FROM_CALL_LOG = + 1197; // Including call history + IMS_VIDEO_REQUESTED_FROM_SEARCH = 1198; + IMS_VIDEO_REQUESTED_FROM_CALL_LOG = 1199; // Including call history + + // Multi select impressions + MULTISELECT_LONG_PRESS_ENTER_MULTI_SELECT_MODE = 1200; + MULTISELECT_LONG_PRESS_TAP_ENTRY = 1201; + MULTISELECT_SINGLE_PRESS_SELECT_ENTRY = 1202; + MULTISELECT_SINGLE_PRESS_UNSELECT_ENTRY = 1203; + MULTISELECT_SINGLE_PRESS_TAP_VIA_CONTACT_BADGE = 1204; + MULTISELECT_SELECT_ALL = 1205; + MULTISELECT_UNSELECT_ALL = 1206; + MULTISELECT_TAP_DELETE_ICON = 1207; + MULTISELECT_DISPLAY_DELETE_CONFIRMATION_DIALOG = 1208; + MULTISELECT_DELETE_ENTRY_VIA_CONFIRMATION_DIALOG = 1209; + MULTISELECT_CANCEL_CONFIRMATION_DIALOG_VIA_CANCEL_BUTTON = 1210; + MULTISELECT_CANCEL_CONFIRMATION_DIALOG_VIA_CANCEL_TOUCH = 1211; + MULTISELECT_ROTATE_AND_SHOW_ACTION_MODE= 1212; + + // Impressions for verizon VVM with backup and transcription ToS + VOICEMAIL_VVM3_TOS_V2_CREATED = 1213; + VOICEMAIL_VVM3_TOS_V2_ACCEPTED = 1214; + VOICEMAIL_VVM3_TOS_V2_DECLINE_CLICKED = 1215; + // Impressions for dialer voicemail with backup and transcription ToS + VOICEMAIL_DIALER_TOS_CREATED = 1216; + VOICEMAIL_DIALER_TOS_ACCEPTED = 1217; + VOICEMAIL_DIALER_TOS_DECLINE_CLICKED = 1218; + + // Add or create contact + // Creating new contact fab was logged as NEW_CONTACT_FAB + CREATE_NEW_CONTACT_FROM_CALL_LOG = 1219; + CREATE_NEW_CONTACT_FROM_DIALPAD = 1220; + CREATE_NEW_CONTACT_FROM_VOICEMAIL = 1221; + CREATE_NEW_CONTACT_FROM_CALL_HISTORY = 1222; + ADD_TO_A_CONTACT_FROM_CALL_LOG = 1223; + ADD_TO_A_CONTACT_FROM_DIALPAD = 1224; + ADD_TO_A_CONTACT_FROM_VOICEMAIL = 1225; + ADD_TO_A_CONTACT_FROM_CALL_HISTORY = 1226; + + // Impressions for dialer reporting caller id as inaccurate + CALLER_ID_REPORTED = 1227; + CALLER_ID_REPORT_FAILED = 1228; + + // Impressions for interactions with the voicemail transcription server + VVM_TRANSCRIPTION_REQUEST_SENT = 1229; + VVM_TRANSCRIPTION_REQUEST_RETRY = 1230; + VVM_TRANSCRIPTION_RESPONSE_SUCCESS = 1231; + VVM_TRANSCRIPTION_RESPONSE_EMPTY = 1232; + VVM_TRANSCRIPTION_RESPONSE_INVALID = 1233; + VVM_TRANSCRIPTION_RESPONSE_RECOVERABLE_ERROR = 1234; + VVM_TRANSCRIPTION_RESPONSE_FATAL_ERROR = 1235; + + // In in call UI + UPGRADE_TO_VIDEO_CALL_BUTTON_SHOWN = 1236; + + // Bubble primary button first click to expand bubble + BUBBLE_PRIMARY_BUTTON_EXPAND = 1237; + // Bubble prinary button second click to return to call + BUBBLE_PRIMARY_BUTTON_RETURN_TO_CALL = 1238; + + // Dialer Key/Value Backup and Restore + BACKUP_KEY_VALUE_ON_BACKUP = 1239; + BACKUP_KEY_VALUE_ON_RESTORE = 1240; + BACKUP_KEY_VALUE_ON_RESTORE_FINISHED = 1241; + BACKUP_KEY_VALUE_GET_BACKUP_SPECIFICATION = 1242; + BACKUP_KEY_VALUE_BACKUP_AGENT_CONSTRUCTOR = 1243; + + // In the in call UI + UPGRADE_TO_VIDEO_CALL_BUTTON_SHOWN_FOR_LIGHTBRINGER = 1244; + UPGRADE_TO_VIDEO_CALL_BUTTON_SHOWN_FOR_IMS = 1245; + UPGRADE_TO_VIDEO_CALL_BUTTON_SHOWN_FOR_RCS = 1246; + LIGHTBRINGER_UPGRADE_REQUESTED = 1247; + + // Found Lightbringer reachable contact when launching Dialer + HAS_LIGHTBRINGER_REACHABLE_CONTACTS = 1248; + + // This impression is logged once per process when the number of + // notifications is very high and the system may suppress future + // notifications. + HIGH_GLOBAL_NOTIFICATION_COUNT_REACHED = 1249; + + // More impressions for interactions with the voicemail transcription server + VVM_TRANSCRIPTION_REQUEST_SENT_ASYNC = 1250; + VVM_TRANSCRIPTION_VOICEMAIL_RECEIVED = 1251; + VVM_TRANSCRIPTION_VOICEMAIL_FORMAT_NOT_SUPPORTED = 1252; + VVM_TRANSCRIPTION_VOICEMAIL_INVALID_DATA = 1253; + VVM_TRANSCRIPTION_VOICEMAIL_UPLOAD_FAILED = 1254; + VVM_TRANSCRIPTION_RESPONSE_LANGUAGE_NOT_SUPPORTED = 1255; + VVM_TRANSCRIPTION_RESPONSE_NO_SPEECH_DETECTED = 1256; + VVM_TRANSCRIPTION_RESPONSE_EXPIRED = 1257; + VVM_TRANSCRIPTION_RESPONSE_TOO_MANY_ERRORS = 1258; + VVM_TRANSCRIPTION_POLLING_TIMEOUT = 1259; + + // Bubble collapse initiated by user, i.e. no hiding after collapse + BUBBLE_COLLAPSE_BY_USER = 1260; + + // In in-call UI + IN_CALL_SHOW_DIALPAD_BUTTON_PRESSED = 1261; + IN_CALL_ADD_CALL_BUTTON_PRESSED = 1262; + IN_CALL_MERGE_BUTTON_PRESSED = 1263; + IN_CALL_SWAP_SECONDARY_BUTTON_PRESSED = 1264; + + // In in-call dialpad + IN_CALL_DIALPAD_NUMBER_BUTTON_PRESSED = 1265; + IN_CALL_DIALPAD_HANG_UP_BUTTON_PRESSED = 1266; + IN_CALL_DIALPAD_CLOSE_BUTTON_PRESSED = 1267; } } diff --git a/java/com/android/dialer/logging/interaction_event.proto b/java/com/android/dialer/logging/interaction_event.proto index b9af1b763..47ea53461 100644 --- a/java/com/android/dialer/logging/interaction_event.proto +++ b/java/com/android/dialer/logging/interaction_event.proto @@ -5,7 +5,11 @@ option java_package = "com.android.dialer.logging"; option java_multiple_files = true; option optimize_for = LITE_RUNTIME; + + + message InteractionEvent { + // Next Tag: 38 enum Type { UNKNOWN = 0; @@ -41,5 +45,23 @@ message InteractionEvent { // The user unblocked a number then undid the unblock UNDO_UNBLOCK_NUMBER = 24; + + // Actions in speed dial + SPEED_DIAL_PIN_CONTACT = 25; + SPEED_DIAL_REMOVE_CONTACT = 26; + SPEED_DIAL_OPEN_CONTACT_CARD = 27; + SPEED_DIAL_CLICK_CONTACT_WITH_AMBIGUOUS_NUMBER = 28; + + SPEED_DIAL_SET_DEFAULT_NUMBER_FOR_AMBIGUOUS_CONTACT = 29; + + // Open quick contact from where + OPEN_QUICK_CONTACT_FROM_CALL_LOG = 30; + OPEN_QUICK_CONTACT_FROM_CALL_DETAILS = 31; + OPEN_QUICK_CONTACT_FROM_ALL_CONTACTS_GENERAL = 32; + OPEN_QUICK_CONTACT_FROM_CONTACTS_FRAGMENT_BADGE = 33; + OPEN_QUICK_CONTACT_FROM_CONTACTS_FRAGMENT_ITEM = 34; + OPEN_QUICK_CONTACT_FROM_SEARCH = 35; + OPEN_QUICK_CONTACT_FROM_VOICEMAIL = 36; + OPEN_QUICK_CONTACT_FROM_CALL_HISTORY = 37; } } diff --git a/java/com/android/dialer/logging/people_api_lookup_error.proto b/java/com/android/dialer/logging/people_api_lookup_error.proto new file mode 100644 index 000000000..e37d10aee --- /dev/null +++ b/java/com/android/dialer/logging/people_api_lookup_error.proto @@ -0,0 +1,19 @@ +syntax = "proto2"; + +package com.android.dialer.logging; +option java_package = "com.android.dialer.logging"; +option java_multiple_files = true; +option optimize_for = LITE_RUNTIME; + + + + +message PeopleApiLookupError { + enum Type { + UNKNOWN = 0; + HTTP_RESPONSE_ERROR = 1; + WRONG_KIND_VALUE = 2; + NO_ITEM_FOUND = 3; + JSON_PARSING_ERROR = 4; + } +} diff --git a/java/com/android/dialer/logging/reporting_location.proto b/java/com/android/dialer/logging/reporting_location.proto index 72869489c..3c1baf0fe 100644 --- a/java/com/android/dialer/logging/reporting_location.proto +++ b/java/com/android/dialer/logging/reporting_location.proto @@ -5,6 +5,9 @@ option java_package = "com.android.dialer.logging"; option java_multiple_files = true; option optimize_for = LITE_RUNTIME; + + + message ReportingLocation { // Spam reporting location enum Type { diff --git a/java/com/android/dialer/logging/screen_event.proto b/java/com/android/dialer/logging/screen_event.proto index 2430bfd5a..603f7104e 100644 --- a/java/com/android/dialer/logging/screen_event.proto +++ b/java/com/android/dialer/logging/screen_event.proto @@ -5,6 +5,9 @@ option java_package = "com.android.dialer.logging"; option java_multiple_files = true; option optimize_for = LITE_RUNTIME; + + + message ScreenEvent { enum Type { diff --git a/java/com/android/dialer/logging/ui_action.proto b/java/com/android/dialer/logging/ui_action.proto new file mode 100644 index 000000000..886fe04eb --- /dev/null +++ b/java/com/android/dialer/logging/ui_action.proto @@ -0,0 +1,45 @@ +syntax = "proto2"; + +package com.android.dialer.logging; +option java_package = "com.android.dialer.logging"; +option java_multiple_files = true; +option optimize_for = LITE_RUNTIME; + + + + +message UiAction { + enum Type { + UNKNOWN = 0; + + // General action starting from 1 + CHANGE_TAB_TO_FAVORITE = 1; + CHANGE_TAB_TO_CALL_LOG = 2; + CHANGE_TAB_TO_CONTACTS = 3; + CHANGE_TAB_TO_VOICEMAIL = 4; + PRESS_ANDROID_BACK_BUTTON = 5; + TEXT_CHANGE_WITH_INPUT = 6; + SCROLL = 7; + + // In call log, starting from 100 + CLICK_CALL_LOG_ITEM = 100; + OPEN_CALL_DETAIL = 101; + CLOSE_CALL_DETAIL_WITH_CANCEL_BUTTON = 102; + COPY_NUMBER_IN_CALL_DETAIL = 103; + EDIT_NUMBER_BEFORE_CALL_IN_CALL_DETAIL = 104; + + // In dialpad, starting from 200 + OPEN_DIALPAD = 200; + CLOSE_DIALPAD = 201; + PRESS_CALL_BUTTON_WITHOUT_CALLING = 202; + + // In search, starting from 300 + OPEN_SEARCH = 300; + HIDE_KEYBOARD_IN_SEARCH = 301; + CLOSE_SEARCH_WITH_HIDE_BUTTON = 302; + + // In call history, starting from 400 + OPEN_CALL_HISTORY = 400; + CLOSE_CALL_HISTORY_WITH_CANCEL_BUTTON = 401; + } +} |