569 Commits

Author SHA1 Message Date
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
Robert Greenwalt
cc5c1ad53c Move calc of EriIconIndex/Mode to whenever basis changes
We need this info in the ServiceState, but rather than calcing it every time
a ServiceState is requested, we can update the values whenever the constituents
change.

bug: 2182568
2009-10-21 15:02:39 -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
Tammo Spalink
6a19d0e139 am 60be8485: am 8785c064: Merge change Ie5df08ef into eclair-mr2
Merge commit '60be84855435c2f354833a98e1bf6154cc45078c'

* commit '60be84855435c2f354833a98e1bf6154cc45078c':
  Let PLUS occur once anywhere in dial-str network portion.
2009-10-21 00:50:50 -07:00
Android (Google) Code Review
8785c064fa Merge change Ie5df08ef into eclair-mr2
* changes:
  Let PLUS occur once anywhere in dial-str network portion.
2009-10-21 03:27:14 -04:00
Tammo Spalink
9e53415326 Let PLUS occur once anywhere in dial-str network portion.
Create a new extractNetworkPortion() function, since the old one is
public, that does effectively the same thing but is more flexible as
just mentioned.

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

Change-Id: Ie5df08ef9c871881e8728a44abf0385908000823
2009-10-21 10:30:58 +08:00
jsh
788cfe3470 am 2312b65d: am 6ef38fb4: am cea8f8e4: Merge change I4219797a into eclair
Merge commit '2312b65ddf3b9bff11fc31caef8d145faed106ea'

* commit '2312b65ddf3b9bff11fc31caef8d145faed106ea':
  Log exception if we hit an error parsing an incoming SMS message.
2009-10-20 09:46:29 -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
12814856cb am cd1b9912: am 13982956: am 2a39758e: Merge change I51d41230 into eclair
Merge commit 'cd1b99125205aa7b773d9d2bcf344f1e88d2fcb1'

* commit 'cd1b99125205aa7b773d9d2bcf344f1e88d2fcb1':
  Make sure CF icon updates when using "all CF" MMI.
2009-10-15 19:24:00 -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
638b1ca07c am 317d1c9e: am 770d5c4f: am 64d54042: Merge change I61c08260 into eclair
Merge commit '317d1c9e975c729d399406ec697ce0c863826bb6'

* commit '317d1c9e975c729d399406ec697ce0c863826bb6':
  Futher reduce the logging of EriManager.
2009-10-13 17:10:48 -07:00
Libin Tang
80b9c9f4cb am 715aba5a: am edb98812: am febb94cd: Make standard roaming indicator display indications configurable
Merge commit '715aba5a7a9970cb4413041644f002823dfbd08b'

* commit '715aba5a7a9970cb4413041644f002823dfbd08b':
  Make standard roaming indicator display indications configurable
2009-10-13 17:03:19 -07:00
Robert Greenwalt
a8ac1997ec am e93f07c3: am 1cf6c2c3: am 6d02f3f3: Merge change I71f48a21 into eclair
Merge commit 'e93f07c3f8148ae249292ef05d2da8ac65428950'

* commit 'e93f07c3f8148ae249292ef05d2da8ac65428950':
  Reduce the amount of EriManager Logging.
2009-10-13 17:02:11 -07:00
David Krause
1215c57ed8 am a614b948: Merge branch \'eclair-plus-aosp\' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into eclair-mr2-plus-aosp
Merge commit 'a614b948e18189adfe8e2553754db574ecb3fd7a'

* commit 'a614b948e18189adfe8e2553754db574ecb3fd7a':
  Make PhoneStateListeners not call TelephonyManager
  Setting WebCore cache limit depending on the memory class.
2009-10-13 14:27:04 -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
Tammo Spalink
fa7edb4843 am 7589ae77: am ef5aed64: am 5c8dba21: Merge change I61aac7b3 into eclair
Merge commit '7589ae77224a28a2162cde74c3ae8b1d826c635c'

* commit '7589ae77224a28a2162cde74c3ae8b1d826c635c':
  Add PERIOD char to CDMA address sugar list.
2009-10-12 11:36:48 -07:00
John Wang
ee9512efa6 am dcd1fe5f: am 99510681: Unhide constant DATA_ACTIVITY_DORMANT.
Merge commit 'dcd1fe5fc8c51b977e80dc3d8856de7572728dcf'

