Merge "Add an “is valid” query to ANativeWindow"