Lines Matching refs:error
187 Error error; in createDescriptor() local
189 error = tmpError; in createDescriptor()
190 if (error != Error::NONE) { in createDescriptor()
198 return static_cast<status_t>((ret.isOk()) ? error : kTransactionError); in createDescriptor()
203 Error error; in importBuffer() local
205 error = tmpError; in importBuffer()
206 if (error != Error::NONE) { in importBuffer()
212 return static_cast<status_t>((ret.isOk()) ? error : kTransactionError); in importBuffer()
219 auto error = (ret.isOk()) ? static_cast<Error>(ret) : kTransactionError; in freeBuffer() local
220 ALOGE_IF(error != Error::NONE, "freeBuffer(%p) failed with %d", buffer, error); in freeBuffer()
228 if (auto error = sBufferDescriptorInfo("validateBufferSize", width, height, format, layerCount, in validateBufferSize() local
230 return error; in validateBufferSize()
244 Error error; in getTransportSize() local
249 error = tmpError; in getTransportSize()
250 if (error != Error::NONE) { in getTransportSize()
257 error = (ret.isOk()) ? error : kTransactionError; in getTransportSize()
259 ALOGE_IF(error != Error::NONE, "getTransportSize(%p) failed with %d", buffer, error); in getTransportSize()
310 Error error; in lock() local
313 error = tmpError; in lock()
314 if (error != Error::NONE) { in lock()
325 error = (ret.isOk()) ? error : kTransactionError; in lock()
327 ALOGW_IF(error != Error::NONE, "lock(%p, ...) failed: %d", bufferHandle, error); in lock()
329 return static_cast<status_t>(error); in lock()
339 status_t error = getPlaneLayouts(bufferHandle, &planeLayouts); in lock() local
340 if (error != NO_ERROR) { in lock()
341 return error; in lock()
345 error = lock(bufferHandle, usage, bounds, acquireFence, &data, nullptr, nullptr); in lock()
346 if (error != NO_ERROR) { in lock()
347 return error; in lock()
437 Error error; in unlock() local
439 error = tmpError; in unlock()
440 if (error != Error::NONE) { in unlock()
457 error = kTransactionError; in unlock()
460 if (error != Error::NONE) { in unlock()
461 ALOGE("unlock(%p) failed with %d", buffer, error); in unlock()
471 if (auto error = sBufferDescriptorInfo("isSupported", width, height, format, layerCount, usage, in isSupported() local
478 Error error; in isSupported() local
481 error = tmpError; in isSupported()
482 if (error != Error::NONE) { in isSupported()
491 error = kTransactionError; in isSupported()
494 if (error != Error::NONE) { in isSupported()
496 error); in isSupported()
499 return static_cast<status_t>(error); in isSupported()
510 Error error; in get() local
513 error = tmpError; in get()
518 error = kTransactionError; in get()
521 if (error != Error::NONE) { in get()
523 metadataType.value, error); in get()
524 return static_cast<status_t>(error); in get()
542 const Error error = ret.withDefault(kTransactionError); in set() local
543 switch (error) { in set()
549 metadataType.value, error); in set()
558 return static_cast<status_t>(error); in set()
630 status_t error = getCompression(bufferHandle, &compression); in getCompression() local
631 if (error) { in getCompression()
632 return error; in getCompression()
653 status_t error = getInterlaced(bufferHandle, &interlaced); in getInterlaced() local
654 if (error) { in getInterlaced()
655 return error; in getInterlaced()
676 status_t error = getChromaSiting(bufferHandle, &chromaSiting); in getChromaSiting() local
677 if (error) { in getChromaSiting()
678 return error; in getChromaSiting()
699 status_t error = get(bufferHandle, gralloc4::MetadataType_Dataspace, gralloc4::decodeDataspace, in getDataspace() local
701 if (error) { in getDataspace()
702 return error; in getDataspace()
771 Error error; in listSupportedMetadataTypes() local
774 error = tmpError; in listSupportedMetadataTypes()
779 error = kTransactionError; in listSupportedMetadataTypes()
782 if (error != Error::NONE) { in listSupportedMetadataTypes()
783 ALOGE("listSupportedMetadataType() failed with %d", error); in listSupportedMetadataTypes()
832 status_t error = metadataDumpHelper(bufferDump, StandardMetadataType::BUFFER_ID, in bufferDumpHelper() local
834 if (error != NO_ERROR) { in bufferDumpHelper()
835 return error; in bufferDumpHelper()
837 error = metadataDumpHelper(bufferDump, StandardMetadataType::NAME, gralloc4::decodeName, &name); in bufferDumpHelper()
838 if (error != NO_ERROR) { in bufferDumpHelper()
839 return error; in bufferDumpHelper()
841 error = metadataDumpHelper(bufferDump, StandardMetadataType::WIDTH, gralloc4::decodeWidth, in bufferDumpHelper()
843 if (error != NO_ERROR) { in bufferDumpHelper()
844 return error; in bufferDumpHelper()
846 error = metadataDumpHelper(bufferDump, StandardMetadataType::HEIGHT, gralloc4::decodeHeight, in bufferDumpHelper()
848 if (error != NO_ERROR) { in bufferDumpHelper()
849 return error; in bufferDumpHelper()
851 error = metadataDumpHelper(bufferDump, StandardMetadataType::LAYER_COUNT, in bufferDumpHelper()
853 if (error != NO_ERROR) { in bufferDumpHelper()
854 return error; in bufferDumpHelper()
856 error = metadataDumpHelper(bufferDump, StandardMetadataType::PIXEL_FORMAT_REQUESTED, in bufferDumpHelper()
858 if (error != NO_ERROR) { in bufferDumpHelper()
859 return error; in bufferDumpHelper()
861 error = metadataDumpHelper(bufferDump, StandardMetadataType::PIXEL_FORMAT_FOURCC, in bufferDumpHelper()
863 if (error != NO_ERROR) { in bufferDumpHelper()
864 return error; in bufferDumpHelper()
866 error = metadataDumpHelper(bufferDump, StandardMetadataType::PIXEL_FORMAT_MODIFIER, in bufferDumpHelper()
868 if (error != NO_ERROR) { in bufferDumpHelper()
869 return error; in bufferDumpHelper()
871 error = metadataDumpHelper(bufferDump, StandardMetadataType::USAGE, gralloc4::decodeUsage, in bufferDumpHelper()
873 if (error != NO_ERROR) { in bufferDumpHelper()
874 return error; in bufferDumpHelper()
876 error = metadataDumpHelper(bufferDump, StandardMetadataType::DATASPACE, in bufferDumpHelper()
878 if (error != NO_ERROR) { in bufferDumpHelper()
879 return error; in bufferDumpHelper()
881 error = metadataDumpHelper(bufferDump, StandardMetadataType::ALLOCATION_SIZE, in bufferDumpHelper()
883 if (error != NO_ERROR) { in bufferDumpHelper()
884 return error; in bufferDumpHelper()
886 error = metadataDumpHelper(bufferDump, StandardMetadataType::PROTECTED_CONTENT, in bufferDumpHelper()
888 if (error != NO_ERROR) { in bufferDumpHelper()
889 return error; in bufferDumpHelper()
891 error = metadataDumpHelper(bufferDump, StandardMetadataType::COMPRESSION, in bufferDumpHelper()
893 if (error != NO_ERROR) { in bufferDumpHelper()
894 return error; in bufferDumpHelper()
896 error = metadataDumpHelper(bufferDump, StandardMetadataType::INTERLACED, in bufferDumpHelper()
898 if (error != NO_ERROR) { in bufferDumpHelper()
899 return error; in bufferDumpHelper()
901 error = metadataDumpHelper(bufferDump, StandardMetadataType::CHROMA_SITING, in bufferDumpHelper()
903 if (error != NO_ERROR) { in bufferDumpHelper()
904 return error; in bufferDumpHelper()
906 error = metadataDumpHelper(bufferDump, StandardMetadataType::PLANE_LAYOUTS, in bufferDumpHelper()
908 if (error != NO_ERROR) { in bufferDumpHelper()
909 return error; in bufferDumpHelper()
975 Error error; in dumpBuffer() local
977 error = tmpError; in dumpBuffer()
982 error = kTransactionError; in dumpBuffer()
985 if (error != Error::NONE) { in dumpBuffer()
986 ALOGE("dumpBuffer() failed with %d", error); in dumpBuffer()
1004 Error error; in dumpBuffers() local
1006 error = tmpError; in dumpBuffers()
1011 error = kTransactionError; in dumpBuffers()
1014 if (error != Error::NONE) { in dumpBuffers()
1015 ALOGE("dumpBuffer() failed with %d", error); in dumpBuffers()
1075 if (auto error = sBufferDescriptorInfo(requestorName, width, height, format, layerCount, usage, in allocate() local
1077 return error; in allocate()
1081 status_t error = mMapper.createDescriptor(static_cast<void*>(&descriptorInfo), in allocate() local
1083 if (error != NO_ERROR) { in allocate()
1084 return error; in allocate()
1094 error = status.getExceptionCode(); in allocate()
1095 if (error == EX_SERVICE_SPECIFIC) { in allocate()
1096 error = status.getServiceSpecificError(); in allocate()
1098 if (error == OK) { in allocate()
1099 error = UNKNOWN_ERROR; in allocate()
1105 error = mMapper.importBuffer(handle, &outBufferHandles[i]); in allocate()
1107 if (error != NO_ERROR) { in allocate()
1134 return error; in allocate()
1140 error = static_cast<status_t>(tmpError); in allocate()
1147 error = mMapper.importBuffer(tmpBuffers[i], in allocate()
1149 if (error != NO_ERROR) { in allocate()
1178 return (ret.isOk()) ? error : static_cast<status_t>(kTransactionError); in allocate()