* commit 'dcd1fe5fc8c51b977e80dc3d8856de7572728dcf':
  Unhide constant DATA_ACTIVITY_DORMANT.
2009-10-12 11:18:43 -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
Elliott Hughes
82583b8312 Remove last vestiges of adb networking support.
Bug: 1122968
2009-10-02 12:31:08 -07: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
Robert Greenwalt
e436d46e57 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.
2009-09-27 14:55:37 -07:00
Robert Greenwalt
d1aca6aa73 Fix ConnectivityManager's handling of apn switch.
It was clearing the interfacename when it was needed later in the process - the prevented us
from clearing the route to private dns servers and clearing the flag that this was set.
Consequently future uses would not set the private dns servers (since it thought they were already
set) and our lookups would fail.

bug: 2146929
2009-09-25 16:43:20 -07:00
John Wang
fb2b04b7bc Unhide NETWORK_TYPE_XXX.
Make NETWORK_TYPE_HSDPA etc. unhide in TelephonyManager.
2009-09-25 14:50:26 -07:00
johnwang
9c118c80fd Update CID in NeighboringCellInfo
NeighboringCellInfo works in GSM and UMTS network.

In GSM network, the locaiton value is the combination of LAC and CID.

In UMTS network, the locaiton value is PSC code.

NeighboringCellInfo should access and store those two values seperately.

It involves the change of Public API.

1. Add new API getRadioType(), getLac(), and getPsc() to get location info in GSM and UMTS.

2. Deprecate setCid() and NeighboringCellInfo(int cid) because cid is set by interpreting network type.
2009-09-25 12:17:46 -07:00
Peng Zhu
694bd8bf73 Add null check at isEmergencyNumber().
Change-Id: I7eca1ba1ce42e02c7506a7d969e4865778bb49cc
2009-09-24 18:02:37 -07:00
jsh
70f8faf4ec Print IMEI/MEID in dumpsys.
Helps with debugging.
http://b/issue?id=2133066
2009-09-24 13:03:55 -07:00
Tammo Spalink
3cc97f8dbc 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
2009-09-24 13:19:08 +08:00
Yong Zhang
e4e8e4d4f2 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
2009-09-21 15:31:09 -07:00
Android (Google) Code Review
8451c25b91 Merge change 26171 into eclair
* changes:
  Fix several CDMA call collision cases
2009-09-21 13:50:27 -04:00
Wink Saville
b14300140d 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
2009-09-21 09:25:45 -07:00
Wei Huang
02b5948a43 make PhoneNumberUtils.compareLoosely use MIN_MATCH of 7 instead of 5.
Change-Id: Id4a08c3834b727e253ab189293d5715ffbbe8f35
2009-09-20 21:13:45 -07:00
John Wang
bbd754b8fe Add ring back tone notification.
Some networks may not play ring back tone, RIL will send UNSOL ringback notification.

Apps can register for ring back tone msg and play tone to user for receiving ALERTING message.

The return value indicates to play or stop ring tone.
2009-09-20 13:40:38 -07:00
Daisuke Miyakawa
9a24bc563f Implement compareStrictly() using phone_number_compare() written in C.
As per several discussions, we stick to the default behavior now.
In stead, we provide compareStrictly() as a hidden method, so that some
internal components are able to use the method if needed.

Since these are static methods, they cannot refer to the configuration files,
whose values can be obtained only via Resources object.

Please make callers' side if you want to use strict version of compare().

Internal issue number: 1892808
2009-09-19 14:44:02 -07:00
Nicolas Catania
338c48554f 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.
2009-09-19 07:48:06 -07:00
jsh
001d0abd3e Fix potential ArrayIndexOutOfBoundsException.
When parsing an SMS message as email, extractEmailAddressFromMessageBody()
checks parts.length >= 1, but then proceeds to access parts[1] (which
may not exist).  Instead, check for parts.length >= 2, and treat
parts.length = 1 as non-email.

b/2122698
2009-09-18 15:31:10 -07:00
Android (Google) Code Review
6286f311c3 Merge change 25810 into eclair
* changes:
  Fix pause-wait dial string conversion error
2009-09-18 17:02:56 -04:00
Libin Tang
963558b0f3 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
2009-09-18 11:30:05 -07:00
Robert Greenwalt
aad261730c Fix typo in SECONDARY_DATA_RETRY_CONFIG
The parser doesn't like ';'.

bug: 2130639
2009-09-18 11:23:58 -07:00