• Home
  • History
  • Annotate
  • only in /frameworks/base/telephony/java/com/android/internal/telephony/cdma/
History log of /frameworks/base/telephony/java/com/android/internal/telephony/cdma/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ce9b59f0ba00e006d2697480b5e5d1fcbd0d2818 12-Nov-2009 Wink Saville <wink@google.com> Add code to use Gservices provided values for throtting NITZ updates.

bug: 2251845
Change-Id: Ie122606fb852868bb76a9930bb5e6ba906273619
dmaServiceStateTracker.java
38210df337a1485bd3d2eb5adc223f443fe1b5b0 11-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I326c1f7e into eclair

* changes:
Throttle nitz updates as the are too numerous on cdma.
aeff5fd8eb17bc0f611918d6482139c1921e7b60 11-Nov-2009 Wink Saville <wink@google.com> Throttle nitz updates as the are too numerous on cdma.

bug: 2251845
Change-Id: I326c1f7e28d19b678ea748e36f8286dd1378cecf
dmaServiceStateTracker.java
1fa7fae1399f735ea15242484fb5def187e07fde 24-Oct-2009 Gilles Duboscq <gilwooden@gmail.com> Make multipart message follow 3GPP TS 23.040 V9.0.0 (2009-06), section 9.2.3.24.1 :
all the parts should have the same encoding.

Fixes b/2040561
dmaSMSDispatcher.java
092f03418a4988e4da706dca27128327b5a5fc55 06-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I44d4cbec into eclair

* changes:
Fix some SMS encode issues.
3e5c3a6db4c8ad4842ee1f6a2cdb04f6e107db57 06-Nov-2009 jsh <jsh@google.com> Fix some SMS encode issues.

1. Spanish SMS 71-160 chars not sent. This was because calculateLength
allowed for single-segment EMS encoding, while encodeUserDataPayload
did not. For now, change calculateLength to match encodeUserDataPayload
(ie, fallback to UTF16 in this case). (b/2224849)
2. Unicode value of N w/tilde was incorrect. (b/2224849)
3. Add '\' and '/' to the list of valid separators in CDMA SMS numeric
addresses. (b/2236527)
ms/BearerData.java
ms/CdmaSmsAddress.java
684b802dd9ec9e145220855d2380a3a9cd39a033 04-Nov-2009 Wink Saville <wink@google.com> Add needsOtaServiceProvisioning and used to not allow
data calls until the device is provisioned.

Bug: 2221241
Change-Id: Id0267cc02fdf31e14e66e5acd2ca5cbdc504f507
DMAPhone.java
dmaDataConnectionTracker.java
ef7b12940c8537d91f9d091750318d1641d3329c 26-Oct-2009 Wink Saville <wink@google.com> Change default TIME_DELAYED_TO_RESTART_RADIO to 60secs from 20secs.

This is the simple fix for bug 2199271 which increases the timeout
for DEACTIVATE thus allowing more time to complete before SETUP_DATA_CALL
is retried. This should fix some occurrences of this bug as the current
time is known to be too short.

Bug: 2199271
Change-Id: I11c3cdc74678399de5f812133c83d687d0ed9937
dmaDataConnectionTracker.java
3ff560d7ba9fcedc4d388f63b756108a715266f4 22-Oct-2009 jsh <jsh@google.com> Send "encoding problem" to the network for general errors during SMS dispatch.

Previously we were returning "other terminal problem" to the network, but this
had the potential of blocking MT SMS messages for days at a time (eg, if the
problematic message is resent). Sending the "encoding problem" cause code is
reasonable since in most cases the we have encountered an error while trying
to parse the message.

Addresses b/2200412.
dmaSMSDispatcher.java
d393184ac595ab5490c77305a27fd049badf9a5d 12-Oct-2009 Naveen Kalla <nkalla@quicinc.com> telephony/cdma: Fix Erroneous Roaming Indicators and Latitude-Longitude parsing

When Android Telephony receives response to GET_REGISTRATION_STATE
message from RIL it may contain few fields set to NULL. Due to a parsing
exception encountered while parsing that field, the remaining fields will
not be parsed even if they are valid data. Ignore all fields that are NULL
while letting it parse non-NULL data.

For Latitude and Longitude, the values should not be hexadecimal. They
shall be parsed as decimal values as specified in the 3GPP2 C.S0005-A
specification. Invalid value is changed from -1 to Integer.MAX_VALUE.

Bug: 2201613
Change-Id: I13dd02fcfa2ae7fcb6f21c4b94b830786bd7270c
dmaServiceStateTracker.java
4219797afc2f5369c27cf7be752e9bc3bdb8057d 20-Oct-2009 jsh <jsh@google.com> Log exception if we hit an error parsing an incoming SMS message.

This will help debug b/2197566. We should have been logging the error
anyway.
dmaSMSDispatcher.java
61c082603fe2bc192606407c9dda2a81d92d44c5 13-Oct-2009 Robert Greenwalt <robdroid@android.com> Futher reduce the logging of EriManager.

There was another log statement that was poluting radio logs.

bug: 2180891
riManager.java
febb94cdbb7c7b7091401d21824bfab32b9daca5 07-Oct-2009 Libin Tang <Libin.Tang@motorola.com> Make standard roaming indicator display indications configurable

Allow the ERI overlay file to specify the text for any built-in strings.
Currently only the hard-coded strings are used for those.

Bug: 2170881
Change-Id: I5d6169696a4558e62587585e17f908f823c54a2b
riManager.java
71f48a21b0533a5b9dc1c0eab3c675800b78fa5e 12-Oct-2009 Robert Greenwalt <robdroid@android.com> Reduce the amount of EriManager Logging.

It was filling the radio log with noise. Added a VDBG set to false to preserve the logging
but deactivate it.

bug: 2180891
riManager.java
98e0b146b80670b52805b4b210ef5582dad6bb68 09-Oct-2009 Robert Greenwalt <robdroid@android.com> Make PhoneStateListeners not call TelephonyManager

Since the StatusBarPolicy is run in the System Process and shouldn't therefore call into
the Telephony process we decided to make sure all the needed info was passed along with the
original notifications.

bug: 2173053
DMAPhone.java
61aac7b377ac4878a5778457cad239fe3a50604a 05-Oct-2009 Tammo Spalink <tammo@google.com> Add PERIOD char to CDMA address sugar list.

Addresses issue:
http://buganizer/issue?id=2164455
ms/CdmaSmsAddress.java
984d22b180e68d6b9f8e2c81c4eb271deccfc94a 01-Oct-2009 Robert Greenwalt <robdroid@android.com> Revert setDataEnabled to setting a master switch.

This is independent of whether or not the ConnectivityManager wanted any particular APN on
and allows us to track the two seperately - so when data is re-enabled we don't turn
things on that CM wants off.

bug: 2158290
dmaCallTracker.java
dmaDataConnectionTracker.java
27d074e0efbdabd40f00eca41169ea225c05fcbe 25-Sep-2009 Naveen Kalla <nkalla@quicinc.com> Telephony: Add a failure cause for CDMA call failures and rename
RIL_REQUEST_CDMA_VALIDATE_AKEY to
RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY

Add failure cause for CDMA call failures due to access blocked by the
CDMA network. Rename RIL_REQUEST_CDMA_VALIDATE_AKEY to
RIL_REQUEST_CDMA_VALIDATE_AND_WRITE_AKEY. This change needs to go in
with the corresponding change in ril.h (1141)
allFailCause.java
dmaConnection.java
c46c255f7f8aa3e70a607493c550ffb863666ef1 29-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix the reporting of ActiveApnTypes on CDMA

Previous fix limiting what was reported active was too strict, leading to
DISCONNECTED messages not being accepted (apn list was empty).

bug: 2151520
dmaDataConnectionTracker.java
59ceeae4ec2284ad0b90b0101f2c491be72cec33 29-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix the reporting of ActiveApnTypes on CDMA

Previous fix limiting what was reported active was too strict, leading to
DISCONNECTED messages not being accepted (apn list was empty).

bug: 2151520
dmaDataConnectionTracker.java
e436d46e575c7ded49d4f79dac115894daa13f99 27-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix Cdma re-start of default connection.

We dropped an onTrySetupData call because onEnableNewApn calls that automatically on GSM,
but CDMA was not doing anything. Made CDMA simply call onTrySetupData.

Also, isApnTypeActive for CDMA was returning true even when no data was working. Changed
to report true when initing or connected, like GSM.
dmaDataConnectionTracker.java
3cc97f8dbc22eff56f17f30e1633084af507eff4 21-Sep-2009 Tammo Spalink <tammo@google.com> Add Phone.getPhoneType() operation.

This routine returns integer values defined in the Phone interface,
derived from RILConstants values. Direct references to the
RILConstants are replaced by references to these new ones for
consistency.

API CHANGE:
unhide TelephonyManager.PHONE_TYPE_CDMA

Addresses issue:
http://buganizer/issue?id=1905415

