diff options
| author | Robert Greenwalt <robdroid@android.com> | 2010-05-18 10:52:51 -0700 |
|---|---|---|
| committer | Robert Greenwalt <robdroid@android.com> | 2010-06-09 16:52:01 -0700 |
| commit | 02648a4b8422733ed401f07edf8e426318bb2f8d (patch) | |
| tree | 870635094119f5b91423b69e67ee06601fd75b0f /telephony/tests | |
| parent | 1d46191d88ee9262ea05b868d2db5b44ad85fa43 (diff) | |
| download | frameworks_base-02648a4b8422733ed401f07edf8e426318bb2f8d.zip frameworks_base-02648a4b8422733ed401f07edf8e426318bb2f8d.tar.gz frameworks_base-02648a4b8422733ed401f07edf8e426318bb2f8d.tar.bz2 | |
Clean up APN notifications.
Add APNType info to notifications so you can tell what's happening. Now, even if a new APN
shares a connection with an already-connected-to- apn type, the new type will get all
the connecting and connected messages on connect and disconnecting/disconnected on disconnect
even though the shared connection remains connected.
Cleaning out the hacks MobileDataStateTracker needed to deal with the old situation.
bug:2226092
Change-Id: Iddd7421d6b91cda7c8405f9c3d5404ac04ef8e42
Diffstat (limited to 'telephony/tests')
| -rw-r--r-- | telephony/tests/telephonytests/src/com/android/internal/telephony/TestPhoneNotifier.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/telephony/tests/telephonytests/src/com/android/internal/telephony/TestPhoneNotifier.java b/telephony/tests/telephonytests/src/com/android/internal/telephony/TestPhoneNotifier.java index 427795b..8cb05cc 100644 --- a/telephony/tests/telephonytests/src/com/android/internal/telephony/TestPhoneNotifier.java +++ b/telephony/tests/telephonytests/src/com/android/internal/telephony/TestPhoneNotifier.java @@ -16,6 +16,8 @@ package com.android.internal.telephony; +import com.android.internal.telephony.Phone; + /** * Stub class used for unit tests */ @@ -32,7 +34,7 @@ public class TestPhoneNotifier implements PhoneNotifier { public void notifyCellLocation(Phone sender) { } - + public void notifySignalStrength(Phone sender) { } @@ -42,10 +44,14 @@ public class TestPhoneNotifier implements PhoneNotifier { public void notifyCallForwardingChanged(Phone sender) { } - public void notifyDataConnection(Phone sender, String reason) { + public void notifyDataConnection(Phone sender, String reason, String apnType) { + } + + public void notifyDataConnection(Phone sender, String reason, String apnType, + Phone.DataState state) { } - public void notifyDataConnectionFailed(Phone sender, String reason) { + public void notifyDataConnectionFailed(Phone sender, String reason, String apnType) { } public void notifyDataActivity(Phone sender) { |
