From 22ff338e7383592443da291587442deb5f4e6758 Mon Sep 17 00:00:00 2001 From: mdooley Date: Thu, 16 Nov 2017 21:25:00 -0800 Subject: 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 --- java/com/android/voicemail/CarrierConfigKeys.java | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 java/com/android/voicemail/CarrierConfigKeys.java (limited to 'java/com/android/voicemail/CarrierConfigKeys.java') 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"; +} -- cgit v1.2.3