Change-Id: Icfec6d457231b098c031677a66770b5e57be4a44
DMAPhone.java
e4e8e4d4f2a8ccd552670df592bed67481133344 04-Sep-2009 Yong Zhang <yzhang@motorola.com> Resolve race conditions with disconnect of CDMA data and airplane mode

Specifically, wait for data to be deactivated when setPowerStateToDesired()
is called during data activation.

Bug: 2101430
Change-Id: Ia97dd799f779c3f88f66bc1235e7a65958e1e04f
dmaServiceStateTracker.java
b14300140d9f8b0af4d573eb0420035f814e2d03 19-Sep-2009 Wink Saville <wink@google.com> Fix several CDMA call collision cases

1. Continous ringing after receiving a call waiting while in a call,
and before user answers the call waiting, the 1st call drops. If another
MT call comes in, while it rings, it also drops, the phone will keep
ringing.

2. Data call is not re-initiated if emergency MO call collides with an MT call.

Bug: 2123287
Change-Id: I6b12a900ec60b478691544ab5326eac4952ce834
dmaCallTracker.java
338c48554f35dbee3faa4e39525a972f20a7c32d 18-Sep-2009 Nicolas Catania <niko@google.com> Moved the toString method in the parent Connection class.

Beefed up the output to get more info in the logs about
a connection.
Personal data is only logged at debug level.
dmaConnection.java
963558b0f36b0a3cc143ebb04688d074e69a08b3 16-Sep-2009 Libin Tang <Libin.Tang@motorola.com> Fix pause-wait dial string conversion error

Resolves these specific cases:
- 8475766800;,1234
- 8475766800,;1234

Both of these should be converted to 8475766800;1234

Change-Id: Ic329007a3a6e99b1dd55cd8cdec7239dd734c3ca
dmaConnection.java
ea803b8e0cc613309d0ce096df9c13e9690243ff 16-Sep-2009 Satish Roddom <satishroddom@motorola.com> Message Reject notification shouldn't be shown in Emergency Calling Mode

Issue: While in emergency mode, if we receive a message, there is a notification
being shown as "Text Message rejected".

Fix: In CdmaSMSDispatcher.java, send RESULT_OK response instead of RESULT_SMS_GENERIC_ERROR
for messages during Emergency mode. So, that SMS_REJECTED action is not broadcasted.

If the result is RESULT_OK from CdmaSMSDispatcher, the function notifyAndAcknowledgeLastIncomingSms()
is not called from SMSDispatcher.java and hence SMS_REJECTED_ACTION intent is not broadcast.
Consequently SMSRejectReceiver.java will not receive the broadcast and will not show reject
notification.

Change-Id: I2aa8f239393b3e6eeac6b0c2bb69799018e9ae9d
dmaSMSDispatcher.java
9d34319f1ce5be4124a0b6293162587f4573496f 16-Sep-2009 Christian Gustafsson <christian.gustafsson@motorola.com> CDMA Check for network duplicate sms

In some cases a sms acknowledgement might be lost. The network will then resend
the same sms. These duplicate sms should be acknowledged but not shown to the
user.

C.S0015-B 4.3.1.6 Unique Message Identification.

The fields used to identify a message are:
* Message Identifier,
* Originating Address,
* Originating Subaddress, and
* Message Center Time Stamp.

Since some of the fields are optional, the Teleservice Layer shall use as
many of the fields as are present in the SMS message to determine message
uniqueness. Mobile stations should discard repeated messages.

1. Add a fingerprint function to SmsMessage.java. This returns a byte array
to be used as a unique identifier. Parts that make up the identifier are
the originating address, teleservice id and the bearerdata. Using all of
the bearerdata saves parsing time. There are no random bits allowed in
the standard. This makes binary comparison possible. Using all of the
bearerdata accounts for the message id, smsc timestamp and "... shall
use as many of the fields as are present in the SMS message".
2. Have CdmaSMSDispatcher.dispatchMessage() pull a fingerprint and check if
it matches the last acknowledged fingerprint. When it matches return and
signal that message was handled.
3. Have CdmaSMSDispatcher.acknowledgeLastIncomingSms() take the last
dispatched fingerprint move it to the last acknowledged fingerprint.
Only do this if processing of the sms was successful.

Change-Id: If79f8fe40896cd290940b7ccd5a17531ab937b60
dmaSMSDispatcher.java
msMessage.java
2189daf50c174b5bed048a2777fae8b57df8e467 11-Sep-2009 Libin Tang <Libin.Tang@motorola.com> Fix call collision issue

This patch is to fix the call collision issue between an MT call
and an MO call causing the MT call screen shown with the MO call info.
The fix is to add the condition of foreground call to determine the
call collision on top of the pendingMO call only.

Bug ID: 2116865
Change-Id: I73aa310d39ebea97e6183281821bf941b5890ccf
dmaCallTracker.java
50f7ea53c3f356453fc4304b911c9a022290d924 15-Sep-2009 jsh <jsh@google.com> Some SMS logging improvements.

Use Log.isLoggable() to enable logs at runtime. Implement SmsResponse.toString()
so we can see what's returned.

Hopefully helps with debugging b/2086832.
msMessage.java
70f74b79c3e4c88e0e7b747796f76187e4ea8259 14-Sep-2009 Christian Gustafsson <christian.gustafsson@motorola.com> Assemble WAP datagram correctly when segments arrive out of order

The WAP assembly code will always attach the last received segment at the end
of the WAP datagram. Change the code to add the current segment at the correct
location during the WAP datagram assembly.

Change-Id: I4cc18bf33bc68ab9a328a0107f21e3670b5026ac
dmaSMSDispatcher.java
d304ae583d862250a21b5949fc3dbdf3af1febac 03-Sep-2009 Tammo Spalink <tammo@google.com> Fix CDMA SMS delivery status reporting.

CDMA SMS status reports are messages with bearer data message type
DELIVERY_ACK. Identify these messages after parsing during demux,
update the deliveryPendingList and generate a RESULT_OK intent in the
same manner as GSM.

Addresses issue:
http://buganizer/issue?id=2047571

Change-Id: Ia38718b0bb169a0f3398f50c27a95e8bce7e4c99
dmaSMSDispatcher.java
msMessage.java
88e3f827e657ef741099b24896c17533fa9ef61e 10-Sep-2009 Wink Saville <wink@google.com> Allow an alternate eri file.

For testing purposes it is deseriable to allow
vendors to provide an alternate eri file. This
fixes Part A of bug 2108379.

Bug:2108379
Change-Id: I51703c9ac211ced053418e28e277dfab68deea21
riManager.java
7a043b351b43e963605afef6ab76a52ae3a9270e 25-Aug-2009 Tammo Spalink <tammo@google.com> Make Phone.updateServiceLocation acquire a one-shot wake lock.

Phone.updateServiceLocation() is the internal routine triggered by
external calls to CellLocation.requestLocationUpdate().

addresses bug http://b/issue?id=1724246

Change-Id: Id3d5cab1a77df12d3e94373a58ae94688a8630c6
DMAPhone.java
dmaServiceStateTracker.java
98a5ba78f99f6537b34b673521f7d4ab9893c80b 09-Sep-2009 Tammo Spalink <tammo@google.com> Avoid CDMA messages with IDs of zero.

In reference to issue:
http://buganizer/issue?id=2047571

Change-Id: I88b5cdbb988f12206663bbb3fdc9508a437b19ad
msMessage.java
1c1ffa0cab8b56274970736d7f3b8c00c01c3d2b 01-Sep-2009 Robert Greenwalt <robdroid@android.com> Promote MccTable to telephony and use it for both gsm/cdma

This adds timezone/locale/wifi-regulator-channels initialization to cdma (gsm already had it).

bug: 2071211
DMAPhone.java
dmaServiceStateTracker.java
uimRecords.java
9b62851c3fbcd7fb61ead7583dcae33e411232d0 01-Sep-2009 Libin Tang <Libin.Tang@motorola.com> Exit Emergency Callback Mode if phone process crashes/restarts

If the phone process crashes while the phone is in ECM, there
is currently no way to get out of ECM without rebooting the
phone. This change forces the phone out of ECM if the phone
process restarts.

Change-Id: Ie4eb103fdc151ca20aa0b29dec43e60ad819e5b7
DMAPhone.java
aace799b9c5ca15bfddbe66b0c69c1ccc30a99a1 25-Aug-2009 Libin Tang <Libin.Tang@motorola.com> Fix the issue that dialing *86 during call, the dialing voicemail screen is not shown.

The change fixes the issue that dialing *86 during the call, the dialing voicemail
screen is not shown, instead it shows feature code screen.

For CDMA, when flash is sent to the network, there is no response from the
network to indicate if the feature code is completed or not. This is different
from MMI code in GSM network. So it's confusing to show any UI to indicate MMI
(feature code) for CDMA.

The change is to remove the feature code handling in CDMAPone, and handle the
feature code dialing the same way as the 3 way call dialing. Basically, when
feature code is dialed, the dialing screen will be shown.
DMAPhone.java
eatureCode.java
fb16e5ccdb230a11cbbbfd17d323db7b88395c2f 03-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23607 into eclair

