summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtan Cohen <etancohen@google.com>2015-06-22 16:02:00 +0000
committerEtan Cohen <etancohen@google.com>2015-06-22 16:02:00 +0000
commit78a97519c4e09b7b193f9a190978e4c1df135508 (patch)
treec2518cb0eb6a70f72ff3b96c6f957da9cdd7e5aa
parent52a93ff69cb87ee2ab7e75a2d3d64dcf502b4096 (diff)
downloadandroid_packages_services_Telephony-78a97519c4e09b7b193f9a190978e4c1df135508.tar.gz
android_packages_services_Telephony-78a97519c4e09b7b193f9a190978e4c1df135508.tar.bz2
android_packages_services_Telephony-78a97519c4e09b7b193f9a190978e4c1df135508.zip
Revert "Use carrier config API entrypoint"
This reverts commit 52a93ff69cb87ee2ab7e75a2d3d64dcf502b4096. Change-Id: I8100a135be60c8a02c505aa8549db2b42a392935
-rw-r--r--res/values-mcc310-mnc410/config.xml3
-rwxr-xr-xres/values-mcc311-mnc480/config.xml1
-rwxr-xr-xres/values/config.xml3
-rw-r--r--src/com/android/services/telephony/TelecomAccountRegistry.java22
4 files changed, 10 insertions, 19 deletions
diff --git a/res/values-mcc310-mnc410/config.xml b/res/values-mcc310-mnc410/config.xml
index 7dd16b1e7..bf89c3456 100644
--- a/res/values-mcc310-mnc410/config.xml
+++ b/res/values-mcc310-mnc410/config.xml
@@ -16,4 +16,5 @@
-->
<resources>
-</resources>
+ <bool name="support_pause_ims_video_calls" translatable="false">false</bool>
+</resources> \ No newline at end of file
diff --git a/res/values-mcc311-mnc480/config.xml b/res/values-mcc311-mnc480/config.xml
index 5cae0bc3a..b7d0d6ef5 100755
--- a/res/values-mcc311-mnc480/config.xml
+++ b/res/values-mcc311-mnc480/config.xml
@@ -23,4 +23,5 @@
<!-- Determine whether the voicemail notification is persistent in the notification bar.
If true, the voicemail notifications cannot be dismissed from the notification bar. -->
<bool name="voicemail_notification_persistent">true</bool>
+ <bool name="support_pause_ims_video_calls" translatable="false">true</bool>
</resources>
diff --git a/res/values/config.xml b/res/values/config.xml
index 3df92f8ad..61af525f9 100755
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -157,6 +157,9 @@
If true, the voicemail notifications cannot be dismissed from the notification bar. -->
<bool name="voicemail_notification_persistent">false</bool>
+ <!-- For IMS video over LTE calls, determines whether video pause signalling is supported. -->
+ <bool name="support_pause_ims_video_calls" translatable="false">true</bool>
+
<!-- Disables dialing "*228" (OTASP provisioning) on CDMA carriers where it is not supported or
is potentially harmful by locking the SIM to 3G. -->
<string name="config_disable_cdma_activation_code" translatable="false">false</string>
diff --git a/src/com/android/services/telephony/TelecomAccountRegistry.java b/src/com/android/services/telephony/TelecomAccountRegistry.java
index 91eaca376..135ad31bc 100644
--- a/src/com/android/services/telephony/TelecomAccountRegistry.java
+++ b/src/com/android/services/telephony/TelecomAccountRegistry.java
@@ -27,12 +27,9 @@ import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Icon;
import android.net.Uri;
-import android.os.PersistableBundle;
-import android.os.RemoteException;
import android.telecom.PhoneAccount;
import android.telecom.PhoneAccountHandle;
import android.telecom.TelecomManager;
-import android.telephony.CarrierConfigManager;
import android.telephony.PhoneStateListener;
import android.telephony.ServiceState;
import android.telephony.SubscriptionInfo;
@@ -41,7 +38,6 @@ import android.telephony.SubscriptionManager.OnSubscriptionsChangedListener;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
-import com.android.internal.telephony.ICarrierConfigLoader;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.PhoneFactory;
import com.android.internal.telephony.PhoneProxy;
@@ -235,20 +231,10 @@ final class TelecomAccountRegistry {
configuration.mnc = subscriptionInfo.getMnc();
}
- // Check if IMS video pause is supported.
- mIsVideoPauseSupported = false;
-
- ICarrierConfigLoader configLoader =
- (ICarrierConfigLoader) mContext.getSystemService(Context.CARRIER_CONFIG_SERVICE);
- if (configLoader != null) {
- try {
- PersistableBundle b = configLoader.getConfigForSubId(mPhone.getSubId());
- mIsVideoPauseSupported
- = b.getBoolean(CarrierConfigManager.KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL);
- } catch (RemoteException e) {
- Log.i(this, "updateVideoPauseSupport: unable to access carrier config service");
- }
- }
+ // Load the MNC/MCC specific configuration.
+ Context subContext = mContext.createConfigurationContext(configuration);
+ mIsVideoPauseSupported = subContext.getResources().getBoolean(
+ R.bool.support_pause_ims_video_calls);
}
/**