Reduce warning verbosity in aapt

- Attributed source of problems to the correct file.
- Only verify string localizations against valid
  locales.
Bug:13140015
Change-Id: I9dabc5efa0510649caee8af0c8ebb803d6f48269

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	tools/aapt/ResourceTable.cpp

Conflicts:
	tools/aapt/ResourceTable.cpp
GlobalActions: Fix Airplane Mode on/off issue

Issue: Unable to turn off Airplane mode from power button
       after phone reboot

Fix: Initialize mHasTelephony before the PhoneStateListener is
     registered to the TelephonyManager so that correct value
     of mHasTelephony is reflected when onServiceStateChanged
     callback is called.

Bug: 13697360
Change-Id: Ide8afd9c16ea90b98b5912dbff440c5fd67b178d

Conflicts:
	policy/src/com/android/internal/policy/impl/GlobalActions.java
Fix problem where PhoneWindowManager waits for keyguard to draw

This fixes a problem where PhoneWindowManager times out waiting
for keyguard to draw when it's disabled.  Instead, we pass a null
token back which allows PhoneWindowManager to continue.

Fixes bug 11190932

Change-Id: I041ea1d88dca681476d9477a3aab54559976b312
frameworks/base: Fix the random UI corruption

On low memory device, when a view goes to background. Its HW layer cache
will be destroyed to release memory. There is a very rare case that the
hardware render is not valid when destroy the layer, so the layer is not
destroyed and reused when the view comes to foreground. But the GL
context has changed, so the view is not rendered correctly due to its
HW layer cache. To fix this issue, destroy the layer in a safelyRun. Make
sure the layer is destroyed correctly.

Change-Id: I1c714e1d53db7353d5169e874a7cd0f527c3f67b
CRs-Fixed: 623239
SlimRecents: Adress the 50ms touch unsresponsive issue

User reported that if the screen is fully animated in that the touch
detection is not working for about the first 50ms. For user who are working
fast this is indeed an issue. Especially due that the recent screen speeds
up the workflow much already.

Problem is our third loading stage due that after the recent screen animates in
it calls getView on all elements which rebuilds the touch listeners and cause to
the slight timeframe where it is unresponsive.

Well the third loading stage was a left over from the first optimizations when
we started to develop this feature. Other optimizations are into place now so we
do not really need the third loading stage at all. So instead of handling now
the fix in the getView implementation of the arrayadapter we simply just remove the
third loading stage completely.

PS:
- small other optimization

Change-Id: Ibf46fbe393de4f9d6b867e6bdb9c331dff1dd38e
Send out USER_PRESENT broadcast on screen on if lockscreen is disabled.

This makes sure to turn off the notification LED on screen on when the
lockscreen is disabled by lockscreen toggle tile.

Change-Id: Ibf2fdcd912a2719d973a253aaf3752add7a22e00
Fix visibility of camera widget on insecure lock screens with DPM

The camera widget should be visible on an insecure lockscreen even
with the KEYGUARD_DISABLE_SECURE_CAMERA policy flag set.

Change-Id: I37ff905c6325be9120b16984d3401f334ad00e4c
Keyguard: We need to ensure that keyguard is showing as well to set the token

Google fix

https://github.com/SlimRoms/frameworks_base/commit/021806ec33f5f59567f3bb3af135b2a1d88c0951

fixes what it is meant to fix.

But still we need to ensure if the keyguard eg is disabled by 3rd party
apps or the keyguard is not showing due of other reasons to inform PhoneWindowManager over the token
not to wait to draw for the Keyguard and go ahead.

Fix:
Just check for isShowing in addition to the check if KeyGuard is disabled

Change-Id: I5f017a6ccebf12dc717fb6d44802a1c1fee15abc
On-The-Go mode [1/2]

On-The-Go turns on the camera of your phone and streams it to an overlay,
which is drawn over everything.
this makes you feel like your display is transparent, as you see the content
behind it.

its really useful when you are using your phone while walking, thats why
we called it "On-The-Go"

allows to change transparency of the overlay via the notification.

have fun!

Change-Id: I3efccb5fac41a946f6cb4992e9181422980ee5e4
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/custom_symbols.xml
	core/res/res/values/ose_strings.xml
	packages/SystemUI/res/values/custom_strings.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/liquid_symbols.xml
	packages/SystemUI/AndroidManifest.xml

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/liquid_strings.xml
	core/res/res/values/liquid_symbols.xml
	packages/SystemUI/AndroidManifest.xml
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/bs_strings.xml
Squash in the latest from Nameless ROM

- http://gerrit.nameless-rom.org/#/c/3593/
- http://gerrit.nameless-rom.org/#/c/3594/
- http://gerrit.nameless-rom.org/#/c/3595/
- http://gerrit.nameless-rom.org/#/c/3724/
- http://gerrit.nameless-rom.org/#/c/3733/5

Change-Id: I1d9ec26063b3cd71fe12e01aeb918b7a2b4eea75
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/util/ose/QSConstants.java
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/ose_config.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java

Conflicts:
	core/java/com/android/internal/util/beanstalk/QSConstants.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
toggle flashlight when shaking

Change-Id: I3caebcbc250d9bfb4f6c0337a2c0cc1b46d5e2b3
Signed-off-by: scott <scott@ubuntu>
Base: On-The-Go: Turn stop and start service if screen turns off and on

Change-Id: I46cbc6a59ab5489ab0fad2b6df355c60599f4cc0
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/SystemUI/src/com/android/systemui/nameless/onthego/OnTheGoService.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/liquid/onthego/OnTheGoService.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/beanstalk/onthego/OnTheGoDialog.java
	packages/SystemUI/src/com/android/systemui/beanstalk/onthego/OnTheGoService.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON

Change-Id: I010c3b597b39048ee384cb53a6040fc8a6a9ba01
Signed-off-by: scott <scott@ubuntu>
SystemUI: Chamber string edit

Let the user know that the setting simply may not
	exist in the settings database yet on failure
	to parse the key.

PS2: Use only for settings database mismatch (not
	values toggled)
PS2: Dependency

Change-Id: Idec8ea425ea46ff0ebfda37451c521b08d2d4979
SystemUI: Chamber - Add Global Databases

Change-Id: I25eab5951f8d127ee80be3848766653b9e8d5523
Revert "Reduce warning verbosity in aapt"

This reverts commit 5be6b94897af9ca583757faed9ccffcacc04d500.
missed this portion of the status bar color revert

Change-Id: I4b5467c6ff1930b913e2bf687f0f3e5165998a28
Signed-off-by: scott <scott@ubuntu>
Revert "Fix LTE power widget"

This reverts commit c50fc5d6d47f33542dd0a306d62e65f91075676c.