276 Commits

Author SHA1 Message Date
Jinghui Guo
9e652dcc21 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.
2009-08-07 10:35:11 -07:00
jsh
d1cb1d22af Bubble up SMS send fail error code to the app.
Framework portion of the fix for http://b/1978375:
We'll pass up the error code returned by the RIL on send failure.
2009-08-06 13:23:04 -07:00
Libin Tang
33777d2096 Fix the issue of datacall not being reinitiated after exiting
Emergency Callback Mode.
2009-08-05 11:29:38 -07:00
Tammo Spalink
2d65082b15 fix CDMA SMS ASCII decode and mapping 2009-08-05 11:12:53 +08:00
Android (Google) Code Review
529fcf97ea Merge change 9684
* changes:
  Add a DISCONNECTING call state.
2009-08-04 16:28:13 -07:00
jsh
e7a9201edb 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.
2009-08-04 11:30:09 -07:00
Tang@Motorola.com
dfb8f07a95 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.
2009-08-03 12:06:40 -07:00
Tammo Spalink
98aed46992 relax ia5 parsing, and combine with ascii 2009-08-03 10:30:10 +08:00
Richard Meng
a1c94ae4f7 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.
2009-07-31 09:31:26 -07:00
johnwang
106d27140b 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
2009-07-31 01:31:12 -07:00
Satish Roddom
bd55b0cb15 Second word lost when SMS is received from email
When SMS is sent from a email address, Email Gateway server sends a string
containing from address, message text.  Current code is treating the first
word as from_address, second word as subject and rest of the string as message_body.
Because of this second word is getting stored in separate variable and not as part
of message text, so second word is always lost.
2009-07-30 17:25:23 -07:00
Android (Google) Code Review
992c1ebda1 Merge change 9260
* changes:
  Fix crash while dialing "*228;1"
2009-07-30 16:14:38 -07:00
Android (Google) Code Review
20b8e3a347 am 1247a644: Merge change 9243 into donut
Merge commit '1247a6444bb9f006e0b9def5cd15d626785424bb'

* commit '1247a6444bb9f006e0b9def5cd15d626785424bb':
  Clean up RIL_SIM_* in RILConstants
2009-07-30 16:07:57 -07:00
Android (Google) Code Review
ae7d38ad92 Merge branch 'master' of ssh://android-git.corp.google.com:29418/platform/frameworks/base 2009-07-30 16:07:30 -07:00
Jaikumar Ganesh
ab752276ee am 0da3bdb4: Fix public API caused due to CDMA changes.
Merge commit '0da3bdb476086db02a1076780676b21e239c79d6'

* commit '0da3bdb476086db02a1076780676b21e239c79d6':
  Fix public API caused due to CDMA changes.
2009-07-30 16:07:11 -07:00
John Wang
0d45e37069 Clean up RIL_SIM_* in RILConstants
GET_SIM_STATUS now returns structure RIL_CardStatus. So RIL_SIM_* status are obsoleted.

	modified:   java/com/android/internal/telephony/RILConstants.java
2009-07-30 15:45:12 -07:00
Libin Tang
d903014c1f Fix crash while dialing "*228;1" 2009-07-30 15:44:39 -07:00
Libin Tang
d23b2cd28c 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
2009-07-30 15:43:12 -07:00
Jaikumar Ganesh
0da3bdb476 Fix public API caused due to CDMA changes. 2009-07-30 12:37:43 -07:00
johnwang
d2fb980060 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
2009-07-30 10:10:19 -07:00
Wink Saville
98ad09880b am b307c894: Fix bug 1994955 where PHONE_TYPE_CDMA was 0 and it should be 2 and added RILConstants.NO_PHONE.
Merge commit 'b307c8945d4bf8d843445f3cc6d727f4e43d90f0'

* commit 'b307c8945d4bf8d843445f3cc6d727f4e43d90f0':
  Fix bug 1994955 where PHONE_TYPE_CDMA was 0 and it should be 2 and added RILConstants.NO_PHONE.
2009-07-30 06:56:24 -07:00
yong liu
c84401fb8b 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
2009-07-29 20:54:03 -07:00
Yong Zhang
96f2747dd6 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.
2009-07-29 20:39:52 -07:00
Android (Google) Code Review
fc6627a892 Merge change 9054
* changes:
  Increase waiting time for data disable action in setPowerStateToDesired().
