5 years agoMerge "Telephony: Ignore events on a destroyed phone" into klp-dev
Wink Saville [Thu, 12 Sep 2013 20:57:37 +0000]
Merge "Telephony: Ignore events on a destroyed phone" into klp-dev

5 years agoTelephony: Ignore events on a destroyed phone
Wink Saville [Thu, 12 Sep 2013 20:40:41 +0000]
Telephony: Ignore events on a destroyed phone

It is possible to receive responses from RIL after phone has released
it's references. Ignore events in such cases, since those events no
longer make sense, and some phone members have been de-initialized.

Make CallTrackers notify UI when ending calls in dispose, since
it has already unregistered, and won't receive the CALL_STATE_CHANGED

Change-Id: I5d8fd9ce3f74b9ae9b5b645565bd24d11be0aebc
CRs-Fixed: 228731, 228005, 415801, 350739

5 years agoIn Cdma Lte SST use CssIndicator for concurrent Voice & Data.
Wink Saville [Thu, 12 Sep 2013 19:28:31 +0000]
In Cdma Lte SST use CssIndicator for concurrent Voice & Data.

This will break concurrent voice and data on mysid, but because
mysid is EOL and to keep this change simple we're not trying to
mitigate that using config variables.

Bug: 10100317
Change-Id: I7960a8d68258621de1fd9c140c3fefcdfcea8804

5 years agoAdd code to handle voice radio technology of LTE.
Wink Saville [Thu, 12 Sep 2013 06:56:00 +0000]
Add code to handle voice radio technology of LTE.

Sometimes the Voice Radio Technology is reported as LTE but Voice
over LTE (VoLte) is not currently supported and for Sprint we
should default to CDMAPhone in that case. Otherwise the could stay
as a GSMPhone and handling voice calls will fail.

Bug: 10673760
Change-Id: Ic77411b5da415c620fce5a185ca1d7542dfe3b7f

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 12 Sep 2013 13:01:33 +0000]
merge in klp-release history after reset to klp-dev

5 years agoRemove special code for fake CDMA APN
Robert Greenwalt [Wed, 11 Sep 2013 17:32:52 +0000]
Remove special code for fake CDMA APN

revert of https://android-review.googlesource.com/#/c/62943/2

Solved the need for sprint using bearer-specific APNs instead
as the phone type is not a reliable trigger.

bug: 9315957
Change-Id: I0e5545ab4706df2c5917c7534291644c5d8797b3

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Wed, 11 Sep 2013 13:00:56 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R" into...
Wink Saville [Wed, 11 Sep 2013 04:49:21 +0000]
Merge "CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R" into klp-dev

5 years agoCatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R
Shriram Ganesh [Tue, 21 Aug 2012 02:30:23 +0000]
CatService: OPEN_CHANNEL p-cmd to send event confirmation and not T.R

Upon handling OPEN_CHANNEL command, send User confirmation instead of
terminal response as lower layers expect confirmation information.

Bug: 10602211
Change-Id: I99ee5210ff345660559d1656e80c6ab8b0991d8e

5 years agoFix receiving multi-part CDMA WAP messages.
Jake Hamby [Tue, 10 Sep 2013 22:02:23 +0000]
Fix receiving multi-part CDMA WAP messages.

Fix ArrayIndexOutOfBoundsException in CDMA WAP message handling.
Add a new flag to raw DB table to indicate 3GPP2 WAP PDU messages.
Use the new flag to return the correct value for getIndexOffset()
in InboundSmsTracker.

Previously this only worked correctly for single-segment WAP PDUs
of type WAP push.

Bug: 10595053
Change-Id: I8820da124e8fa4707cbee0398690a475d26ff702

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Tue, 10 Sep 2013 21:28:40 +0000]
merge in klp-release history after reset to klp-dev

5 years agosms: Add exception code instead of low memory status
Sungmin Choi [Wed, 4 Sep 2013 06:32:36 +0000]
sms: Add exception code instead of low memory status

Add exceptoin code, after receiving Duplicated SMS.

Bug: 10484923
Change-Id: Ic9465adeb8a09d11fdd2e5b35108410baf56a2fc
Signed-off-by: daehun.ju <daehun.ju@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>

5 years agoUICC: get ICCID from SIM for CDMAPhone state
duho.ro [Fri, 6 Sep 2013 17:07:04 +0000]
UICC: get ICCID from SIM for CDMAPhone state

If the phone state is CDMAPhone and the UICC does not have a CDMA application,
getIccSerialNumber() can not read the ICCID from SIM.
This changes are changing the reference of the card application object
from RUIMRecords to SIMRecords. So, this method is able to get the ICCID
from SIMRecords, if the UICC has a SIM/USIM.

