437 Commits

Author SHA1 Message Date
The Android Open Source Project
1da49e45a8 merge from open-source master
Change-Id: I23af6296f0867bea2a2da72d4eb3dda93025b1ac
2010-03-19 16:36:32 -07:00
Naveen Kalla
1a61b586b5 Retry pending memory status update to modem when radio is ON.
When radio is powered off / airplane mode, memory status updates are
ignored by RIL. With this fix, pending memory status updates are sent
again when radio is powered back on.
2010-03-03 18:54:36 -08:00
Wink Saville
7d97ff10c7 Always assume evdoXxxx signal strength values are correct.
This solves a race condition between the network type changing and
a signal strength changing. This could cause StatusBarPolicy to see
the -1 values for the evdo strength parameters and hence 0 bars would
be displayed.

Bug: 2419251
Change-Id: Iba0bdbd2023b6a5e49fc1f82c997ec3219158286
2010-02-13 07:56:20 -08:00
Eric Laurent
7749adfd01 Fix issue: 2413494: Add TTY support.
This is a new implementation of TTY support.
Previous implementation in commit aead64def1fe58c95c086a0ca00cf0b13fa32ef1 is reverted.
The new method does not rely any more on the kernel headset driver to send a UEvent containing
current TTY mode.
2010-02-10 11:23:04 -08:00
John Wang
1ccc41ed93 Handle RIL_UNSOL_RESEND_INCALL_MUTE.
For bug 2400052.

Notify registered handler whenever receiving RIL_UNSOL_RESEND_INCALL_MUTE.
2010-01-29 20:04:39 -08:00
John Wang
670db2c696 Updated emergency string when locale changes.
For bug 2352094.
2010-01-22 13:07:58 -08:00
John Wang
08cb002402 Handle emergency calls only status in ServiceStateTracker.
For bug 2352094, handle emergency calls only status and
pass the emergency calls only string via SPN_STRING_UPDATED intent.
2010-01-22 01:03:14 -08:00
jsh
036e21083d Fix NPE when importing from USIM.
Need to check if fileIds is empty.

b/2349232
2010-01-21 16:58:17 -08:00
Irfan Sheriff
dcc14d6a26 Merge "Use MCC value to always override channel count setting" into eclair 2010-01-21 07:46:49 -08:00
Irfan Sheriff
51e2f71f4a Use MCC value to always override channel count setting
FCC raised the issue of not allowing users to configure
channel counts beyond 11. This change enforces the channel
count based on MCC values.

Bug: 2378844
2010-01-20 17:44:07 -08:00
Robert Greenwalt
15abc90147 Cleanup of process-specific DNS.
Backport of MR2 change 421c72b6.

Removes entries sooner.  A bug.
Doesn't add one for phone process at all.  This was intended to be removed long ago.

bug: 2329900
bug: 2377507
2010-01-19 18:01:36 -08:00
John Wang
b61c1a0f8b Add Event log for RAT switch.
Write event log while the 2G/3G radio access technology switched.
2010-01-13 17:55:57 -08:00
Scott Main
b149ee8835 docs: add 2.1 platform notes, win usb driver notes
and fix some javadocs for PhonestateListener
2009-12-16 09:50:53 -08:00
Wink Saville
cc6ff2bc60 Cleanup @hide and @deprecated directives.
Bug: 2294396
Change-Id: Icb34706a203fb34e52c67b904328e91a7803d4fc
2009-12-02 11:09:52 -08:00
Bai Tao
0e200c3cbe Sending UCS2 encoded SMS correctly
http://b/2285139
2009-11-30 11:28:37 -08:00
Android (Google) Code Review
572e0087a8 Merge change Idfc116fe into eclair
* changes:
  Return null if SIM doesn't have the MSISDN Aplha tag.
2009-11-12 16:10:10 -08:00
Jaikumar Ganesh
de1fcd49e7 Return null if SIM doesn't have the MSISDN Aplha tag.
This makes both the GSM and CDMA version compatible.

Bug: 2247067
Dr No: jsh
2009-11-12 13:29:33 -08:00
Wink Saville
ce9b59f0ba Add code to use Gservices provided values for throtting NITZ updates.
bug: 2251845
Change-Id: Ie122606fb852868bb76a9930bb5e6ba906273619
2009-11-11 16:33:50 -08:00
Android (Google) Code Review
38210df337 Merge change I326c1f7e into eclair
* changes:
  Throttle nitz updates as the are too numerous on cdma.
2009-11-11 12:46:22 -08:00
Wink Saville
aeff5fd8eb Throttle nitz updates as the are too numerous on cdma.
bug: 2251845
Change-Id: I326c1f7e28d19b678ea748e36f8286dd1378cecf
2009-11-11 11:55:38 -08:00
Gilles Duboscq
1fa7fae139 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
2009-11-11 10:56:27 -08:00
Android (Google) Code Review
fe225e25bd Merge change I70e1f7a6 into eclair
* changes:
  Fix the selection of locale from SIM mcc.
