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>
Total and available fields missing in Settings storage menu

After formatting SD card or inserting an SD card the total and
available space fields in Settings storage are missing.
This fix add those fields after SD card has been mounted.

Change-Id: Id6c1d1963effdb9656c8eb1c567b913bc4d98bd2
Fix memory leak in ManageApplication

ApplicationsAdapter new a Session member and make it has a reference to
it self. If we don't release it explicitly, the cross reference will
cause memory leak.

Change-Id: Iecce35ae1d56d98cee6347e84d3a3ff57f3b15a5
'When to daydream' dialog does not follow the JB dialog design guide

The dialog is a single selection popup and according to the
dialogs design guide the popup should close when the user
has make his/her choice, but in this case it does not.

Change-Id: Iac6bc19146a88236d3253d2d846212ce09b4925b
Merge "'When to daydream' dialog does not follow the JB dialog design guide"
packages/apps/Settings: Rename persist.sys.dalvik.vm.lib to allow new default

Bug: 12798969
Change-Id: I1937c2ff758214e1c9d369e475ae4efbba4f9dec
Merge "packages/apps/Settings: Rename persist.sys.dalvik.vm.lib to allow new default"
Merge "Fix memory leak in ManageApplication"
Merge "Total and available fields missing in Settings storage menu"
Bluetooth: GAP: Cancel the pairing notification on bond state change

Cancel the pairing notification on bond state change happens from
BOND_BONDING to BOND_NONE.  Otherwise it will present in the
notification area until it gets cancelled by opening it and press
cancel on pairing dialog.

Change-Id: I96f673e29e612cd748165a1323a5b4a4276a843c
Merge "Settings: Fix the memory leak in Settings"
Merge "Bluetooth: GAP: Cancel the pairing notification on bond state change"
Set 24 hour pref. with ACTION_TIME_CHANGED.

Sent as a boolean extra EXTRA_TIME_PREF_24_HOUR_FORMAT.

Change-Id: I7fbd59eacdeb298d046da950d7045f0bab53b462
Merge "Set 24 hour pref. with ACTION_TIME_CHANGED."
Revert "Set 24 hour pref. with ACTION_TIME_CHANGED."

This reverts commit d5d9d373619de3437593763578854a83f5539306.

Change-Id: I76eeb6f95a4cbbd241db1fb90528b4d91ddf7707
Merge "Revert "Set 24 hour pref. with ACTION_TIME_CHANGED.""
HTML injection fix for bluetooth pairing, issue 65946

During bluetooth pairing, HTML injection is possible via the device name displayed to the user. This escapes the device name, before creating HTML from it, so it will preserve things like < and > but will not affect rendering of HTML

Bug: 12976386
Change-Id: I8a02d3be8c1a779dc9ed1c9ef8083a1159ab3f2b
Merge "HTML injection fix for bluetooth pairing, issue 65946"
Revert "Revert "Set 24 hour pref. with ACTION_TIME_CHANGED.""

This reverts commit 9ebc27c73e7096159024605a2c4ab1a4b3abbd83.

Change-Id: Id440bd004fee696472aeec9eefa5732755b19627
Merge "Revert "Revert "Set 24 hour pref. with ACTION_TIME_CHANGED."""