[ANativeWindow] allocateBuffers changes

* rename allocateBuffers to tryAllocateBuffers to reflect that its a
best-effort API
* promote to public NDK

Bug: 148962594
Test: builds
Change-Id: Iff73c2eb7bb07d28ef26b95202257950e9da4627
3 files changed