1841 Commits

Author SHA1 Message Date
Robert Greenwalt
a6d4248e21 Pass roaming info to ConnectivityService.
bug:5215657
Change-Id: I77024141a7bbaa47eae021009e16b283699be53e
2011-09-08 12:01:59 -07:00
Robert Greenwalt
9b2886e243 Create new isNetworkSupported API
Useful for checking if on a wifi-only device.
Similar to asking for NetworkInfo for a network type and checking for
null, though here the intent is explicit.

bug:5087537
Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
2011-08-31 16:53:12 -07:00
Jeff Sharkey
52d0f9882f More robust check around TelephonyManager init.
Only complain when Context radically changed.

Bug: 4676714
Change-Id: Ia183f9ba51056c857e634d901c618a73e45d2d05
2011-08-31 11:15:34 -07:00
Wink Saville
960ba9132c Merge "CDMALTE: Start reading SIM record on SIM_READY" 2011-08-30 16:05:04 -07:00
Jake Hamby
be1a0493a8 Merge "Use the local timezone for CDMA SMS timestamps." 2011-08-30 13:45:30 -07:00
Jake Hamby
4144a06025 Use the local timezone for CDMA SMS timestamps.
3GPP2 uses the local timezone for timestamps in SMS messages.
Use the local timezone instead of UTC when decoding bearer data.

Bug: 5123883
Change-Id: Iec25bcbb7862f0794ead80b6923c815b68bdd2a5
2011-08-29 16:28:27 -07:00
Wink Saville
03605fa832 Merge "Fix leak in SIM ready registrants" 2011-08-29 15:46:45 -07:00
Wink Saville
3ffb889746 Merge "Add timezone to the terminal response for provide local information command" 2011-08-26 16:53:39 -07:00
Kazuhiro Ondo
43c3204067 Fix leak in SIM ready registrants
SIM Ready registrants was keep growing after air plane mode
toggle or RIL recovery.

Bug: 5222722
Change-Id: Iac9fcb86f96f9e42440e641cd94736fed6f45813
2011-08-26 15:28:05 -07:00
Kazuhiro Ondo
ef5acbc0d6 CDMALTE: Start reading SIM record on SIM_READY
Clean up early workarounds placed for CDMA LTE mode.
Now SIM_READY is used to start reading out SIM record which is
the same as the baseline behavior.

Bug: 4506200
Change-Id: Ib30b1710b60110957f8eb6483f39dbec6153d4a9
2011-08-26 15:08:24 -07:00
Jake Hamby
463f221145 Add ISIM application support for LTE devices.
- Add methods to TelephonyManager to provide access to IMS records on
  the ISIM application of the UICC, as well as access to the ISIM
  AKA authentication algorithm.

- Add support for the new IMS methods to CDMALTEPhone, using the helper class
  ImsUiccRecords to load the IMS records from the ISIM. The same approach
  can be used to implement IMS support for UMTS/LTE devices.

- There is a new RIL request, RIL_REQUEST_ISIM_AUTHENTICATION, which is
  used to perform IMS AKA authentication using the algorithm on the ISIM
  application of the UICC. The challenge nonce and response are both encoded
  as Base64 strings.

Change-Id: I73367c7d9bc573d0d883d68adf09891de1319129
2011-08-26 12:33:11 -07:00
Wink Saville
d0b6ad9ec9 Merge "Allow 15 strings in RIL_REQUEST_VOICE_REGISTRATION_STATE response" 2011-08-26 10:33:15 -07:00
Naveen Kalla
f976cf25f9 Add timezone to the terminal response for provide local information command
If timezone is sent in the NITZ message it needs to be part of the
terminal response sent to the provide local information command for
Date and time Setting. This is as per TS 31.111 section 6.4.15/ETSI TS 102 223
and 3GPP spec 22.042.

Change-Id: I3516911223bd5655dbe8189bba307f0765c63fa1
2011-08-26 10:14:11 -07:00
yoonsung.nam
bcfa57ba52 Allow data during voice call if network type is LTE
Change-Id: Ibbf327ed709c8429232eb4e9088fe900a2e87980
Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
2011-08-25 16:24:25 -07:00
Naveen Kalla
dc69a6b146 Allow 15 strings in RIL_REQUEST_VOICE_REGISTRATION_STATE response
RIL interface contains 15 strings in response to
RIL_REQUEST_VOICE_REGISTRATION_STATE. CdmaServiceStateTracker
throws an exception if response contains more than 14 strings.
Fix needed to comply with RIL interface.

Bug: 5204605
Change-Id: I6f266eb38b2bc52610999cd92449b8dc58dd3274
2011-08-25 12:34:00 -07:00
Jeff Sharkey
8e28b7d782 Proactively disable data when over policy limit.
Add policy controls to NetworkStateTracker which are combined with
other user preference and internal flags to decide if data connection
should be established.  Better locking around enabled flags.

When data network would be over limit, proactively disable data on
that network.  Enable when policy is snoozed or when cycle resets.

Track and dismiss notifications from now-stale policies.

