1435 Commits

Author SHA1 Message Date
Robert Greenwalt
a47c40193f Merge "Add RouteInfo objects for tracking routes." into honeycomb-LTE 2011-05-02 13:26:52 -07:00
Robert Greenwalt
aa70f101e0 Add RouteInfo objects for tracking routes.
Used to have list of gateways for default routes, but general static routes
should be supported.

Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
2011-05-02 11:17:30 -07:00
Wink Saville
aa44b52ee0 Fix bug in RIL#getDataCallState.
Change-Id: I568e25d85888aa40b6a0b5e7f2d016e409f73ce1
2011-05-02 10:00:53 -07:00
Kazuhiro Ondo
f0055d5e3c CDMALTE: Evaluate data network type in pollStateDone()
During LTE to HRPD handover, CDMA data network type (1X, DO, RevA)
was not detected immediately as the checking was not done without
waiting for the LTE state. The patch will wait for pollStateDone
to determine new data network state.

Change-Id: I2d63d43df1f3124ba27f77897abef30f06be650d
2011-04-29 11:47:07 -07:00
Wink Saville
a68a61dfe3 Merge "Telephony: Data availability indication upon records loaded." into honeycomb-LTE 2011-04-28 13:51:31 -07:00
Wink Saville
05fcd239ab Merge "Telephony: Corrections to signal strength values." into honeycomb-LTE 2011-04-28 13:51:22 -07:00
Ramesh Sudini
11cee41f3e Telephony: Corrections to signal strength values.
RSRP is already -ve.

Change-Id: Ieff689a98088ad6aad9cfc6516169c92bbb0015d
2011-04-28 12:24:55 -07:00
Ramesh Sudini
662b016d6e Telephony: Data availability indication upon records loaded.
This will make sure if records loaded comes after radio availability we dont miss sending
out dataAvailability.

Change-Id: Ibbecaa89f28e1441e799bf1681d0b4692cf0f13a
2011-04-28 12:24:13 -07:00
Kazuhiro Ondo
379cbb1dcc Send STK Service Running RIL Request after sim module is ready
Currently "STK Service Running" is sent as soon as phone app is
started. And depending on the timing of vendor RIL initialization
the event may not be handled. This patch waits for SIM_READY,
RUIM_READY or NV_READY indicating vendor's SIM (equivalent) module
become ready to process the event.

Change-Id: I4182a5413201f11856989664c8f19ae1eca48e2f
2011-04-28 12:23:25 -07:00
Wink Saville
7353301f73 Merge "GsmDCT: Reset DataConnection upon APN disable." into honeycomb-LTE 2011-04-28 11:50:24 -07:00
Wink Saville
1a517d0c25 Merge "Remove subclass cast for calls to isDnsCheckDisabled." into honeycomb-LTE 2011-04-28 11:50:15 -07:00
Ramesh Sudini
38d284d323 Remove subclass cast for calls to isDnsCheckDisabled.
Change-Id: Ic9121db810b295d9f614046932badf04f07a42db
2011-04-26 21:17:06 -07:00
Ramesh Sudini
315f107109 GsmDCT: Reset DataConnection upon APN disable.
Change-Id: I36a715830604d0fe34f1ab5c8b1bf56eb5777e0f
2011-04-26 16:53:38 -07:00
Ramesh Sudini
5ccc801a97 Delay data reconnection after disconnected.
Change-Id: Iede631b5e92a48883ef87c66dd79490e92ec196a
2011-04-26 16:47:18 -07:00
Ramesh Sudini
dcbba67afc Telephony: Fix merge issue "Set enabled state before notification is sent out."
The original change-id was I6e84920b8d082fd6da838bccb5333051362bc4bc

Change-Id: I758641f8b29346a868e1b6b454ccd3f2341dffb8
2011-04-25 11:30:32 -07:00
Wink Saville
afa79585e0 Remove getCurrentDataConnectionList.
This should not be exposed externally and is used only by
RadioInfo.java a hidden application used for debugging.
I'll another mechanism which will probably use an
asynchronous interface with the DataConnectionTracker.

Change-Id: Ic21cc8d45bd3172c2ceeab154eca6118d94580e9
2011-04-18 16:03:03 -07:00
Wink Saville
64c42cae44 Rename HierarchicalStateMachine and HierarchicalState to StateMachine and State.
Change-Id: Ib4b33894da75f5f156066092fb145b478e52f7d7
2011-04-18 14:55:10 -07:00
Kazuhiro Ondo
6bb582a00c Data connection attempts/retries for multiple APNs
Fixing issues found in IOT. GsmDCT was only attempting to connect
default APNs. This patch will try to attempt to connect/reconnect
all APNs as long as they are ready and in right state.

