Loading src/java/com/android/internal/telephony/Phone.java +2 −2 Original line number Diff line number Diff line Loading @@ -504,8 +504,8 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { * This will be false on "data only" devices which can't make voice * calls and don't support any in-call UI. */ mIsVoiceCapable = mContext.getResources().getBoolean( com.android.internal.R.bool.config_voice_capable); mIsVoiceCapable = ((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)) .isVoiceCapable(); /** * Some RIL's don't always send RIL_UNSOL_CALL_RING so it needs Loading src/java/com/android/internal/telephony/ServiceStateTracker.java +3 −5 Original line number Diff line number Diff line Loading @@ -606,8 +606,9 @@ public class ServiceStateTracker extends Handler { .makeEriManager(mPhone, EriManager.ERI_FROM_XML); mRatRatcheter = new RatRatcheter(mPhone); mVoiceCapable = mPhone.getContext().getResources().getBoolean( com.android.internal.R.bool.config_voice_capable); mVoiceCapable = ((TelephonyManager) mPhone.getContext() .getSystemService(Context.TELEPHONY_SERVICE)) .isVoiceCapable(); mUiccController = UiccController.getInstance(); mUiccController.registerForIccChanged(this, EVENT_ICC_CHANGED, null); Loading Loading @@ -2085,9 +2086,6 @@ public class ServiceStateTracker extends Handler { mGsmRoaming = regCodeIsRoaming(registrationState); mNewRejectCode = reasonForDenial; boolean isVoiceCapable = mPhone.getContext().getResources() .getBoolean(com.android.internal.R.bool.config_voice_capable); } else { int roamingIndicator = voiceSpecificStates.roamingIndicator; Loading src/java/com/android/internal/telephony/SubscriptionController.java +1 −2 Original line number Diff line number Diff line Loading @@ -2172,8 +2172,7 @@ public class SubscriptionController extends ISub.Stub { @Override public int getDefaultSubId() { int subId; boolean isVoiceCapable = mContext.getResources().getBoolean( com.android.internal.R.bool.config_voice_capable); boolean isVoiceCapable = mTelephonyManager.isVoiceCapable(); if (isVoiceCapable) { subId = getDefaultVoiceSubId(); if (VDBG) logdl("[getDefaultSubId] isVoiceCapable subId=" + subId); Loading tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsPhoneTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -137,7 +137,7 @@ public class ImsPhoneTest extends TelephonyTest { doReturn(Call.State.IDLE).when(mRingingCall).getState(); doReturn(mExecutor).when(mContext).getMainExecutor(); mContextFixture.putBooleanResource(com.android.internal.R.bool.config_voice_capable, true); doReturn(true).when(mTelephonyManager).isVoiceCapable(); mImsPhoneUT = new ImsPhone(mContext, mNotifier, mPhone, true); Loading Loading
src/java/com/android/internal/telephony/Phone.java +2 −2 Original line number Diff line number Diff line Loading @@ -504,8 +504,8 @@ public abstract class Phone extends Handler implements PhoneInternalInterface { * This will be false on "data only" devices which can't make voice * calls and don't support any in-call UI. */ mIsVoiceCapable = mContext.getResources().getBoolean( com.android.internal.R.bool.config_voice_capable); mIsVoiceCapable = ((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)) .isVoiceCapable(); /** * Some RIL's don't always send RIL_UNSOL_CALL_RING so it needs Loading
src/java/com/android/internal/telephony/ServiceStateTracker.java +3 −5 Original line number Diff line number Diff line Loading @@ -606,8 +606,9 @@ public class ServiceStateTracker extends Handler { .makeEriManager(mPhone, EriManager.ERI_FROM_XML); mRatRatcheter = new RatRatcheter(mPhone); mVoiceCapable = mPhone.getContext().getResources().getBoolean( com.android.internal.R.bool.config_voice_capable); mVoiceCapable = ((TelephonyManager) mPhone.getContext() .getSystemService(Context.TELEPHONY_SERVICE)) .isVoiceCapable(); mUiccController = UiccController.getInstance(); mUiccController.registerForIccChanged(this, EVENT_ICC_CHANGED, null); Loading Loading @@ -2085,9 +2086,6 @@ public class ServiceStateTracker extends Handler { mGsmRoaming = regCodeIsRoaming(registrationState); mNewRejectCode = reasonForDenial; boolean isVoiceCapable = mPhone.getContext().getResources() .getBoolean(com.android.internal.R.bool.config_voice_capable); } else { int roamingIndicator = voiceSpecificStates.roamingIndicator; Loading
src/java/com/android/internal/telephony/SubscriptionController.java +1 −2 Original line number Diff line number Diff line Loading @@ -2172,8 +2172,7 @@ public class SubscriptionController extends ISub.Stub { @Override public int getDefaultSubId() { int subId; boolean isVoiceCapable = mContext.getResources().getBoolean( com.android.internal.R.bool.config_voice_capable); boolean isVoiceCapable = mTelephonyManager.isVoiceCapable(); if (isVoiceCapable) { subId = getDefaultVoiceSubId(); if (VDBG) logdl("[getDefaultSubId] isVoiceCapable subId=" + subId); Loading
tests/telephonytests/src/com/android/internal/telephony/imsphone/ImsPhoneTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -137,7 +137,7 @@ public class ImsPhoneTest extends TelephonyTest { doReturn(Call.State.IDLE).when(mRingingCall).getState(); doReturn(mExecutor).when(mContext).getMainExecutor(); mContextFixture.putBooleanResource(com.android.internal.R.bool.config_voice_capable, true); doReturn(true).when(mTelephonyManager).isVoiceCapable(); mImsPhoneUT = new ImsPhone(mContext, mNotifier, mPhone, true); Loading