Bug: 4587023, 5178147
Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
2011-08-23 18:45:44 -07:00
Wink Saville
9f1b94a14f Remove writing pin's to log.
Change-Id: Ib84397ac718ebcc3862c69fc7556e0403c2b3940
2011-08-19 11:17:54 -07:00
inshik
4eb45cc98b Add utility functions for pause and tonewait pause.
Add a function that converts a string with RFC3601 defintion
of pause and wait into android representation.

Change-Id: Id8a17c3a166422d62247acb227506549990ace12
2011-08-15 17:05:25 -07:00
Shaopeng Jia
e713576292 Renaming com.google.i18n.phonenumbers to com.android.i18n.phonenumbers
to avoid name collision.

Bug: 5157607
Change-Id: Ic397f371e381a71f17b0b70b955e89d08f7a9867
2011-08-12 13:25:41 +02:00
Sangcheol Lee
1d1435a1ed Don't check provisioning when trying setup data call.
1. SIM is not provisioned before activation.

Change-Id: I04b16d77aaf28bfb8e0c2d7edd937bd44677de73
Signed-off-by: Sangcheol Lee <goodsc.lee@samsung.com>
2011-08-09 15:37:29 -07:00
John Wang
cd62dfbc26 Enable concurrent voice and data for LTE.
bug:5017062
Change-Id: I2c701c74710ce0f718d28babea88fb93d3219564
2011-08-05 15:11:35 -07:00
Wink Saville
35a9c52791 am 5ad5c9e3: am d20f60c8: Merge "Support of LTE Only mode" into honeycomb-LTE
* commit '5ad5c9e3efd26155ae7b5d0f3e9e2094e1f65dfe':
  Support of LTE Only mode
2011-07-27 20:41:23 -07:00
Wink Saville
5ad5c9e3ef am d20f60c8: Merge "Support of LTE Only mode" into honeycomb-LTE
* commit 'd20f60c8a71ca0aa853bc433f74b32dcfc98f984':
  Support of LTE Only mode
2011-07-27 20:39:09 -07:00
Wink Saville
d20f60c8a7 Merge "Support of LTE Only mode" into honeycomb-LTE 2011-07-27 20:35:52 -07:00
Ramesh Sudini
d5f8d84d45 Support of LTE Only mode
In CDMA-LTE hybrid mode, the service state is derived based on
CDMA state. However, CDMA radio is off while in LTE only mode
so thre will be no signal bar or data type icon displayed on
the status UI.

This patch handles LTE only mode scenario. The service state
is derived from LTE if CDMA is OOS and LTE only mode is used.

Bug: 5070240
Change-Id: Ie55daaf9eea1b16ca73312ebab208810b145d2bc
2011-07-27 20:34:15 -07:00
Ramesh Sudini
0aea293d15 am 8ce53e38: am 9a87deb5: DataConnection: Clear cid when entering inactive state.
* commit '8ce53e387e2b4427265ae9e43bc15d9fe850643d':
  DataConnection: Clear cid when entering inactive state.
2011-07-27 16:35:41 -07:00
Ramesh Sudini
8ce53e387e am 9a87deb5: DataConnection: Clear cid when entering inactive state.
* commit '9a87deb538caed347621e57c5c83e0185a963bb4':
  DataConnection: Clear cid when entering inactive state.
2011-07-27 16:32:48 -07:00
Ramesh Sudini
9a87deb538 DataConnection: Clear cid when entering inactive state.
Bug: 5083242

Change-Id: I0657739da54bc424433063a2244d045e47411e5f
2011-07-27 15:04:24 -07:00
Robert Greenwalt
22d93a0d71 resolved conflicts for merge of 41394a36 to honeycomb-plus-aosp
Change-Id: If4dc99c558dc45c9a7ff8d3ea5be69578b4ee793
2011-07-26 15:26:02 -07:00
Wink Saville
bfce70342f am 32d106e1: Filter out addresses that are 0.
* commit '32d106e154d0388ac13774fad3c58ff60ba9ae8f':
  Filter out addresses that are 0.
2011-07-25 15:31:44 -07:00
Wink Saville
32d106e154 Filter out addresses that are 0.
If the address is "any" address, i.e. an address which is all zeros
for both IPv4 and IPv6 ignore it.

Bug: 5073048
Change-Id: I8b9f64103aaffd001114a672375ff5f99616c327
2011-07-25 15:26:56 -07:00
Wink Saville
895de9269f am 051660d4: am deb62be2: Merge "Configure RAT dependent retry pattern in GSM DCT." into honeycomb-LTE
* commit '051660d4d6d293f4b561bc6a772c70aa077a578a':
  Configure RAT dependent retry pattern in GSM DCT.
2011-07-24 09:15:39 -07:00
Kazuhiro Ondo
d2dd1e657c am 9820a9d2: am 4281817f: Allow suggestedRetryTime to indicate no retry is needed.
* commit '9820a9d299dc46f2a9037866ddf61c4782cf9186':
  Allow suggestedRetryTime to indicate no retry is needed.
2011-07-24 09:13:52 -07:00
Wink Saville
051660d4d6 am deb62be2: Merge "Configure RAT dependent retry pattern in GSM DCT." into honeycomb-LTE
* commit 'deb62be2e87b19e9bbbc668f8d9327b12dba4a3b':
  Configure RAT dependent retry pattern in GSM DCT.
