Trebuchet: Default workspace fixes

* Replace AnalogClockWidget by cLock Widget
* Add "no telephony" workspaces files. New favorites:
    - Phone -> Email
    - Contacts -> Calendar
    - Mms -> Contacts
    - Browser -> Browser
* Add sw600dp and sw700dp update workspaces files

Change-Id: I41e81f908339b68df8109611c88ee092b4ab7b9d
Trebuchet : Default workspace improvements

Ported from cm-10.2

Adds support for fallback in default_workspace

Change-Id: I2590ae2d5e3c1b6124061581b9ffa206d611c608
Trebuchet : Port default workspace

Port default workspace from cm-10.2

Change-Id: Ia817baef17e2edc8c384d215f2d2cba07dd21be9
Trebuchet : Append packagename

Append package name to activity name to ensure more
exact matches.

Change-Id: I67e61c100503750cb2d7d443cf03c808f0604421
Launcher3 : checkItemPlacement fixes

This patchset addresses two bugs :

1) Incorrect casting of key causes mismatches
2) On hotseat items 2 and above, the occupied hashmap is populated
with the CONTAINER_HOTSEAT key, however if its a new item and its required
cell is not already been taken, the code falls through to the workspace checks.
Make sure hotseat items are treated separately.

Change-Id: I1898c6d688cc428a355fdf062218fcda40da98e4
Fix L3 and old Trebuchet migration

There can only be one original-package tag. Go with com.android.launcher3
for now, and move Trebuchet back to com.cyanogenmod.trebuchet. This will
allow for workspace migrations from both CM10.2 Trebuchet and from CM11
Launcher3

Change-Id: I7743954bffc55f503851038f800607947e20015e
Fix Settings not working

    As this is being shipped with and aapt flag rename, the settings is
    being constructed with our custom namespace instead of AOSP. Net result,
    without this patch, settings don't get read properly.

    Simple test, toggle Search Bar visibility (with and without this).

Change-Id: I2683f713e04dda57f00c5e2b491e6b2498dae850
Trebuchet : Use consistent shared_prefs

PreferenceFragments by default use getDefaultSharedPreferences(), which
is inconsistent with the rest of our settings.

This patch ensures its consistent and renames SETTINGS_KEY away from
package name space to avoid future confusion.

Change-Id: Ic6323a6b392e01b27f7ba20cbd61ec9705bc5845
Trebuchet : Layout fixes

- Fixes excessive padding of searchbar on tablets
- Ensures proper use of numCols regardless of screen width

Change-Id: I42215db1ae328be16b0d996c26a25431442bcf97
Fix invisible voice search

When 'show search bar' is disabled, you can still tap the voice
search icon's position (even though view == gone) to launch search
action.

Partial fix borrowed from 10.2 http://review.cyanogenmod.org/#/c/21584

PS2: Use available variables instead of changing one to protected
PS3: Fix mis-paste

Change-Id: I268d0e1108992028fd324d42e7dc8b6e11c757eb
Trebuchet : Show cling for allapps overview

This patchset adds a cling for the all apps indicator overview mode
as by default it is not very discoverable.

PS4: Strings + fixes

Change-Id: If7e91a0e123c0fbc4d4f4ed6ef35c1ff7b1abfb1
trebuchet: fix shortcut permissions

Change-Id: I7be91884a7e0f041d7ffbdf7efdb8a33dc344d4f
JIRA: CYAN-3363
Issue: https://jira.cyanogenmod.org/browse/CYAN-3363
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Trebuchet : Show allapps cling only if app drawer

Change-Id: I3f9a72fc020d2e0b4f57856bfcd6503581a3749e
Merge "trebuchet: fix shortcut permissions" into cm-11.0
Trebuchet : Wallpaper picker check if cursor null

Check if media store has any images (cursor != null).

Change-Id: Ib303b0ace9c4b834be0b61727b8512b5e326a949
Merge "Trebuchet : Wallpaper picker check if cursor null" into cm-11.0
Trebuchet : default workspace

Change default screen to screen 0 (far left screen) to match
Launcher3. Clean up default layouts for various device types.

Also fix missing layouts for allAppsCling.

Update: Replace Books with Hangouts
Update: Clean and add non-GMS fallbacks
Update: Fix MMS being in sw70-non-telephony
Update: Cast checkitemplacement to long
Update: Layouts and avoid rounding issues for sw600dp

Change-Id: If0c3ad5ffcb8e2ee4b811251c0360f7512c31fdb
Trebuchet: Cleanup preferences

* Remove misleading summary from Homescreen settings. It says "Screens and wallpaper"
but there are no wallpaper settings inside. It also seems to be unnecessary,
removing it brings us inline with the rest of the preferences
* Remove unused string: preferences_interface_title
* Hide Drawer & Dock settings until we actually have some settings there.
Users freak out when they tap these preferences and nothing happens.

Change-Id: Iedd4c809a0a8fbf17e22a65b941fcd43e662da3f
Trebuchet: Fix layout on sw320dp devices

Before: http://i.imgur.com/luxulCl.png
After: http://i.imgur.com/Wvk1QQo.png

Change-Id: I22f8bd02e1f135d8f8f062b34429d5230aac71e9
Merge remote-tracking branch 'cm/cm-11.0' into next