Clean up protected apps code (2/2)

- Work with actual component names instead of converting them between
  ComponentName and String all the time
- Some misc. coding style adaptions

Change-Id: I7401ea471d618936e880e6d542744f80f89ce40f
Fix Settings Panel bug causing frozen overview.

Previously, toggling search panel would freeze Overview mode
until the user exited back to the regular launcher. Also, the current
page would be lost. Fix this by computing the new scroll bounds
immediately when the setting is toggled.

Change-Id: Ib3587cfcea61e15b3d8b280113ce986cc57f2f9d
Fix CMHome related bugs.

1. If "Search Panel" is enabled, when dragging an app icon to a new
   screen, the 'glow' effect for the next page will highlight the entire
   height of the screen instead of just the workspace view height as
   expected. This bug exists in launcher3 and GEL. Fixed here.
2. Older versions of the Google Search app do not respond to
   Intent.ACTION_ASSIST and can crash Trebuchet when it tries to launch
   Google Now that way. Instead, use searchManager.globalSearchActivity(),
   which matches the method we use to detect Google Now's presence anyway
   (+ being "search app" agnostic!)

Change-Id: I5e5b3504272e2a2ca656accc32164d1ae9e52077
Merge "Clean up protected apps code (2/2)" into cm-11.0
Trebuchet: always set initial wallpaper offsets

After a fresh boot, computeScrollOffset() always returns false. So the
result was the offsets were never properly being set on a fresh boot and
they were only being applied on first drag of the home screen, which
finally triggered computeScrollOffset() to return true.

Change-Id: Iccaedd742bed861fca1f50dd54e2e4537fd4c9b0
Minimize greedy UI updating for Live Settings

Change-Id: Ib475af4bea7d45e36ca87be6b66a60d15018aa5b
Smooth out slide in/out animation for the overview panel

Change-Id: I742d2248b7cf70767f9e776d88db6fc1aaa767ce
Trebuchet: launch framework WallpaperPicker

After long pressing on the home screen and selecting "Wallpapers"
Trebuchet's activity was being called.

We have now switched to framework's WallpaperPicker activity, so open
that one instead.

Change-Id: I97165350f1b995ae921eebbc126eb3e0e2396963
Signed-off-by: Roman Birg <roman@cyngn.com>
Fixing issues introduced in 31cc95a0:
 - HotSeat needs go visible/invisible when transitioning in and out of overview mode
 - Animation listener for setting alphas needs to remove itself when the animation finishes

Change-Id: I654c0e700c9bc3f77692ed653f8158cec1f2430b
Fixes:
 - Hide search bar if live settings are toggled in overview mode
 - Restore workspace outlines in overview mode after live settings changes

Change-Id: Iee9894f674c78ba3c82486de97e34d610c04a2a5
Fix for disappearing icons bug.

Change-Id: I5c23a70e4202f07082b63eabe7afe67edd0d78b3
Protected Apps:
 - Fix remove all apps button bug

Change-Id: I6029831878923b40f3db1b0dc6cfbd81ccc10d33
trebuchet: remove CALL_PHONE permission

The CALL_PHONE is not needed by the Launcher, and is a costly money permission.

Change-Id: I262dabf192706fd28115c6896cb5673491fe2e5d
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Trebuchet: Add a string for JA translation

Change-Id: Ifeac487af7797175863632412b9b82ad8c3acbdb
Trebuchet: Update dummy strings

Change-Id: I17123069ef8f45caf37edb02ddc94ec8e0f9216f
Fix Overview Panel glitch when animating Workspace into overview mode.

Change-Id: I12cd8e6e96cdebadfa42590152c4c16e644aded3
Trebuchet : Require for all users

Make sure trebuchet is enabled for all users
and not able to be disabled.

Change-Id: Ia5424d633f4d5e327b71400a83d1b1b753ccc7c1
Automatic translation import

Change-Id: Ife0eca9f0077f17fdeb62c42f526a7185d4b389f
Revert "trebuchet: remove CALL_PHONE permission"

This reverts commit 2168cc82e4c349d62db8476a914d80cd041a7d8c.
Direct call widget is broken.

Change-Id: I3e8fe0e0ff77cf0ccff17701b5f40f2a62ae8d3f
Trebuchet: Further adjustment of panel overview glitch fix

 * These values takes care of the glitch also on legacy
   480x800 devices.

Change-Id: Ia901699351ed887a9100bbec6d10be9e92b50c14