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: I3f22e46940f62a223453bd05314eae2a642c899a
Launcher3 : Enable cling for all devices

Don't limit cling to just phones

Change-Id: If5c1cf4ae39e5dbbac4b3d1a8d2620d365939252
Allow some customization in Launcher3

This patch allows a user to customize:
- Grid with and height
- Default homescreen position
- Visibility of the search bar

These items can be configured in a new Activity, which replaces the system
settings as target of the icon in overview mode.

Shortcomings:
- Bounds for cols, rows and defaultWorkspace may need to be adjusted
- When one of the values changes, the Launcher activity gets recreated
  completely.
- When searchbar is hidden, you also lose the visible hints for the
  remove/appInfo drop targets.

Change-Id: I5006d01f8a85e4daf3c3bb9a3dfb57c70e968878
Launcher3: add missing layout_width and height

fixes launcher3 fc on note 10.1

Change-Id: Id0d5b76d104c8e30041db9ba93f3267818cb758f
Merge "Launcher3 : Enable cling for all devices" into android-4.4
Merge "Allow some customization in Launcher3" into android-4.4
Merge "Launcher3 : checkItemPlacement fixes" into android-4.4
Launcher3: FR translation

PS2: correction

Change-Id: I2198b9992ad488da7e160ff36baeb196cee02946
Launcher3 : Make priveleged app

Enable LOCAL_PRIVILEGED_MODULE for launcher.
This seems to be required to gain widget priveleges by default.

Change-Id: Iae2ce085129b39bcc3591ced5f7938d63cebf722
Launcher3: IT translation
by ale8530

PS: Removed non translatable string

Change-Id: I380c414a711623a555872d04fd75fa06edebfcc8
Merge "Launcher3 : Make priveleged app" into android-4.4
Launcher3: Fix overviewmode overlay

Currently pressing the menu key will cause the overview settings will appear
under the app draw. This allows the menu to only be created if in the workspace

Change-Id: I6c5b8e142f10d534a45d591573ad57c2dfd12c26
Merge "Launcher3: FR translation" into android-4.4
Launcher3: SV translations

Change-Id: I258668079849eff9c6cd3e8707c1dcbed1c5a742
Launcher3: EL Translation

Change-Id: I59f2cf8add0502676fdb7c8c4fff5af0c4d1a953
Launcher3: Icon pack support

Some love for Launcher3 users
based on CMs Trebuchet

PS4
Add iconMask/iconBack/iconUpon/iconScale support

Change-Id: I2c3d29cfbceca060defd53980244e90dc46eb322
Launcher3: RU translations

Change-Id: I2378d03d77f706e276f3fa4ed5ebaf370f607be5
Launcher3: FR translation

Change-Id: I96241c19b96f0bc5b21c00249ac821e44e0f12fb
Launcher: Add hotword detection

PS1: Added static hotwords detection for voice search, similar
to the Google Now Launcher. By saying "ok google" or "hey google",
Voice Search will start.

PS2: Cleaned up recognizer restart logic and unneeded code

PS3: Added configuration in the settings fragment, fixed a crash when
turning the launcher in landscape when in Settings

PS4: Now listening to custom hotwords :)
Demo video: http://youtu.be/SFv4P_1VTfo

PS5: Fixed crash on pause when no hotwords were setup

PS6: Fixed hotword enable checkbox not working

PS7: Muted the beep-beep, not without consequences as Google are
stupid enough to put that stupid beep-beep on STREAM_MUSIC, cutting
off currently playing music when we mute the stream. Added
a checkbox to disable voice recognition if music is playing.

PS8: Turned off debug flag, ship it

PS9: Whitespaces cleanup

PS10: More cleanup, added NEW_TASK flag, unmute audio when
leaving the launcher

Change-Id: Iaee82faba58aba9f1ed084ea93f5bf4fa3df3b5f
Launcher: FR translation

PS2: correction

Change-Id: I46268fd686fd0d050021b006672ee3e8283d698b