Makefiles: remove QCOM_HARDWARE cflags

*we already define these in our BoardConfigs this will avoid double defines
*this does NOT remove the need to define BOARD_USE_QCOM_HARDWARE
that is needed for certain includes
*in the case where BOARD_USES_LEGACY_QCOM is defined i have set the makefiles
to undefine QCOM_HARDWARE

Change-Id: I47979851d850fe5493c1866840be8b8acc9369bd
Revert "qui: qsd8k: skip S3DFormat update, not supported anyway"

This reverts commit 04ec72419384cdb6608078030b54bffe9ff5263d.

Conflicts:

	libs/gui/Android.mk

Change-Id: Id95c96415ebbb7346b7c67a2be10555b5919e2ea
Revert "hwui: qsd8k: dont remove opaque check"

This reverts commit 12ca7b58c0693009bc6c66d1bf9ad07d1af6dc0c.

Conflicts:

	libs/hwui/Android.mk

Change-Id: I3460dff61433937f2391305e3b2734c9cd1f33c9
Revert "surfaceflinger: qsd8k: compat for new commits"

This reverts commit 8dbaa7dc57b336547a6c611efc20c6ff48ff33d7.

Conflicts:

	services/surfaceflinger/SurfaceFlinger.cpp

Change-Id: Ic38316da2263f316e84acfa0d01ee43f81c53fcb
surfaceflinger: copypaste fail

Change-Id: I27d2c1208ce0542acda54eb511dc2fc51139f717
Configurable 0, 90, 180 and 270 degree rotation (framework part)

This is similar to my previous CM contributions. Requires settings
UI to configure (not done yet). The rationale is to be able to
have automatic rotation always enabled, but only for desired
angles.

Change-Id: I19d3d2cb91249ba2cdee310e6ff7b0978e9bfde0
Fix build when TARGET_QCOM_HDMI_OUT is true.

Change-Id: I62e20cd742f9808a4ba3a496dd20ca27d46a845e
Signed-off-by: Evan McClain <aeroevan@gmail.com>
HDMI: Temporary qcom HDMI fixes

Since we still don't have a user-controllable Setting to enable HDMI,
enable it by default.
Also, for devices with trouble matching the HDMI clocks in the receivers,
add the possibility of letting the controller choose the resolution
on its own with the build-time TARGET_QCOM_HDMI_RESOLUTION_AUTO flag

Change-Id: I3ca0639e9f644872a3585f04f2cf8180d8451f2c
SurfaceFlinger: Handle WFD and HDMI concurrency.

- changes to handle wifi display and HDMI concurrency
- rename enableHDMIOutput to enableExternalDisplay
- remove action safe related functions(not used anymore)

Change-Id: I15feb1309c2964de3deb968c334eb09e742afb6c
HDMIDaemon: Store actionsafe width and height as a system property

(cherry picked from commit 9b6f55560bf5066ea4ba9670d2d009f2b6c36e3b)

Change-Id: I63c213c2f203e63c8047f597e33d06026085c0c8
frameworks/base: fix delay in HDMI update

SF threadloop now checks for dirtyregion and returns
if it is empty. Mark dirtyregion as nonempty so that
threadloop actually executes when required

Change-Id: I00e132433922509468b258c33279c819b3294d73
CRs-fixed: 327432
Handling EGL_BAD_ALLOC egl error as return from swap

Some GL apps are not closing properly espacially while
forcefully closed.Cause unnessary swap command from
GLSurfaceView and returing EGL_BAD_ALLOC as error that is
not handling in GL thread and leads to uncaught exception

CRs-fixed: 335039
(cherry picked from commit 46cc8d1f506fabd04e3e192511ab715a22ff92ea)

Change-Id: I92d08b6328a0055687ad99b9413a97ec7025e0cd
frameworks/base: surfaceflinger: Enable dither if needed

SF is checking if dithering is required but not enabling it.
Enable for layer drawing and  also for screenshot for 16bpp
framebuffer only.

CRs-fixed: 333721
(cherry picked from commit 85c02ed97b4a1d0cc343a452959570b379928d59)

Change-Id: I599fe5b9683db208c8b32a1d3d395d5203f78fd3
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)
set dns correctly for p2p case

the serverAddress is added as dns if dns1 is empty
in commit aea743aaa43a833fd8ff3dc56205197583152d5f
but it was reverted by commit 2c08ede34ceb0f847cc9f996db9832f5358f8726.
so partially revert it.

without this change p2p connection raise NullPointerException and kill
system services.

Change-Id: I194fb5e4d8fb577d18cb10f61782aec1cd80220e
Telephony: Add HSPAP to getTcpBufferSizesPropName

When device is camped on HSPAP TCP Buffer sizes need to be configured
properly to support higher data rates. Without this change, default TCP
buffer sizes will be used and throughput will be low.

Change-Id: Iad065d635b478e3cb257337f40b25291e7930eff
CRs-Fixed: 349773
opengl: remove tegra errata duplicates

Change-Id: I118ad07cb7b45db1b8b73b79852d5c8956387bc8
samsung: set proper native color format if using samsung codecs

Change-Id: Ifd76d88f9f7a1947a1583322f0a675dec6d12edf
samsung: explicitely request a fixed bitrate, otherwise it is ignored.

Change-Id: I5e24dcdea01ab081629ce455efb37f2fd151779c
frameworks/base: enable meta mode for 7x27a video encoder

msm7627a family of chipsets supports only one input frame at
one time. camera expects the input frame to be released before
sending another frame. so send one input buffer and available
output bufefrs to video encoder component. release the input
buffer to camera (to get another frame) after receiving input
frame done callback from video encoder component.

Change-Id: I8fbc911f046ff7e2a3047dd65d8c09ac2d8608e1