Rect isValid actually include the zero size case, which we don't want to include in our case. This causes camera ImageReader test case fails at buffer size sanity check. Bug: 9802344 Change-Id: I561f5a049c6117c613df1e1b2789c43af9a19628