resolve merge conflicts of 40ef25d7bd to stage-aosp-master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I39cf0099b857d38222a81c7be41ec13cebb1fb7a