Merge changes I352afa7f,I89ef198b

* changes:
  Ensure that all places we bind tasks also update the doze state.
  Allow dumping activity from all visible stacks.