Support for LTE/GSM mode

Added LTE/GSM and WCDMA preferences

Change-Id: Ia66dfb13545342f8214c1cc5bf4057ae27f19372
Settings: Check Null Pointer Activity in InstalledAppDetails.initiateClearUserData().

If Fragment doesn't attach to one Activity
getActivity() will return null. So we need to check it.

Change-Id: I22e2300dba962b878faa0b2d16feb839554883fa
Author: Jianchun Shen <jianchunx.shen@intel.com>
Signed-off-by: Jianchun Shen <jianchunx.shen@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 63725
WiFi: Fix Null Pointer Exception in Wifi Settings dialog

This patch checks that the activity remains available in the
dialog onclick callback before using it.

Change-Id: I1886b87498455e890962415a864da803c94561a4
Orig-Change-Id: I1d7aba1b43a00568dcfaf580e7082aadc12ebde5
Signed-off-by: Loic Poulain <loicx.poulain@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 122149
Memory.java: disable remove unmount/mount button until unmount/mount is done

Disable unmount/mount button since the end user will click them again before
the setting is updated. So disable them until setting updated the status

Change-Id: I8bc6a06a76bd4636e4c65a334ee00503118d5bbf
Author: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 47861
Settings: Backup account becomes grey and cannot be tapped after check the "Back up my data".

Rootcause: If there is no valid back up transport, by default, Android
will use LocalTransport, which is only for debug perpose and dose not
have valid config intent.
The back  up transport is set  in settings provider.
And in back settings, the config intent is not
validated after enable back up is checked.
platform should think about to provide valid back up transport in RHB.

Change-Id: I2924b1a7c656eb8f3a7c079866bc3f012cb01f74
Author: Jianchun Shen <jianchunx.shen@intel.com>
Signed-off-by: Jianchun Shen <jianchunx.shen@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 51126
WiFi: "Connect" option disappear after rotating.

The connect option disappears because there is a problem in saving and
restoring the state of the access point showed in the dialog box. When a
rotation accurs, the framework calls onSaveInstanceState(Bundle outState)
of the wifisettings activity. In this method, the state of the access is
saved, but not its rssi level. After a rotation, when restoring the access
point state, the rssi is initialized to the default value, which means out of
range. This is why the connect option is not displayed. I fixed the issue by
saving and restoring the rssi level of the access point.

Change-Id: Ibd58132c922828941603673383ff81f25d61556e
Orig-Change-Id: I624cc8ce82a69fd94931088dc0f7833663ef0772
Signed-off-by: Paul Naoumenko <paulx.naoumenko@intel.com>
Signed-off-by: Jean-Marie Lemetayer <jean-mariex.lemetayer@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 34109
Fix device scanning in DevicePickerFragment

In some conditions, the BT devices scan may be blocked with the phone
displaying "no devices detected".

This behavior is reproduced on Galaxy Nexus reference phone.

This patch will fix the behavior in most of the scenarios by doing a
device scan by default.
However, the device scan will still be blocked upon screen rotation as
this is the expected behavior.

Change-Id: Ic999355db93eeeca97435da9d894c13e4bd97ce8
Orig-Change-Id: Iaef4d8857b006de1e68854d23e0810a433727f4d
Signed-off-by: Patrick Combes <patrick.combes@intel.com>
Reviewed-on: http://android.intel.com:8080/119743
Reviewed-by: Boniface, XavierX <xavierx.boniface@intel.com>
Reviewed-by: Chen, HuaqiangX <huaqiangx.chen@intel.com>
Reviewed-by: Yao, Yong <yong.yao@intel.com>
Reviewed-by: Aquilone, RaffaeleX <raffaelex.aquilone@intel.com>
Reviewed-by: Gros, Julien <julien.gros@intel.com>
Tested-by: Lestienne, ChristopheX <christophex.lestienne@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 124172
WiFi: Add control over SSID size for SoftAP

SSID max length is 32, avoiding to save a too long  SSID (larger than 32 bytes)
prevent to make Softap enabling stuck.

Change-Id: Ibce16b52019d7fc7240517d2869ec0293ed2ae77
Orig-Change-Id: I4fdf56ef0ede609bf73786d2837929d8cb737cd5
Signed-off-by: Honore Tricot <honorex.tricot@intel.com>
Signed-off-by: Jean-Marie Lemetayer <jean-mariex.lemetayer@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 29110
Fix the ANR in Settings

The ANR occured because of performing a long-lasting
operation on the main thread. The patch moves this
operation to a worker thread.

Change-Id: I3ae3999ff073d048dc2a7d38b5adbf7063cd897a
Author: Ovidiu Beldie <ovidiux.beldie@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 39143
fix display incoherence when pairing

The issue was caused by the fact that the list of
devices already discovered was systematically cleared
when a bond state changed event was received.
This fix removes the call to the clear list method.

Change-Id: I9e3644fd74353cb8b8eeda4357d998f68285dd11
Author: Christophe Bransiec <christophex.bransiec@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 34349
Fix polish translation mistake

Both "device_status" and "device_status_summary" should be "Informacje" (Status in english), not "Informacje o telefonie" (phone status in english) just like in
a original english translation. The same string is displayed on both phones and tablets, and it says "phone status" also on tablets only in polish translation.

Change-Id: Icf4ef3a70b15f3964f1d53181755b2577d0e6850
Added support for EONS

Status will now recieve a sticky broadcast and update the operator name
accordingly.

Change-Id: I21b52864b68fbbfe8a3ebf1fc123ebef5833afcd