Pie updates

This seems to have fixed issues where Pie controls show underneath the Quicksettings pulldown
and when its invisible but still functions, at least in my testing
Bug #14 disable pie on lockscreen

Change-Id: I4647aade6292cf49e5372e52d2ecff3bfe4b51f6
Only disable pie on lockscreen if lockscreen is secure

allows users to acess notifications and quick tiles from the lockscreen
and still be secure. following aosp behavior

Change-Id: I8addbc958ec4e3211f9916b3428d3e3486b1c5a3
increase touch sensitivity

Change-Id: I77e6aeca3667808e630dc142a2e561d3ddddef80
remove some lag launching apps and improve scrolling

Change-Id: Ib10c11a1a3a798e57ddd31f550461b9ebd17bc38

Conflicts:
	core/java/android/widget/AbsListView.java
DERP
Fix building after removing sound files

One day someone could eliminate redundant files by consolidating the ringtones and ringtones/ogg
libaudioeffect_jni GREF leak fix

- excessive jni reference in AudioEffects
- global references created during native setup are not deleted
- global references are dleted in setup failure and during native releases

Changeset 2:
    -fixed whitespace, and rebased on jb42

Change-Id: I3ff54cc3b0c5394e978421dad3a7a257551f776e
postpone sending scroll mesage to webcore thread

post a message to the UI thread instead, to send the scroll message later

Change-Id: Iaf234effb77f1d8c6a50c9c288c5e8c269b38e40
Another optimization of glyph cache uploads

Previously, cache textures were updated whenever mCurrentCacheTexuture was changed.
Since updating cache textures needs glTexSubImage2D call, frequent changing
of mCurrentCacheTexture (which can easily happen when an app uses lots of unique glyphs
even with precaching) caused many glTexSubImage2D calls and bad framerates.
This patch optimized isssueDrawCommand function. Consequently, changing mCurrentCacheTexture doesn't
cause glTexSubImage2D call any more and it will improve font rendering performance.

Change-Id: Id19d959fa0e69eeb2a39f83a57e311d7394586b2
Signed-off-by: Sangkyu Lee <geteuid@gmail.com>
selectable text in gtalk

Change-Id: I9fe3634dfdc64cb37ece7f431d12845c164d639b
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
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
Fix in-app buttons on gmail, etc.

Revert "ActionBar: Compute required items prior to optional items"

This reverts commit 986786913f4bfea72c85e53952914124ab25bb16.

Change-Id: Ifcbe9a1cb539d0459aa528814fe9aa7dacc34456
REVISIT: remove some lag launching apps and improve scrolling

    CHANGES:
        AbsListView:
            Clear cache when aborting previous fling
        Activity manager service:
            Reduce unnecessary locking in message handler
            Move a few locks relating to idle activities from inside
                a foor loop to outside. would rather hold until it's
                done than get stuck waiting for something else to release

    Change-Id: Ie59615bfad90e3d7acd4f95367248868497e172d
Make ActivityStack hacks more conservative with their mutual exclusion, as was before.

Change-Id: I30bc63337087e198701d3f89e44e80bb22e30f1e
Fix Launcher2 FC's

Made createBitmap not throw an exception when creating a 0x0 bitmap.
Now, it returns a 1x1 bitmap when called with width=0, height=0.

Change-Id: Ifbaee46b8b3ec23b9511c683aae388c2eca4b833
fix potential memory leak

use delete before return

Change-Id: I5449ad90bb6910f057bd825b722c9803a7343c34
Remove unnecessary locking for screen broadcasts.

The actual handling occurs in updateScreenOn() on the other side of a
handler, which acquires the lock correctly.

Change-Id: Ibd359446dba8e88f81d34f1e10a6b5e150348f89
Fix regression in ListView click handling

Regression caused by patch a607223f34

If an item click handler results in the ListView becoming detached
from the window, the performClick runnable could be executed twice.
Null out the mTouchModeReset runnable before running the click handler
so that it is not run by the detach handler.

Change-Id: I2fab60232027bb4876f9912088e0ffb9b17d308c