Fix layout of MultiWaveView and GlowPadView.

If the calculated size of the rings is much smaller than the measured
size (which is happening e.g. on mdpi 600x1024 tablets), the glow pad
appeared shifted to the right.
This happened due to the insets being calculated as difference of
available and needed size, and later on being added to the available
size. Example numbers (Nexus 4 with density forced to 160):
- computed size in onMeasure: 768x505
- scaled size in onMeasure: 505x505
- thus, insets are calculated as 131/0
- in onLayout, placementWidth (364) and max target width (108) are much
  smaller than width (768)
- thus, center is calculated as 131 + (768 / 2) = 515, thus shifted to
  the right

Fix that by not using width in the calculation, as the inset size
already takes it into consideration.

JIRA:CYAN-829
Change-Id: Ifc2a93214f812f554a8fed3243eed66aec9f00c9
Revert "hwui: This code should only be enabled with QCOM_BSP"

This reverts commit e4328f374c212bd66b9d7b840f795d3568161d05.
Revert "Remove opaque check in GLRenderer when preparing dirty region."

This reverts commit 9f7c83cdf84241ca7f93031528368907d7ecba27.
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

Remove opaque check in preparing dirty region

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

CRs-Fixed: 465346
Change-Id: I98f2009748244751c4b56af8afbdfeb645c13230
Frameworks & SystemUI - additional DC-HSPAP support

This commit adds some more informations about Dual-Carrier HSPAP
It allows displaying a "DC" icon on status bar for compatible devices
and add a "DCHSPAP" value in state phone
patch 1: add TelephonyManager to fix build
patch 2: modify ServiceState
patch 3: switch to cm_strings
patch 4: fix a mistake
patch 5: upload a new set of icons, a bit prettier than previous
patch 6: update icons (more opacity to match colors)
patch 7: removed drawable-sw*

here is a screenshot for example: http://imgur.com/mQ2du3l,PSyHoqC

Change-Id: I77d05e23c8ad3efdfeb19cf06ed92e7c57105ebe
update-api

Change-Id: I77e6d537d5ebbe67bac26c6ef6d0dda498640ca0
FW: Ribbon v1.0 overhaul

Thickness Increase max && decrease min
Configurable long swipe and long press swipe areas

consolidate and cache views for smoother animations
User adjustable animantion duration

Add dismiss options for swipe ribbon
 - Always dismiss on click
 - never dismiss on click
 - Don't dismiss for navbar action

fix app window crash if user has fast fingers and to much time
  on their hands...

Swipe ribbon drag handles now get their own location, height,
   width, and opacity.

Hide apps from app window
Hooks to dismiss app window if softkeys or navbar buttons pressed

Fix app window to pull all components also IE camera and messenger.

Rub some unicorn polish on the on touch glow. The giant boxes were
a bit ridiculous.

If ribbon is empty but toogles are not, just show toggles no flipper.

add adb wireless to toggle map

Phase 1 of the Animation chooser. Simple helpers to let users
choose the animation for the swipe ribbon and app window.
ill be adding some fancier animations for now just some of
the stock AOSP one.

Add lots o animation options. Also preload animations instead
of creating them at run time, should smooth things out a bit.

Keyboard IME hide, Vertical spacing App window, Cache resources.

Fix IME hide when navbar hidden.

Longpress on app window now takes you to app info.

Change-Id: I7c59fc915473fe320639eda446a735dee8500efa
Add transparency settings for lockscreen (2/2)

This will enable the user to set the transparency level
for the lockscreen.

Change-Id: I624b2e136432bb0effceac9f7d41c78c65d22125
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>

Conflicts:
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardViewBase.java
Translation: import russian translation from crowdin.net

Change-Id: I2e0ab5ff1285a5bc3d635db44d3d3bce94db87e5
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Framework: Remove Needless Preference

PS2: Missed Line
PS3: Further Settings Clarification:
        If Reverse/State_one double
        click action: launch action
        long/short (they can still
        choose "skip" if they don't
        want to launch anything).
Change-Id: Ie220b7eb2c16d0ce81c444eea5936c681ea55a9a
removed duplicates

Change-Id: I6506d2eab7112df95172dc8bd40f05aa8af1cf6d