SurfaceFlinger: Return the current transform value when queried

When an application queries the transform hint,
SurfaceTexture returns the value based on the previous
queueBuffer function. When query() is called before any
queueBuffer() calls, it doesn't return the current transform.
Make sure to get the current transform from a layer
whenever query() is called.

Change-Id: Id86c931dc72285cf754cc6c77219434388fc0d69

Conflicts:

	libs/gui/SurfaceTextureClient.cpp
	services/surfaceflinger/SurfaceTextureLayer.cpp
	services/surfaceflinger/SurfaceTextureLayer.h
Surfaceflinger: Add Src orientation for the layer

hwcl->transform contains the final transform, add source transform
to it, so that the source transform can be used for setting correct
orientation for Secondary display.

Change-Id: I9dd6ab9495991b01211711f55b9380a3a53cf0f0
CRs-fixed: 341691, 330719, 342199, 344308
(cherry picked from commit ec2226ef4e8c9bbf5d255d26f9677d7e36fc6ea2)
Add @hide to new fields/methods

Change-Id: I41894c82deaeb7d517c3ca3841cb81a11ee32b30
Additional fixes for button/keyboard backlight auto-brightness.

- Use sensor-determined brightness values when the button and/or keyboard
  lights are on, even if button/keyboard auto-brightness is disabled, since
  users may want to specify a custom brightness setting that disables the
  button/keyboard backlight entirely in low-ambient light situations.

- When button/keyboard auto-brightness is disabled, don't update button and
  keyboard brightnesses immediately if ambient light (the sensor) changes,
  as this may reactivate these lights after they've turned off in absense of
  user activity.  This is a particular problem when watching video or other
  circumstances when the lights are not expected to reactivate.
PowerWidget: Use resources for the indicator color mask

Replace direct usage of the color hex by the corresponding named
Holo resource, to ease redirection/overload by themes.

Change-Id: I3ac2018f54e5dd6c238e2e25bcf96caa1017cc7c
Display correct signal bars for some Samsung devices

Some Samsung devices need a fix to show the signal bars correctly

Change-Id: I331ea33b3389fbfcbdd32b663ba53726cb4ecf65

	modified:   telephony/java/android/telephony/SignalStrength.java

Conflicts:

	core/res/res/values/config.xml
SystemUI: Recreate navigation bar when rebuilding the status bar

Ensure that all listeners (such as orientation change...) get properly
linked in the newly generated view, to avoid errors due to non-attached
views after applying a theme

Change-Id: I46992694844944564739ac12a8da43b6348658c9
Revert "Display correct signal bars for some Samsung devices"

This reverts commit f50bb9b4cd3621a120d560269cb370ffc895e133.
telephony: HTCQualcommRIL: add QualcommNoSimReadyRIL based HTC RIL

HTC Ville (One S) requires a no sim ready ril, with some HTC specific
changes, such as custom radio power on and iccIO.

Change-Id: I58150e8046da95ebb11a4c78a8441b814ce4fb5d

telephony: HTCQualcommRIL: clean up processUnsolicited

Based on rmcc's processUnsolicited cleanup commit.

Change-Id: I00f266c52d281ed92b9f8dab0f3c432acc24c6e7

telephony: HTCQualcommRIL: fix signal strength calculation

HTC RIL defines a custom signal strength packet format. Modify the
signal strength packet data such that the framework signal strength
calculation function understands it.

Change-Id: I8640c2ab31f06740325f440ae4aa4a0953968146

telephony: HTCQualcommRIL: add custom sim pin/datacall functions

HTC use a custom function set for data call and simlock functionality.
This patch fixes sim pin and 3G-2G switch functionality.

Change-Id: Ieb4b47501fe1665620afa4d58616180f6c516d9e
telephony: CDMA: fix ERI display when device is in airplane mode

currently when a CDMA device is in airplane mode, the ERI display
shows "Searching for Service"
the radio is OFF, and not searching for anything, so fix it to
actually display the radio status correctly

Change-Id: I3acfb509291867e1a8e35163a89d86719aa40479
SystemUI: calculate height for tablet status_bar_settings_view

Use the minimum height required for no scrolling. If that height
will exceed the device's display height, reduce it accordingly.

This removes the need for hardcoded height in resource file and
the use of overlays to adjust it.

Change-Id: I0a85f19c2619dedd70a3e686982e0c483f9e3d32
Power Widgets: Add blue-background highlight on selection

Allows the user to see which widget was clicked.

Change-Id: I8d7a9fad54067677029f3fa0caea0f0f6b2561d7
LGEQualcommUiccRIL: Fix multi-PDP support

Multiple concurrent PDPs are now functional, allowing the back-compat
singlepdp flag to be disabled

Change-Id: I8ef55e96b9f05d4a4dd8dbbaeddf6d48ded7fc67
Update reboot and screenshot drawables

Change-Id: I7e434e9f3774d6350ce56e0f6706dd30be8e3377
Prevent Sym key from showing the IME picker

By default InputMethodManager will popup an IME picker when pressing
the Sym key.

This can be disabled by setting config_symKeyShowsImePicker to false in the
overlay (so the Sym key will show the symbol windows selector for ex.)

Change-Id: I27f5210ddf1aee5b19389a12dc9e21100dbefa0b
Allow theming of framework UI elements.

As the theme engine works by replacing resources while loading the APK,
framework UI couldn't be themed so far. Workaround that by manually
creating a com.android.systemui package context and using that for
showing the UI. This attempt is a bit hacky, but should be safe as
a) systemui should always be present
b) if it isn't, we fall back to no theming

Change-Id: I644e2e8d7d4abf07bae639b606197d691f16adac

Applying theming to more framework items.

All dialogs and notifications should be covered now.

Change-Id: If93f81991361165a00b5b1b03ffc323e3ab42c0b

Conflicts:

	policy/src/com/android/internal/policy/impl/GlobalActions.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/PowerManagerService.java