Merge changes I99ba18d8,Id04f35f5,I4995c35e,Ia836da7d

* changes:
  Only keep one overflow entry per uid.
  Add app id instead of uid to WorkSourceProvider whitelist.
  Sets ThreadLocalWorkSource to authorized work source.
  Make sure callEnded is always called.