* changes:
Reject (NAK) CDMA SMS with unknown teleservice ids.
7e207afd497f8822ca34babe1d9cd1f6d5402fad 02-Sep-2009 Tammo Spalink <tammo@google.com> Reject (NAK) CDMA SMS with unknown teleservice ids.

Addresses issue:
http://buganizer/issue?id=2066191

Change-Id: I56124379534bf19f128b6228749c7ee2ef455fed
dmaSMSDispatcher.java
5b462477a90cd08551149fc649ff3035b5331d2d 02-Sep-2009 jsh <jsh@google.com> Fix some sign in errors.

AccountManagerService.SimWatcher was checking if storedImsi = "initial"
instead of null as an initial condition. Also, on NV-only CDMA devices
we were only sending SIM_STATE_CHANGED notifications when the radio
powered down, which meant storedImsi was only initialized if the radio
powered down.
dmaServiceStateTracker.java
a01726a7fdd872cd8e1e8a9dfa52fb9cdbf01019 28-Aug-2009 jsh <jsh@google.com> Some fixes to SMS processing in the framework.

Always process class 0 and other unstored SMS (eg, MWI). We were
rejecting all SMS messages in storage full situations, but certain
messages do not require storage.

Also, notify apps when the framework rejects MT SMS, with new
SMS_REJECTED_ACTION intent.

b/2066775
b/2015906
dmaSMSDispatcher.java
1f952a178db86559ff4bab79c4a9b5fae18096bf 25-Aug-2009 Tammo Spalink <tammo@google.com> Move SMS pdu creation fully into the central Phone process.

Previously pdu creation was haphazardly done sometimes by the app and
sometimes centrally by the phone process -- specifically the phone
process did creation for multipart texts. This change gets rid of the
previous IPC interface for sending raw pdus to SMSDispatch in the
phone process, and instead makes everything work like multipart
messages worked before, namely the structured data is passed and pdu
encoding done centrally.

The motivation for this was the need to ensure that CDMA message id
numbers were strictly monotonic, including across reboots, which
necessitated central state in the form of a system property, which
could in turn only be modified by the phone process.

Hence, this (in part) addresses issue: http://buganizer/issue?id=2075760

Change-Id: I94ca207b6e657c465e8472534704db8646ee277c
dmaSMSDispatcher.java
msMessage.java
33567c5f3dab39cbb8c526c919e7e526042d1acf 01-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23271 into eclair

* changes:
Cleanup egregious style issues.
00416365dedc03c9ed74d94728025fd2d68f648d 31-Aug-2009 Tammo Spalink <tammo@google.com> Cleanup egregious style issues.

No actual code logic changes, only cosmetics.

Change-Id: I81d537610394fcb119dd80ddbc3d3f0295fd5a9a
dmaServiceStateTracker.java
6ce96faa0c8dc74ea6d1391aa54d9c6909810dc1 28-Aug-2009 Robert Greenwalt <robdroid@android.com> Don't mark an APN disabled if setup fails

We need to leave the phone in a connectable state so that it connects whenever it's able
(reception or just timing). If we mark it disabled on failure it wont try again. The retry
comes from the phone layer, not from ConnectivityService.

Also Fix the Phone layer so it retries even if it disconnected by request (DATA_DISABLED).
This was a bug from long ago that didn't become visible until recently with fast wifi and slow
mobile teardown.

Change-Id: I04bf39fba0cb578c87d5fc6ea5d220820ff9f364
dmaDataConnectionTracker.java
a3659232ba9f7f3ba87ff036d17e08a46cf1be62 28-Aug-2009 Wink Saville <wink@google.com> Fix bug 2040024 phone rings only once sometimes.

The phone only rang once on rings that did't loop. In the GSM phones
the vendor ril sends a RIL_UNSOL_CALL_RING event to cause the phone
to properly play non-looping ring tones. To reproduce select a non-looping
ring tone such as "Digital Phone" and call it from another phone, the
phone will only ring once.

Three solutions were discussed:

*) Have all ring tones loop; rejected because to more space would be taken
by the silence.

*) Require all vendor RIL's to send RIL_UNSOL_CALL_RING; rejected because
it is inefficient to send a notification from the bottom of the stack.

*) Modify the PhoneApp or the audio layer; rejected because it would be
to big of change.

*) Modify the framework; this is the solution accepted.

The framework was modified to use two now properties to control the
call ring notification.

ro.telephony.multiple_call_ring: a boolean that if true the vendor ril
is assumed to send multiple RIL_UNSOL_CALL_RING messages. If false
only one is assumed and the framework will generate additional events.
(The default if absent is true).

ro.telephony.call_ring_delay: the delay in milli-seconds between
the generated events. (default if absent is 3000)

To minimize code duplication this change does some reorganization
of the PhoneBase class hierarchy and PhoneBase becomes a handler
and implements a default handleMessage method handles events associated
with call ring notification. This handler is overridden by derived
classes, CDMAPhone and GSMPhone which will pass unknown events
to PhoneBase.handleMessage and thus handle call notification for any
derived class.

Change-Id: I5b147b2b69b647d9987052f16ada41c9b66e4bf1
DMAPhone.java
dmaDataConnectionTracker.java
868b34bd740a279fa243dce6803af40f8cc42db7 24-Aug-2009 Robert Greenwalt <robdroid@android.com> Track apn Enable synchronously and notice failures

Another way to fix this problem. Notice the failures of dataSetup and mark the requesting
apn as unenabled so future attempts can be made.

bug: 2069221
dmaDataConnectionTracker.java
1cef22890d10417977397a5dccf34956858d0803 20-Aug-2009 Guo-Bin Zhang <Guo-binZhang@motorola.com> Disable data call in emergency call

Same change as 79ef673d56e2599932b8b7f13695d23b4df54d09 rebased
DMAPhone.java
dmaCallTracker.java
c813129fe7317c45e07211cd285c614e8b319ca7 21-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22282 into eclair

* changes:
Fix Calling screen shows "In Call" on pressing mute button
25254db31a7c4190cc453d38cd50d65a17885305 17-Aug-2009 Yong Zhang <yzhang@motorola.com> Delay radio reset to wait for data cleanup in CdmaDataConnectionTracker

Issue to be addressed:
In radioRestart() method in CdmaDataConnectionTracker, if the radio is
restarted right after cleaning up connection, it is possible that the
connection setup request triggered by radio-on may happen before the
connection cleanup has been completed so that the connection may not
be set up correctly after the radio is restarted. The end result could
be that the phone lost the data capability.

The patch includes the following changes:
1) Add EVENT_RESTART_RADIO in DataConnectionTracker.
2) In CdmaDataConnectionTracker, method restartRadio(), send a message
delayed by 20s, the purpose of which is to wait for connection cleanup
to be completed, then to restart radio.
3) In CdmaDataConnectionTracker, method trySetupData(), don't try to setup
data if there is pending message to restart radio.

Addtional notes:
A system property is not used to config the delayed timer because we
think this fix is to address the unusual error case and waiting for
long time should not impact user experience much. 12s is the longest
time to complete the data cleanup as we have seen so far, so we are
using a 20s timer.
dmaDataConnectionTracker.java
5abc78405f03e739f972692aa100f25609301ff5 18-Aug-2009 Guo-Bin Zhang <Guo-binZhang@motorola.com> Fix Calling screen shows "In Call" on pressing mute button

Send a flash command to CDMA network for putting the other party on hold.
For CDMA networks which do not support this the user would just hear a beep
from the network.
For CDMA networks which do support this, it will put the other party on hold.
dmaCallTracker.java
49bd918dc26a3a599d8d04212de5600abc3e48c4 20-Aug-2009 Tammo Spalink <tammo@google.com> more cdma sms debug logging
msMessage.java
079ad20da7df79f26880c9076967dc3fbce6528c 17-Aug-2009 Tammo Spalink <tammo@google.com> cdma sms encoding tweaks and logging / debugging annotations.
msMessage.java
ms/BearerData.java
ms/UserData.java
d324c81c049f30b779967c73de591e20f9a15d99 18-Aug-2009 Wink Saville <wink@google.com> Dormant ICON was not being displayed, fixes bug 2039239.
dmaDataConnectionTracker.java
95a1d1a89e383dab893750638c2393dec54833ff 18-Aug-2009 Wink Saville <wink@google.com> E911 call fix in ECM

Based on the VZW requirement, phone should be still in ECM mode in 2nd emergency call.
but in the current phone call, if a 2nd emergency call is originated, ECM mode will exit.

For fixing this problem, the coding design is as below:
1. In framework, canceling the first ECM timer immediately upon the origination of the
2nd E911 call, and restarting a new timer when the 2nd E911 ends.
2. Framework needs to syncronize the timer with phone app by sending notification to phone app to
inform timer is canceled or re-started, since phone app needs to show how much ECM time left
on the status bar.
3. In phone app's emergency callback mode service, the timer in this service will be canceled
when it receives the timer cancel notification from framework; the timer will be restarted
once it receives timer restart notification from framework.
DMAPhone.java
dmaCallTracker.java
25a5d3db3ff06b9952395832308bc3b48913c4ee 14-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix CDMA to startup/shutdown based on apn en/disab

