ProtectedAppsReceiver: fix NPE when components are null

 * To reproduce: create a folder at Trebuchet, lock it and leave the screen

Change-Id: I49a2e76fdaa3e375b0ea5aa2bb05eaa92528dd19
Settings - Display Rotation: Checkboxes to Switches

Change-Id: I631c0ef65985d336e1a0790b6bb07ef7524ff6b2
Signed-off-by: STELIX <ssspinni@gmail.com>
[1/2] Settings: Add support for OP_ALARM_WAKEUP

Port from cm-10.2 and cm-11.0

Author: Sam Mortimer <sam@mortimer.me.uk>
Date:   Mon Sep 30 23:10:35 2013 -0700
[1/2] AppOps: Add alarm wakeup op
Change-Id: Ic739519cb9df9d2c67d65e3572a119b4d55145f0

Change-Id: I417742d00f60b487942ee2adf9b75d2b04a0f766
Settings: fix appops delete sms string

Change-Id: Ic312212e6bd56ad90b15c56c40d9fdae626d1bd3
settings: Fix warnings

Change-Id: I51fae71c7c4f820aeee0479d89ab873993c02a7a
Settings: Fix blacklist settings crash

Change-Id: Idd261aa9f8e2867312aaaece26150671b177994c
Settings: last app action in long press

Change-Id: I72d9cb5bca5eedd20ea80ee69d370a478e59def4
Bluetooth: GAP: Handled scan mode during first time BT On

As the discoverability time out concept changed as per the
new design and this code snippet "setting scan mode to
connectable only when endtimestamp is null" is not
applicable.DUT remains in only connectable mode
if user remains in the settings menu.

Change-Id: I7aa2ea7d23c4a47f716e2c0645b2ad73018ada39
CRs-fixed: 714578
Bluetooth: Don't Initiate Connection if UUID not updated

 - if UUIDs are not updated don't initiate profile connection
 - add new profiles to already existing list
 -  don't delete profiles from the existing list

CRs-Fixed: 717840

Change-Id: Id71a5aad59f4004c262f3ad17f34fa0574654170
Telephony(MSIM): Register for subInfo record intent

Register for ACTION_SUBINFO_RECORD_UPDATED intent,
this is to update the SIM details on UI when card
hot-swap removed.

Change-Id: I18d908c9845afb81478a81530407021c8e7f5fbe
CRs-Fixed: 742968
Bluetooth: Enable Page and Inquiry Scan.

When Bluetooth Setting is in foreground enable both
Page Scan and Inquiry Scan.
Changes made to make device both in connectable and
discoverable if user is in Bluetooth setting menu.
CRs-Fixed: 753990

Change-Id: I2d72ce3192f6b7fa9eb6beb5a175a3e732dac5a8
Fix issue that there is no indication to tell user the data sub changed
when disable one SIM slot.

Add a toast to indicate user that data sub was changed when disable one
SIM slot.

Change-Id: I18f818ee77f3bb24709146389facd128a86dfd6e
CRs-Fixed: 656074
Bluetooth: GAP: Reset Alias name during virtual unplug

As per this fix Alias name get resetted when hid virtual
unplug initiated from HID device.

Change-Id: Idb1cba447072fd70c21cfecef8776b2baaf730bc
CRs-Fixed: 754689
Modify code to get data_state from phoneStateListener.

Modify code to get data state from phoneStateListener
instead of TelephonyManager.

Change-Id: I965acf29c24d724676beaacd318e3ccfc1542ed8
CRs-Fixed: 755443
Telephony(MSIM): Disable PIN1 option when SUB is not READY.

When Subscription in not in Ready state, it is not possible to
interact with uicc app for enabling/disabling the PIN1.

So disable the PIN1 options when sub is not in READY state

Change-Id: I0b17fce2d22f9d77618e5303a4b89e83d34cbb63
CRs-Fixed: 662114
Bluetooth: Refresh UI after checkbox is Unchecked.

 - Refresh list of auto-connectible profiles when
   Checkbox is unchecked in disconnected state.

Change-Id: Iddca04cbb06262556ea7decb39279df26e358eb6
CRs-Fixed: 758480
Bluetooth: Security: Add Null check during pairing cancel intent.

Added null check, so before posing event we can restrict events,
if cached device list is empty

Change-Id: I458d181abe5eec2497b80b1713ddbc3502b79786
CRs-Fixed: 546364
(cherry picked from commit 7d7222c3e5c1054b4e2f3e59cc40cb182a72b040)
(cherry picked from commit 8ce523155dd030d82c32cf502d317023b017645b)
(cherry picked from commit 938686e749bca911e5f63150223116d1c381da8e)
Bluetooth: GAP: Handled Null pointer deference in unregisterReceiver

Handled Null pointer deference in unregisterReceiver event of
pairing dialog

Change-Id: Ie0d0561cb3c0f09a018e1aeb20579700c6e8d783
CRs-fixed: 761872