PreferenceActivity should not leave message in looper when destroyed

When a PreferenceActivity is destroyed as soon as created,
there is a problematic case that messages for the activity are
sometimes left in the looper even after the activity is destroyed.
For example, by clearing user data of the selecting IME on
Settings apk, com.android.settings.Settings is re-launched
2 times successively. (Destory->Create->Destroy->Create)
Due to the left message, application crash can happen.
(NullPointerException at BackStackRecord.getBreadCrumbTitle())

Two cases have been found to observe this issue.
[Case 1]
 1,Launch IME in advance.
 2,Go to Settings >Apps > All and choose the IME package.
 3,Click "Clear data"
 4,Application crash occurs on com.android.settings.
[Case 2]
 1,Go to Settings > Language&input > Language.
 2,ListView dialog to choose language is shown.
 3,Rotate the tablet 180 degree so that 90 degree rotation occurs twice.
 4,Application crash occurs on com.android.settings.

Change-Id: I5ce36ea7a40ab7bc7737b7dca6641a4c3d77a480
Remove bold text. Normal looks better.

Change-Id: If70271705bc488e279e7783b45ea1223382ef060
HALO: drawables are completely fucked

-Fix wrong size png's
-Add missing png's
-Make all png's more consistant
Signed-off-by: Paul Beeler <sparksco@gmail.com>

Conflicts:
	packages/SystemUI/res/drawable-hdpi/halo_back_left.png
	packages/SystemUI/res/drawable-hdpi/halo_back_right.png
	packages/SystemUI/res/drawable-hdpi/halo_bigred.png
	packages/SystemUI/res/drawable-hdpi/halo_black_x.png
	packages/SystemUI/res/drawable-hdpi/halo_dismiss.png
	packages/SystemUI/res/drawable-hdpi/ic_notify_halo_normal_grey.png
	packages/SystemUI/res/drawable-mdpi/halo_back_left.png
	packages/SystemUI/res/drawable-mdpi/halo_back_right.png
	packages/SystemUI/res/drawable-mdpi/halo_bg.png
	packages/SystemUI/res/drawable-mdpi/halo_bigred.png
	packages/SystemUI/res/drawable-mdpi/halo_black_x.png
	packages/SystemUI/res/drawable-mdpi/halo_dismiss.png
	packages/SystemUI/res/drawable-mdpi/ic_notify_halo_normal_grey.png
	packages/SystemUI/res/drawable-xhdpi/ic_notification_overlay.9.png

Change-Id: Ifcdb2a1904b230f0fa565c56c573143de186c831
get rid of this guy after boot is completed

ps2: recycle stuff more smart-like
ps3: use mHandler for the bootcompleted receiver

Change-Id: Ia277be2d0e47f452b8ece192b4ca181c9630793b
Add additional Method that check whether a table is empty or not

Application Devleopers are using queryNumEntries API
implemented by "COUNT(*)" to check whether a table is empty or not.
COUNT(*)  has to process the entire table to compute the result.
But, "EXISTS" can stop after a single matching row has been found.
So, Using "EXISTS" is more faster than "COUNT(*)"
I added new API using "EXISTS" to check whether a table is empty or not

Change-Id: Idcc2633d0a5349c59f41e125cf34c9dc6622cdbe
Fix occasionally flickering music control widget.

The problem was seemingly related to the player abandoning audio focus
while the playback state was still set to 'playing'. In that case, the
transport control was removed from the keyguard host because it had no
listener anymore, but later was re-added due to isMusicPlaying() still
returning true. Re-adding it lead to it re-registering with audio
service, which cleared the display due to nothing being connected, which
lead to the detachment listener being called again, which in turned
closed the loop.

While this may be a sign of a buggy player app (it should stop its
playback prior to abandoning audio focus), this situation still should
be handled gracefully. Fix the problem by simply reporting no music
being played while no remote control client is connected.

Change-Id: Id6834d38bc6faa3b6455ac66b413443f85606785
Close notification panel when swiping away the last clearable
notification.

Change-Id: I4e5114f66e799a7c80e18b38abce5678da460846
Fixes for clang
PackageInfo is a class, not a struct.
String16 is contained in the android namespace. Do not namespace prefix it
within the android namespace.
Explicitly specify which std classes are necessary to prevent ambiguous
type errors. (map, set)

Change-Id: I56a4ca0b0950aa56e0da220d13f052ba4a79b4b2
Mixed delete/delete[].

Error found via valgrind.
Fix for NULL pointer exception issue in
ChooseTypeAndAccountActivity.java which is causing android
runtime error which eventually blocking monkey events.

Change-Id: I36afb79eb69a5acdc4c1805dcb6b8c6434899c2e
Signed-off-by: Kiran Kumar Raparthy <krapar@codeaurora.org>
Fix requery behaviour of MemoryCursor.

As we can't restore the contents of the cursor window, we need to keep
it on deactivation so we can restore it on requery().

Change-Id: I06f688bbe9120c307bdc3ddbc3833416becdec82
Add a delimiter between scheme and host

Bug: 6923539
Change-Id: I49aac145e8e80a5af7475cfe93ef4a353d2d3fe6
Ensure install-during-restore is like install-then-restore

When we've installed an apk from the archive, recheck whether
to apply the system-uid policy restrictions around file system
restores.

Bug 8833099

(cherry picked from commit 2baf6dcfcf7fc1705db25e64dc0cb11fa3509d39)

Change-Id: I972fe1543f2234aa76baf562d6f806175ac0248e
Fix misspelling of getLteSignalStrenght.

Change to getLteSignalStrength.

Change-Id: Ie2acec9e01af0e64a61902383f06729a7cee1975
Facebook Sync Dirty Hack
Frameworks: a bit taste of android 4.3

most changes are under seems to be under the hood and are
not mergeable due that we have no code...... UI changes
are minor....but our lovely Roboto font is pimped up on the
new android version. So here we go

cheers

Change-Id: I139bcdeaefe5125ba8974fc88423c62d62b1b429
Keep on notification LED while dreaming.

Change-Id: I407e34f9c60d3140f78abca133b4fda5dd45f311
JIRA:CYAN-689