Fixes MMS during wifi.
Also fixes CDMA for ConnectivityManager change.
DMAPhone.java
dmaDataConnectionTracker.java
fa2944d93f4c5050fb4a99d90006791c2995b31c 14-Aug-2009 Yong Zhang <yzhang@motorola.com> Replace loop-delay in setPowerStateToDesired() with async approach

Issues to be addressed:
The method setPowerStateToDesired() in CdmaServiceStateTracker class sends
a msg to CdmaDataConnectionTracker class to deactive data call, and then starts
a loop which calls SystemClock.sleep() to wait for several seconds.The purpose
of this is to wait for data-disconnection before sending RADIO_POWER off request.
However, the CdmaServiceStateTracker and CdmaDataConnectionTracker are running in
the same process so that the CdmaDataConnectionTracker is not able to process the
message to deactive data before the loop ends.

The patch includes the following changes:
1) In setPowerStateToDesired() in CdmaServiceStateTracker, replace implementation
of loop-delay by sending a delayed msg to set RADIO_POWER off.

2) In CdmaDataConnectionTracker, when getting EVENT_DISCONNECT_DONE, call a new
method in CdmaServiceStateTracker to process pending request to turn RADIO_POWER
off.
dmaDataConnectionTracker.java
dmaServiceStateTracker.java
e6a9bcb7e8280512b0f68230fb72a004f86c8ae1 15-Aug-2009 Wink Saville <wink@google.com> A hack that when restartRadio is called the CdmaDataConnectionTracker
to retry a connection and possibly reconnect after a temporary data loss.

The root cause appears to be because DEACTIVATE and POWER_RADIO_OFF are
sent back to back and POWER_RADIO_OFF completes before DEACTIVATE.
When this happens CdmaDataConnectionTracker won't attempt to reestablish
a data connection until a voice call terminates.

At this time it appears the better solution is have CdmaDataConnectionTracker
wait for DEACTIVATE to complete before issuing POWER_RADIO_OFF, this fix
will be implemented in the near future.
dmaDataConnectionTracker.java
ad4d9e5bebb5a9ba01c1459d941019887f4a7d6d 15-Aug-2009 Wink Saville <wink@google.com> Allow CdmaDataConnectionTracker to handle RIL_UNSOL_OTA_PROVISION_STATUS
and when data roaming is enabled reset the retry manager.

This change also refactors mRetryMgr to DataConnectionTracker
removing it from Cdma and Gsm data connection trackers child classes.
dmaDataConnectionTracker.java
9e0426087b35ddbe965b71f929ef4109a2299b2c 14-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21166

* changes:
Rename bcdByteToInt to gsmBcdByteToInt and beBcdByteToInt to cdmaBcdByteToInt.
50e05ead5e4fb2e4899e2e1c92cd48692b254ac8 14-Aug-2009 jsh <jsh@google.com> Trigger data connection update if network type changes.

Data connection icon could be stale otherwise.
dmaServiceStateTracker.java
9688c6046fdbf6a24e3541bd6342995b4605fd5d 12-Aug-2009 Wink Saville <wink@google.com> Rename bcdByteToInt to gsmBcdByteToInt and beBcdByteToInt to cdmaBcdByteToInt.
ms/BearerData.java
18e7b98c1c7e3cf340e39e93be67b777e7036cc4 04-Aug-2009 Tang@Motorola.com <Tang@Motorola.com> Fix the issue of incorrect conversion of the plus sign in a dial string.

The issue is that the plus sign in a dial string is always converted
to the IDP (International Dial Prefix).

This fix implements a plus sign conversion mechanism based on the default
telephone numbering system that the phone is activated and the current telephone
number system that the phone is camped on. Currently, we only support the cases
where the default and current telephone numbering system are NANP.
dmaConnection.java
597f2b7022db1368831251d776f42b98d10ba2cd 10-Aug-2009 johnwang <johnwang@google.com> Add ro.telephony.disable-call check in dialing.

When ro.telephony.disable-call is set to true the phone disable actual calls. It provides a way to test in user-debug builds for stability runs. See bug 2031157.

modified: java/com/android/internal/telephony/TelephonyProperties.java
modified: java/com/android/internal/telephony/cdma/CdmaCallTracker.java
modified: java/com/android/internal/telephony/gsm/GsmCallTracker.java

modified: java/com/android/internal/telephony/TelephonyProperties.java
modified: java/com/android/internal/telephony/cdma/CdmaCallTracker.java
modified: java/com/android/internal/telephony/gsm/GsmCallTracker.java
dmaCallTracker.java
e00dd1e5a37bed0de964b353d47a4bd7cdff532f 28-Jul-2009 Tammo Spalink <tammo@google.com> Make GSM 7-bit encoding properly deal with initial padding.

For CDMA, clean up the GSM encapsulation to properly align
user data payload after the user data header.

Addresses http://buganizer/issue?id=2007011
ms/BearerData.java
3918e13b24d4e7ad410089eb615721ca026bec01 09-Aug-2009 Wink Saville <wink@google.com> Add configurable data-retry.

Add RetryManager and change GsmDataConnectionTracker and
CdmaDataConnectionTracker to use it.

Add TelephonyUtilsTest which tests RetryManager.
dmaDataConnectionTracker.java
e4ebbd29f78df25e22c701b597c3c15b7f8add73 08-Aug-2009 Christian Gustafsson <christian.gustafsson@motorola.com> CDMA voicemail notification fixes

1. Convert the voicemail count of a VM notification from
BCD to decimal. That way the user will not be notified
of 16 new VM when there are only 10.
Ref: 3GPP2 C.S0015-B / 4.5.12 Number of Messages.
2. Allow VMN-95 notifications without "User Data" to be
processed. Only mandatory items for VMN-95 are
"Message Identifier" and "Number of Messages".
Ref: 3GPP2 C.S0015-B / 4.3.5 Voice Mail Notification.
dmaSMSDispatcher.java
ms/BearerData.java
5221dfdec95a75b0c608b4e0c9ead0623e2eaab4 08-Aug-2009 Wink Saville <wink@google.com> Revert "Disable data call in emergency call"

Temporary rollback of this change, for now the radio can prevent data traffic,
but that's not the desired long-term solution.

This reverts commit 79ef673d56e2599932b8b7f13695d23b4df54d09.
DMAPhone.java
dmaCallTracker.java
9e652dcc213b96087ccadc730b1e6b1891cd02ae 06-Aug-2009 Jinghui Guo <w001091@motorola.com> Touch activation screen shown up fix

During the time of OTA activation screen startup, the app needs
to get MIN by calling getCdmaMin(). The issue in current code is that
OTA app calls getCdmaMin() before framework gets MIN data from lower
layer.

To fix this issue, framework will be providing the following new APIs
to applications for checking if MIN data is ready:
1. isMinInfoReady():
Check if mMin variable in getCdmaMin() has been assigned a non-null value.
2. registerForSubscriptionInfoReady():
Apps uses this API to register for notification.
3. unregisterForSubscriptionInfoReady():
This API is used by apps to unregister notification.

Framework will be sending out the notification in the following situations:
1. when mMin is assigned a non-null MIN value;
2. When app calls register API and MIN is ready.
DMAPhone.java
dmaServiceStateTracker.java
33777d2096c6877ab925db562067ac7272076399 04-Aug-2009 Libin Tang <Libin.Tang@motorola.com> Fix the issue of datacall not being reinitiated after exiting
Emergency Callback Mode.
DMAPhone.java
2d65082b158564819404e556db6492272111b5b3 05-Aug-2009 Tammo Spalink <tammo@google.com> fix CDMA SMS ASCII decode and mapping
ms/BearerData.java
ms/UserData.java
529fcf97ea860ce605ccdc07e02f9c5736b8a590 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9684

* changes:
Add a DISCONNECTING call state.
e7a9201edbb4d18f12d00ba1b80e2481a5cb446f 04-Aug-2009 jsh <jsh@google.com> Add a DISCONNECTING call state.

This indicates to the UI that the hangup command has been received by the
Telephony layer and passed down to the RIL, but we have not yet been notified
of a successful DISCONNECT.

Addresses http://b/issue?id=1659876.
dmaCall.java
dmaCallTracker.java
dfb8f07a954ffee3e96c9901230e44f444725846 01-Aug-2009 Tang@Motorola.com <Tang@Motorola.com> Fix WPS Queued pip tone not working issue.

The alert pitch included in the signal information record
should not be involved in the calculation for Pip tone type
mapping.
ignalToneUtil.java
98aed46992679cf1ddc99bdb735c9d18b92ce940 02-Aug-2009 Tammo Spalink <tammo@google.com> relax ia5 parsing, and combine with ascii
ms/BearerData.java
ms/UserData.java
a1c94ae4f75dab030219069864029f5bd9498fb0 13-Jul-2009 Richard Meng <richard.meng@motorola.com> Handle SMS during CDMA emergency callback mode