Bug: 10564873
Change-Id: Id55f794828f1f1a89905298776500df90088b17e

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 9 Sep 2013 13:01:47 +0000]
merge in klp-release history after reset to klp-dev

5 years agotelephony: Fix roaming icon setting
Sungmin Choi [Thu, 5 Sep 2013 20:14:29 +0000]
telephony: Fix roaming icon setting

Currently, if data roaming is true and gsm roaming is true,
roaming icon is always true.
But, in this case, roamin icon shoould depends on other condition,
i.e., same named operators or operator considered non-roaming.

Bug: 10642211
Change-Id: Ia98ffeec5dc013cf045b15c9a7c53c4a24f2eeb5

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 5 Sep 2013 13:01:26 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "UICC : Add MCC MNC codes having 3 digits MNC" into klp-dev
Vineeta Srivastava [Thu, 5 Sep 2013 07:08:47 +0000]
Merge "UICC : Add MCC MNC codes having 3 digits MNC" into klp-dev

5 years agoMerge commit 'ebca826a' into manualmerge
Wink Saville [Thu, 5 Sep 2013 03:21:09 +0000]
Merge commit 'ebca826a' into manualmerge

* commit 'ebca826a':
  Add provisioning apn timeout.

Conflicts:
src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java

Change-Id: Ic89a22167b91e05068160a6ef0a194215913bfe7

5 years agoam e9063f69: Add provisioning apn timeout.
Wink Saville [Thu, 5 Sep 2013 01:14:08 +0000]
am e9063f69: Add provisioning apn timeout.

* commit 'e9063f6973039d66e12d0d930af03906d377969e':
  Add provisioning apn timeout.

5 years agoAdd provisioning apn timeout.
Wink Saville [Wed, 4 Sep 2013 23:00:44 +0000]
Add provisioning apn timeout.

Bug: 10609993
Change-Id: I2dd4fe23fa2b22ef8f4849c161c630d1a85cdb4b

5 years agoUICC : Add MCC MNC codes having 3 digits MNC
duho.ro [Tue, 3 Sep 2013 04:54:34 +0000]
UICC : Add MCC MNC codes having 3 digits MNC

Old Rogers, Fido, TMUS and Malaysia cards having incorrect MNC length.

Bug: 9892341

Change-Id: I4bc24bd929e3822732e88282d0a64f59623a4c41

5 years agoFix receiving class 2 SMS messages.
Jake Hamby [Wed, 4 Sep 2013 22:24:08 +0000]
Fix receiving class 2 SMS messages.

SIMRecords class was creating the wrong type of SmsMessage object
for class 2 messages, causing a ClassCastException error. Verified
that this change fixes the bug using MD8475A call box.

Bug: 9578184
Change-Id: Ia325c6b1594d625237dc0966c05f56f586bb4baf

5 years agoDon't prefer APNs with no type for initial attach.
Lorenzo Colitti [Wed, 4 Sep 2013 05:07:34 +0000]
Don't prefer APNs with no type for initial attach.

When choosing an APN for initial attach, we currently treat an
APN with no type the same as an APN that explicitly sets a type
of "ia". Such an APN will take priority over the preferred APN,
and will even take priority over APNs with the type explicitly
set to "ia".

This breaks attach on networks where there are multiple
MVNOs with the same MCC/MNC and one or more of them has an APN
with no type.

This seems to be unintentional, because the comments say that
APNs with a type of "ia" are preferred over default APNs. Fix it
by only considering an APN to be an initial attach APN if it
explicitly specifies a type of "ia".

Bug: 10614153
Change-Id: I8ed81ab3b58ae2aab2c76b644b653bb2c08da163

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 2 Sep 2013 13:01:14 +0000]
merge in klp-release history after reset to klp-dev

5 years agoam 7cc3a309: (-s ours) am c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE...
Ed Tam [Sat, 31 Aug 2013 01:14:59 +0000]
am 7cc3a309: (-s ours) am c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev

* commit '7cc3a309e6833d854fc41f0e53f32f5a6cbbe08b':
  Telephony: SMS over IMS, DO NOT MERGE

5 years agoam c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev
Ed Tam [Fri, 30 Aug 2013 21:06:48 +0000]
am c55cf066: Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev

* commit 'c55cf0666ebbd4c00fb8092f40dc26e77c56273e':
  Telephony: SMS over IMS, DO NOT MERGE

5 years agoMerge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev
Ed Tam [Fri, 30 Aug 2013 20:50:41 +0000]
Merge "Telephony: SMS over IMS, DO NOT MERGE" into jb-mr2-dev

