Frameworks: Add Widgets viewpager for all devices (2/2)

First thanks AOKP for the basic idea and some parts of code.
This commit gives the ability to show up a viewpager with
custom user set widgets. It is bindable to navbar, navring
and to hardwarekeyboards. It works with navbar enabled as
well as with navbar disabled. Like every time we polished it
Slimusual a bit up.

Change to the original widgets viewpager
- bindable also over hardwarebuttons
- shows also up without navbar
- color settings for background and text
- transparency of background (default 25%)
- settings complete overwork
- TRDS compatible
- complete overwork of widget height handling
- multiDpi (thanks mnazim)
- slimup and a lot improvements and fixes

cheers

Change-Id: I64c1a56131616769588500c0faedb7eec6f59249
Add Lock volume keys in silent mode [1/2]

Prevents silent mode from accidentally being unset by volume keys

Forward ported from GB

Change-Id: Ic1df89b8e10bc87f7e125441141a73a39aea1474
Translate core and SystemUI

Fixed some minor strings

Fixed one more small line :-[

Noticed 2 more reboot messages

Changed lang specific case

Translated commits I04451d8b4669ae0d4f798010a4c61e5e82990b76 and I2273f8f0bdb726ec34f00a6fb205b1bc6e795cfa

Fixed some char issues

Translated commit Ibfe193c505aff01cace25a0dd4544dea7d622ecb

Commit I64c1a56131616769588500c0faedb7eec6f59249 translated

Renamed Power tile to Power :)

Change-Id: Ie2eecbcb9312a4c697dbb6935b87f7c64b20e089
Frameworks: Fix brigthnessslider PW

overlay config_screenBrightnessDim is on jb4.2 completly
controlled over the Powermanager....no need any more for it
+ fixes weird jumping issues on some devices which added
 config_screenBrightnessDim value

cheers

Change-Id: Ia67115611489fca837070b27e8a85509e519cfda
Fix: AUTO_TIME and AUTO_TIME_ZONE moved to Global google :p

Change-Id: I6a76e6fed0210d7dee21b17c94294b6cea9c28cc
Frameworks: airplane_mode_on moved to global google and CM :p

Change-Id: Ie7bcabe62190c2fe5ec520ccc1d6d04dad94c228
Wifi: Enable Ad-Hoc (IBSS) network configuration

This adds two public but hidden variables to WifiConfiguration: isIBSS and
frequency. These are used for configuring IBSS mode.

WifiConfigStore is exended to get and set these variables to wpa_supplicant
(via WifiNative).

Change-Id: Iab02c3d738c05c2de036350ea77b78789213e357
Wifi: Add IBSS supported method

Add method isIbssSupported() to WifiManager and related classes to query wether
the driver supports IBSS mode. The query is answered by wpa_supplicants new
command "get_capability modes".

It will only return a correct result after WIFI_STATE_ENABLED has been
reached.

Change-Id: I93aa2fdff94cd897c91ec3beb7e58940d1de7b72
Frameworks: fix volume button swap for tablets (1/2)

Change-Id: Ia2f3afb0fbc80d2a669d8ea9c0ed896352d794bf
Merge "Frameworks: fix volume button swap for tablets (1/2)" into jb4.2
FlingTracker can divide by zero and hang StatusBar in an infinite loop

if 2 events have the same timestamp then FlingTracker in PanelView will divide
by zero causing NaNs. the bug is usually triggered by rapid StatusBar up/down
dragging activity and updateCarrierLabelVisibility can then loop indefinitely
looking at NaNs. the user visible symptom is that StatusBar refuses to pull
down and is burning cpu time.

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: I0791c6bea953bf03346185fc6aaf44aaea79aace
Frameworks: TRDS new qualifier push up qualifier number (1/2)

Hey guys,

after this feature is working really well and a lot roms kanged
it we got a hint to change one thing which is indeed a good
idea to have less problems on AOSP updates and tools like
Apktool can provide us better without doing major changes every
AOSP update.

We pushed the number up to 69.....should be enough for
next years.

Please note for the one who are using our gapps at the moment
this will break actuall gapps till we published the new one
which will be end this week as usual.

After that we will begin to publish the apktool after we had
now enough tests....and who knows maybe the "official" Apktool
will provide us all now. So all in all a good time to change
the qualifier now before it is getting more and more
popular (we saw that first themes are providing us)

cheers

Lars

Change-Id: Ie1aeab38420cb825f6f7c1d0a5220a8bb55fc4c3
Merge "Translate core and SystemUI" into jb4.2
Merge "Frameworks: TRDS new qualifier push up qualifier number (1/2)" into jb4.2
Frameworks: Fix/part revert for longpress home button

du that the navring for all feature is still not ready
to avoid user complains we bring back longpress navring
on home button back.

At the moment new feature NavRing for all this will be again
removed and replaced by a better function

cheers

Change-Id: I6bf704ad1e98f63258bfef701c908997bbc5d0ca
Frameworks: Fix recent show from navbar sometimes weird

things

cheers

Change-Id: Ib7069be558a3e3ff0c058bb636a09726760863f6
Frameworks SystemUI: give proper permission for new superuser

Change-Id: Ic66abaa2e9a917e4469328fa6025d0f97a1691d9
Tighten enforcement of file modes.

Bug: 8275867
Change-Id: I4da14f2dd0049aca69636999696c1f3c02b3b792
Remove opaque check in GLRenderer when preparing dirty region.

Since preserved swap is enabled, we need to clear the color buffer
when the scissor rect is prepared for a new process. This prevents
garbage to be present from the previous process in the color buffer.

CRs-Fixed: 391492, 403067, 405916

Change-Id: I1f72a3dee2f5d58a984f4cd367c9f7bf08ab9d6a

Conflicts:

	libs/hwui/OpenGLRenderer.cpp

[PATCH] Remove opaque check in preparing dirty region

Since preserved swap is enabled, we need to clear the color buffer
when the scissor rect is prepared for a new rocess. This prevents
garbage to be present from the previous process in the color buffer.

(cherry picked from commit 2b5e584e2615852b68a69bb529c6926190246b64)

Change-Id: I92a4fa35e0746f12fcd736e21fd30d9c4b644a8a
CRs-Fixed: 391492, 403067, 405916

Conflicts:

	libs/hwui/OpenGLRenderer.cpp

Enable scissor when preparing dirty rect that is opaque

Now enabling scissor before setting it in the opaque case, previously was not doing so.

Change-Id: I1ea904cf01603096e423556090564291ab712d36
CRs-Fixed: 465346
Depends-on: 278453
Add Camera sound toggle [2/3]

Adds a toggle to disable camera sounds.

Credits: AOKP

Change-Id: I14bdfc1b9558cd41e96149d111da66d93c95150b