Default orientation to Portrait instead of Landscape
[WIP] Focal: Revamp the sidebar UI

This commit revamps the way the side bar
and widgets UI works. While keeping it
mostly similar to how it used to work, it has
been changed to better fit quick gestures.

The sidebar now have bigger icons and a short
text description beneath each item (Note to
translators: Some text might be too big, there
is a limit of 2 lines to keep it clean).
The widget panel also uses bigger icons and are
scrollable, with the description of each icon
scrolling in marquee. A widget can be dismissed
by swiping its "title bar" to the right.
Widgets can also now be pinned to the main screen,
so that they are immediately accessible without
having to open the sidebar. Their toggle icon
then appears on the main screen instead of the
SideBar.

This also fixes the cling not showcasing the
views at the right place, and maybe one or two
other bugs.

This is still a work-in-progress and a few bugs
are to be expected (especially in landscape, I've
mostly tested it in portrait).

Change-Id: Iddac7f25d7db76bc93843b10068d4245fdce1e31
Switch package to fr.xplod.focal

Change-Id: I60c52ac4e5c03e70a8c5b12b5059ec82665307ce
Merge branch 'cm-10.2-upstream'
Merge branch 'uirevamp'

Conflicts:
	src/org/cyanogenmod/focal/ui/WidgetRenderer.java
	src/org/cyanogenmod/focal/widgets/WidgetBase.java

Change-Id: I9a85058a7cd8577f3ec30452865dbe7462994b44
Update license owner

So yeah, I now need to do that. I'd still like to thank
the few contributions that were made back when Focal was
on CM, and if any of you would like their contribution
to be removed (translation etc), for any reason, just let
me know.

Change-Id: Ibffe5bf29f8381ed08d4a926ceafb971d5317c15
WidgetBase: Don't use marquee on buttons

Fix the UI issue where marquee would be too
distracting for users.

Change-Id: Ie293a2fa19e5e72db656e1f13389b44c60d2f4d7
drawables: Update icon

Change-Id: I32700e7c4e582d0f46f36c49e5b87b915ba0344e
Reduce GPU overdraw and unneeded invalidate

Romain Guy <3

Change-Id: I2db60ded900314fd4703e7c3b3f0daab0bd7ac10
SideBar: Darken the background

Change-Id: If224cf24d6140e03b4004d4713cf6002f6fc92be
Fix capabilities not getting updated on mode switch

Change-Id: If331e3733c08b4e520352cd323e9cd99565a0145
Fix crash on some devices when switching to Panorama

Change-Id: Iaf08dd586132413cf3a4af2ff416b1d29ffe9e65
We don't need enblend and celeste

We don't use celeste, and enblend has been
replaced by multiblend

Change-Id: I523658a999c6cb494166540f09ba532e556d1e06
PicSphere: Also use app lib directory for PicSphere

Change-Id: I02d6ac26b7fa66caf38a6abbbea96edc6d7fd284
Fix tons of crashes

Now that I have proper bug reporting, I can fix all the bad things :)
Fixes many errors in multiple places, especially for MTK devices (such
as Huawei P6, Cinq, etc)

Change-Id: If621bc97bf8b6c82bcbd8ea1684ad796bc1c64d3
Lower min API to Android 4.1, bump version

Change-Id: Ib5aeab51f9f568b2bfad7cd4165965870b873b4c
Fix missing method in Android 4.1

Seriously, that really only exists since 4.2?

Change-Id: I03be486fa340bae8deebb6d203e097a01db24ec5
More crash fixes

Change-Id: Ib12381cd1869cd6593d99a31fa8c0d3995022798
Fix wrong pictures orientation

Change-Id: I962c2cd0be14a51a20783eebea842818b8792436
Work around Nexus 4 low preview speed

It seems like Nexus 4 defaults to 640x480 size, and as
long as you don't change that, the preview speed is much slower.

Change-Id: Ic1a2f7c138572b787a0fdb775081e5e999180b9f