5 years agoAdd support for a provisioning apn.
Wink Saville [Thu, 29 Aug 2013 21:54:28 +0000]
Add support for a provisioning apn.

When there is a provisioning apn, such as lwaactivate from AT&T it is
not necessary nor desireble to try to make network connections as
they will be no TCP ACK's to SYN messages, except for a limited set
of operator white listed addresses.

This is implemented by adding two commands CMD_IS_PRVISIONING_APN
and CMD_ENABLE_MOBILE_PROVISIONING. These are used by ConnectivityService
CheckMp and to know when we are connected to a provisioning apn and to
turn actually bring up the connection when the user needs to provision.

Also, incorporate the sEnableFailFastRefCounter change from klp to make
a singleton and remove the RuntimeException.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5

5 years agoMerge "Don't show roaming icon for specific operators" into klp-dev
Robert Greenwalt [Thu, 29 Aug 2013 23:17:18 +0000]
Merge "Don't show roaming icon for specific operators" into klp-dev

5 years agoam 25cebe4f: (-s ours) Merge commit \'43c93591\' into manualmerge
Wink Saville [Thu, 29 Aug 2013 22:15:35 +0000]
am 25cebe4f: (-s ours) Merge commit \'43c93591\' into manualmerge

* commit '25cebe4f95bfee61477d4048219a6644aa0aa03b':
  Add support for a provisioning apn.

5 years agoMerge "Add support for a provisioning apn." into klp-dev
Wink Saville [Thu, 29 Aug 2013 22:10:59 +0000]
Merge "Add support for a provisioning apn." into klp-dev

5 years agoAdd support for a provisioning apn.
Wink Saville [Thu, 29 Aug 2013 21:54:28 +0000]
Add support for a provisioning apn.

When there is a provisioning apn, such as lwaactivate from AT&T it is
not necessary nor desireble to try to make network connections as
they will be no TCP ACK's to SYN messages, except for a limited set
of operator white listed addresses.

This is implemented by adding two commands CMD_IS_PRVISIONING_APN
and CMD_ENABLE_MOBILE_PROVISIONING. These are used by ConnectivityService
CheckMp and to know when we are connected to a provisioning apn and to
turn actually bring up the connection when the user needs to provision.

Also, incorporate the sEnableFailFastRefCounter change from klp to make
a singleton and remove the RuntimeException.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5

5 years agoUICC : add support empty alpha id for BIP
duho.ro [Wed, 3 Jul 2013 03:08:17 +0000]
UICC : add support empty alpha id for BIP

"If the alpha identifier is provided by the UICC and is a null data
object (i.e. length = '00' and no value part), this is an indication
that the terminal should not give any information to the user
or ask for user confirmation;"
- 6.4.27.2 OPEN CHANNEL related to packet data service bearer, ETSI TS 102.223

Bug: 9671401
Change-Id: Iece01f3775baf2c6438776f899ed53b1f1fb942f

5 years agoMerge "UICC : add support empty alpha id for BIP" into klp-dev
Vineeta Srivastava [Thu, 29 Aug 2013 19:22:14 +0000]
Merge "UICC : add support empty alpha id for BIP" into klp-dev

5 years agoDon't show roaming icon for specific operators
Sungmin Choi [Fri, 19 Jul 2013 05:17:13 +0000]
Don't show roaming icon for specific operators

Bug: 9896815
Bug: 10100304
Bug: 10097969
Bug: 10101601
Change-Id: I81b988376dd61a30bc92bb9666510abbcc47788e

5 years agoMerge commit '43c93591' into manualmerge
Wink Saville [Thu, 29 Aug 2013 18:48:50 +0000]
Merge commit '43c93591' into manualmerge

* commit '43c93591':
  Add support for a provisioning apn.

Conflicts:
src/java/com/android/internal/telephony/dataconnection/DcTracker.java

Change-Id: If78b4af0c466c6ca6939ef475726ad7a9688386a

5 years agofix trysetupdata when mAutoAttachOnCreation true
sy.yun [Fri, 23 Aug 2013 22:44:18 +0000]
fix trysetupdata when mAutoAttachOnCreation true

mAutoAttachOnCreation=true means that device can attach PS network
automatically. To do this, DCT should setup data call even PS is detached.
but when mAttached is false (PS detached) It blocks to setup data call
regardless of mAutoAttachOnCreation value. So changed to allow setup
data call when mAutoAttachOnCreation is true and mAttached is false.

Bug: 10196651
Change-Id: Ia121eb75cbbe932b94efe4c09eb3cb26f1ca1c52

5 years agoUICC : add support empty alpha id for BIP
duho.ro [Wed, 3 Jul 2013 03:08:17 +0000]
UICC : add support empty alpha id for BIP

