summaryrefslogtreecommitdiff
path: root/java/com/android/voicemail/CarrierConfigKeys.java
diff options
context:
space:
mode:
authormdooley <mdooley@google.com>2017-11-16 21:25:00 -0800
committerzachh <zachh@google.com>2017-11-18 07:34:02 +0000
commit22ff338e7383592443da291587442deb5f4e6758 (patch)
tree0cef544e68491f4c067b4e41b1b5d80909363394 /java/com/android/voicemail/CarrierConfigKeys.java
parente53711736e4da5ae7f722e54182f1cb51082d45c (diff)
Don't transcribe voicemail unless carrier allows OTT transcription
Added a carrier config and check to see if the carrier allows over the top voicemail transcription, and if not do not attempt transcription. Bug: 68951869 Test: manual and unit test PiperOrigin-RevId: 176065849 Change-Id: I69df1f2867420d7fdcc7f0a31e0e6c26da67abb1
Diffstat (limited to 'java/com/android/voicemail/CarrierConfigKeys.java')
-rw-r--r--java/com/android/voicemail/CarrierConfigKeys.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/java/com/android/voicemail/CarrierConfigKeys.java b/java/com/android/voicemail/CarrierConfigKeys.java
new file mode 100644
index 000000000..609221d0f
--- /dev/null
+++ b/java/com/android/voicemail/CarrierConfigKeys.java
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2017 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+
+package com.android.voicemail;
+
+/**
+ * Keys used to lookup carrier specific configuration strings. See {@code
+ * VoicemailClient.getCarrierConfigString}
+ */
+public interface CarrierConfigKeys {
+
+ /**
+ * Carrier config key whose value will be 'true' for carriers that allow over the top voicemail
+ * transcription.
+ */
+ String VVM_CARRIER_ALLOWS_OTT_TRANSCRIPTION_STRING =
+ "vvm_carrier_allows_ott_transcription_string";
+}