FW Port : Force TabletUI at any dpi based on the work of barrmulio @ XDA (1/2)

original thread : https://github.com/burstlam/android_frameworks_base/commit/00eee2ff1147ad650c1f5ea7ffc2ca50929e3fd3

Change-Id: Ib66f6011999adfb90f30dc2518ed6f4c6eadc23f
Port FW: Menu UI Overflow Toggle (1/2)

Adds the ability to show the Menu UI Overflow (3-dots) within apps, regardless of navbar being present or not

original by: BMc08GT <bmc08gt.teamb00sted@gmail.com>

https://github.com/burstlam/android_frameworks_base/commit/c66c51f111ecef3e3fea0d755f446f8871a0e41c

Change-Id: I2505159f8dcd2edc0d3aa6fd29073348f67f8112
Port FW : Force Duel Panel Mode (1/2)

Change-Id: I36fb9a6cc169aa25af5a8895f37740e8d722dd41
SystemUI: don't add tint to app icons or custom images

Change-Id: Ie5a4e308f10d2045f33b1621eac7870712e5d11f
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Toast: fix force close if called from system service

If a toast is created from a system service, an application context
will not be available, use the service context instead.

Fixes
http://code.google.com/p/android/issues/detail?id=40058
http://code.google.com/p/android/issues/detail?id=40075

Change-Id: Ic643f4557fa04476819cd2c3ee640b735eeae429
base: Support for speedy's .com and smiley key.

Change-Id: Ica2a63d13b90f49645cda59e1205abd6420c22c3
Keyboard: Use a smiley dialog picker instead of hardcoding one smiley.

Change-Id: Ib88d58f905aeadd59cf3eb1dc08dc10584de2eb1
hide new CharacterPickerDialog from public api

Change-Id: I44873b72c3f0f6e84416ade267510e3a39cb3ef9
card emulation patch port to JB

Change-Id: I73fe9aa30830951ea5b9d44e9a9bf83cb720e567
Added Synchronization block to avoid Race condition

While removing the top activities of crashed process from the
history stack sometimes it was leading to race condition and decrementing
history stack index twice. because of this index out of bound issue was coming

Change-Id: I2a5667d36aaa7c3b7adac347db6c9bc7429d9444
CRs-fixed: 381904
Fix FindBugs issues

IntProperty: Infinite recursive loop
SQLiteSession: Null pointer dereference
UsbStoreActivity: Null pointer derefence
LocationManagerService: No relationship between generic parameter and method argument
ActivityManagerService: Call to equals() comparing different types
ChooseAccountTypeActivity: Possible null pointer dereference
RuimRecords: Possible null pointer derefence

Change-Id: I9d631c50c30eb98e32cca5a5085513b6904db676
libaudioeffect_jni: GREF leak fix for JB

- Excessive JNI global reference in AudioEffects.
- Global references created during native setup
  are not deleted.
- Global references are deleted in setup failure
  and during native release.

Change-Id: I302b7f8de7189f85fd07167b950f85795ffc5ef1
CRs-fixed: 413633
Postpone sending scroll message to webcore thread

Post a message to the UI thread instead, to send the
scroll message later.

Change-Id: Iff94af37e9070e63e0797195c7588343ab077bb3
ActionBar: Compute required items prior to optional items

When computing if a item should be shown in the action bar, required items need to be compute prior
to optional ones. Otherwise, in some cases (when the optional menu goes to the left of required
items then the algorithm could determine that optional has space to be shown and force the show of
required items, causing the required items to not be shown).
A concrete case is in the Email app. In the message_view_fragment_option.xml are defined 5 menus,
that when are all shown (xe: in Exchange mailbox account type) the bar is complete filled. But if
the overflow button is forced to be shown (the device has no permanent menu key) the overflow button
overlaps the older button, because space of 'ifRoom' items are wrong computed.

Discussion Change: http://review.cyanogenmod.com/#/c/22396/

+ aosp change https://android-review.googlesource.com/#/c/34700/
Prevent empty overflow popup when there are no overflow items. (jakewharton@gmail.com)

Change-Id: I6fc8e3e202d76f9704d7ec2383c7ee6f7b05ba76
Improve tethering notification icons

Replaces the stock icons with the ones I submitted as part of
http://review.cyanogenmod.com/#/c/15930/ in CM9.

Change-Id: Iecfae9ad579c6c9ae06da0a08b61e9359a8a37b0
Smooth Spinners: Makes the loading "spinner" animation smoother in non-holo apps

The loading "spinner" animation is quite jerky by default when the progress xml's from
drawable are called in applications that don't use the holo progress animation. The holo
"spinner" animation is already smooth by default. This makes every other "spinner"
animation smooth.

We've been changing this value in all ROM's we release, both AOSP and CM based ones
as well as stock ROM's, since it gives a more polished look to the entire system. In the past
3 years we've been using this small tweak we have not noticed anything that would
adversely affect battery life or system operations as a whole.

Signed-off-by: Sar Castillo <sar.castillo@gmail.com>
Fix sluggish to launch an app

The new trace feature/code in 4.0.4, which will dump the app stack
trace every 500ms if an app cant be launched within 500ms, is
holding the global ActivityManagerService lock unnecessarily. It
slows down the apps startup
PackageManager: fix app lib migration for device with /datadata

For devices using /datadata, dataPathString will point
to /datadata while nativeLibraryDir will point to /data/data.
Thus, compare to /data/data directly to avoid problems.

Change-Id: I11149cf9cc5a573cc85513e12d3569b514f5ffb5
Add Background_holo_dark.png

Change-Id: Ied535eabf2e58b674f30d6e8a5630cc73a65e344
Port Fw : Quick Unlock and Home, Menu Key Unlock

Change-Id: I04fa76158f93d6484aded1d343e0a2238dbe22e0

Conflicts:
	core/java/android/provider/Settings.java