2009-07-29 17:03:04 -07:00
Yong Zhang
6afac8b292 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.
2009-07-29 17:01:24 -07:00
Jinghui Guo
79ef673d56 Disable data call in emergency call 2009-07-29 16:58:11 -07:00
Wink Saville
b307c8945d Fix bug 1994955 where PHONE_TYPE_CDMA was 0 and it should be 2 and added RILConstants.NO_PHONE.
This bug originally reported that PHONE_TYPE_CDMA needed to be 2 because
it was public. But as far as I can tell it has never been public and it
is still marked @hide so is not public now. There is a bug in that
PHONE_TYPE_NONE and PHONE_TYPE_CDMA were both 0. But this doesn't
appear to have been a problem because PHONE_TYPE_NONE doesn't looked to be
used anywhere except in TelephonyManagerTest.
2009-07-29 10:25:09 -07:00
Tammo Spalink
f62a2bf29a allow illegal subparam sizes for CDMA SMS
addresses http://buganizer/issue?id=2008358
2009-07-29 14:31:43 +08:00
repo sync
a1fd1efb52 Voicemail number setting is throwing exception 2009-07-28 12:26:24 -07:00
Android (Google) Code Review
08e9722664 Merge change 8745
* changes:
  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.
2009-07-27 22:03:25 -07:00
Android (Google) Code Review
6e4cb2a001 am ecbbecf6: Merge change 8620 into donut
Merge commit 'ecbbecf6c535e7f3e1d072d43766a95aa18ee464'

* commit 'ecbbecf6c535e7f3e1d072d43766a95aa18ee464':
  Fix swapped gsm/cdma function dispatch, and 7bit text fragmentation.
2009-07-27 19:48:49 -07:00
Ling Li
8125864adc 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.
2009-07-27 17:05:36 -07:00
Jinghui Guo
e30d4bf531 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.
2009-07-27 14:03:27 -07:00
Anna Markova
3bd5b0154f 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
2009-07-27 10:55:57 -07:00
Tammo Spalink
5e5b8c45db Fix swapped gsm/cdma function dispatch, and 7bit text fragmentation. 2009-07-27 16:20:31 +08:00
Tammo Spalink
1424fe0059 added non-numeric cdma sms address support
addresses bug http://buganizer/issue?id=1992198
2009-07-27 14:59:10 +08:00
Satish.Kulkarni
eafe72a0db 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.
2009-07-25 21:28:20 -07:00
Wink Saville
c6d6b687af Add method in Phone interface to check whether data is enabled.
This adds isDataConnectivityEnabled to allow test methods to query the
data connectivity state.
2009-07-24 13:23:55 -07:00
johnwang
97b270abd5 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
2009-07-23 16:25:59 -07:00
Jinghui Guo
5e9760c16b Fix remote caller ID unknow issue in 3 way call 2009-07-21 16:44:59 -07:00
Android (Google) Code Review
3720cf2de9 Merge change 7709
* changes:
  Fix MT Call screen stuck issue.
2009-07-17 10:29:54 -07:00
Cheng Yang
84d5585b99 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.
2009-07-17 10:27:38 -07:00
Wink Saville
abccd7eaa5 DO NOT MERGE. 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.

This is known to conflict with master and will be
added by hand so as not to break the build.
2009-07-16 16:07:13 -07:00
Wink Saville
142eefc67b 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.
2009-07-16 15:48:34 -07:00
Android (Google) Code Review
60b707075b Merge change 7526
* changes:
  Implement the carrier specified OTASP numbers
2009-07-16 10:12:13 -07:00
jsh
90b34b3773 resolved conflicts for merge of 8e0fb366 to master 2009-07-15 18:42:47 -07:00
jsh
ae49180f28 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.
2009-07-15 16:41:11 -07:00
Ling Li
e4a84af11d 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.
2009-07-14 22:25:30 -07:00
Jaikumar Ganesh
1c42769339 Rename registerPhoneStateChange to registerPreciseCallStateChange
As registerPhoneStateChange was actually notifying CallStateChange,
rename appropriately.
2009-07-14 21:29:41 -07:00
Android (Google) Code Review
2a71ee7129 Merge change 7007
* changes:
  Update name getCdmaMIN to getCdmaMin
2009-07-13 16:24:55 -07:00