Adds direct to voicemail support in telecomm.

Instead of handling the incoming call once the call is verified, we wait
for a maximum of 500ms for the contact info query to execute. From that
info, we determine if we reject the call immediately or allow the
incoming call UI to go through.

Bug: 15322630
Change-Id: I3d28bde9c4c0a2636e88f09b41fafed6078f4ca5
diff --git a/src/com/android/telecomm/Timeouts.java b/src/com/android/telecomm/Timeouts.java
index 0221ccd..afd6d29 100644
--- a/src/com/android/telecomm/Timeouts.java
+++ b/src/com/android/telecomm/Timeouts.java
@@ -60,4 +60,13 @@
     public static long getNewOutgoingCallMillis() {
         return get("new_outgoing_call_ms", 60 * 1000L);
     }
+
+    /**
+     * Returns the longest period, in milliseconds, to wait for the query for direct-to-voicemail
+     * to complete. If the query goes beyond this timeout, the incoming call screen is shown to the
+     * user.
+     */
+    public static long getDirectToVoicemail() {
+        return get("direct_to_voicemail_ms", 500L);
+    }
 }