122 Commits

Author SHA1 Message Date
David Krause
b6d90ca129 Fill in CDMA gaps and clean up ToneGenerator code 2009-06-23 12:32:12 -07:00
jsh
be7f0f78af Add remaining retry count to response for PIN/PUK commands.
RIL_REQUEST_ENTER_SIM_PIN
RIL_REQUEST_ENTER_SIM_PUK
RIL_REQUEST_ENTER_SIM_PIN2
RIL_REQUEST_ENTER_SIM_PUK2
RIL_REQUEST_CHANGE_SIM_PIN
RIL_REQUEST_CHANGE_SIM_PIN2
RIL_REQUEST_SET_FACILITY_LOCK
RIL_ENTER_NETWORK_DEPERSONALIZATION
2009-06-22 09:17:08 -07:00
Android (Google) Code Review
4da7dff5e7 Merge change 4731 into donut
* changes:
  gsm: Remove PppLink since pppd_gprs service does not exist.
2009-06-20 14:48:33 -07:00
Android (Google) Code Review
ab48bb9c00 Merge change 4686 into donut
* changes:
  Set AuthType to 0 if username is not specified.
2009-06-19 12:13:50 -07:00
Jaikumar Ganesh
238bfa9efd Set AuthType to 0 if username is not specified.
If username is not specified, set authType to No PAP / No CHAP
so that the code is backward compatible.
2009-06-19 12:06:48 -07:00
Chia-chi Yeh
4df90a869c gsm: Remove PppLink since pppd_gprs service does not exist. 2009-06-19 16:02:30 +08:00
Tammo Spalink
fc78f358cb for cdma concatenated (long) messages, replace ascii7bit with gsm7bit encoding 2009-06-18 14:57:06 +08:00
Jaikumar Ganesh
59cbd7c86f 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.
2009-06-15 21:34:31 -07:00
Jaikumar Ganesh
bbf7c00e06 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.
2009-06-12 12:14:08 -07:00
Android (Google) Code Review
cb9534f920 Merge change 3907 into donut
* changes:
  Support SMS cell broadcasting for GSM in RIL.java
2009-06-11 15:54:51 -07:00
johnwang
e337d651a5 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
2009-06-11 15:43:29 -07:00
Tammo Spalink
a94945d3a1 make sms calculateLength radio-independent 2009-06-11 15:24:43 +08:00
Android (Google) Code Review
2795c2d6b7 Merge change 3806 into donut
* changes:
  Fix a couple null pointer exceptions in CDMA voice call handling.
2009-06-10 16:38:12 -07:00
Wink Saville
4be0d4378c Fix a couple null pointer exceptions in CDMA voice call handling. 2009-06-10 14:35:28 -07:00
Jaikumar Ganesh
e51d57f4ab Process the response of RIL_REQUEST_REPORT_SMS_MEMORY_STATUS. 2009-06-10 12:26:07 -07:00
Jaikumar Ganesh
7b3f5520d3 Add additional parameters to SETUP_DATA_CALL and SMS response.
1. The authType should be specified in the APN database.
This was hardcoded to 3 in the qmi driver. We currently set it to
3 in the RIL till the apn database side changes are done.
2. RIL_SEND_SMS response has errorCode as a new field,
2009-06-10 11:02:57 -07:00
Android (Google) Code Review
8f094ca7d0 Merge change 3686 into donut
* changes:
  Fix cleanupConnection when switching from wifi.
2009-06-10 10:50:28 -07:00
Jaikumar Ganesh
9ac95783fc Fix cleanupConnection when switching from wifi.
Post a message for tearDown data connection when switching from wifi.
2009-06-09 21:11:41 -07:00
Wink Saville
2563a3ac05 Cleanup whitespace. 2009-06-09 10:30:03 -07:00
Android (Google) Code Review
c11a3fab1a Merge change 3530 into donut
* changes:
  Add RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING & reportStkServiceIsRunning.
2009-06-08 23:04:21 -07:00
Wink Saville
e14af0e26e Add RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING & reportStkServiceIsRunning.
These are used to notify the vendor ril that the StkService is
running and ready to receive RIL_UNSOL_STK_XXX commands.
2009-06-08 22:59:41 -07:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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