OSDN Git Service

Remove getCurrentDataConnectionList.
authorWink Saville <wink@google.com>
Mon, 18 Apr 2011 23:03:03 +0000 (16:03 -0700)
committerWink Saville <wink@google.com>
Mon, 18 Apr 2011 23:03:03 +0000 (16:03 -0700)
This should not be exposed externally and is used only by
RadioInfo.java a hidden application used for debugging.
I'll another mechanism which will probably use an
asynchronous interface with the DataConnectionTracker.

Change-Id: Ic21cc8d45bd3172c2ceeab154eca6118d94580e9

telephony/java/com/android/internal/telephony/DataConnectionTracker.java
telephony/java/com/android/internal/telephony/Phone.java
telephony/java/com/android/internal/telephony/PhoneProxy.java
telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java
telephony/java/com/android/internal/telephony/gsm/GSMPhone.java

index 3280c44..01ac95f 100644 (file)
@@ -365,14 +365,6 @@ public abstract class DataConnectionTracker extends Handler {
         return mActivity;
     }
 
-    /**
-     * @return the data connections
-     */
-    public ArrayList<DataConnection> getAllDataConnections() {
-        /** TODO: change return type to Collection? */
-        return new ArrayList<DataConnection>(mDataConnections.values());
-    }
-
     public boolean isApnTypeActive(String type) {
         // TODO: support simultaneous with List instead
         if (Phone.APN_TYPE_DUN.equals(type)) {
index 56be570..b99f39b 100644 (file)
@@ -1250,13 +1250,6 @@ public interface Phone {
     void getDataCallList(Message response);
 
     /**
-     * Get current mutiple data connection status
-     *
-     * @return list of data connections
-     */
-    List<DataConnection> getCurrentDataConnectionList();
-
-    /**
      * Update the ServiceState CellLocation for current network registration.
      */
     void updateServiceLocation();
index 5e506b3..a3fc25d 100644 (file)
@@ -593,10 +593,6 @@ public class PhoneProxy extends Handler implements Phone {
         mActivePhone.getDataCallList(response);
     }
 
-    public List<DataConnection> getCurrentDataConnectionList() {
-        return mActivePhone.getCurrentDataConnectionList();
-    }
-
     public void updateServiceLocation() {
         mActivePhone.updateServiceLocation();
     }
index b077a5e..152ffd5 100755 (executable)
@@ -727,10 +727,6 @@ public class CDMAPhone extends PhoneBase {
         return mDataConnectionTracker.getDataOnRoamingEnabled();
     }
 
-    public List<DataConnection> getCurrentDataConnectionList () {
-        return mDataConnectionTracker.getAllDataConnections();
-    }
-
     public void setVoiceMailNumber(String alphaTag,
                                    String voiceMailNumber,
                                    Message onComplete) {
index ff3e3cc..b137ca7 100644 (file)
@@ -1069,10 +1069,6 @@ public class GSMPhone extends PhoneBase {
         mCM.getDataCallList(response);
     }
 
-    public List<DataConnection> getCurrentDataConnectionList () {
-        return mDataConnectionTracker.getAllDataConnections();
-    }
-
     public void updateServiceLocation() {
         mSST.enableSingleLocationUpdate();
     }