If in emergency callback mode, any 3rd party application tries
to send Message using telephony API, return a NO_SERVICE error code.
dmaSMSDispatcher.java
106d27140bdd1acf388310807d662f08cb6292c6 31-Jul-2009 johnwang <johnwang@google.com> Add technology and authentication type in setupDataCall.

SetupDataCall needs radio technology parameter to identify CDMA and GSM type. 0 means CDMA and 1 means GSM. The values are different from GSM_PHONE and CDMA_PHONE. Add authType parameter to identify PAP/CHAP authentication. Currently the authType is set to use both PAP and CHAP in CDMA phone.

modified: telephony/java/com/android/internal/telephony/CommandsInterface.java
modified: telephony/java/com/android/internal/telephony/RIL.java
modified: telephony/java/com/android/internal/telephony/RILConstants.java
modified: telephony/java/com/android/internal/telephony/cdma/CdmaDataConnection.java
modified: telephony/java/com/android/internal/telephony/gsm/PdpConnection.java
modified: telephony/java/com/android/internal/telephony/test/SimulatedCommands.java
dmaDataConnection.java
992c1ebda18ac23c905d61d309dc8cdf9a030267 31-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9260

* changes:
Fix crash while dialing "*228;1"
d903014c1f42884531372f18a754e5d6ff7366a7 27-Jul-2009 Libin Tang <Libin.Tang@motorola.com> Fix crash while dialing "*228;1"
DMAPhone.java
d23b2cd28cae547aaa884964c3fef2a010bcca3a 27-Jul-2009 Libin Tang <Libin.Tang@motorola.com> Fix CDMA ERI/roaming indicator issues

- If the SID is not in NAM and PRL, the phone should use default Roaming
Indicator
- If a system is acquired that matches the NAM but does NOT match the PRL,
the device shall display a FLASHING roaming indicator
- Handle corner cases for PRL is not loaded / Home SID is not programmed
- Reorganize the ERI logic
dmaServiceStateTracker.java
d2fb98006054f94753d8c58cf6a809840964db2e 30-Jul-2009 johnwang <johnwang@google.com> Represent SID/NID in decimal format.

Interpret SID/NID ad decimal and add try/catch block to prevent crashing in wrong format. Update SID/NID comments.

modified: java/com/android/internal/telephony/CommandsInterface.java
modified: java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
dmaServiceStateTracker.java
c84401fb8b3ed90039bd132b343852303ef88ce6 13-Jul-2009 yong liu <yong.liu@motorola.com> CDMA Message Waiting Indication support

Add support for Message Waiting Info Record defined in 3GPP2 C.S-0005
and used for voice mail count by some CDMA networks
dmaSMSDispatcher.java
msMessage.java
ms/SmsEnvelope.java
96f2747dd6fabd998619524bcff4a44502a64bbd 23-Jul-2009 Yong Zhang <yzhang@motorola.com> Fix wrong Singal Strength interpretation.

The issue this change fixes is that phone status bar shows full
signal strength bar even when phone is in bad signal area. The
root cause is that the signal strenth is incorrectly interpreted.
dmaServiceStateTracker.java
fc6627a892bc80ea32f9ac6ef2fd5ec7b0b90f78 30-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9054

* changes:
Increase waiting time for data disable action in setPowerStateToDesired().
6afac8b2926c166458fde085e6068473a95688fe 24-Jul-2009 Yong Zhang <yzhang@motorola.com> Increase waiting time for data disable action in setPowerStateToDesired().

The issue this change fixes is that phone did not send MIP deregisteration
and LCP termination message when user powered down phone while data call was
in dormant state. The root cause is Framework Telephony did not wait long
enough before it sent the request to power off the radio. The fix is to
increase the waiting timer.
dmaServiceStateTracker.java
79ef673d56e2599932b8b7f13695d23b4df54d09 25-Jul-2009 Jinghui Guo <w001091@motorola.com> Disable data call in emergency call
DMAPhone.java
dmaCallTracker.java
f62a2bf29a6cf87be03b290b8b660db245022881 28-Jul-2009 Tammo Spalink <tammo@google.com> allow illegal subparam sizes for CDMA SMS

addresses http://buganizer/issue?id=2008358
ms/BearerData.java
a1fd1efb52294360d09a4a4f5b6daabafd3c6603 27-Jul-2009 repo sync <dxn738@motorola.com> Voicemail number setting is throwing exception
DMAPhone.java
8125864adcf27f706f261903ae5adf84f30b1987 22-Jul-2009 Ling Li <wlll01@motorola.com> Refix the MT call screen stuck issue.
The issue this change fixes can be reproduced by following steps:
1. Originate and connect a call to remote party #1 that is not in Contacts.
2. Receive a call from the remote party #2 that is not in Contacts, the
call waiting tone is sounded and the call waiting screen is displayed.
3. Press menu key and ignore the call, and the call waiting screen is
dismissed and the remote party #2 is forwarded to voice mail.
When we ignore the incoming call, Phone gets stuck with incoming call
screen.

The fix is to update the phone state before notifying the state change
in hangup() function.
dmaCallTracker.java
e30d4bf531cf8873f345cff0503974952c2daf65 17-Jul-2009 Jinghui Guo <w001091@motorola.com> Fix the issue of new call failing in 3-way call scenario.

The issue this change fixes can be reproduced by:
1. place an MO call;
2. place the second MO call;
3. hangup from the other end for one of the calls so there is only
one call connected;
4. try to place another call.
This issue is that the new call would fail.
dmaCallTracker.java
3bd5b0154faa02e197cdc344b45d968aba43d726 17-Jul-2009 Anna Markova <crwn43@motorola.com> Fix for unknown number issue in CDMA call waiting

During a call, if 2nd call is received, the 2nd remote party number
should be properly displayed in case numberPresentation is set to
ALLOWED
dmaCallWaitingNotification.java
1424fe0059a3fe163fb98bad807a1eb635b0a161 23-Jul-2009 Tammo Spalink <tammo@google.com> added non-numeric cdma sms address support

addresses bug http://buganizer/issue?id=1992198
msMessage.java
ms/BearerData.java
ms/CdmaSmsAddress.java
ms/UserData.java
eafe72a0db89b5867ccd4b8170377309827785a2 07-Jul-2009 Satish.Kulkarni <Satish.Kulkarni@motorola.com> Fix for missing call drop notice in CDMA mode

In case the cdma modem indicates unspecified error as a reason for a
dropped call, then the cause was wrongly being translated to NORMAL call in
DisconnectCause. This has been fixed to report ERROR_UNSPECIFIED as
DisconnectCause in Connection.java.
dmaConnection.java
c6d6b687af385d2a4e5f5210a9111d7b1acc233c 24-Jul-2009 Wink Saville <wink@google.com> Add method in Phone interface to check whether data is enabled.

This adds isDataConnectivityEnabled to allow test methods to query the
data connectivity state.
DMAPhone.java
97b270abd5e5200a3c512e08e06033397e2abfd6 24-Jul-2009 johnwang <johnwang@google.com> Fix bug# 1997056

The SID and NID in CDMA_SUBSCRIPTION are in hexadecimal format. So change the parseInt() in CdmaServiceStateTracker and add comments in CommandsInterface.

modified: java/com/android/internal/telephony/CommandsInterface.java
modified: java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
modified: java/com/android/internal/telephony/RIL.java

modified: java/com/android/internal/telephony/CommandsInterface.java
modified: java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java
modified: java/com/android/internal/telephony/RIL.java
dmaServiceStateTracker.java
5e9760c16b0b0dca96b59fdb2fd3c875ecfd33eb 16-Jul-2009 Jinghui Guo <w001091@motorola.com> Fix remote caller ID unknow issue in 3 way call
dmaConnection.java
3720cf2de9a86b4fb5583f190b183498f0ad3fc0 17-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7709

* changes:
Fix MT Call screen stuck issue.
84d5585b99f08caba384c933906c0da175fce995 17-Jul-2009 Cheng Yang <chengyang@motorola.com> Fix MT Call screen stuck issue.

The issue this change fixes can be reproduced by following steps:
1. Originate and connect a call to remote party #1 that is not in Contacts.
2. Receive a call from the remote party #2 that is not in Contacts, the
call waiting tone is sounded and the call waiting screen is displayed.
3. Press menu key and ignore the call, and the call waiting screen is
dismissed and the remote party #2 is forwarded to voice mail.
When we ignore the incoming call, Phone gets stuck with incoming call
screen.

The fix is:
1. Update phone state promotly based on the call waiting state.
2. Remove new call handling in handlePollCalls() function because in CDMA,
the call drop should be determnited by the number of calls in the call
list.
dmaCallTracker.java
142eefc67b661a63f95dd2b92cf622e7b57fcb4b 17-Jul-2009 Wink Saville <wink@google.com> Implement IMSI function for CDMA phones

Includes support to get the MCC and MNC from system properties, since
they are known to be unreliable from the network.
DMAPhone.java
dmaServiceStateTracker.java
uimRecords.java
60b707075b2cf0eb5f0e215468385fd980d238fa 16-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7526

