172 Commits

Author SHA1 Message Date
jsh
52f2825c29 Report device storage status (for SMS) to RIL.
Indicate SMS memory available/not available based on DEVICE_STORAGE_OK/FULL
intents, and immediately NAK with MEMORY_FULL if we've received a
DEVICE_STORAGE_FULL notification.

This may end up being a short term solution, as the messaging app is
getting re-worked in Eclair, which may change the way we want to handle
memory full reporting (ie, more app involvement).
2009-06-08 16:05:00 -07:00
Android (Google) Code Review
7699318ecd am 1e3d1b4b: Merge change 3107 into donut
Merge commit '1e3d1b4b83452286b000b8cd1997e5aef97fe2a7'

* commit '1e3d1b4b83452286b000b8cd1997e5aef97fe2a7':
  Motorola changes from 090602 through 090605
2009-06-07 22:49:49 -07:00
Wink Saville
22ccaf5321 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.
2009-06-07 12:09:18 -07:00
Android (Google) Code Review
5a7f38922e am b1c28747: Merge change 3305 into donut
Merge commit 'b1c2874790908d1bbb9b99242fc7cc96c7b45a8a'

* commit 'b1c2874790908d1bbb9b99242fc7cc96c7b45a8a':
  Fix parameter mismatch for a couple of RIL commands.
2009-06-05 21:17:09 -07:00
Android (Google) Code Review
b1c2874790 Merge change 3305 into donut
* changes:
  Fix parameter mismatch for a couple of RIL commands.
2009-06-05 13:34:25 -07:00
jsh
9c9151eccd Fix parameter mismatch for a couple of RIL commands.
Both RIL_REQUEST_SET_SMSC_ADDRESS and RIL_REQUEST_CDMA_FLASH take a string
as a parameter.  But RIL.java was sending down an array of strings with a
single element instead.
2009-06-05 10:03:17 -07:00
Android (Google) Code Review
c54f78b833 am 35c46680: Merge change 3226 into donut
Merge commit '35c46680852268d6b7b51dadf3d5349d146ccdcd'

* commit '35c46680852268d6b7b51dadf3d5349d146ccdcd':
  Update a javadoc comment suggesting the use of a deprecated class.
2009-06-04 23:48:35 -07:00
Android (Google) Code Review
7642e3418e am 3d3e307a: Merge change 3126 into donut
Merge commit '3d3e307a63144b1bddd534fefd35a557223d52bf'

* commit '3d3e307a63144b1bddd534fefd35a557223d52bf':
  Fix thread safety in DataConnectionTracker.
2009-06-04 22:41:38 -07:00
Marco Nelissen
b111554883 Update a javadoc comment suggesting the use of a deprecated class. 2009-06-04 15:02:49 -07:00
Android (Google) Code Review
3d3e307a63 Merge change 3126 into donut
* changes:
  Fix thread safety in DataConnectionTracker.
2009-06-04 10:09:59 -07:00
Tammo Spalink
5c6164b3ee cdma getNeighboringCids to fail with an exception 2009-06-04 09:57:18 -07:00
Tammo Spalink
90cb947c22 cdma getNeighboringCids to fail with an exception 2009-06-04 14:07:13 +08:00
Jaikumar Ganesh
9c2a3be8ba 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.
2009-06-03 19:09:48 -07:00
Android (Google) Code Review
ab304022af am 97c2fdfc: Merge change 2957 into donut
Merge commit '97c2fdfc2e1cb4f51c624dd8e30e6bdb63ea21be'

* commit '97c2fdfc2e1cb4f51c624dd8e30e6bdb63ea21be':
  Allow response payload on RIL_REQUEST error
2009-06-02 18:21:53 -07:00
johnwang
03228fa8f9 Allow response payload on RIL_REQUEST error
Handle response payload while RIL_REQUEST returns error.

	modified:   gsm/GsmServiceStateTracker.java
2009-06-02 17:23:08 -07:00
Android (Google) Code Review
cf2924efa0 am c6653495: Merge change 1522 into donut
Merge commit 'c665349543b481b14e423ea9e7e2b368569ae311'

