Classic Recents [1/2]

Makes the recents menu like the one from GB.

PS: Code exists in Android base. This commit just invokes it.

Change-Id: I878b4ef70c74ce06884b4e0778c28d4caab08548
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
Remove favcontact toggle
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: Idb714907aee4044ffc8d272b43ddea63c8c45996
Frameworks: Custom Shortcut Quick Settings Tile (1/2)

This is a slim bean unique feature : multiple QS tile for custom shortcuts
With this feature, we can have shortcuts to:
- An app
- An activity inside an App
- A contact
- A direct call to a phone number
- A specified folder
- A browser bookmark
- A direct sms to a specified user
- etc
The icons can be changed by the user to: default, system icons or from gallery
Thanks for blk_jack and kufikugel for making the task easier for me with their
notification and lockscreen shortcuts

PS2: center the icon on the tile and take the computed size
PS3: added some titles and made the shortcut picker not cancealable by the back button
PS4: now it is called Custom Shortcut with intelligent icon resizing
PS5: improve tile content management
PS6: fix compile error by removing 2 old unneeded files from git
PS7: provide resoures for mdpi, hdpi and xhdpi
PS8: added some details to the commit message
PS9: display contact's photo if shortcut points to a contact
PS10: some code cleaning and optimization
PS11: improve icon management and tile content sharing with settings app
PS12: resources renaming to match quicksettings ones
PS13: more resource renaming
PS14: stretch icon on the tile size if the shortcut points to a contact (except for system icons)
PS15: Show contact photo when choosing a direct call/sms shortcut (with a nice overlay icon)
PS16: change tile label in all translated strings.xml files
PS17: inflate generic tile layout when the icon is smaller than the tile size
PS18:
- change icon handling for normal shortcuts to fit other QS tile UI
  icons are multiDpi resized + text is in a line now
- bigger code cleanup
- rebase on delete fav icon commit
- put out translation strings into seperate commit
- some minor stuff
PS19 + 20:
- calc moved out from updateSettings()
  no need to do it every time let us
  save resources
PS22-24:
- rebase on latest frameworks fix
PS25:
- display quick contact instead of contact app
PS26: white spaces and tabs clean up

- rebase

Change-Id: I36f7807414ff92419ff575d22ed3e0dd73ec1d74
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/strings.xml
Squashed commit of the following to remove pie:

commit 2f6a2fa1df3c53ba4e6f5d798a429b8ae0d07d95
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:12:07 2013 -0400

    Revert "Liquid Kangs The Whole PIE (Credit Below)"

    This reverts commit 3bdc92e3b383d265b9fdc76d41d0ad6c510c4351.

    Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

    Conflicts:
    	packages/SystemUI/res/values/dimens.xml
    	packages/SystemUI/res/values/strings.xml

    Change-Id: I2701a37fcaee96e75e0af47141ccf98e39511cad

commit 0ac91aaeaf32729584bd34234ca2fdd8118cab0f
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:09:41 2013 -0400

    Revert "That shouldnt have been there... bad cherry-pick."

    This reverts commit 80e80d1fae186cdeb17c5dc10a62717b749dfa2b.

commit 773e8385697bd4c43732016992bb1e22630b611f
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:09:29 2013 -0400

    Revert "PIE: improved touchhandling, no emptyangle, better animations"

    This reverts commit d9a7aee188a3c6b3d91aed0ee8f660fa1cd4601b.

commit a68f09a96eb4eaee61a4d2d6d2c6dbdb381fa2f1
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:08:41 2013 -0400

    Revert "PIE: support for expandable notifications"

    This reverts commit aaeaf228ccbd3dfe9a471d309e3acbc295930858.

commit 52e42a575a93bbb9ce8f3676448e887e3510487a
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:08:30 2013 -0400

    Revert "PIE: clear all button"

    This reverts commit e13a4c58ddd8768db188322ab7e5e6f7669d2756.

commit 6e4d28877107d70baea0594f9181b01c49697782
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:08:19 2013 -0400

    Revert "PIE: header with time and date (+///) for both panels"

    This reverts commit a66d26db047b0a078e577b1076533c8e040d7c08.

commit 7ad400697c6aca9b28a3cef2b238fbdcd7fd1c46
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:08:09 2013 -0400

    Revert "PIE: /// is ready for prime time"

    This reverts commit 49cf0a46834136afadfd16a9b3973f4809e55c14.

commit c9523b124573701faa420dd48894c3942274d2fb
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:07:57 2013 -0400

    Revert "showAlways..."

    This reverts commit fb34bc9e07217ce98af7126df855c7554358943c.

commit cc4ae1390f9cffd68a4046859e1551fe765bd28b
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:07:46 2013 -0400

    Revert "PIE: one finger swipe-up for notifications"

    This reverts commit 647df354a35dabf686628c37363ac474e9aaac19.

commit 1f6de529ab6d963c55bc2177d6a8f90cecd12106
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:07:32 2013 -0400

    Revert "remove lastapp from pie menu... threw off the layout."

    This reverts commit 0c54756554787e9c9264ae73da21448b52c7635a.