* changes:
Implement the carrier specified OTASP numbers
90b34b37731307cd0ccd5dfa60971364b37515d8 16-Jul-2009 jsh <jsh@google.com> resolved conflicts for merge of 8e0fb366 to master
ae49180f280fdda509103a403ec909fbebdf3971 15-Jul-2009 jsh <jsh@google.com> Minor tweak to CDMA_SUBSCRIPTION.

H_SID and H_NID are now comma separated lists, so update CdmaServiceTracker
accordingly. Note: For now, we still only store away the first of each.

Also remove H_SID and H_NID fetching from RuimRecords.java, since it is unused
(and unlikely to be used) in that class.
dmaServiceStateTracker.java
uimRecords.java
e4a84af11d94e90f8d0a376582e0c91cdfc1c4fe 01-Jul-2009 Ling Li <Ling.Li@motorola.com> Implement the carrier specified OTASP numbers

It defines a new system property for carrier defined OTASP number.
It also includes the change to check the dial string against the OTASP
number.
DMAPhone.java
1c42769339d8fe98ecb2698c64e7dc6672e3d59d 13-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Rename registerPhoneStateChange to registerPreciseCallStateChange

As registerPhoneStateChange was actually notifying CallStateChange,
rename appropriately.
DMAPhone.java
dmaCallTracker.java
2a71ee7129a7a346a4f1fb9d63b82bc06b9120d5 14-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 7007

* changes:
Update name getCdmaMIN to getCdmaMin
019581bf6055eb69ee7e4cb844dafe2b6c23597e 07-Jul-2009 Cheng Yang <a17673@motorola.com> Update name getCdmaMIN to getCdmaMin

1. update name getCdmaMIN to getCdmaMin
2. update DEFAULT_ECM_EXIT_TIMER_VALUE from 30000 to 300000
DMAPhone.java
b9cb7c970b04c59d490ed480635a93df63eadeb9 14-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6963

* changes:
Block incoming SMS in CDMA Emergency Callback Mode
117eace23924f575877ae8ecbb899af22e6f16c0 10-Jul-2009 Cheng Yang <chengyang@motorola.com> Block incoming SMS in CDMA Emergency Callback Mode

Block incoming SMS in CDMA Emergency Callback Mode

CDMA carriers expect that incoming SMS is not processed by phone while
it is in Emergency Callback Mode, so don't acknowlegde it to the network.
dmaSMSDispatcher.java
2872e30684cf837e330c8fa3bb8b2a2b73d44ddb 07-Jul-2009 Mike Lockwood <lockwood@android.com> DO NOT MERGE: backporting from master:

CDMA: Add Network ID and System ID to CdmaCellLocation.

Signed-off-by: Mike Lockwood <lockwood@android.com>
dmaServiceStateTracker.java
56d97ebb3ab05407ceea781c5bddc4527f98d828 24-Jun-2009 Cheng Yang <a17673@motorola.com> Add Get-CDMASubscription in EVENT_RUIM_READY.
dmaServiceStateTracker.java
5b93050d484e602f5e716f60a33e7e4dc4619e0b 13-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am f6c96839: Merge change 6850 into donut

Merge commit 'f6c968395f9c78552763e8f2994a57cf5c6bc0c0'

* commit 'f6c968395f9c78552763e8f2994a57cf5c6bc0c0':
Extra parameters for sendBurstDtmf.
a4d2fb5ef6bb5dfb6e26ac6a139de389984db5d3 07-Jul-2009 Mike Lockwood <lockwood@android.com> CDMA: Add Network ID and System ID to CdmaCellLocation.

Signed-off-by: Mike Lockwood <lockwood@android.com>
dmaServiceStateTracker.java
dafa22a3ef9328c72319aeec605f6a6d20e46080 11-Jul-2009 jsh <jsh@google.com> Extra parameters for sendBurstDtmf.

ON length and OFF length.
Also, define PROFILEs for use with SETUP_DATA_CALL.
DMAPhone.java
dmaDataConnection.java
7882e20d594fcdce357acc8bc74f95702fd9bf8f 10-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6814

* changes:
Change 107 and 146 from partner repo.
daccacb865947c00f277f1823333e2fbf91e652a 10-Jul-2009 Wink Saville <wink@google.com> Change 107 and 146 from partner repo.

These were combined to save testing time.

cpr107:
Enhance the MDN change during OTA

1. Remove the OTA MDN change code in RuimRecords.java and move
to CdmaServiceStateTracker.java
2. Reduce the frequent function GET-CDMASubscription. Move the
Get_CDMASubscription from pollstate() to EVENT_NV_READY handler.
The CDMA Subscriber MDN/MIN is only changed by OTA programming.
Only need fecth the subscriber information when power on and OTA
completed.
3. Add new variable for PRL version in cdma subscription

cpr146:
SMS-to-Email fix for extracting e-mail address
DMAPhone.java
dmaServiceStateTracker.java
uimRecords.java
05b301b9df83ee7aa7ac2a93e137bc1fd58d3fce 10-Jul-2009 Wink Saville <wink@google.com> Changes 203 and 225 from partner repo.

These are combined to save testing time.


Change 225:
make NV_READY return State.READY.

Change 203:

CDMA SMS decoding support for Latin and fix for WAP concatenation

1. Enabled support for 8bit Latin decoding.
2. Change octet decoding to remove an extra pad byte from the payload.
This caused problems with the concatenation of WAP PUSH messages.
3. Decode octet encoded data as if it was Latin. There are devices out
there that will use 0 instead of 8.
ms/BearerData.java
ms/UserData.java
2291616d846dcc7ed81ac534ff45962e6056ad12 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6092

* changes:
Remove duplicate code in Sim/Ruim card, handle IccCardStatus.
cdadaad0e4e76a69eba144d3501cca9765cee80c 02-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Remove duplicate code in Sim/Ruim card, handle IccCardStatus.

a) Push code to IccCard.java base class.
b) Handle IccCardStatus.
c) Add some helper functions for USIM use.
uimCard.java
uimRecords.java
2fa57a3fd1f5be9136b51c955e0ecc355021ecba 30-Jun-2009 yong liu <yong.liu@motorola.com> Message address encoding fix

Set DIGIT_MODE_4BIT_DTMF as the default digitMode and
TON_UNKNOWN as the default 'type of network'.
msMessage.java
bcd18e0151cf0d7a16f98eb997515bf9e28dd6a4 08-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 62edc960: Merge change 6383 into donut

Merge commit '62edc960224fd6410d5e08cbb0e09ee4ac6e0c44'

* commit '62edc960224fd6410d5e08cbb0e09ee4ac6e0c44':
Cleanup connection when airplane mode is entered.
62edc960224fd6410d5e08cbb0e09ee4ac6e0c44 08-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6383 into donut

* changes:
Cleanup connection when airplane mode is entered.
51759015a39c15810ac4581359c6d72879b8155f 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6392

* changes:
Add the condition check of ERI for CDMA roaming.
024af038a7ad04bb551c305c235d25e51cbeda13 07-Jul-2009 Jaikumar Ganesh <jaikumar@google.com> Cleanup connection when airplane mode is entered.

The message was being sent to the wrong handler.
dmaServiceStateTracker.java
8e80fd4478764643ac9543d63a77db62014a843a 06-Jul-2009 Yong Zhang <yzhang@motorola.com> Add the condition check of ERI for CDMA roaming.

With this fix, phone will not show that it is roaming
when it is not, and there is no need to enable the
"Data Roaming" in order to get the data to work.
dmaServiceStateTracker.java
6e2863ec16828b77c494592410e6b01281596e87 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 37ea7112: Merge change 6338 into donut

Merge commit '37ea71122579e9e2ad1f91b3eca5e4d436b54ea9'

* commit '37ea71122579e9e2ad1f91b3eca5e4d436b54ea9':
septet-align UD after any UDH for GSM-7bit coding
0fd833a50f43239e619fa383045374459f42ca49 07-Jul-2009 Tammo Spalink <tammo@google.com> septet-align UD after any UDH for GSM-7bit coding
ms/BearerData.java
a95fe061c77fac5565689f7b618f3d49b8326f7e 06-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 6232

* changes:
frameworks/base: Update mPdu in createFromPdu
5082fd58e33aa54d760459de3368912c37864a4f 24-Jun-2009 Satish Roddom <satishroddom@motorola.com> frameworks/base: Update mPdu in createFromPdu

Inside createFromPdu(), the passed-in parameter 'pdu' is assigned
to msg.mPdu, so that we can call getPdu() to get it back.
msMessage.java
1eee698c3e98561e5d9ddab7e4396b9281b31eb3 03-Jul-2009 Wink Saville <wink@google.com> Fixing 1949086 Sholes telephony crash after waking from sleep.
dmaDataConnectionTracker.java
8561de157c78e65e49f6989cd2c242c416631df7 28-Jun-2009 Tammo Spalink <tammo@google.com> eliminate byte-typed cdma sms fields
ms/BearerData.java
ms/CdmaSmsAddress.java
8203dc1bc8d99e2fe430a1a3026983e2e440e6d5 09-Jun-2009 Tammo Spalink <tammo@google.com> cdma sms is91 support
ms/BearerData.java
ms/UserData.java
e7e12b44bc37ba971507dde265bb999b63a580e8 22-Jun-2009 Jaikumar Ganesh <jaikumar@google.com> Tune the Reconnect back off timer.