"If the alpha identifier is provided by the UICC and is a null data
object (i.e. length = '00' and no value part), this is an indication
that the terminal should not give any information to the user
or ask for user confirmation;"
- 6.4.27.2 OPEN CHANNEL related to packet data service bearer, ETSI TS 102.223

Bug: 9671401
Change-Id: Iece01f3775baf2c6438776f899ed53b1f1fb942f

5 years agoAdd support for a provisioning apn.
Wink Saville [Wed, 28 Aug 2013 23:19:25 +0000]
Add support for a provisioning apn.

When there is a provisioning apn, such as lwaactivate from AT&T it is
not necessary nor desireble to try to make network connections as
they will be no TCP ACK's to SYN messages, except for a limited set
of operator white listed addresses.

This is implemented by adding two commands CMD_IS_PRVISIONING_APN
and CMD_ENABLE_MOBILE_PROVISIONING. These are used by ConnectivityService
CheckMp and to know when we are connected to a provisioning apn and to
turn actually bring up the connection when the user needs to provision.

Also, incorporate the sEnableFailFastRefCounter change from klp to make
a singleton and remove the RuntimeException.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5

5 years agoTelephony: SMS over IMS, DO NOT MERGE
Rika Brooks [Mon, 20 Dec 2010 23:07:34 +0000]
Telephony: SMS over IMS, DO NOT MERGE

ImsSMSDispatcher is part of IccSmsInterfaceManager.
It always receives calls to send sms first and decides
whether to use ims call flow or gsm/cdma based on response
to REQUEST_IMS_REGISTRATION_STATE.
When ims is registered and sms is supported, the request also returns sms format
to use.
In case of sms over ims failure, RIL_REQUEST_IMS_SEND_SMS sets messageRef from RIL_SMS_RESPONSE
of corresponding failed MO SMS, and sets retry field to non-zero. If voice is available, sends
RIL_REQUEST_IMS_SEND_SMS retries with data encoded based on voice tech available.
If voice is not available, sets retry counter to max and skips retries and sends failure
to client.
Bug: 9626411
Change-Id: I87ca9841b4ace931c55e2d379fe6d7589b2dc8a5

5 years agoam a6855ef9: am 876763e9: Make EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:45:53 +0000]
am a6855ef9: am 876763e9: Make EnableFailFastRefCounter a singleton.

* commit 'a6855ef9a8cfcbe9ee01a437d5b35804c29fa5b5':
  Make EnableFailFastRefCounter a singleton.

5 years agoam 876763e9: Make EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:43:33 +0000]
am 876763e9: Make EnableFailFastRefCounter a singleton.

* commit '876763e93ad0fa8006d290cc122f12d5e614efa2':
  Make EnableFailFastRefCounter a singleton.

5 years agoMake EnableFailFastRefCounter a singleton.
Wink Saville [Mon, 26 Aug 2013 20:34:33 +0000]
Make EnableFailFastRefCounter a singleton.

Since there is only one DCT the mEnableFailFastRefCounter can be a
static/singleton and thus properly refcount the
CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA. There is still one problem
and that is if the PhoneApp crashes the singleton will be reinstantiated
and we'll have the same problem, but the frequency of this is small.
Also, the consequence of this is the DCT will be behaving "normally"
in that it will be attempting to do data-stall recovery although we
might like it not to it is the "normal" behavior.

Bug: 10304904
Change-Id: I4197c4236a402aa247f775e480e747620fd189bd

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 26 Aug 2013 13:01:13 +0000]
merge in klp-release history after reset to klp-dev

5 years agoMerge "fix mvno_match_data OutOfBounds Exception" into klp-dev
Robert Greenwalt [Fri, 23 Aug 2013 17:41:48 +0000]
Merge "fix mvno_match_data OutOfBounds Exception" into klp-dev

5 years agoMerge "Properly notify of precise call state change after connection hangup." into...
Wink Saville [Fri, 23 Aug 2013 03:06:38 +0000]
Merge "Properly notify of precise call state change after connection hangup." into klp-dev

5 years agoProperly notify of precise call state change after connection hangup.
Danny Baumann [Fri, 2 Aug 2013 07:56:31 +0000]
Properly notify of precise call state change after connection hangup.

When disconnecting connections via Connection.hangup(), previously no
precise call state notification was sent out.

Change-Id: I4439d7d8ed47e72da9d061b885ec9a0e6e1b784d

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 22 Aug 2013 13:01:21 +0000]
merge in klp-release history after reset to klp-dev

5 years agofix mvno_match_data OutOfBounds Exception
Robert Greenwalt [Mon, 19 Aug 2013 17:08:42 +0000]
fix mvno_match_data OutOfBounds Exception