2009-11-09 12:37:22 -08:00
Android (Google) Code Review
092f03418a Merge change I44d4cbec into eclair
* changes:
  Fix some SMS encode issues.
2009-11-06 03:07:01 -05:00
jsh
3e5c3a6db4 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)
2009-11-05 23:39:21 -08:00
Robert Greenwalt
70e1f7a6b7 Fix the selection of locale from SIM mcc.
Two issues - getting config then setting locale by mcc and then setting the config (to set
mcc/mnc) would overwrite the locale set in the middle.  Also, using a "new Configuration()"
instead of asking the ActivityManager.getConfiguration gets different values than the current
ones, and would also overwrite our change.

bug: 2241461
bug: 2239810
2009-11-05 18:19:37 -08:00
Wink Saville
684b802dd9 Add needsOtaServiceProvisioning and used to not allow
data calls until the device is provisioned.

Bug: 2221241
Change-Id: Id0267cc02fdf31e14e66e5acd2ca5cbdc504f507
2009-11-03 17:57:11 -08:00
Wink Saville
ef7b12940c 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
2009-10-26 15:59:50 -07:00
Android (Google) Code Review
6158038a09 Merge change I2811f162 into eclair
* changes:
  Add Authentication Type field to the APN settings.
2009-10-26 18:14:15 -04:00
Jaikumar Ganesh
2811f1625e Add Authentication Type field to the APN settings.
Use auth type to setup data connection.
This value defaults to -1 (unset) to maintain compatibility.
When the value is -1, the auth type gets set to 0 (if no user is specified)
or 3.
Bug: 181700
2009-10-26 13:11:55 -07:00
Android (Google) Code Review
6c618c68f2 Merge change Ie7105dae into eclair
* changes:
  Handle bad SIM message
2009-10-22 18:37:51 -04:00
Tom Taylor
72fac67781 Handle bad SIM message
When trying to view the saved sms messages on my SIM, I ran into a null ref.
With this fix, we don't try and wrap a null message, but just skip it.
This is part one of three fixes for BC-triaged bug 2205782.

Change-Id: Ie7105dae7e3134b98681deabcc14f5db555902f3
2009-10-22 13:42:46 -07:00
jsh
3ff560d7ba 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.
2009-10-21 17:55:31 -07:00
Naveen Kalla
d393184ac5 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
2009-10-21 14:04:18 -07:00
jsh
4219797afc 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.
2009-10-19 16:11:37 -07:00
jsh
51d412304f Make sure CF icon updates when using "all CF" MMI.
Fixes b/2074739.
2009-10-14 16:57:16 -07:00
Robert Greenwalt
61c082603f Futher reduce the logging of EriManager.
There was another log statement that was poluting radio logs.

bug: 2180891
2009-10-13 13:53:22 -07:00
Libin Tang
febb94cdbb 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
2009-10-12 14:13:04 -07:00
Robert Greenwalt
71f48a21b0 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
2009-10-12 12:13:14 -07:00
Robert Greenwalt
98e0b146b8 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
2009-10-09 00:54:31 -07:00
Tammo Spalink
61aac7b377 Add PERIOD char to CDMA address sugar list.
Addresses issue:
http://buganizer/issue?id=2164455
2009-10-05 14:20:06 +08:00
John Wang
99510681e9 Unhide constant DATA_ACTIVITY_DORMANT. 2009-10-01 10:00:54 -07:00
Dianne Hackborn
29e4a3c566 Update from API review.
Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
2009-09-30 23:21:02 -07:00
Robert Greenwalt
984d22b180 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
2009-09-30 16:36:12 -07:00
Naveen Kalla
27d074e0ef 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)
2009-09-29 15:41:14 -07:00
Robert Greenwalt
c46c255f7f 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
2009-09-29 13:23:45 -07:00
Android (Google) Code Review
22cbf51ef5 Merge change I49fbfc68 into eclair
* changes:
  Add PhoneNumberUtils.compare() method that uses a resource to determine strictness.
2009-09-29 13:43:17 -04:00
Android (Google) Code Review
ac5bd144f1 Merge change Ib23e57cf into eclair
* changes:
  Set roaming based on both data and voice.
2009-09-29 13:26:06 -04:00
Evan Millar
db1f499398 Add PhoneNumberUtils.compare() method that uses a resource to determine strictness.
Change-Id: I49fbfc683f7089f052671b567ad3e19203a568f0
2009-09-29 08:38:07 -07:00
Robert Greenwalt
59ceeae4ec 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
2009-09-28 21:04:22 -07:00
John Wang
37b80ee451 Set roaming based on both data and voice.
In GSM network the data roaming (from +CGREG) and the voice roaming (from +CREG) could be different. Set GSM roaming based on both data and voice roaming status and set it true if either indicates roaming.

This solves the unwanted roaming billing issues and respects the download roaming setting in systemUpdater, DownloadProvider, and MMS downloader. For more details refer to bug 2052473.
2009-09-28 18:53:16 -07:00