Added several changes in data stack
1. Prepared for removing the old data stack.
2. Fixed minor bugs.
3. Enhanced DataNetworkController callback.
4. Supported overall internet state.
Bug: 196597630
Test: Manual
Change-Id: I99a833caac2f6f47a1fb6d050900c8fb2db3a8e3
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 3721c40..81f7393 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -2939,6 +2939,9 @@
try {
final Phone phone = getPhone(subId);
if (phone != null) {
+ if (phone.isUsingNewDataStack()) {
+ return phone.getDataNetworkController().getInternetDataNetworkState();
+ }
return PhoneConstantConversions.convertDataState(phone.getDataConnectionState());
} else {
return PhoneConstantConversions.convertDataState(