Francofy yup

Some cherry-picks AOSP

Fix a programmatic smooth scroll bug

Bug: smoothScrollToPosition() stops at child view of which height is
higher than list view itself.

Change-Id: I695ca9db4c706aa7f365967dd3916f9a01917346
Signed-off-by: Yongyi Li <yongyi.li.cn@gmail.com>

Properly rotate full [-pi, +pi] orientation range if available

The code currently in place assumes that orientation has a range
of [-pi/2, +pi/2] as may be found with a touch digitizer. However,
when used with a digitzer that can report the full [-pi, +pi] range
of orientations (e.g. a stylus) the calculations here are incorrect.

This patch checks if the post-rotation value is out of range for
the axis, and wraps it back around.

Change-Id: I03a22f7bf9526a5d995df1a18430d6dd24c6d6ee

Fix spurious ANR occurence when MOTION batch event is not served by the InputTransporter

Sometimes Batch event of MOTION type is not processed by the Input Transporter
even though it is queued to the waitQueue-Responsible for ANR whenever any event
response does not come from the App. To fix this issue, one Boolean lock is added.
Thus InputTransporter wont ignore the Batch event.
Issue: https://code.google.com/p/android/issues/detail?id=41755

Change-Id: I3bb2eb4cf1f8ecdd1d04671c0e8205dee4ad3a6c

Revert "Fix spurious ANR occurence when MOTION batch event is not served by the InputTransporter"

This reverts commit 022eb04f1ec31cb98bf42bd27ffac7c315135e35.

Smarter feedback for moved properties

Previously, getting and setting moved (old location works but is read read-only)
 properties both warned. Now, getting a read-only property is NOT warned, and
 trying to set a read-only property is logged as an error, not a warning.

Change-Id: I2b93620a3634c0e8b14ebe7cbfb94bf6d7ade374

Low-end devices need help!

-> Check for wakelocks faster
-> More granular hidden apps selection
-> Kill hidden and service_b apps at higher lmk
-> Rearrange OOM values [similar to SuperCharger! But not exact]

Change-Id: If6163a8c15b8c3ec622a44124609be21b4359e36

derptastic fit XY for thumbnail container.

looks like i don't have to write one from scratch LOL

Change-Id: Ie0192bbdbcfb22a8d3b0c379d317b0728b1c6d62

Revert "Tighten enforcement of file modes."

This fixes the issue where apps like Facebook and the Play Store
would randomly crash upon opening.

This reverts commit 589cf5e946788062595bd1c509dbf0852e09f466.

Change-Id: Ic17464f488a99ae152426910ac251ab082dc12c9
Signed-off-by: DHO <DHO@dho.im>

Adjust margin of ActivityPreference

This will use all the space available in Settings and RC

Change-Id: I9c92770a5f4315eb50fb350d6a60d3789e424f59
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Allow the theming of packages with uppercase letters

Change-Id: I559ac5a50d463296e54e292cfbae9312a0e15352

remove hardcoded -fno-strict-aliasing from F/B/core/jni

need to test if it causes bugs.  it builds fine.

Change-Id: Ie20868922d13396d8aaf984424ac0255c0b75a68

Remove unnecessary updateSurfaceScreenOn call.

review.cyanogenmod.org/#/c/34757/1/media/java/android/media/MediaPlayer.java

This change stops updateSurfaceScreenOn() from being called one time
right after another. It's called at the end of stayAwake(boolean awake),
which is called right before updateSurfaceScreenOn() in release().

Change-Id: I9647bbca30834f918f3d62f88377ddff7406bdf0
Signed-off-by: DHO <DHO@dho.im>

No FC if no Calender and 1000p Style