commit 478f980b266332bbc19b4f0e9bc0d4af891e839a
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:07:16 2013 -0400

    Revert "Disable pie only if lockscreen is secure."

    This reverts commit 103941666cdd36288743bd37fd9f311238df2d01.

commit 05301489521134a427f52227a38990616117ecaf
Author: scotthartbti <scott.hart.bti@gmail.com>
Date:   Tue Apr 16 23:07:02 2013 -0400

    Revert "Pie: fixed all issues"

    This reverts commit c955ce5555fecd334e662121f6a681211b28bd97.

Change-Id: Ic69644d06a9edb2805c0213d007db75aac7fdd51
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>
Frameworks: SlimPIE extended (1/2)

This commit introduces SlimPIE. A very popular feature which
was till now for us no point to integrate it because it did
not fit our concept. Now I found a bit time to program a PIE
which is much more extended then the usual kanged PIE on
most roms but still resource friendly. At this point
many thanks for the great basic idea to PA and the work
from Jens Doll from CM. Based on this ideas SlimPIE goes
it's way now.

@kangers....we would like to see if you can wait till we
released this feature this week.  Thanks a lot.

Features of SlimPIE

- custom Buttons (user can choose between 11 different default actions (like navbar/hardware key bind)
  + custom app/shortcut for every button
- custom longpress action for every button (user has  same possibility like the normal custom Button)
- button quantitiy up to 5 buttons (so 5 + 5 longpress actions are possible)
- selectable trigger positions + trigger width (with optical help to set up)
- turn off text and status information + abillity to hide statusbar information which are redundant
- turn off snap points
- turn off background
- ability to use SlimPIE only on expanded desktop as well as using it always
- integrated logic disable triggers which can conflict with system actions
  (like statusbar or navbar.....SlimPIE detects if one is present and turns this edge off
  temporaly)
- same for snap points
- option to disable bottom trigger and reduce left and right trigger when
  IME keyboard is active

Style feature:

- button color + transparency
- button pressed and button longpress color + transparency
- button outline color
- snap point color
- text color
- background color + transparency
- for every shortcut user can choose a  custom icon from gallery
- custom icon color
- custom icon  color mode (only system icons eg or gallery icons + system icons or all icons)
- Pie size

Also it is possible via overlay to set a minimum, default and max trigger height
due that some phones need a bit adjustment on that (this setting reflects on
the trigger seekbar in settings user can adjust)

Screenshots:

https://dl.dropboxusercontent.com/u/106208842/use_it_for_app_shortcuts.png
https://dl.dropboxusercontent.com/u/106208842/other_colors_or_icons_no_problem.png

Last PatchSet:
- reduce trigger sizes and disable bottom trigger if IME shows up
  optional in trigger settings, default value is on
- DEBUG mod fixes
- autoHide feature worked in
- string corrections
- some minor fixes

Change-Id: I9bcc88375bbd770b0f5bd24fc84aaf7cdbf17238
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/BatteryController.java
Frameworks: correct recovery icon for PW and QS tile

Change-Id: I62fb34324efeddcb71ef4f3212df8068b6e452f6
Frameworks: fix possible NPE

due a race condition this can happen....prevend it

cheers

Change-Id: I65222389c6b0beecaebed915644ab5e800c5f119
Frameworks: Fix possible NPE

if a QS tile does not exist any more...in this case we
had favorite contacts and removed that feature....ppl which
setuped it before on older builds and do a dirty flash
will run into a FC then

cheers

Change-Id: Ia05a7cfc91c0dc43e15df8f30c355f414c95207f
Frameworks: ability to turn off SlimPIE (1/2)

due that we have a problem on i9100 because of damn
exynos drivers we give the ability to turn off PIE
for i9100 via overlay for now

cheers

Change-Id: Iee41684c5dc42e15d43d2ca6b9ad3088d4c7d607
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	core/res/res/values/config.xml
Frameworks: Race conditions can be funny

especially on slower phones. Whatever this commit
changes the disable logic for PIE on lockscreen.
With this correction SlimPIE is now unbreakable
lmao

cheers

Change-Id: I442f771b57f1cbeb661418dea17ca0f4362428c5
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
Frameworks: kufikugel should not work with headaches

small correction....now all triggers are disabled on
Lockscreen like it should

cheers

Change-Id: I33b23e082135662635eb304726ae075ad26a1f41
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
enhance togglenotificationshade
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: I8af7d0ec112ca7832885cb2eaaa15b5487493f55
Frameworks: Ehance toggleNotificationShade feature

allows to toggle notification drawer in any situations
on fullscreen mode as well in expanded desktop mode
and on all other features we have
cheers

Change-Id: I56185f2c48700d9f2d69c02585810db4e95e2e32
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Fix possible memory leaks.
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: Ic478aba9af21da54e4d7e40df2cc0a4d69a30879
Support for lockscreen camera widget toggle and disable camera
by default.  Allows the user to decide if they want the camera
widget or not.  Also upped the max widgets to 15.
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: I9eddf987da569ec0d951602e35304f53730078b6