Cap the max limit to 30 mins.
Re-register to the network once, when we reach the 30 min max.
dmaDataConnectionTracker.java
ae3522734ef83254626cacee18a9490f6af62415 26-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5192 into donut

* changes:
make BitwiseInputStream.read return int
5c7d9e8194900a2b1699cd57f95b22ca5f7b9be2 16-Jun-2009 David Krause <david.krause@motorola.com> CDMA incoming MMS fixes

Need to correctly interpret WAP Datagram data. Specifically the
source and destination ports are only included in the 1st segment,
not subsequent segments but the original implementation was looking
for the ports for all segments.
dmaSMSDispatcher.java
3960ced4638fdb24ddf904fcb6734dae0959671e 23-Jun-2009 jsh <jsh@google.com> Fix SMS Ack.

There were a few places where we were not sending SMS ack. This change fixes that, and helps ensure that we don't miss any others.

Also fix a bug I introduced in RIL.java for CDMA SMS ACK (it uses RIL_CDMA_SMS_Ack and not int[]).
dmaSMSDispatcher.java
d48388ab8239d2b0f4b8a9a4189fe9eeddddedca 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 5344 into donut

* changes:
frameworks/base: CDMA voicemail support
ce099c3226b33b43e0dd5d1f24347b14a2223ee1 01-Jun-2009 David Krause <david.krause@motorola.com> frameworks/base: CDMA voicemail support
DMAPhone.java
dmaSMSDispatcher.java
msMessage.java
8a9ae45015a4cabdd56b1160261d4e7cbe551014 15-Jun-2009 David Krause <david.krause@motorola.com> Fix intermittent crash related to call waiting

Previously, when call waiting is ignored by user or timed out
by PhoneApp, the connection object for call waiting does not
release the wake lock. It causes the phone process to crash
randomly.

The fix is to release the wake lock when call waiting is
ignored by user or timed out by PhoneApp.
dmaCallTracker.java
dmaConnection.java
326c66d888f9b3ce82af93fe63e4828a4a4e3fbe 24-Jun-2009 Tammo Spalink <tammo@google.com> make BitwiseInputStream.read return int

Keep the maximum access 8 bits to avoid dealing with
endianness issues.
ms/BearerData.java
b6d90ca1292ffab015d5068f9e184b1dc84b7233 17-Jun-2009 David Krause <david.krause@motorola.com> Fill in CDMA gaps and clean up ToneGenerator code
ignalToneUtil.java
fc78f358cb1d1cee99758bcd6ef998a122ef27c9 11-Jun-2009 Tammo Spalink <tammo@google.com> for cdma concatenated (long) messages, replace ascii7bit with gsm7bit encoding
dmaSMSDispatcher.java
msMessage.java
ms/BearerData.java
ms/UserData.java
59cbd7c86f8e17de10fccc9e4828d33db92555a9 04-May-2009 Jaikumar Ganesh <jaikumar@google.com> Add PDP Reject causes.

The RIL call LAST_PDP_FAIL_CAUSE, gives us the
PDP setup failure cause. Add support for retry based
on these causes.
dmaDataConnection.java
dmaDataConnectionTracker.java
bbf7c00e06c0f6f39e26f7fdedbc7105b2f5c415 12-Jun-2009 Jaikumar Ganesh <jaikumar@google.com> Fix data connection issues.

a)Fix cleanup connection being called twice when switching to wifi.
b) Reset the reconnect timer when voice call ends and APN is changed.
dmaDataConnectionTracker.java
cb9534f92007b47d86cccc306dc75ca2d64bd197 12-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3907 into donut

* changes:
Support SMS cell broadcasting for GSM in RIL.java
e337d651a5199551ae3d3180176f8ac7d58c9acd 11-Jun-2009 johnwang <johnwang@google.com> Support SMS cell broadcasting for GSM in RIL.java

enable gsm related cell broadcast requests in RIL.java and add SmsBraodcastConfigInfo class.

The gsm related cell broadcast requests include

RIL_REQUEST_GET_BROADCAST_CONFIG
RIL_REQUEST_GET_BROADCAST_CONFIG
RIL_REQUEST_BROADCAST_ACTIVATION
RIL_UNSOL_RESPONSE_NEW_BROADCAST_SMS

modified: BaseCommands.java
modified: CommandsInterface.java
modified: RIL.java
modified: RILConstants.java
modified: cdma/CdmaSMSDispatcher.java
new file: gsm/SmsBroadcastConfigInfo.java
modified: test/SimulatedCommands.java
dmaSMSDispatcher.java
a94945d3a1cf23caf33759eb1de84195d3fcb37b 03-Jun-2009 Tammo Spalink <tammo@google.com> make sms calculateLength radio-independent
msMessage.java
ms/BearerData.java
ms/UserData.java
2795c2d6b73f6e72565569f7d4f2f4b34e526bba 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3806 into donut

* changes:
Fix a couple null pointer exceptions in CDMA voice call handling.
4be0d4378c3d9c79a094e99ce429907f1e9eda5f 10-Jun-2009 Wink Saville <wink@google.com> Fix a couple null pointer exceptions in CDMA voice call handling.
dmaCallTracker.java
dmaConnection.java
8f094ca7d045132ec93d4e903e784a3c077708c3 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3686 into donut

* changes:
Fix cleanupConnection when switching from wifi.
9ac95783fc5aab204077d7c81e17e1b4f8afb3c1 10-Jun-2009 Jaikumar Ganesh <jaikumar@google.com> Fix cleanupConnection when switching from wifi.

Post a message for tearDown data connection when switching from wifi.
dmaDataConnectionTracker.java
2563a3ac05dd3cf8a07203ae682c243f2e793137 09-Jun-2009 Wink Saville <wink@google.com> Cleanup whitespace.
DMAPhone.java
dmaConnection.java
riManager.java
ackage.html
ms/package.html
22ccaf5321cf9d2df57cf0d686d1abcd74acb193 07-Jun-2009 Wink Saville <wink@google.com> Motorola changes from 090602 through 090605

The changes from 090602 update frameworks/base to support 3way calling
and call waiting.

The changes from 090603 completed the CdmaInformationRecords class
but the original changes submitted has been simplified, toString added
and a bug fixed where the notifications where not being handled properly.

The changes from 090605 added Prl Version, apn fixes.
DMAPhone.java
dmaCall.java
dmaCallTracker.java
dmaConnection.java
dmaInformationRecords.java
dmaServiceStateTracker.java
eatureCode.java
uimRecords.java
ignalToneUtil.java
3d3e307a63144b1bddd534fefd35a557223d52bf 04-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 3126 into donut

* changes:
Fix thread safety in DataConnectionTracker.
90cb947c22f05f8ac68ceff1d74af15bf38268c6 13-May-2009 Tammo Spalink <tammo@google.com> cdma getNeighboringCids to fail with an exception
DMAPhone.java
9c2a3be8bad8867cc524d8813dc6468a7ffb3f09 04-Jun-2009 Jaikumar Ganesh <jaikumar@google.com> Fix thread safety in DataConnectionTracker.

All the methods in DataConnectionTracker should be called only through
the handler. Fix this as trySetupData was being called in the broadcast receiver.

Tested: Airplane mode and GPRS retry.
dmaDataConnectionTracker.java
dmaServiceStateTracker.java
c665349543b481b14e423ea9e7e2b368569ae311 02-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1522 into donut

* changes:
support more minor cdms sms bearer data subparameters
baae313f896d8048f23e4acc76e554c8aa4667bd 12-May-2009 Tammo Spalink <tammo@google.com> support more minor cdms sms bearer data subparameters

- also clean up CdmaSmsAddress
msMessage.java
ms/BearerData.java
ms/CdmaSmsAddress.java
f315238a2b07c7e84f6ade800e504f520d262e66 01-Jun-2009 Wink Saville <wink@google.com> TODO's from Teleca with modifications from wink.
DMAPhone.java
allFailCause.java
dmaDataConnectionTracker.java
dmaServiceStateTracker.java
riInfo.java
riManager.java
uimRecords.java
faf4413dffdc9079683b951736088ff2a01073a4 30-May-2009 jsh <jsh@google.com> Manually merge a few fixes from cupcake and cupcake_dcm.

CL 144717: Correctly set user data payload length for non-7-bit encoded payload.
CL 149058: Check for null TP-OA in SmsMessage.parseMessageBody().
CL 138094: Make sure call state (and other updates) have a chance to get processed between data setup attempts.
CL 132624: Added a comment for a way to save a message to the SIM.
dmaDataConnectionTracker.java
867641ece36e2fd17faaea79cf19506ab17177c6 28-May-2009 jsh <jsh@google.com> Telephony support for SMS memory reporting to the network.