* commit 'c665349543b481b14e423ea9e7e2b368569ae311':
  support more minor cdms sms bearer data subparameters
2009-06-02 00:59:50 -07:00
Android (Google) Code Review
c665349543 Merge change 1522 into donut
* changes:
  support more minor cdms sms bearer data subparameters
2009-06-02 00:58:47 -07:00
Android (Google) Code Review
8d3002e047 am 35feec46: Merge change 2761 into donut
Merge commit '35feec46d90d434a2439765d127a9e8f68a52340'

* commit '35feec46d90d434a2439765d127a9e8f68a52340':
  TODO's from Teleca with modifications from wink.
2009-06-02 00:51:32 -07:00
Android (Google) Code Review
35feec46d9 Merge change 2761 into donut
* changes:
  TODO's from Teleca with modifications from wink.
2009-06-02 00:49:46 -07:00
Tammo Spalink
19db02b945 am 641bb3d8: expose (but still hide) sms user data headers
Merge commit '641bb3d8dfd72f57356d39ef00256d6077c9e235'

* commit '641bb3d8dfd72f57356d39ef00256d6077c9e235':
  expose (but still hide) sms user data headers
2009-06-02 00:36:46 -07:00
Tammo Spalink
baae313f89 support more minor cdms sms bearer data subparameters
- also clean up CdmaSmsAddress
2009-06-02 11:10:53 +08:00
Tammo Spalink
641bb3d8df expose (but still hide) sms user data headers
addresses bug http://b/issue?id=1751571
2009-06-02 10:43:59 +08:00
Wink Saville
f315238a2b TODO's from Teleca with modifications from wink. 2009-06-01 14:39:20 -07:00
Android (Google) Code Review
18ebf6d425 am ff0d9147: Merge change 2766 into donut
Merge commit 'ff0d91479d3c8523bc290bd1b65fcd2546be1d40'

* commit 'ff0d91479d3c8523bc290bd1b65fcd2546be1d40':
  Manually merge a few fixes from cupcake and cupcake_dcm.
2009-06-01 12:42:57 -07:00
jsh
faf4413dff 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.
2009-06-01 12:39:27 -07:00
Android (Google) Code Review
969a74ae5e am 6190fe6e: Merge change 2758 into donut
Merge commit '6190fe6e7d7c8a917472637f5ab2fb21fc8a6eea'

* commit '6190fe6e7d7c8a917472637f5ab2fb21fc8a6eea':
  Fix concat SMS for GSM.
2009-05-29 17:15:10 -07:00
jsh
ef354fdd63 Fix concat SMS for GSM.
Bug 1883998: We only support sending 8-bit references for now.
Bug 1885080: Also fix the GsmAlphabetTest, which started failing when SmsHeader
was re-worked.
2009-05-29 17:11:28 -07:00
Android (Google) Code Review
733f840aaa am c3b7e4e7: Merge change 2736 into donut
Merge commit 'c3b7e4e7dda7a81e7f1017f17adb717ffb3d50d2'

* commit 'c3b7e4e7dda7a81e7f1017f17adb717ffb3d50d2':
  Telephony support for SMS memory reporting to the network.
2009-05-29 15:17:27 -07:00
jsh
867641ece3 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).
2009-05-29 14:22:36 -07:00
Android (Google) Code Review
8e19b7c0e4 am a3d28bd5: Merge change 520 into donut
Merge commit 'a3d28bd5c278f750c70f2b87fce23df221cd4a01'

* commit 'a3d28bd5c278f750c70f2b87fce23df221cd4a01':
  Enforce permissions for PhoneStateListener events.
2009-05-29 11:49:36 -07:00
Jaikumar Ganesh
4551565943 Enforce permissions for PhoneStateListener events.
PhoneStateListener events like LISTEN_CALL_STATE_CHANGED,
have privacy information like phone numbers and hence,
need to be protected with a permission. The permission
READ_PHONE_STATE is used for this purpose. Use the permission
trick to ensure backward compatability.
2009-05-29 11:38:00 -07:00
Android (Google) Code Review
a70396cd0a am f6355e24: Merge change 2399 into donut
Merge commit 'f6355e24f5382356ea197135fdeff827aabfdb90'

