summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/blockreportspam/block_report_spam_dialog_info.proto
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2018-02-28 09:49:44 -0800
committerCopybara-Service <copybara-piper@google.com>2018-02-28 09:50:52 -0800
commit81670b01f8a43ee1036295f1c8b1c51398016b1e (patch)
tree356835e57e3e37e959ff951efe07604282a1a757 /java/com/android/dialer/blockreportspam/block_report_spam_dialog_info.proto
parentac3d0e58f15c1d38583f6bcecf20275cbbf17b35 (diff)
Group info needed to show a block/report spam dialog into a proto to avoid long method signatures.
Test: Existing tests PiperOrigin-RevId: 187338094 Change-Id: I0d7a5206d127931d322b5604b2bb81f5202b8de8
Diffstat (limited to 'java/com/android/dialer/blockreportspam/block_report_spam_dialog_info.proto')
-rw-r--r--java/com/android/dialer/blockreportspam/block_report_spam_dialog_info.proto30
1 files changed, 30 insertions, 0 deletions
diff --git a/java/com/android/dialer/blockreportspam/block_report_spam_dialog_info.proto b/java/com/android/dialer/blockreportspam/block_report_spam_dialog_info.proto
new file mode 100644
index 000000000..3c5a61652
--- /dev/null
+++ b/java/com/android/dialer/blockreportspam/block_report_spam_dialog_info.proto
@@ -0,0 +1,30 @@
+syntax = "proto2";
+
+option java_package = "com.android.dialer.blockreportspam";
+option java_multiple_files = true;
+option optimize_for = LITE_RUNTIME;
+
+
+package com.android.dialer.blockreportspam;
+
+import "java/com/android/dialer/logging/reporting_location.proto";
+
+// Contains information needed in dialogs that allow a user to block a number
+// and/or report it as spam/not spam.
+// Next ID: 5
+message BlockReportSpamDialogInfo {
+ // A dialer-normalized version of the number used in the dialogs.
+ // See DialerPhoneNumber#normalized_number.
+ optional string normalized_number = 1;
+
+ // The ISO 3166-1 two letters country code of the number.
+ optional string country_iso = 2;
+
+ // Type of the call to/from the number, as defined in
+ // android.provider.CallLog.Calls
+ optional int32 call_type = 3;
+
+ // The location where the number is reported.
+ optional com.android.dialer.logging.ReportingLocation.Type
+ reporting_location = 4;
+} \ No newline at end of file