Merge "Implement stats logging for Compatibility API." into stage-aosp-master