add two libgui tests

we check that the order in which we destroy GLConsumer wrt.
releasing the corresponding EGLSurface via eglMake(Un)Current
doesn't leak a buffer.

On at least 2 devices this test doesn't pass.

Change-Id: I63ab83951b4b0a977f38571158f948cbd9dc7cec
make sure to call compositionComplete after taking a screenshot

older drivers which are doing implicit synchronization need this
or they could deadlock.

Bug: 8341885
Change-Id: Icd980a6be16071678d6151e34725b3c1c547d7ee
am 7589b2a7: add two libgui tests

* commit '7589b2a7975cc3bc2a0659ab6503ceb3e4d94048':
  add two libgui tests
am d5776414: make sure to call compositionComplete after taking a screenshot

* commit 'd577641411f067c93aabcd2acf7ce06862fb26d3':
  make sure to call compositionComplete after taking a screenshot
am e491ec7c: am 7589b2a7: add two libgui tests

* commit 'e491ec7c93adb9ec9cfab0f6c7604383aa58d08c':
  add two libgui tests
am b1beeb4a: am d5776414: make sure to call compositionComplete after taking a screenshot

* commit 'b1beeb4ab90fa00c24ae853818e2b33f32da851b':
  make sure to call compositionComplete after taking a screenshot
merge in jb-mr2-release history after reset to jb-mr2-dev
merge in master-release history after reset to master
Ensure dumpstate children die

Use prctl(PR_SET_PDEATHSIG, SIGKILL) in each forked child to ensure
it dies when dumpstate dies.

This is important for two cases:
- dumpstate runs a timer for each child process.  On expiration, it
  sends SIGTERM to kill the process.  Sometimes SIGTERM isn't enough
  to kill a hung process, so the child lives on.
- When dumpstate is killed by the user before completing, outstanding
  children continue to run and generate output.

Change-Id: I96e0dc918c26d56c9fee53611980ba2edd238712
Merge "Ensure dumpstate children die"
Reconcile with jb-mr1-release - do not merge
am 9ef024ec: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '9ef024ec8ae0318c89cc65dc0591aa40695393fc':
am ba8abb51: Merge "Ensure dumpstate children die"

* commit 'ba8abb517d1eddebeda62bf907fa446e3c3b81f6':
  Ensure dumpstate children die
am 574d6902: am ba8abb51: Merge "Ensure dumpstate children die"

* commit '574d6902b7e30a1e9c2375481549c8e8a712d6e6':
  Ensure dumpstate children die
am 1e928f40: am 574d6902: am ba8abb51: Merge "Ensure dumpstate children die"

* commit '1e928f404f83da6ed29dc3d0b28f0a376b12d327':
  Ensure dumpstate children die
am 4ddcb758: (-s ours) am 9ef024ec: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '4ddcb75861cfb2835fcc20f2071222d2f55450ba':
am 75bcd737: am 4ddcb758: (-s ours) am 9ef024ec: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '75bcd737770f85114673c4411b8e2ecc0dd32bdf':
am 50d36d58: am 75bcd737: am 4ddcb758: (-s ours) am 9ef024ec: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '50d36d58369cdf48bc6fcdba96b36c846be8587a':
am 1d6e52d1: am 50d36d58: am 75bcd737: am 4ddcb758: (-s ours) am 9ef024ec: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '1d6e52d17e2df913e10925c5e3e652d3421ff320':
am 5c19de4d: am 1d6e52d1: am 50d36d58: am 75bcd737: am 4ddcb758: (-s ours) am 9ef024ec: (-s ours) Reconcile with jb-mr1-release - do not merge

* commit '5c19de4d070dfaebde92a5df4e54c959eef95cba':