HeadsUp: Only remove heads up if attached to window

Attempting to remove mHeadsUpNoficiationView from the window manager
when it is not currently attached will throw an IllegalArgumentException
so we check if it is attached and if so remove it, otherwise carry on.

Change-Id: Ida916eba496c4183e47288ef24a8a93c46a7eddf
quiethours: inclusive start hour

If quiethours is defined to start at 01:00 it should start at 01:00 not at 01:01

Change-Id: I0d0fe35a9235fb4bb04794e94f7678ee137d9be7
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
frameworks: set default expanded desktop style

On a fresh boot, a user can add an expanded desktop tile. They can also
add it to their power menu. But until they go into Display -> Expanded
desktop style and set it to something other than disabled, it won't show
up anywhere.

Since the user has to toggle expanded desktop, let's use a sensible
default and avoid the extra step.

Change-Id: I7fbe8c58d85d14c227d5e237260eee4181beafed
Signed-off-by: Roman Birg <roman@cyngn.com>
Themes: Add method to "apply all" a theme

Change-Id: Ic8feaeade6c52707e6b5b17921b1b577b94ec8cf
Themes: Add URI for querying previews of applied components.

Change-Id: I97417901f3b03fc82df5a823970991ddd8092df2
quiethours: do not play screenshot sound

If we are in quiet hours do not play any sound when we take a screenshot.

Change-Id: Ideaa5c11611b7e3c9d6ca4d27e801cd2fb4eadac
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
WallpaperCropper: load wallpapers in the background

Change-Id: I134d94a85f25bf5db4c15fa9a89265c53e5b0c1d
Signed-off-by: Roman Birg <roman@cyngn.com>
HeadsUp: Fix dismiss on back key press.

Change-Id: Ia213aeba114d153f5561622a2bea884963f3d8a1
frameworks: move safe volume warning above expanded volume panel

Fixes JIRA bug BACON-50

Change-Id: I1bc7c4781aa81cccd42281f70b394b7f7d81d3e5
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: improve one finger notification expansion

Fixes JIRA bug BACON-70.

Sometimes the quick settings ribbon would eat the initial ACTION_DOWN
setting mInitialTouchY in the expand helper, but we are clearly not in a
notification that we can expand here. So only set the initial y point if
we are inside the notification scrollview.

Change-Id: I628553ac15cc6b4ee3c682fe46bd1d96c6bc154d
Signed-off-by: Roman Birg <roman@cyngn.com>
InputDevices: Prepare for crowdin

Change-Id: I4e885fe9846aa6bf4e9f208ab54c4f8653ac0942
Automatic translation import

Change-Id: Icbd20ae9e94f705f833d036e1b4a60811b2f7dff
core: Add support for Basque

Change-Id: I67dfa970ee246a5cec571828238a825b322fd935
SystemUI: fix double tap to sleep not working with secure lock screen

Double tap to sleep on status bar would only work on secure lockscreens if the
slider brightness control was enabled.

Change-Id: I7c4dc5b2f559aafae819422d747f92ac59631ffd
Signed-off-by: Roman Birg <roman@cyngn.com>
Themes: Allow theming navbar bg color

Change-Id: I256afc30fc018ea752769029c5246bc7310c23a6
settings: Fix loading of some initial values

Change-Id: I41658dd8dc3f31b4463ae4d4f3cd6f480a0ccba3
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0