Add GESTURE_SENSOR input source

Change-Id: If61a7e7bf2d8b2665db7ca57ed68a4462d0c1783
frameworks/native: Reset update buffer geometry

Reset update buffer geometry when setBuffersGeometry is invoked to
reallocate the buffer for the new resolution.

Change-Id: I5da0bc8739af5e7c619ee6185b33712015112672
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
Merge "Add GESTURE_SENSOR input source" into cm-10.2
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
installd: Skip dexroot-on-cache for user builds

Change-Id: Ia724cce7e904558654f5a0ed853e817c768d1383
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
Add support for QC's time_daemon

Enabled by BOARD_USES_QC_TIME_SERVICES=true, it requires the device
to provide its own time_daemon executable and libtime_genoff.so
proprietaries. The library should be copied by the device's setup
config to $OUT/obj/lib for linkage (and pushed to the final build,
obviously)

Change-Id: Ie6964dbe2692dc33fc04093a5b89b6922d8443c8
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
surfaceflinger: Allow gpu to render widevine level3

Allow gpu to render widevine level3 but keep
blocking screen shots.

CRs-fixed: 428647,424769,421767

Change-Id: I914232a062acbb7b17901dbf2b414973230e59d9
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
Support forcing all screenshots into a CPU consumer

Looks like a full GPU path is less efficient on some GPU
drivers that we're still using, and CPU is reliably faster...
(there's probably a locking condition going on somewhere, this
needs to be looked into)

Change-Id: I8878796a117d65bf2324507cf8755cadce49f6dc
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2

Conflicts:
	services/surfaceflinger/Layer.cpp
Underp dexroot on cache

Change-Id: I21e97bfd7888e50c5dadf9fabc859ef9b566cf15
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2
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
Merge remote-tracking branch 'cm/cm-10.2' into cm-10.2