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>
Fix icons overflowing status bar view in center clock and date layout

Based on @maxwen commits
1 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
2 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
3 - https://github.com/maxwen/frameworks_base/commit/b5f7820e50fd03522b5462777779a4520594c796

All credits goes to him.

Change-Id: I23be4b166941159d6b5891442bfcefa3678a0603
AOSB Recent App iPhoney UI

PS1:
Use CM RecentsHorizontalScrollView

PS2:
Remove commented out line and add method descriptions.

PS3:
Persist locked tasks.

PS4:
Use persistentTaskId.

PS5:
Fix landscape layout

PS6:
Check NavBar Height size Set Clean Image layout

PS7:
Fix UI animation

PS8:
Add pressed drawables

PS9:
Apps can be locked and unlocked from being clearable in
the recents panel by selecting the option in the popup
menu when long pressing the item

thanks for: CM Team , wfmtooopa , 0xD34D

Signed-off-by: hany <hany.alsamman@gmail.com>

Conflicts:
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/res/menu/recent_popup_menu.xml
	packages/SystemUI/res/values/probam_strings.xml
	packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java
WTF? Remove KeyguardTestActivity

Hope this improved battery life

See this:
http://image.thinkingbridge.org/keyguard.png

Signed-off-by: hany <hany.alsamman@gmail.com>
Quick Record Tile Save Location

Quick Record Tile now saves the file in Podcast folder inside your SDCard.

░░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄░░░░░░░
░░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄░░░░
░░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█░░░
░░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░░█░░
░▄▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░░█░
█░▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒░█
█░▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█
░█░▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█░
░░█░░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█░░
░░░█░░░░██░░▀█▄▄▄█▄▄█▄████░█░░░
░░░░█░░░░▀▀▄░█░░░█░█▀██████░█░░
░░░░░▀▄░░░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█░░
░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░▒░░░█░
░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒░░░░█░
░░░░░░░░░░░░░░▀▄▄▄▄▄░░░░░░░░█░░

Change-Id: I2c49d0c92d6a1c90fc892b3ab440958aae73bd0a
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickRecordTile.java
mediaeditor: Fix c++11 narrowing

Summary: Depends on D309 D310

Test Plan: verified

Reviewers: randall.rushing, jriordan001

Reviewed By: randall.rushing

Differential Revision: http://review.codefirex.com/D312

Change-Id: I34a0e0e0fc9879e6c4a12a1dd8375dd409042878
Signed-off-by: DHOMD <DHO@dho.im>
Fix NPE causing a hot reboot when pressing power button

Change-Id: I7331f1abf70d131af8e0c09694f174fffd5fb9ef
SystemUI: Add missing sound permissions for screen recording

Change-Id: If948aabfd5c2e09f192f12aa02830d39346d2c6c

Conflicts:
	packages/SystemUI/AndroidManifest.xml
Revert "Smoother Upload and Download Animation"

This reverts commit 73b2efc91810c441472fa5beb3589a4d8695d99b.
base: quicksettings: allow flip animation on clicking a tile (1/2)

ported from https://github.com/BeerGang/android_frameworks_base/commit/ba144b2defd209c2c020366316c65b288bf68880

Change-Id: Ic5e3b6c1eee902fd59c1d54ac6c5efb8cffad4ba

base: Fix derp
Change-Id: I79e0e44738ad1b32b5f30f2f1223e20711c9b3e4

Signed-off-by: hany <hany.alsamman@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/AirplaneModeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/GPSTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/LteTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/PerformanceProfileTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/ProfileTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuietHoursTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/TorchTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Frameworks: fix sdk build

ups....derp

Change-Id: I990ec0808b6aa264b4d92d6829484441e4c842e6
Keyguard: Ensure that a widget and page is attached before attaching the ChallengeLayout.OnBouncerStateChangedListener

otherwise it can result in a NPE due that the page was not loaded. Especially on low end
devices this can happen (see zoomOutToBouncer() method @KeyguardWidgetPager)

Change-Id: I7e940eb2fdf885f158f4c5ff2872ebafcda76da0
Frameworks: Notification Reminders (1/2)

Click notification header to set a reminder
Long-click to dismiss current

Change-Id: I68d6eab8893419e8ec192d45f1e6b42ddff3e62b

Conflicts:
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/liquid_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Revert "Better expose 'QS Tiles and layout' function"

This reverts commit e062133f9db7d5b4ede866fb9e8c5d31fc084345.

Conflicts:
	packages/SystemUI/res/values/liquid_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
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

Modifications, 1 tab == 4 spaces

Change-Id: I3ff54cc3b0c5394e978421dad3a7a257551f776e
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
Revert "Set circle charging animation default to none"

This reverts commit 0f7c351dc0ab777147a4165ccb32e27ab35e5c15.
Revert "fb: fix rounding issues and take density into account"

This reverts commit df3aa92ff9e21c6e42f13cbe07d10c3de808d42f.
Revert "fb: add bottom margin to stock default battery icon"

This reverts commit fcedcdb0f8b0658a91fb9a7c2a7334d421ceaeac.
Revert "Fix battery icon with percentage showing "!" and percentage only color when under 14%"

This reverts commit 0935449c898b12dfa0132b7afc3808c580c03070.
Revert "fb: fix qs battery tile on normal icon due of left over"

This reverts commit e49cd886af0b6542a8e74229fd536ade127b0713.