Active notifications:

combine active display and lockscreen notifications. Also improve
and modify/fix up the originals

David96 -> lockscreen notifications
clark scheff -> active display

Change-Id: I91c00dbfbb302a0de43f202f1c957380d62ec809
Bluetooth: GAP: Avoid adding device to cached device list

Change will ensure that devices will not be added to the cached
device list if profile connection state is STATE_DISCONNECTED
or STATE_DISCONNECTING. Otherwise, devices will be added to cached
list and while inquring device will not be listed in available
device list.

CRs-Fixed: 586975
Change-Id: I60bc01c0f2cb5ea87f3c633bcec2f04c90939d67
Bluetooth: HID: Use proper values of connection status

This patch fixes issue in retrieving correct connection status when
more than one hid device was connected to DUT. In such situation
current implementation was sending STATE_DISCONNECTED as connection
state because of wrong check of matching device as 1st device in
connected device list. Instead of this now actual connection state
device is retrieved from HidService.

Change-Id: I2c766e9fc6eb9e97c3745016e38fa5c374c16539
CRs-Fixed: 593065
Merge remote-tracking branch 'cm/cm-11.0' into HEAD
Merge "Active notifications:" into kk44
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
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
This fixes crash caused by null pointer

The crash is caused by a null pointer.
This patch prevents the dereferencement of the pointer when null.

Change-Id: I7a5aa23342bf7e6ba072c8bd2533ae574e2d0150
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: 42641
Fix one NPE in tethering setting

Once we not declare BT feature, go Setting->more->tethering
will trigger this NPE.

Change-Id: I4736e7bade261475acda74e26250a81452018ffa
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
Settings: Fix the memory leak in Settings

Fixed the memory leak in both InstalledAppDetails

Change-Id: I3520b3c1fe1bf98e3baec2ee989eb215164a7cf2
Signed-off-by: Zhijun Peng <pengzhj@marvell.com>
Fix WifiManager melory leak, change context to getApplicationContext

Change-Id: Iba90045c4e31537defeec7a6f965d3b764065864
Signed-off-by: annieyu <annieyu@huaqin.com>
settings listview fixups:

rename active D and lockscreen N stuff to active notifications
move the feature to system_ui_xml & remove icon
move superuser back to where it was on 4.3
name notifications back to notification drawer
make controls preference category in vanir interface
make more fragment for misc features in vanir interface

PS2: add excluded apps for lockscreen notifications

Change-Id: I0551e12a8d9892f90a2181f3798d9afd8d5bfc60
Merge remote-tracking branch 'upstream/kk44' into kk44