* commit 'f6355e24f5382356ea197135fdeff827aabfdb90':
  Motorola additions for CDMA support without CdmaSuppConnTracker
2009-05-28 20:30:45 -07:00
Wink Saville
dda5391d50 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.
2009-05-28 17:32:34 -07:00
Android (Google) Code Review
c5261874b7 Merge change 2503
* changes:
  Stop the NANP number formatter from putting dashes in shortcodes.
2009-05-27 10:55:57 -07:00
Ficus Kirkpatrick
5214376d2b Stop the NANP number formatter from putting dashes in shortcodes.
This changes the result of PhoneNumberUtils.formatNumber("46645") from
"466-45" to "46645".
2009-05-26 18:28:38 -07:00
Jaikumar Ganesh
8c1ba0d7ec am cf2119a9: Check for desiredPowerState (airplane mode) before setting up data.
Merge commit 'cf2119a9755d9e2713ce78e84d0826d430a11a62'

* commit 'cf2119a9755d9e2713ce78e84d0826d430a11a62':
  Check for desiredPowerState (airplane mode) before setting up data.
  Remove dimmed background (and accompanying animation) for global
2009-05-26 12:55:34 -07:00
Jaikumar Ganesh
cf2119a975 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.
2009-05-26 11:18:35 -07:00
Android (Google) Code Review
de6d654619 am a5f158bd: Merge change 2347 into donut
Merge commit 'a5f158bdde77f8d173d1f1c95d0f92405c519b0f'

* commit 'a5f158bdde77f8d173d1f1c95d0f92405c519b0f':
  Fix Disconnect path for CDMA.
2009-05-26 10:11:35 -07:00
Android (Google) Code Review
552d3f832c am 90215834: Merge change 418 into donut
Merge commit '9021583421ace854a7affeb5e767d1da56e4f7de'

* commit '9021583421ace854a7affeb5e767d1da56e4f7de':
  add additional CdmaDataConnectionTracker event logging
2009-05-26 10:11:33 -07:00
Android (Google) Code Review
2c0858a481 am 511a0134: Merge change 2302 into donut
Merge commit '511a0134e1bfe90a23960eea72eca565e52aa816'

* commit '511a0134e1bfe90a23960eea72eca565e52aa816':
  added SmsMessage ConcatRef parsing validation
2009-05-26 10:11:29 -07:00
Android (Google) Code Review
a5f158bdde Merge change 2347 into donut
* changes:
  Fix Disconnect path for CDMA.
2009-05-26 06:42:42 -07:00
Android (Google) Code Review
9021583421 Merge change 418 into donut
* changes:
  add additional CdmaDataConnectionTracker event logging
2009-05-25 23:34:59 -07:00
Jaikumar Ganesh
b3d49f1569 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.
2009-05-22 13:05:30 -07:00
Robert Greenwalt
b5010cc3c3 Add carrier/mcc factors to wifi-channel decision.
Uses ro.carrier and MCC when available to try to set
(non-persistingly) the number of allowed wifi channels.
Part of the fix for 1625953.
2009-05-22 09:31:41 -07:00
Tammo Spalink
550885d158 added SmsMessage ConcatRef parsing validation
addresses bugs:
http://b/issue?id=1870607
http://b/issue?id=1688238

and prior perforce commit:
http://s9/?change_num=136189
2009-05-22 13:38:35 +08:00
jsh
31fd22923a 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).
2009-05-20 12:55:25 -07:00
Android (Google) Code Review
5bc21aa067 Merge change 1127 into donut
* changes:
  SmsHeader rewrite, in preparation for migration to public API.
2009-05-19 19:52:07 -07:00
Tammo Spalink
76b2dfd17f add additional CdmaDataConnectionTracker event logging 2009-05-20 09:34:02 +08:00
Tammo Spalink
64c499113a 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
2009-05-20 09:27:10 +08:00
Jaikumar Ganesh
ee748d37b0 Fix network preference getting incorrectly set.
When the phone process crashes, we set the network preference
incorrectly. Also read the default value from a system property.
2009-05-19 17:29:42 -07:00