displayhardware: fix not obeying ro.sf.lcd_density when specified

Change-Id: I71efd6aebfdb0323b07327f5e448a5cb5eb0fad6
Signed-off-by: Dima Zavin <dima@android.com>
Ensure that /data/anr/traces.txt is world-writable

The umask changed for init. We have to force /data/anr to be world
readble and /data/anr/traces.txt to be world writable so dalvik
processes can write to it.

Hopefully this is a short term change while we investigate tightening
up these permissions.

Bug: 6300296
Change-Id: Iacb4c9f1bc69d2ac679697f9cf9a52694f888489
libgui: improve some logging and dumping

This change updates some of the SurfaceTextureClient and BufferQueue logging
and dumping to include the crop, transform and scaling mode.  It also removes
the uses of the NO_SCALE_CROP scaling mode enum, which was added by accident in
a previous change.

Change-Id: I62912716a1e48885fb22f12b92678aa13f10fcd9
Bug: 6470541
libs/ui: Add support for triple framebuffers

Change-Id: I90dd38deeeda9a3785b87286cc7d252c6f948750
native: Add Tile format to OMX_IVCommon

Change-Id: I2b1fac62651fabe3338246d6b28057854f390a10
native: add support for color-converter

Defines interfaces to interact with mm-color-converter
wrapper class.

Change-Id: Iff2926e553442fca72d9f30a89b5b7177d7a870b
native : Add Yamato format to OMX_IVCommon

- Add Yamato format to OMX_IVCommon

Change-Id: Ifd51eb74a0ade99bef63ccaefa055a8d6943ce0f
native: fix FB compilation

Change-Id: Ib52cfe6c2a9f7dc45ffcc0dbe98e870bded32381
SurfaceFlinger: send the orientation information to HWC

Change-Id: I04a30d472ac2d12706b8d82b4bb433598482454d
CRs-fixed: 382796
frameworks/native: Add support for external-only layers.

Add support for external-only layers, used for dual-display
or closed captions.
Do not draw external-only layers.

Change-Id: Ieeb945d8a01f16a61a40433aa388a7c7822dcc8a
SurfaceTexture: Add support for drawing non-GPU supported buffers.

Add support for drawing buffers which are not supported by the GPU.
These buffers are drawn using the overlay or C2D. During rotation,
when the draw operation is performed, the GPU clears the clip region
for this buffer.

Change-Id: I7e7abef68ef5aefddaf1596979819ddd66be3681
Add the capability to set GC paramter system wide or per app level

Set system wide default value for xhdpi-1024 device.

Change-Id: I52dd8f85b867d85e3c5a4c93328db734f26c5d2c
binder: libsamsungion goes libsecion

Change-Id: I40024b0611ee7f938e238a64e5ee1626f308f0da
native/libs/ui: Adding fix for conf 2.0 seg faults

function call to cancelBuffer was resulted in seg-faults on conf 2.0.
Setting function pointer of cancelBuffer to null in order to select
correct path of execution.
CRs-fixed: 383715

Change-Id: Ic560bf2e19fe22812dacfca1a54148076cc98b13
frameworks/native: fix copy back dirty region

Copyback dirty region logic does copyback,
even when its not necessary causing 2ms delay.
Fix the logic to copy back only what is necessary.

Change-Id: I52de68258ac9f87d704ee5401f93417805fa6773
FramebufferNativeWindow: Fix locking

* No locking needed for query.
* Postpone locking until after fb_post returns

Change-Id: I214afddc1f32295c9fb625d07b27a9d98999859e
Add support for custom buffer sizes.

Add native window properties NATIVE_WINDOW_SET_BUFFERS_SIZE to the
perform function of SurfaceTextureClient to set the user defined size
of graphic buffers.

Change-Id: I1dc2203990a3641fbb9ddab9a86f7e9017f05270
fix build

Change-Id: Id22c93397e759eb013162e9b6baa2db571c0e786
EGL: Rework adreno 130 workaround to support update egl_display. Tested
on heroc with msm7525 with adreno 130.

Change-Id: Ifa41807ce493650f30ef7983650776ed6bfa9a5c
BufferQueue: Increase MIN_UNDEQUEUED from 2 to 3.

If 2 queueBuffers happen fairly closely, the former buffer is not picked by
display. But SurfaceTexture won't return this to clients, since its not the
oldest. It will return the locked buffer causing deadlock.

Increasing the min_dequeued buffer count to 3 (from 2) will increase the
distance between video and display by 1 more.

CRs-fixed: 382393

Change-Id: I275c01473c7057714da35693dfda7a358e9d9285