Cloned from https://code-review.phablet.ubuntu.com/aosp/platform/frameworks/native