When the length of mvno_match_data is greater than GID from IccRecord,
it will generate StringIndexOutOfBoundsException.
Threrefore, codes are changed to use startsWith() instead of subString().

Bug: 10171336
Change-Id: I827b1d3b861d74e736875bbec1ba5bd28c6c3941

5 years agoChange set position of mAttached
Sungmin Choi [Tue, 13 Aug 2013 23:56:36 +0000]
Change set position of mAttached

When re-attach network after detaching, mAttached.get() is always false.
Although network is attached in modem side and state is connected,
phone cannot know whether connection state or not.
Because nobody notifies to phone.
So before notifyDataConnection(Phone.REASON_DATA_ATTACHED), set mAttached true

Bug: 10070685
Change-Id: Id1356e1c7e188bd484d892dc4255c3aefc81a032

5 years agoMake EnableFailFastRefCounter a singleton.
Wink Saville [Wed, 14 Aug 2013 04:22:51 +0000]
Make EnableFailFastRefCounter a singleton.

Since there is only one DCT the mEnableFailFastRefCounter can be a
static/singleton and thus properly refcount the
CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA. There is still one problem
and that is if the PhoneApp crashes the singleton will be reinstantiated
and we'll have the same problem, but the frequency of this is small.
Also, the consequence of this is the DCT will be behaving "normally"
in that it will be attempting to do data-stall recovery although we
might like it not to it is the "normal" behavior.

Bug: 10304904
Change-Id: I38ff37445788ec952ca26be45b0374bc0a7ae34d

5 years agoMerge "Make EnableFailFastRefCounter a singleton." into klp-dev
Wink Saville [Wed, 14 Aug 2013 18:19:27 +0000]
Merge "Make EnableFailFastRefCounter a singleton." into klp-dev

5 years agoMake EnableFailFastRefCounter a singleton.
Wink Saville [Wed, 14 Aug 2013 04:22:51 +0000]
Make EnableFailFastRefCounter a singleton.

Since there is only one DCT the mEnableFailFastRefCounter can be a
static/singleton and thus properly refcount the
CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA. There is still one problem
and that is if the PhoneApp crashes the singleton will be reinstantiated
and we'll have the same problem, but the frequency of this is small.
Also, the consequence of this is the DCT will be behaving "normally"
in that it will be attempting to do data-stall recovery although we
might like it not to it is the "normal" behavior.

Bug: 10304904
Change-Id: I38ff37445788ec952ca26be45b0374bc0a7ae34d

5 years agoam af532402: (-s ours) Reconcile with jb-mr2-zeroday-deb-release - do not merge
The Android Open Source Project [Tue, 13 Aug 2013 17:11:57 +0000]
am af532402: (-s ours) Reconcile with jb-mr2-zeroday-deb-release - do not merge

* commit 'af532402a56c845c39bcfd77a3dc4312e1b62ab0':
  Add mEnableFailFastRefCounter.
  Restart, cleanup or retry inactve connections.
  DataConnection should not retry permanent errors.

5 years agoReconcile with jb-mr2-zeroday-deb-release - do not merge
The Android Open Source Project [Tue, 13 Aug 2013 17:10:06 +0000]
Reconcile with jb-mr2-zeroday-deb-release - do not merge

Change-Id: I3ec5004207ab6c9ff30793e840a5010c4c4ba015

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Mon, 12 Aug 2013 13:02:08 +0000]
merge in klp-release history after reset to klp-dev

5 years agoam d1eb383d: am a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev
Wink Saville [Fri, 9 Aug 2013 00:10:38 +0000]
am d1eb383d: am a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev

* commit 'd1eb383d9bd58140607f212e46db64559f408780':
  Add mEnableFailFastRefCounter.

5 years agoam bc42667e: am 97978662: Restart, cleanup or retry inactve connections.
Wink Saville [Fri, 9 Aug 2013 00:10:37 +0000]
am bc42667e: am 97978662: Restart, cleanup or retry inactve connections.

* commit 'bc42667e465b7dfacfe4592390b14c5518a05e41':
  Restart, cleanup or retry inactve connections.

5 years agoam 585e9609: am 2ae42257: DataConnection should not retry permanent errors.
Wink Saville [Fri, 9 Aug 2013 00:10:37 +0000]
am 585e9609: am 2ae42257: DataConnection should not retry permanent errors.

* commit '585e96097525e593c2ae7edb9fcf62526ab958ae':
  DataConnection should not retry permanent errors.

5 years agoAdd mEnableFailFastRefCounter.
Wink Saville [Wed, 7 Aug 2013 17:47:21 +0000]
Add mEnableFailFastRefCounter.

