Searched refs:sizeRequired (Results 1 – 1 of 1) sorted by relevance
/frameworks/native/libs/ui/ |
D | Gralloc5.cpp | 138 int32_t sizeRequired = mapper->v5.getStandardMetadata(bufferHandle, static_cast<int64_t>(T), in getStandardMetadata() local 140 if (sizeRequired < 0) { in getStandardMetadata() 141 ALOGW_IF(-AIMAPPER_ERROR_UNSUPPORTED != sizeRequired, in getStandardMetadata() 142 "Unexpected error %d from valid getStandardMetadata call", -sizeRequired); in getStandardMetadata() 145 if ((size_t)sizeRequired > buffer.size()) { in getStandardMetadata() 146 buffer.resize(sizeRequired); in getStandardMetadata() 147 sizeRequired = mapper->v5.getStandardMetadata(bufferHandle, static_cast<int64_t>(T), in getStandardMetadata() 150 if (sizeRequired < 0 || (size_t)sizeRequired > buffer.size()) { in getStandardMetadata() 151 ALOGW("getStandardMetadata failed, received %d with buffer size %zd", sizeRequired, in getStandardMetadata() 156 return Value::decode(buffer.data(), sizeRequired); in getStandardMetadata() [all …]
|