diff options
author | Tammo Spalink <tammo@google.com> | 2009-05-13 14:44:07 +0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-06-04 09:57:18 -0700 |
commit | 5c6164b3ee441155252a10bd8c37252dda7e784d (patch) | |
tree | c5d6a523fa9652be94211610eddb5bdeabd9784e /telephony | |
parent | ce74edc7eab6b1270577ac7a369243a9cac333e6 (diff) | |
download | frameworks_base-5c6164b3ee441155252a10bd8c37252dda7e784d.zip frameworks_base-5c6164b3ee441155252a10bd8c37252dda7e784d.tar.gz frameworks_base-5c6164b3ee441155252a10bd8c37252dda7e784d.tar.bz2 |
cdma getNeighboringCids to fail with an exception
Diffstat (limited to 'telephony')
-rwxr-xr-x | telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java index 7ba9951..0ebe507 100755 --- a/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java +++ b/telephony/java/com/android/internal/telephony/cdma/CDMAPhone.java @@ -38,6 +38,7 @@ import static com.android.internal.telephony.TelephonyProperties.PROPERTY_BASEBA import static com.android.internal.telephony.TelephonyProperties.PROPERTY_INECM_MODE; import com.android.internal.telephony.CallStateException; +import com.android.internal.telephony.CommandException; import com.android.internal.telephony.CommandsInterface; import com.android.internal.telephony.Connection; import com.android.internal.telephony.DataConnection; @@ -525,8 +526,20 @@ public class CDMAPhone extends PhoneBase { public void getNeighboringCids(Message response) { - // WINK:TODO: implement after Cupcake merge - mCM.getNeighboringCids(response); // workaround. + /* + * This is currently not implemented. At least as of June + * 2009, there is no neighbor cell information available for + * CDMA because some party is resisting making this + * information readily available. Consequently, calling this + * function can have no useful effect. This situation may + * (and hopefully will) change in the future. + */ + if (response != null) { + CommandException ce = new CommandException( + CommandException.Error.REQUEST_NOT_SUPPORTED); + AsyncResult.forMessage(response).exception = ce; + response.sendToTarget(); + } } public DataState getDataConnectionState() { |