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()
281 Error error; in lock() local
284 error = tmpError; in lock()
285 if (error != Error::NONE) { in lock()
296 error = (ret.isOk()) ? error : kTransactionError; in lock()
298 ALOGW_IF(error != Error::NONE, "lock(%p, ...) failed: %d", bufferHandle, error); in lock()
300 return static_cast<status_t>(error); in lock()
310 status_t error = getPlaneLayouts(bufferHandle, &planeLayouts); in lock() local
311 if (error != NO_ERROR) { in lock()
312 return error; in lock()
316 error = lock(bufferHandle, usage, bounds, acquireFence, &data, nullptr, nullptr); in lock()
317 if (error != NO_ERROR) { in lock()
318 return error; in lock()
408 Error error; in unlock() local
410 error = tmpError; in unlock()
411 if (error != Error::NONE) { in unlock()
428 error = kTransactionError; in unlock()
431 if (error != Error::NONE) { in unlock()
432 ALOGE("unlock(%p) failed with %d", buffer, error); in unlock()
449 Error error; in isSupported() local
452 error = tmpError; in isSupported()
453 if (error != Error::NONE) { in isSupported()
462 error = kTransactionError; in isSupported()
465 if (error != Error::NONE) { in isSupported()
467 error); in isSupported()
470 return static_cast<status_t>(error); in isSupported()
481 Error error; in get() local
484 error = tmpError; in get()
489 error = kTransactionError; in get()
492 if (error != Error::NONE) { in get()
494 metadataType.value, error); in get()
495 return static_cast<status_t>(error); in get()
513 const Error error = ret.withDefault(kTransactionError); in set() local
514 switch (error) { in set()
520 metadataType.value, error); in set()
529 return static_cast<status_t>(error); in set()
601 status_t error = getCompression(bufferHandle, &compression); in getCompression() local
602 if (error) { in getCompression()
603 return error; in getCompression()
624 status_t error = getInterlaced(bufferHandle, &interlaced); in getInterlaced() local
625 if (error) { in getInterlaced()
626 return error; in getInterlaced()
647 status_t error = getChromaSiting(bufferHandle, &chromaSiting); in getChromaSiting() local
648 if (error) { in getChromaSiting()
649 return error; in getChromaSiting()
670 status_t error = get(bufferHandle, gralloc4::MetadataType_Dataspace, gralloc4::decodeDataspace, in getDataspace() local
672 if (error) { in getDataspace()
673 return error; in getDataspace()
742 Error error; in listSupportedMetadataTypes() local
745 error = tmpError; in listSupportedMetadataTypes()
750 error = kTransactionError; in listSupportedMetadataTypes()
753 if (error != Error::NONE) { in listSupportedMetadataTypes()
754 ALOGE("listSupportedMetadataType() failed with %d", error); in listSupportedMetadataTypes()
803 status_t error = metadataDumpHelper(bufferDump, StandardMetadataType::BUFFER_ID, in bufferDumpHelper() local
805 if (error != NO_ERROR) { in bufferDumpHelper()
806 return error; in bufferDumpHelper()
808 error = metadataDumpHelper(bufferDump, StandardMetadataType::NAME, gralloc4::decodeName, &name); in bufferDumpHelper()
809 if (error != NO_ERROR) { in bufferDumpHelper()
810 return error; in bufferDumpHelper()
812 error = metadataDumpHelper(bufferDump, StandardMetadataType::WIDTH, gralloc4::decodeWidth, in bufferDumpHelper()
814 if (error != NO_ERROR) { in bufferDumpHelper()
815 return error; in bufferDumpHelper()
817 error = metadataDumpHelper(bufferDump, StandardMetadataType::HEIGHT, gralloc4::decodeHeight, in bufferDumpHelper()
819 if (error != NO_ERROR) { in bufferDumpHelper()
820 return error; in bufferDumpHelper()
822 error = metadataDumpHelper(bufferDump, StandardMetadataType::LAYER_COUNT, in bufferDumpHelper()
824 if (error != NO_ERROR) { in bufferDumpHelper()
825 return error; in bufferDumpHelper()
827 error = metadataDumpHelper(bufferDump, StandardMetadataType::PIXEL_FORMAT_REQUESTED, in bufferDumpHelper()
829 if (error != NO_ERROR) { in bufferDumpHelper()
830 return error; in bufferDumpHelper()
832 error = metadataDumpHelper(bufferDump, StandardMetadataType::PIXEL_FORMAT_FOURCC, in bufferDumpHelper()
834 if (error != NO_ERROR) { in bufferDumpHelper()
835 return error; in bufferDumpHelper()
837 error = metadataDumpHelper(bufferDump, StandardMetadataType::PIXEL_FORMAT_MODIFIER, in bufferDumpHelper()
839 if (error != NO_ERROR) { in bufferDumpHelper()
840 return error; in bufferDumpHelper()
842 error = metadataDumpHelper(bufferDump, StandardMetadataType::USAGE, gralloc4::decodeUsage, in bufferDumpHelper()
844 if (error != NO_ERROR) { in bufferDumpHelper()
845 return error; in bufferDumpHelper()
847 error = metadataDumpHelper(bufferDump, StandardMetadataType::DATASPACE, in bufferDumpHelper()
849 if (error != NO_ERROR) { in bufferDumpHelper()
850 return error; in bufferDumpHelper()
852 error = metadataDumpHelper(bufferDump, StandardMetadataType::ALLOCATION_SIZE, in bufferDumpHelper()
854 if (error != NO_ERROR) { in bufferDumpHelper()
855 return error; in bufferDumpHelper()
857 error = metadataDumpHelper(bufferDump, StandardMetadataType::PROTECTED_CONTENT, in bufferDumpHelper()
859 if (error != NO_ERROR) { in bufferDumpHelper()
860 return error; in bufferDumpHelper()
862 error = metadataDumpHelper(bufferDump, StandardMetadataType::COMPRESSION, in bufferDumpHelper()
864 if (error != NO_ERROR) { in bufferDumpHelper()
865 return error; in bufferDumpHelper()
867 error = metadataDumpHelper(bufferDump, StandardMetadataType::INTERLACED, in bufferDumpHelper()
869 if (error != NO_ERROR) { in bufferDumpHelper()
870 return error; in bufferDumpHelper()
872 error = metadataDumpHelper(bufferDump, StandardMetadataType::CHROMA_SITING, in bufferDumpHelper()
874 if (error != NO_ERROR) { in bufferDumpHelper()
875 return error; in bufferDumpHelper()
877 error = metadataDumpHelper(bufferDump, StandardMetadataType::PLANE_LAYOUTS, in bufferDumpHelper()
879 if (error != NO_ERROR) { in bufferDumpHelper()
880 return error; in bufferDumpHelper()
946 Error error; in dumpBuffer() local
948 error = tmpError; in dumpBuffer()
953 error = kTransactionError; in dumpBuffer()
956 if (error != Error::NONE) { in dumpBuffer()
957 ALOGE("dumpBuffer() failed with %d", error); in dumpBuffer()
975 Error error; in dumpBuffers() local
977 error = tmpError; in dumpBuffers()
982 error = kTransactionError; in dumpBuffers()
985 if (error != Error::NONE) { in dumpBuffers()
986 ALOGE("dumpBuffer() failed with %d", error); in dumpBuffers()
1046 if (auto error = sBufferDescriptorInfo(requestorName, width, height, format, layerCount, usage, in allocate() local
1048 return error; in allocate()
1052 status_t error = mMapper.createDescriptor(static_cast<void*>(&descriptorInfo), in allocate() local
1054 if (error != NO_ERROR) { in allocate()
1055 return error; in allocate()
1067 error = status.getExceptionCode(); in allocate()
1068 if (error == EX_SERVICE_SPECIFIC) { in allocate()
1069 error = status.getServiceSpecificError(); in allocate()
1071 if (error == OK) { in allocate()
1072 error = UNKNOWN_ERROR; in allocate()
1078 error = mMapper.importBuffer(handle, &outBufferHandles[i]); in allocate()
1080 if (error != NO_ERROR) { in allocate()
1107 return error; in allocate()
1113 error = static_cast<status_t>(tmpError); in allocate()
1120 error = mMapper.importBuffer(tmpBuffers[i], in allocate()
1122 if (error != NO_ERROR) { in allocate()
1151 return (ret.isOk()) ? error : static_cast<status_t>(kTransactionError); in allocate()