2011-07-24 09:13:26 -07:00
Kazuhiro Ondo
9820a9d299 am 4281817f: Allow suggestedRetryTime to indicate no retry is needed.
* commit '4281817f6b624cb51926eb24fa78c68cd9431dce':
  Allow suggestedRetryTime to indicate no retry is needed.
2011-07-24 09:11:42 -07:00
Wink Saville
deb62be2e8 Merge "Configure RAT dependent retry pattern in GSM DCT." into honeycomb-LTE 2011-07-24 09:11:28 -07:00
Kazuhiro Ondo
4281817f6b Allow suggestedRetryTime to indicate no retry is needed.
If suggestedRetryTime is 0x7fffffff then no retry is needed
and the framework should not initiate a retry.

Bug: 4949208
Change-Id: I3756ef6a3e93beec4ee95863cbc111b9952e5e06
2011-07-24 08:10:53 -07:00
Kazuhiro Ondo
789df167fa Configure RAT dependent retry pattern in GSM DCT.
In case GSM DCT is used with EHRPD, retry pattern should follow
the ones for CDMA.

Bug: 5058426
Change-Id: Id9badc9ac14fb20ac62c1746061f056fa2f9ed1b
2011-07-23 13:48:12 -07:00
Kazuhiro Ondo
3372c1ef78 am b7ad442c: am 1c82f56f: Display CSIM SPN only if camping SID/NID matches CSIM CDMAHOME
* commit 'b7ad442c90146f736c6268c21e34a87fbcab6335':
  Display CSIM SPN only if camping SID/NID matches CSIM CDMAHOME
2011-07-21 18:19:21 -07:00
Kazuhiro Ondo
b7ad442c90 am 1c82f56f: Display CSIM SPN only if camping SID/NID matches CSIM CDMAHOME
* commit '1c82f56f2453a8a7c83090017ab2427a74829b9a':
  Display CSIM SPN only if camping SID/NID matches CSIM CDMAHOME
2011-07-21 18:15:26 -07:00
John Wang
1a15b03f62 Merge "Remove APN type in notifyDataConnection." 2011-07-21 17:06:08 -07:00
Kazuhiro Ondo
1c82f56f24 Display CSIM SPN only if camping SID/NID matches CSIM CDMAHOME
Fix to resolve conflicting ERI and CSIM SPN. CSIM SPN should be
only used when camping SID/NID is listed in CDMAHOME record.

Bug: 5057486
Change-Id: I6c5961bb53cc6257237fa5a93a0acd067b12d009
2011-07-21 17:04:58 -07:00
John Wang
343112fb15 Remove APN type in notifyDataConnection.
Using APN_TYPE_ALL in notifyDataConnection causes data
connection state to be set as DISCONNECTED all the time
because apnTypeToId returns INVALID_ID for APN_TYPE_ALL.

bug:4972999
Change-Id: Ieb79194575dd97fa4bd7ef2bd8202030aa282d84
2011-07-21 14:46:11 -07:00
Kazuhiro Ondo
aed294985c am 5abddc73: am bf361b59: Return IMEI SV if CDMA-LTE mode is used
* commit '5abddc73a57da304029b6034b13f69079dcbd83a':
  Return IMEI SV if CDMA-LTE mode is used
2011-07-19 12:41:58 -07:00
Kazuhiro Ondo
5abddc73a5 am bf361b59: Return IMEI SV if CDMA-LTE mode is used
* commit 'bf361b59e4e6c1c7c710e73260a77e9937f1fb59':
  Return IMEI SV if CDMA-LTE mode is used
2011-07-19 12:39:39 -07:00
Kazuhiro Ondo
bf361b59e4 Return IMEI SV if CDMA-LTE mode is used
IMEI and IMEI SV should be available in CDMA-LTE hybrid system.
IMS SV value is not yet returned.

Bug: 5042972
Change-Id: I733825e95f802605e06887951e226d26baea8ff2
2011-07-19 12:06:12 -07:00
Wink Saville
865e684652 am 6e8c7dd2: am cd4636ec: Add LteOnCdmaDevice system property.
* commit '6e8c7dd2128b2a46f5d56ed46d4d530af6ad38f5':
  Add LteOnCdmaDevice system property.
2011-07-18 18:42:41 -07:00
Wink Saville
6e8c7dd212 am cd4636ec: Add LteOnCdmaDevice system property.
* commit 'cd4636ec08a50ab890acab0cf0c3c3f07f91896a':
  Add LteOnCdmaDevice system property.
2011-07-18 18:39:41 -07:00
Wink Saville
cd4636ec08 Add LteOnCdmaDevice system property.
Provide a system property which may be
optionally set at build time.

Change-Id: I253ff0df7c8f8c5627c775fb0cff2cb831157eed
2011-07-18 11:32:55 -07:00
Dianne Hackborn
de4c26fa1a Fix a couple static leaks.
Change-Id: If2564dc822fbcb3bb3baf270ad2b3c29c78bf421
2011-07-17 13:49:27 -07:00