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
Revert "base: quicksettings: allow flip animation on clicking a tile (1/2)"

This reverts commit 82d066475a87c3555e949780a0c6823ae7e59e6e.
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
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/quicksettings/AirplaneModeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/LocationTile.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

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/LocationTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/TorchTile.java