Loading src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +6 −2 Original line number Diff line number Diff line Loading @@ -3720,8 +3720,12 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { // Check with the DCTracker to see if data is enabled; there may be a case when // ImsPhoneCallTracker isn't being informed of the right data enabled state via its // registration, so we'll refresh now. boolean isDataEnabled = mPhone.getDefaultPhone().getDataEnabledSettings() .isDataEnabled(); boolean isDataEnabled; if (mPhone.getDefaultPhone().isUsingNewDataStack()) { isDataEnabled = mPhone.getDefaultPhone().getDataSettingsManager().isDataEnabled(); } else { isDataEnabled = mPhone.getDefaultPhone().getDataEnabledSettings().isDataEnabled(); } if (DBG) { log("onCallHandover :: srcAccessTech=" + srcAccessTech + ", targetAccessTech=" Loading tests/telephonytests/src/com/android/internal/telephony/TelephonyTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -722,6 +722,7 @@ public abstract class TelephonyTest { doReturn(true).when(mDataEnabledSettings).isDataEnabled(); doReturn(true).when(mDataEnabledSettings).isDataEnabled(anyInt()); doReturn(true).when(mDataEnabledSettings).isInternalDataEnabled(); doReturn(true).when(mDataSettingsManager).isDataEnabled(); doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( anyInt(), anyInt()); doReturn(new HalVersion(1, 4)).when(mPhone).getHalVersion(); Loading Loading
src/java/com/android/internal/telephony/imsphone/ImsPhoneCallTracker.java +6 −2 Original line number Diff line number Diff line Loading @@ -3720,8 +3720,12 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall { // Check with the DCTracker to see if data is enabled; there may be a case when // ImsPhoneCallTracker isn't being informed of the right data enabled state via its // registration, so we'll refresh now. boolean isDataEnabled = mPhone.getDefaultPhone().getDataEnabledSettings() .isDataEnabled(); boolean isDataEnabled; if (mPhone.getDefaultPhone().isUsingNewDataStack()) { isDataEnabled = mPhone.getDefaultPhone().getDataSettingsManager().isDataEnabled(); } else { isDataEnabled = mPhone.getDefaultPhone().getDataEnabledSettings().isDataEnabled(); } if (DBG) { log("onCallHandover :: srcAccessTech=" + srcAccessTech + ", targetAccessTech=" Loading
tests/telephonytests/src/com/android/internal/telephony/TelephonyTest.java +1 −0 Original line number Diff line number Diff line Loading @@ -722,6 +722,7 @@ public abstract class TelephonyTest { doReturn(true).when(mDataEnabledSettings).isDataEnabled(); doReturn(true).when(mDataEnabledSettings).isDataEnabled(anyInt()); doReturn(true).when(mDataEnabledSettings).isInternalDataEnabled(); doReturn(true).when(mDataSettingsManager).isDataEnabled(); doReturn(mNetworkRegistrationInfo).when(mServiceState).getNetworkRegistrationInfo( anyInt(), anyInt()); doReturn(new HalVersion(1, 4)).when(mPhone).getHalVersion(); Loading