Change-Id: I6e872936330654dcb25198c800728cb4d033e731
2011-04-18 11:45:46 -07:00
Wink Saville
a9378485cb Merge "Telephony: GDCT - Set enabled state before notification is sent out." into honeycomb-LTE 2011-04-16 14:45:42 -07:00
Wink Saville
df43e32177 Merge "Telephony: Set Radio turned off reason when powered off." into honeycomb-LTE 2011-04-16 14:44:08 -07:00
Wink Saville
dc26a0c8d4 Merge "Clean up calls immediately if cid become inactive in unsol data state changed" into honeycomb-LTE 2011-04-16 14:43:30 -07:00
Wink Saville
585b7acb16 Merge "handle missing constants when creating a Phone instance" into honeycomb-LTE 2011-04-16 14:42:49 -07:00
Ramesh Sudini
1aac25187f Telephony: GDCT - Set enabled state before notification is sent out.
Change-Id: I6e84920b8d082fd6da838bccb5333051362bc4bc
2011-04-16 04:54:28 -07:00
Kazuhiro Ondo
96a5f00abe handle missing constants when creating a Phone instance
Change-Id: I6089881830842cbaa5bf6d757c6f723c62c5878d
2011-04-16 04:35:48 -07:00
Ramesh Sudini
157f9a0449 Telephony: Set Radio turned off reason when powered off.
Change-Id: Ie538c888d09b189b30c24fa0fd637265ccce954f
2011-04-16 04:34:27 -07:00
Kazuhiro Ondo
a43db7f48d Clean up calls immediately if cid become inactive in unsol data state changed
Do not perform extra data call list query. Just trust the message sent up
from RIL.

Change-Id: Ic03f5cc13ef05fe1de8fb5826fa37a68708e8e18
2011-04-16 04:32:53 -07:00
Ramesh Sudini
a5c9c7246b Data Availability Indication changes.
Change-Id: I92bcff10763658cadd4ac1ea98745212c765ecfe
2011-04-15 15:46:01 -07:00
Wink Saville
6ed4798c70 Merge "Cleanup/add log statements." into honeycomb-LTE 2011-04-15 15:44:18 -07:00
Wink Saville
56b4965f5b Cleanup/add log statements.
Change-Id: Ia9e1dfab0dd6eb0ac08e6ce2f3d414d358652d80
2011-04-15 14:29:24 -07:00
Wink Saville
66958c7367 Change RIL initialization.
- When creating RIL use lte_on_cdma property to set initial
cdma subscription source. Later we will use
RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED and or some other
dynamic method.

- Instead of using mInitialRadioStateChange use UNSOL_RIL_CONNECTED
to initialize ril to a known state.

- Rename RIL_UNSOL_CDMA_SUBSCRIPTION_CHANGED to it "proper" name.
RIL_UNSOL_CDMA_SUBSCRIPTION_SOURCE_CHANGED.

bug: 4287155
Change-Id: I477ece19dbe381171e0f468184821d6a6d6877b9
2011-04-15 10:06:41 -07:00
Kazuhiro Ondo
921c9d2425 Fix occasional phone app crash
bug #4263503

if GsmDCT is just initialized and LTE/GPRS attach happens
before SIM is completely loaded, phone app would crash
as there is no DataConnection associated with ApnContext.

Change-Id: Ie8007c718c3f68a7b3e42154e60e5b25631ec3c8
2011-04-12 14:42:02 -07:00
Wink Saville
442b08bc7c Merge "Cleanup all functions overridden from DCT in GDCT" into honeycomb-LTE 2011-04-09 07:50:37 -07:00
Robert Greenwalt
862da792c0 Cleanup all functions overridden from DCT in GDCT
Also removed use of iterator.

Change-Id: I58e505d641cc2b84b6522a6793665c2a3c839580
2011-04-08 17:36:39 -07:00
Robert Greenwalt
658779f5d8 Merge "Make ApnSettings threadsafe." into honeycomb-LTE 2011-04-08 17:19:53 -07:00
Robert Greenwalt
561538879b Make ApnSettings threadsafe.
Also fixes getActiveApnString.

