resolve merge conflicts of a9e037ed to oc-dev-plus-aosp

Test: it builds on AOSP and master
Change-Id: Ic48edc2081579656be43f92ab20ec7a9720595bf