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':
am c1509400: (-s ours) 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 'c1509400dcf79d65b2624e6fc6e7f667ff9edb29':
Add TOUCH_NAVIGATION input source

Change-Id: Id76e2e85246269ba7b16bb9635e41593b45cac1c
Add Thread::isRunning and Condition::signal(WakeUpType)

The signal() method is useful to choose whether to wake up one or
all threads.

Change-Id: I062ab6d3ddd306a9fb735549ea140e2a76eed75a
Merge "Add Thread::isRunning and Condition::signal(WakeUpType)" into jb-mr2-dev
am dbca4a0e: Merge "Add Thread::isRunning and Condition::signal(WakeUpType)" into jb-mr2-dev

* commit 'dbca4a0ee5dac0b2f8d0ed4b1667adbf11363e35':
  Add Thread::isRunning and Condition::signal(WakeUpType)
am c75412dc: am dbca4a0e: Merge "Add Thread::isRunning and Condition::signal(WakeUpType)" into jb-mr2-dev

* commit 'c75412dcdd617423a033e4a647f43b35af1fc0c4':
  Add Thread::isRunning and Condition::signal(WakeUpType)
workaround a deadlock when taking screenshots into a surface

When disconnecting from BufferQueue, we now drain the queue
except the head (which means in the screenshot case we won't
have to block, but we might not have a buffer to show, this
will appear as an error in the log).

Bug: 8362363
Change-Id: If80989aac3c917beea2ebddf3cbb502849d394da
am d2d5a64a: workaround a deadlock when taking screenshots into a surface

* commit 'd2d5a64aa21cfc548c8c8333d1b36979e5e5a640':
  workaround a deadlock when taking screenshots into a surface
am 5e80aa10: am d2d5a64a: workaround a deadlock when taking screenshots into a surface

* commit '5e80aa10d37dc066b2e079037a0564703be92ebb':
  workaround a deadlock when taking screenshots into a surface
Merge "Add TOUCH_NAVIGATION input source" into jb-mr2-dev
am 2aee1b01: Merge "Add TOUCH_NAVIGATION input source" into jb-mr2-dev

* commit '2aee1b01b7f4e1e0849f5653139a995ad6ba877e':
  Add TOUCH_NAVIGATION input source
am ff164b69: am 2aee1b01: Merge "Add TOUCH_NAVIGATION input source" into jb-mr2-dev

* commit 'ff164b69de713ecabf2f3c6b4f718503591a7321':
  Add TOUCH_NAVIGATION input source
atrace: add the webview category

Change-Id: Iefb552cd275bb5784903e8bf328890ecd233e45b
Fix missing recents screenshots

We were using the "visible layer list" when taking screenshots,
which doesn't work when a layer is behind other opaque layers
and therefore hidden.

We fix this by using the full layer list, filtered by the
layerstack of the display we're looking at.

Bug: 7552304
Change-Id: I4b6f77e5511aea94f8d218975b6e22738e7e5d5b
am b7a5b05b: Fix missing recents screenshots

* commit 'b7a5b05b53b81cb24849c7e9934c941f64e05a42':
  Fix missing recents screenshots
am 815721f6: am b7a5b05b: Fix missing recents screenshots

* commit '815721f6ab5e9caea0e8ec9605fd0d0c4aacba18':
  Fix missing recents screenshots
temporary: enable ASSERTs in RefBase

this is in an attempt to get more data on
bug 8328715.

Change-Id: I9333a67c2d7f67f4d9b2fc5eb1ad8a7b2d1c6dcb