Added more conditions for setup and tear down.
1. Added more conditions that can trigger re-evaluate
unsatisfied network requests, and re-evaluate existing data
networks.
2. Support lingering network types to allow IMS lingering on
3G networks.
Bug: 196597630
Test: Manual & atest FrameworksTelephonyTests
Merged-In: I8f718d0af11b36c4a172a580de6a249b18aa73c8
Change-Id: I8f718d0af11b36c4a172a580de6a249b18aa73c8
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index f9cc52e..37d71df 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -6602,11 +6602,16 @@
final long identity = Binder.clearCallingIdentity();
try {
int phoneId = mSubscriptionController.getPhoneId(subId);
- if (DBG) log("isDataEnabled: subId=" + subId + " phoneId=" + phoneId);
Phone phone = PhoneFactory.getPhone(phoneId);
if (phone != null) {
- boolean retVal = phone.getDataEnabledSettings().isDataEnabled();
- if (DBG) log("isDataEnabled: subId=" + subId + " retVal=" + retVal);
+ boolean retVal;
+ if (phone.isUsingNewDataStack()) {
+ retVal = phone.getDataNetworkController().getDataSettingsManager()
+ .isDataEnabled();
+ } else {
+ retVal = phone.getDataEnabledSettings().isDataEnabled();
+ }
+ if (DBG) log("isDataEnabled: " + retVal + ", subId=" + subId);
return retVal;
} else {
if (DBG) loge("isDataEnabled: no phone subId=" + subId + " retVal=false");