servicemanager: Add listen service to the service table

listen service provides interface to applications to register
notification for voice detection events.

Change-Id: I3575be8eeab6487f6f7c252ac68ceb3f78304aa4
Merge "servicemanager: Add listen service to the service table"
libgui: Add native window attributes to query usage

This is required to enable GL libraries to query usage
native window attributes to enable/disable tile rendering.

Change-Id: If752fa26ac3d8ffd7776cc5a16fe162af0742df5
GlES2: Add NULL check

Check for NULL before calling thread specific glGetString.

CRs-fixed: 569609

Change-Id: Ifee8257152ba7ca7a05df5d7b113171b71d16c82
Merge "GlES2: Add NULL check"
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
Init display orientation according to panel orientation

   - Initialize the display default orientation to panel orientation.
   - honor the panel orientation only after the end of boot animation
     or the new orientation is as same as panel orientation.

Change-Id: Ieece097ff7c3710e379f47028900aed59a96c8d5
surfaceflinger: Set max acquired buffer count

If triple framebuffers are enabled, the number of acquired
buffers isn't increased by default. Set the count to one less
than the max buffers to make sure all three buffers come into
play.

Change-Id: I65054ed4004607f5be68c893f6f621e821cfbf1c
Merge "fix copy back dirty region"
Merge "surfaceflinger: Set max acquired buffer count"
libs/ui: Fix crash issue because of null pointer access

- handle NULL check is required while flatten GraphicsBuffer

CRs-fixed: 579102

Change-Id: I292b4b25dc1f5320378cc9e4affbad326e1fdaed
Merge "libs/ui: Fix crash issue because of null pointer access"
frameworks/native: Add support for Secure Display

- Add secure UI layers to primary and remove other layers from
  internal and external list for Secure Display usecase.
- Dont let secure UI layers to be captured on screen

Change-Id: Iebdad5c56247308604ee90928f6d6460a1f69279
SurfaceFlinger: Add NULL check for buffer handling

Add buffer handling NULL check in dequeueBuffer and
verify whether the output data from binder is not NULL
in queueBuffer and connect api's to avoid SF crash

CRs-Fixed: 573088
CRs-Fixed: 572315

Change-Id: I41cebbc0cbcbbb0fd5ecb38db7ec7b0c91cdffe9
Merge "frameworks/native: Add support for Secure Display"
Merge "SurfaceFlinger: Add NULL check for buffer handling"
SurfaceFlinger: Enable Vsync trace for SF Composition

Enable traces to show s/w vsync which is used for composition
by surfaceflinger, this helps in identifying the start of
composition cycle in systrace

Change-Id: Id892ca03bacd9f0cfe5ca2c3f8bb5aa892b37231
Merge "libgui: Add native window attributes to query usage"
Merge "Init display orientation according to panel orientation"
Merge commit 'android-4.4.1_r1' into merge_branch

* commit 'android-4.4.1_r1':
  Don't change the framebuffer target until we render a new one
  Provide virtual display output buffer to HWC in prepare
  Don't use implementation-defined format with CPU consumers
  DispSync: remove delay when enabling vsync events
  EGL: rename CallStack::dump into CallStack::log
  Bug fixes for SensorService
  Native counterpart of new power manager method
  Fix handling of undefined TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS
  Only consume touches up until the frame time
  Wait for buffers to drain
  Add a boardconfig to force HWC composition of virtual displays
  Use implementation-defined format when HWC writes to output buffer