Use a reference counter to control enabling fail fast
as there are now two entities which control failing fast:
ConnectifityService.checkProvisioningUrl and
MobileDataStateTracker.captivePortalCheckComplete.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e

5 years agoRestart, cleanup or retry inactve connections.
Wink Saville [Tue, 6 Aug 2013 17:50:48 +0000]
Restart, cleanup or retry inactve connections.

Instead of retrying all inactive connections, restart radio on very bad
errors, clean those that are permanent failures and retry
the others.

Bug: 10131736
Change-Id: I2527b18d6cda52c55fb94be58fbb1a7a86818ef9

5 years agoDataConnection should not retry permanent errors.
Wink Saville [Tue, 21 May 2013 21:18:11 +0000]
DataConnection should not retry permanent errors.

Update DcFailCause with the "no retry" info from ril.h

Bug: 9040015
Change-Id: Ib94af9996c79800322251a45349b117e1f913269

5 years agoam a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev
Wink Saville [Thu, 8 Aug 2013 22:46:57 +0000]
am a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev

* commit 'a76fa59574734cd1528dff2937231b78ea96e8f3':
  Add mEnableFailFastRefCounter.

5 years agoam 97978662: Restart, cleanup or retry inactve connections.
Wink Saville [Thu, 8 Aug 2013 22:46:57 +0000]
am 97978662: Restart, cleanup or retry inactve connections.

* commit '979786625e7ceacf4a545a25704ef8a15338a854':
  Restart, cleanup or retry inactve connections.

5 years agoam 2ae42257: DataConnection should not retry permanent errors.
Wink Saville [Thu, 8 Aug 2013 22:46:57 +0000]
am 2ae42257: DataConnection should not retry permanent errors.

* commit '2ae42257ebafdbb0470cedeab41c2f1b418b285c':
  DataConnection should not retry permanent errors.

5 years agoMerge "Add mEnableFailFastRefCounter." into jb-mr2-dev
Wink Saville [Thu, 8 Aug 2013 22:02:38 +0000]
Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev

5 years agoam 7982f3e5: Merge "Initialize RIL with the correct CDMA subscription mode setting"
Wink Saville [Thu, 8 Aug 2013 20:24:43 +0000]
am 7982f3e5: Merge "Initialize RIL with the correct CDMA subscription mode setting"

* commit '7982f3e57aaa53699ff3a00071280a88a5ac0c82':
  Initialize RIL with the correct CDMA subscription mode setting

5 years agomerge in klp-release history after reset to klp-dev
The Android Automerger [Thu, 8 Aug 2013 14:54:13 +0000]
merge in klp-release history after reset to klp-dev

5 years agoUnregistering a null receiver is now fatal.
Wink Saville [Wed, 7 Aug 2013 00:48:25 +0000]
Unregistering a null receiver is now fatal.

This causes user builds to break, so only unregister
if we are actually registered.

Bug: 9657468
Change-Id: Ie801e6db37962e9de7559c8451806de1972cf430

5 years agoMerge "Change the SMS event logging to "packages" aggregation, which requires the...
William Luh [Wed, 7 Aug 2013 18:58:22 +0000]
Merge "Change the SMS event logging to "packages" aggregation, which requires the app uid."

5 years agoAdd mEnableFailFastRefCounter.
Wink Saville [Wed, 7 Aug 2013 17:47:21 +0000]
Add mEnableFailFastRefCounter.

Use a reference counter to control enabling fail fast
as there are now two entities which control failing fast:
ConnectifityService.checkProvisioningUrl and
MobileDataStateTracker.captivePortalCheckComplete.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e

5 years agoUnregistering a null receiver is now fatal.
Wink Saville [Wed, 7 Aug 2013 00:48:25 +0000]
Unregistering a null receiver is now fatal.

This causes user builds to break, so only unregister
if we are actually registered.

Bug: 9657468
Change-Id: Ie801e6db37962e9de7559c8451806de1972cf430

5 years agoRestart, cleanup or retry inactve connections.
Wink Saville [Tue, 6 Aug 2013 17:50:48 +0000]
Restart, cleanup or retry inactve connections.

Instead of retrying all inactive connections, restart radio on very bad
errors, clean those that are permanent failures and retry
the others.

Bug: 10131736
Change-Id: I2527b18d6cda52c55fb94be58fbb1a7a86818ef9

5 years agoMerge "Initialize RIL with the correct CDMA subscription mode setting"
Wink Saville [Tue, 6 Aug 2013 17:35:09 +0000]
Merge "Initialize RIL with the correct CDMA subscription mode setting"