Change-Id: I2278b30505cc8a6be484341cba12d14f7b6316e8
2011-04-08 16:48:42 -07:00
Robert Greenwalt
1eeeae59d0 Merge "Fix getActiveApnTypes for GsmDCT." into honeycomb-LTE 2011-04-08 16:31:03 -07:00
Robert Greenwalt
ac9c73ae61 Merge "Fix notification of disconnected networks." into honeycomb-LTE 2011-04-08 16:22:06 -07:00
Robert Greenwalt
1b6c758c29 Fix getActiveApnTypes for GsmDCT.
Change-Id: I42e71f0cbe31289f16623de38141213f547aa13f
2011-04-08 16:07:37 -07:00
Robert Greenwalt
6b01e4cdf8 Fix notification of disconnected networks.
Reorder - set state and then report the state, else we always report disconnecting which
is interpreted as still connected.

Change-Id: I95f5fe9ccee0d7ee9a03f78ae5b614af2ba0860b
2011-04-08 15:52:23 -07:00
Wink Saville
73ad388aae Merge "Check different CellLocation type in GsmDataConnectionTracker" into honeycomb-LTE 2011-04-08 13:20:20 -07:00
Robert Greenwalt
63edf6c4f5 Rename PhoneBase's DataConnectionTracker member.
Was called mDataConnection, but this is more confusing now that we have multiple
DataConnections.  Changed it to the more correct mDataConnectionTracker.

Change-Id: I3cdc4f2897d60e5b0885891744aa6ff2db27af37
2011-04-08 11:54:01 -07:00
Kazuhiro Ondo
8968f9f6d4 Check different CellLocation type in GsmDataConnectionTracker
Addressing phone app crash in GsmDataConnectionTracker when CDMALTEPhone
is used. CDMALTEPhone uses CDMA SST so getCellLocation() was returning
an instance of CdmaCellLocation. This was causing a crash when GsmDCT
type casts the instance as GsmCellLocation.

This patch tries to check the instance type before retrieving corresponding
cell id.

Change-Id: I6ac9cd4dc078552dc58d4d9350494a7b608c2b98
2011-04-08 11:42:51 -07:00
Wink Saville
5203a5bc28 Cleanup debugging.
Change-Id: I4c61b6716a6d03d70bc1e9013954d6b2002cec54
2011-04-08 11:14:23 -07:00
Wink Saville
1905e166ed Merge "DataConnection: set CID to the correct value." into honeycomb-LTE 2011-04-08 10:38:25 -07:00
Robert Greenwalt
9c7f433c80 Merge "Fix isApnTypeActive in GDCT." into honeycomb-LTE 2011-04-08 10:07:31 -07:00
Robert Greenwalt
37c75ae06b DataConnection: set CID to the correct value.
import of partner change 5930

Change-Id: Iaa2d282f6f9292a57dfceedad676c9e3ad64f903
2011-04-08 10:05:58 -07:00
Robert Greenwalt
4410660e02 Fix ISO country code of Slovenia.
Misread an IBM site and thought it was sl-sl, but really it is sl-si.

fixes public bug 16021

Change-Id: I5b262a2b424fe2a0904f623f82449a539ede0fdb
2011-04-08 09:53:55 -07:00
Robert Greenwalt
7a093b2c35 Fix isApnTypeActive in GDCT.
The single active APN makes no sense now.  Add override function to
do the right thing.

Also makes ApnContext threadsafe.

Change-Id: I4302595e8818b7d31bdd32b5fdf4e3de1cd81ed8
2011-04-08 09:39:57 -07:00
Wink Saville
1dd2ada5cf Add RIL_UNSOL_RIL_CONNECTED and pass radio technology + 2 to setupDataCall.
Added CommandsInterface.registerForRilConnected which allows components
to register for when the ril connects and provides the version of the
ril to the registrants or a -1 if the ril disconnects.

For ril version 6 RIL.setupDataCall needs to have RadioTechnology + 2
as the radioTechnology parameter when the rilVersion is >= 6.

DataConnection then uses registersForRilConnected to get the ril
version and provide the proper radioTechnology value to
RIL.setupDataCall

Change-Id: Iacba764b9e38a4a138d186ccf1625fea760cc56d
2011-04-07 14:34:29 -07:00
Robert Greenwalt
70c3d1c23b Merge "Add external dependency API." into honeycomb-LTE 2011-04-07 13:02:28 -07:00