- Use ordered broadcast to allow receivers to set a result code.
- Ack SMS with result code.
- New RIL command to report memory status.
- Fixed a typo in a Gservices setting.
- Merge in CL 137895 (hold a wake lock while broadcasting SMS_RECEIVED).
dmaSMSDispatcher.java
dda5391d5079537e275c9f4ed2637a1484d0e4e8 29-May-2009 Wink Saville <wink@google.com> Motorola additions for CDMA support without CdmaSuppConnTracker

There are corresponding changes to hardware/ril and packages/apps/Phone
that are required to go with these changes.
DMAPhone.java
dmaCallTracker.java
dmaCallWaiting.java
dmaCallWaitingNotification.java
dmaConnection.java
dmaInformationRecords.java
dmaServiceStateTracker.java
eatureCode.java
uimRecords.java
ignalToneUtil.java
cf2119a9755d9e2713ce78e84d0826d430a11a62 26-May-2009 Jaikumar Ganesh <jaikumar@google.com> Check for desiredPowerState (airplane mode) before setting up data.

Check for airplane mode before trying to setup data.
Send an event while switching from wifi to cell data,
instead of calling trySetupData directly.
dmaDataConnectionTracker.java
a5f158bdde77f8d173d1f1c95d0f92405c519b0f 26-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 2347 into donut

* changes:
Fix Disconnect path for CDMA.
9021583421ace854a7affeb5e767d1da56e4f7de 26-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 418 into donut

* changes:
add additional CdmaDataConnectionTracker event logging
b3d49f1569ae5ccaf6017bb39d8cf39122dbdbb8 22-May-2009 Jaikumar Ganesh <jaikumar@google.com> Fix Disconnect path for CDMA.

The corresponding fix has already been made for GSM.
When data state is in CONNECTING state and and we try
to disable the data, we set a pending disconnect but never
disconnect once we are connected.
dmaDataConnection.java
31fd22923aaefc85652a5b5939c6d4aa6fa289e2 20-May-2009 jsh <jsh@google.com> Make sure smsHeader != null before using it.

Fixes bug 1866578 - NPE while trying to dispatch a non-concatenated SMS with
no user data header (ie, your typical SMS).
dmaSMSDispatcher.java
5bc21aa0671d83e406b46e0431816dea8d9ca5cb 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1127 into donut

* changes:
SmsHeader rewrite, in preparation for migration to public API.
76b2dfd17fa9031b577b0934f45f86cb30a51cf9 22-Apr-2009 Tammo Spalink <tammo@google.com> add additional CdmaDataConnectionTracker event logging
dmaDataConnectionTracker.java
64c499113a758cf80cddfd4d0183f944a1a6645a 05-May-2009 Tammo Spalink <tammo@google.com> SmsHeader rewrite, in preparation for migration to public API.

See http://b/issue?id=1751571

Changes the semantics of SmsHeader from containing only opaque data
to exposing occurs-once frequently-used fields together with a list
of opaque fields. Also changes the coding to and from byte array to
be symmetrical, whereas previous encoding had an extra length field.

Cdma SmsMessage -- cleanup of code paths along with adjustments to
match the new header semantics, which should address at least some
of the issues with concatenated messages. See http://b/issue?id=1809759
dmaSMSDispatcher.java
msMessage.java
ms/BearerData.java
ms/UserData.java
9bfbfbd40df381817c0c685b177a2a1d666e101d 15-May-2009 Jaikumar Ganesh <jaikumar@google.com> Add a method to get the PhoneType in CellLocation.

CellLocation uses TelephonyManager to get the PhoneType.
TelephonyManager uses the system property to get the phoneType,
if the ITelephony interface is not up.
DMAPhone.java
e9b06d754af03faf27012fbed1e7559ec1ba7c79 19-May-2009 Wink Saville <wink@google.com> Teleca 2b changes
DMAPhone.java
allFailCause.java
dmaCallWaiting.java
dmaConnection.java
dmaDataConnectionTracker.java
dmaServiceStateTracker.java
riInfo.java
riManager.java
uimFileHandler.java
uimRecords.java
8478b59f177ec97a9996b71f7fac1509ba9ef493 30-Apr-2009 Tammo Spalink <tammo@google.com> clean up cdma sms creation and parsing

related to issue http://b/issue?id=1782245

- fixes 7bit ASCII encode and decode (previous completely broken)

- also consolidates encoding of user data, and changed to match
the conventions of the new data coding -- previously likely
broken for several cases
msMessage.java
ms/BearerData.java
ms/UserData.java
8c49d32cb9980959c402eaa243fd5129cd9942fc 24-Apr-2009 Tammo Spalink <tammo@google.com> enable additional cdma sms fields and user data encodings

enable ia5 and octet user data encodings
properly expose parsed user data
support additional bearer data subparameter types
msMessage.java
ms/BearerData.java
ms/UserData.java
f73eaf92e561eb0a010d05cc6357e172e8c9eaf7 25-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 531 into donut

* changes:
Teleca 090414 & 090423 patches for CDMA to complete phase1 work.
8cac9064f5e4863f62d59560cbe9a54a61ba4a9a 24-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 528 into donut

* changes:
Send the path of the EF file for ICC IO
469d5ba4cd963e9a6b39bb0514f7cf54ea503b30 24-Apr-2009 Jaikumar Ganesh <jaikumar@google.com> Send the path of the EF file for ICC IO

Send the path of the EF file for ICC IO Command.
Currently, this is null. This is for the upcoming support
for USIM and CDMA changes.
Tested:
1. Intial load of records while boot up.
2. Importing contacts from SIM.
3. Voice mail.
4. SMS
uimFileHandler.java
e66b5c43cb2d0aece7f4a636a2368a9c66c46cf5 24-Apr-2009 Wink Saville <wink@google.com> Teleca 090414 & 090423 patches for CDMA to complete phase1 work.
msMessage.java
39bae346940c274173aeaeb756e68a772c25d5d5 23-Apr-2009 Tammo Spalink <tammo@google.com> code cleanup
dmaDataConnectionTracker.java
a14f47f975064816df3008e66055d41ddb9d7353 22-Apr-2009 Wink Saville <wink@google.com> Changes for new ril.h.

These allow RIL.java to assume ril.cpp is interfacing
to the new CDMA capable vendor ril. At the moment we
don't have a full CDMA capabile ril so thre are some
NEWRIL:TODO's in the code base to identify these areas.
dmaServiceStateTracker.java
uimRecords.java
e290ed0f610422fa0420b1fbbf37bb1afd04ab82 21-Apr-2009 Tammo Spalink <tammo@google.com> normalize the DATA_STATE_RADIO_OFF event log id definition

Was this different intentionally? It looks internal, and with very limited usage, and so easy to bring in line with the others...
dmaServiceStateTracker.java
badb11354a6e5ff0fba1d29853a40275242bcc6b 21-Apr-2009 Tammo Spalink <tammo@google.com> remove superfluous lines
dmaDataConnectionTracker.java
b0d4a3502eb4ceffcd78bb5ec33595853446965d 14-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 133 into donut

* changes:
Initial code for cdma sms encode and decode, in java, with simple tests.
42ad56ead40f6c5986bd2d298b1d36f42da489a1 14-Apr-2009 Mike Lockwood <lockwood@android.com> telephony: Add support for bringing up GSM data connections for GPS SUPL.

Signed-off-by: Mike Lockwood <lockwood@android.com>
dmaDataConnectionTracker.java
44038aa032ffd876f3c9b20a84db9d189f77e18e 14-Apr-2009 Wink Saville <wink@google.com> Fix crash when mSST is null and change default to GSM.
DMAPhone.java
83917db040bd7498ebca3b74f879dc1c9e223d8e 14-Apr-2009 Tammo Spalink <tammo@google.com> Initial code for cdma sms encode and decode, in java, with simple tests.

(direct cherry-pick of master 42/42/8)
msMessage.java
ms/BearerData.java
ms/CdmaSmsAddress.java
ms/SmsDataCoding.java
ms/UserData.java
d6c5d527d3fa73dafc6e7cd36e4d6922b6d31845 07-Apr-2009 Wink Saville <> AI 144705: Teleca patch from 03/27/2009, fixes some CDMA issues.

Automated import of CL 144705
DMAPhone.java
dmaDataConnectionTracker.java
eatureCode.java
uimRecords.java
767a662ecde33c3979bf02b793d392aca0403162 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
DMAPhone.java
allFailCause.java
dmaCall.java
dmaCallTracker.java
dmaConnection.java
dmaDataConnection.java
dmaDataConnectionTracker.java
dmaSMSDispatcher.java
dmaServiceStateTracker.java
eatureCode.java
uimCard.java
uimFileHandler.java
uimPhoneBookInterfaceManager.java
uimRecords.java
uimSmsInterfaceManager.java
msMessage.java
tyIntent.java
ackage.html
ms/BearerData.java
ms/CdmaSmsAddress.java
ms/SmsDataCoding.java
ms/SmsEnvelope.java
ms/UserData.java
ms/package.html