5 years agoWhen disposing only unbind if actually bound.
Wink Saville [Tue, 6 Aug 2013 13:49:51 +0000]
When disposing only unbind if actually bound.

Change-Id: Icef7f050088d648fdf60f9a1ed690af46deb36e0

5 years agoInitialize RIL with the correct CDMA subscription mode setting
Naveen Kalla [Wed, 29 Aug 2012 16:40:25 +0000]
Initialize RIL with the correct CDMA subscription mode setting

Users choice of CDMA Subscription Source is stored in CDMA_SUBSCRIPTION_MODE
setting in database.
If telephony restarts after a crash, use CDMA_SUBSCRIPTION_MODE instead
of PREFERRED_CDMA_SUBSCRIPTION in PhoneFactory to prevent
mismatch with the value in the settings database chosen by the user.

Also, remove the Setting PREFERRED_CDMA_SUBSCRIPTION from the database.
With this change the special treatment for LTE on CDMA will not be needed.
The correct value can be set in the database for CDMA_SUBSCRIPTION_MODE
and that will be taken on power-up by this code.

Change-Id: I11fff596a5fe721c64f192c889672326517dc43d

5 years agoMerge "Initialize RIL with the correct CDMA subscription mode setting"
Wink Saville [Tue, 6 Aug 2013 04:17:19 +0000]
Merge "Initialize RIL with the correct CDMA subscription mode setting"

5 years agoFix build.
Ying Wang [Tue, 6 Aug 2013 03:20:17 +0000]
Fix build.

Reference:
https://android-review.googlesource.com/#/c/61723/5

Change-Id: I327733be1c2ab3cda933b9f0c7c0a63332223ae8

5 years agoMerge "Stop using implicit intents with bindService()."
Dianne Hackborn [Tue, 6 Aug 2013 00:16:29 +0000]
Merge "Stop using implicit intents with bindService()."

5 years agoChange the SMS event logging to "packages" aggregation, which requires the app uid.
William Luh [Tue, 6 Aug 2013 00:09:33 +0000]
Change the SMS event logging to "packages" aggregation, which requires the app uid.

Change-Id: Ic3927b5764909b4ec8dc64fc41118f9057814656

5 years agoam f6dced1a: Merge "Telephony: Fix issue in handling null alpha identifier"
Wink Saville [Mon, 5 Aug 2013 15:59:16 +0000]
am f6dced1a: Merge "Telephony: Fix issue in handling null alpha identifier"

* commit 'f6dced1ac15dc219bb87658a242d74abb9fb5ae2':
  Telephony: Fix issue in handling null alpha identifier

5 years agoMerge "Telephony: Fix issue in handling null alpha identifier"
Wink Saville [Mon, 5 Aug 2013 15:50:24 +0000]
Merge "Telephony: Fix issue in handling null alpha identifier"

5 years agoStop using implicit intents with bindService().
Dianne Hackborn [Sun, 4 Aug 2013 23:53:54 +0000]
Stop using implicit intents with bindService().

The behavior of this case is not defined.

Change-Id: I6e858190d7b0c3b8976a1657de81a682cd989eee

5 years agoDataConnection should not retry permanent errors.
Wink Saville [Tue, 21 May 2013 21:18:11 +0000]
DataConnection should not retry permanent errors.

Update DcFailCause with the "no retry" info from ril.h

Bug: 9040015
Change-Id: Ib94af9996c79800322251a45349b117e1f913269

5 years agoam a1915f28: Merge "If telephony wants ASCII casing, it needs to ask for it."
Elliott Hughes [Fri, 2 Aug 2013 19:41:40 +0000]
am a1915f28: Merge "If telephony wants ASCII casing, it needs to ask for it."

* commit 'a1915f289fbada7f7c716eed0078098bbb40adc1':
  If telephony wants ASCII casing, it needs to ask for it.

5 years agoam 4ce0e815: Merge "Create ApnSetting if none are found in database."
Wink Saville [Fri, 2 Aug 2013 19:41:39 +0000]
am 4ce0e815: Merge "Create ApnSetting if none are found in database."

* commit '4ce0e815f8b0a796685fbc931cd6760c27172a0f':
  Create ApnSetting if none are found in database.

5 years agoMerge "If telephony wants ASCII casing, it needs to ask for it."
Elliott Hughes [Fri, 2 Aug 2013 18:55:02 +0000]
Merge "If telephony wants ASCII casing, it needs to ask for it."

5 years agoMerge "Create ApnSetting if none are found in database."
Wink Saville [Fri, 2 Aug 2013 18:40:30 +0000]
Merge "Create ApnSetting if none are found in database."

