commit | e071138365de28bd83526fb90677b080302cc14f | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Wed Jan 26 12:10:59 2022 -0500 |
committer | John Reck <jreck@google.com> | Wed Jan 26 19:10:58 2022 -0500 |
tree | 35548a5541a43dbed4044037a5394ea40b761362 | |
parent | eb98d0e02fc6fd8b197564701808daf681313f5e [diff] |
Fix mismatch between isSupported & allocate isSupported failed to validate usage bits like allocate does, meaning that isSupported can return true if a vendor is unaware of a usage bit but then allocate will (correctly!) fail to allocate. Fix this so that all buffer descriptions go through the same validation path. Bug: 216478685 Test: atest HardwareBufferTest#testInvalidUsage Change-Id: Idc9a0837f555beceb604f27a06e4833f41e97261