resolve merge conflicts of 4f2a0fe213e5 to stage-aosp-master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I61cfb2d4798350f28f1bb36aed67ee8f18895031
tree: 5ca6813bce9e2f3cedec0987de1759ca40af1f54
  1. core/
  2. services/
  3. tests/