5 years agoIf telephony wants ASCII casing, it needs to ask for it.
Elliott Hughes [Fri, 2 Aug 2013 17:40:09 +0000]
If telephony wants ASCII casing, it needs to ask for it.

http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: I5c2721f36861694928101c771ec6699424cf9aa3

5 years agoCreate ApnSetting if none are found in database.
Alex Yakavenka [Tue, 18 Jun 2013 16:49:13 +0000]
Create ApnSetting if none are found in database.

Bug: 9315957
Change-Id: I0cf0debb703f6a4cad35300315922a5566871f85

5 years agoInitialize RIL with the correct CDMA subscription mode setting
Naveen Kalla [Wed, 29 Aug 2012 16:40:25 +0000]
Initialize RIL with the correct CDMA subscription mode setting

Users choice of CDMA Subscription Source is stored in CDMA_SUBSCRIPTION_MODE
setting in database.
If telephony restarts after a crash, use CDMA_SUBSCRIPTION_MODE instead
of PREFERRED_CDMA_SUBSCRIPTION in PhoneFactory to prevent
mismatch with the value in the settings database chosen by the user.

Also, remove the Setting PREFERRED_CDMA_SUBSCRIPTION from the database.
With this change the special treatment for LTE on CDMA will not be needed.
The correct value can be set in the database for CDMA_SUBSCRIPTION_MODE
and that will be taken on power-up by this code.

Change-Id: I11fff596a5fe721c64f192c889672326517dc43d

5 years agoam 06f093f7: Merge "Mobile network type is not updated when the network mode is switc...
Robert Greenwalt [Wed, 31 Jul 2013 18:22:13 +0000]
am 06f093f7: Merge "Mobile network type is not updated when the network mode is switched."

* commit '06f093f728861837c54a96666ece5dc1853787c1':
  Mobile network type is not updated when the network mode is switched.

5 years agoMerge "Mobile network type is not updated when the network mode is switched."
Robert Greenwalt [Wed, 31 Jul 2013 18:14:46 +0000]
Merge "Mobile network type is not updated when the network mode is switched."

5 years agoMobile network type is not updated when the network mode is switched.
Kazuya Ohshiro [Mon, 18 Mar 2013 04:29:12 +0000]
Mobile network type is not updated when the network mode is switched.

Because ServiceStateTracker doesn't handle the change of ServiceState
after switching of Telephony FW, SystemProperty used for displaying
the mobile network type does not become to Unknown. To fix this issue,
when the network mode is switched, the SystemProperty should be
initialized to Unknown in the constructor of ServiceStateTracker.

Change-Id: I903ba855b9fe22530db8494a9d2615959970c5a4

5 years agoam 793fb83c: Merge "Add support for MNC=00"
Wink Saville [Tue, 30 Jul 2013 19:31:40 +0000]
am 793fb83c: Merge "Add support for MNC=00"

* commit '793fb83c41d26c84f4430885aafc7a8daeffffeb':
  Add support for MNC=00

5 years agoMerge "Add support for MNC=00"
Wink Saville [Tue, 30 Jul 2013 19:20:20 +0000]
Merge "Add support for MNC=00"

5 years agoAdd support for an initial APN
Wink Saville [Sat, 27 Jul 2013 20:31:47 +0000]
Add support for an initial APN

Add PhoneConstants.APN_TYPE_IA, DctConstants.APN_IA_ID and enhance
setInitialAttachApn to use the new Initial Attach apn.

Bug: 8733613
Change-Id: Ia627ac0cf5715660b6d02bb13a83d46ec1727b87

5 years agoAdd support for MNC=00
Mattias Petersson [Fri, 7 Oct 2011 07:33:52 +0000]
Add support for MNC=00

This adds support for operators with MNC (Mobile Network Code) zero
to add customized resources. For example, it makes it possible to
add a folder called "/res/values-mnc00/" in an application. This will
cause resources in that folder to be used when MNC is zero.
(There is a total of 14 countries that have an operator with MNC
zero.)

Without this fix, the resource framework gets confused, because MNC 0
is normally used when the MNC is undefined (not set).

Bug: 7170488
Change-Id: Icfd39fd0c739216e89446252ea0e7ceba6f002c6

5 years agoMerge "Add prefix to SMS event tag"
Jake Hamby [Fri, 26 Jul 2013 18:20:55 +0000]
Merge "Add prefix to SMS event tag"

5 years agoHipri should not be enabled when we initialize.
Wink Saville [Tue, 23 Jul 2013 18:05:35 +0000]
Hipri should not be enabled when we initialize.

Without this fix hipri starts at boot mobile data won't be shutdown
as refCount won't go to zero.

Bug: 9475300
Change-Id: If9587fa5360d777328fda59bbea61a2cbd9fe804