Lines Matching refs:result

82         status_t result =remote()->transact(REQUEST_BUFFER, data, &reply);  in requestBuffer()  local
83 if (result != NO_ERROR) { in requestBuffer()
84 return result; in requestBuffer()
89 result = reply.read(**buf); in requestBuffer()
90 if(result != NO_ERROR) { in requestBuffer()
92 return result; in requestBuffer()
95 result = reply.readInt32(); in requestBuffer()
96 return result; in requestBuffer()
104 status_t result = remote()->transact(SET_MAX_DEQUEUED_BUFFER_COUNT, in setMaxDequeuedBufferCount() local
106 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
107 return result; in setMaxDequeuedBufferCount()
109 result = reply.readInt32(); in setMaxDequeuedBufferCount()
110 return result; in setMaxDequeuedBufferCount()
118 status_t result = remote()->transact(SET_ASYNC_MODE, in setAsyncMode() local
120 if (result != NO_ERROR) { in setAsyncMode()
121 return result; in setAsyncMode()
123 result = reply.readInt32(); in setAsyncMode()
124 return result; in setAsyncMode()
140 status_t result = remote()->transact(DEQUEUE_BUFFER, data, &reply); in dequeueBuffer() local
141 if (result != NO_ERROR) { in dequeueBuffer()
142 return result; in dequeueBuffer()
147 result = reply.read(**fence); in dequeueBuffer()
148 if (result != NO_ERROR) { in dequeueBuffer()
150 return result; in dequeueBuffer()
153 result = reply.read(*outTimestamps); in dequeueBuffer()
154 if (result != NO_ERROR) { in dequeueBuffer()
156 result); in dequeueBuffer()
157 return result; in dequeueBuffer()
160 result = reply.readInt32(); in dequeueBuffer()
161 return result; in dequeueBuffer()
168 status_t result = remote()->transact(DETACH_BUFFER, data, &reply); in detachBuffer() local
169 if (result != NO_ERROR) { in detachBuffer()
170 return result; in detachBuffer()
172 result = reply.readInt32(); in detachBuffer()
173 return result; in detachBuffer()
187 status_t result = remote()->transact(DETACH_NEXT_BUFFER, data, &reply); in detachNextBuffer() local
188 if (result != NO_ERROR) { in detachNextBuffer()
189 return result; in detachNextBuffer()
191 result = reply.readInt32(); in detachNextBuffer()
192 if (result == NO_ERROR) { in detachNextBuffer()
196 result = reply.read(**outBuffer); in detachNextBuffer()
197 if (result != NO_ERROR) { in detachNextBuffer()
199 return result; in detachNextBuffer()
205 result = reply.read(**outFence); in detachNextBuffer()
206 if (result != NO_ERROR) { in detachNextBuffer()
209 return result; in detachNextBuffer()
213 return result; in detachNextBuffer()
220 status_t result = remote()->transact(ATTACH_BUFFER, data, &reply); in attachBuffer() local
221 if (result != NO_ERROR) { in attachBuffer()
222 return result; in attachBuffer()
226 result = reply.readInt32(); in attachBuffer()
227 if (result == NO_ERROR && in attachBuffer()
234 return result; in attachBuffer()
245 status_t result = remote()->transact(QUEUE_BUFFER, data, &reply); in queueBuffer() local
246 if (result != NO_ERROR) { in queueBuffer()
247 return result; in queueBuffer()
250 result = reply.read(*output); in queueBuffer()
251 if (result != NO_ERROR) { in queueBuffer()
252 return result; in queueBuffer()
255 result = reply.readInt32(); in queueBuffer()
256 return result; in queueBuffer()
264 status_t result = remote()->transact(CANCEL_BUFFER, data, &reply); in cancelBuffer() local
265 if (result != NO_ERROR) { in cancelBuffer()
266 return result; in cancelBuffer()
268 result = reply.readInt32(); in cancelBuffer()
269 return result; in cancelBuffer()
276 status_t result = remote()->transact(QUERY, data, &reply); in query() local
277 if (result != NO_ERROR) { in query()
278 return result; in query()
281 result = reply.readInt32(); in query()
282 return result; in query()
297 status_t result = remote()->transact(CONNECT, data, &reply); in connect() local
298 if (result != NO_ERROR) { in connect()
299 return result; in connect()
302 result = reply.readInt32(); in connect()
303 return result; in connect()
311 status_t result =remote()->transact(DISCONNECT, data, &reply); in disconnect() local
312 if (result != NO_ERROR) { in disconnect()
313 return result; in disconnect()
315 result = reply.readInt32(); in disconnect()
316 return result; in disconnect()
321 status_t result; in setSidebandStream() local
329 if ((result = remote()->transact(SET_SIDEBAND_STREAM, data, &reply)) == NO_ERROR) { in setSidebandStream()
330 result = reply.readInt32(); in setSidebandStream()
332 return result; in setSidebandStream()
343 status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply); in allocateBuffers() local
344 if (result != NO_ERROR) { in allocateBuffers()
345 ALOGE("allocateBuffers failed to transact: %d", result); in allocateBuffers()
353 status_t result = remote()->transact(ALLOW_ALLOCATION, data, &reply); in allowAllocation() local
354 if (result != NO_ERROR) { in allowAllocation()
355 return result; in allowAllocation()
357 result = reply.readInt32(); in allowAllocation()
358 return result; in allowAllocation()
365 status_t result = remote()->transact(SET_GENERATION_NUMBER, data, &reply); in setGenerationNumber() local
366 if (result == NO_ERROR) { in setGenerationNumber()
367 result = reply.readInt32(); in setGenerationNumber()
369 return result; in setGenerationNumber()
375 status_t result = remote()->transact(GET_CONSUMER_NAME, data, &reply); in getConsumerName() local
376 if (result != NO_ERROR) { in getConsumerName()
377 ALOGE("getConsumerName failed to transact: %d", result); in getConsumerName()
388 status_t result = remote()->transact(SET_SHARED_BUFFER_MODE, data, in setSharedBufferMode() local
390 if (result == NO_ERROR) { in setSharedBufferMode()
391 result = reply.readInt32(); in setSharedBufferMode()
393 return result; in setSharedBufferMode()
401 status_t result = remote()->transact(SET_AUTO_REFRESH, data, &reply); in setAutoRefresh() local
402 if (result == NO_ERROR) { in setAutoRefresh()
403 result = reply.readInt32(); in setAutoRefresh()
405 return result; in setAutoRefresh()
412 status_t result = remote()->transact(SET_DEQUEUE_TIMEOUT, data, &reply); in setDequeueTimeout() local
413 if (result != NO_ERROR) { in setDequeueTimeout()
414 ALOGE("setDequeueTimeout failed to transact: %d", result); in setDequeueTimeout()
415 return result; in setDequeueTimeout()
424 status_t result = remote()->transact(GET_LAST_QUEUED_BUFFER, data, in getLastQueuedBuffer() local
426 if (result != NO_ERROR) { in getLastQueuedBuffer()
427 ALOGE("getLastQueuedBuffer failed to transact: %d", result); in getLastQueuedBuffer()
428 return result; in getLastQueuedBuffer()
430 result = reply.readInt32(); in getLastQueuedBuffer()
431 if (result != NO_ERROR) { in getLastQueuedBuffer()
432 return result; in getLastQueuedBuffer()
438 result = reply.read(*buffer); in getLastQueuedBuffer()
439 if (result == NO_ERROR) { in getLastQueuedBuffer()
440 result = reply.read(outTransformMatrix, sizeof(float) * 16); in getLastQueuedBuffer()
443 if (result != NO_ERROR) { in getLastQueuedBuffer()
444 ALOGE("getLastQueuedBuffer failed to read buffer: %d", result); in getLastQueuedBuffer()
445 return result; in getLastQueuedBuffer()
448 result = reply.read(*fence); in getLastQueuedBuffer()
449 if (result != NO_ERROR) { in getLastQueuedBuffer()
450 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); in getLastQueuedBuffer()
451 return result; in getLastQueuedBuffer()
455 return result; in getLastQueuedBuffer()
460 status_t result = data.writeInterfaceToken( in getFrameTimestamps() local
462 if (result != NO_ERROR) { in getFrameTimestamps()
463 ALOGE("IGBP::getFrameTimestamps failed to write token: %d", result); in getFrameTimestamps()
466 result = remote()->transact(GET_FRAME_TIMESTAMPS, data, &reply); in getFrameTimestamps()
467 if (result != NO_ERROR) { in getFrameTimestamps()
468 ALOGE("IGBP::getFrameTimestamps failed to transact: %d", result); in getFrameTimestamps()
471 result = reply.read(*outDelta); in getFrameTimestamps()
472 if (result != NO_ERROR) { in getFrameTimestamps()
474 result); in getFrameTimestamps()
481 status_t result = remote()->transact(GET_UNIQUE_ID, data, &reply); in getUniqueId() local
482 if (result != NO_ERROR) { in getUniqueId()
483 ALOGE("getUniqueId failed to transact: %d", result); in getUniqueId()
486 result = reply.readInt32(&actualResult); in getUniqueId()
487 if (result != NO_ERROR) { in getUniqueId()
488 return result; in getUniqueId()
490 result = reply.readUint64(outId); in getUniqueId()
491 if (result != NO_ERROR) { in getUniqueId()
492 return result; in getUniqueId()
630 int result = requestBuffer(bufferIdx, &buffer); in onTransact() local
635 reply->writeInt32(result); in onTransact()
641 int result = setMaxDequeuedBufferCount(maxDequeuedBuffers); in onTransact() local
642 reply->writeInt32(result); in onTransact()
648 int result = setAsyncMode(async); in onTransact() local
649 reply->writeInt32(result); in onTransact()
663 int result = dequeueBuffer(&buf, &fence, width, height, format, in onTransact() local
671 reply->writeInt32(result); in onTransact()
677 int result = detachBuffer(slot); in onTransact() local
678 reply->writeInt32(result); in onTransact()
685 int32_t result = detachNextBuffer(&buffer, &fence); in onTransact() local
686 reply->writeInt32(result); in onTransact()
687 if (result == NO_ERROR) { in onTransact()
702 status_t result = data.read(*buffer.get()); in onTransact() local
704 if (result == NO_ERROR) { in onTransact()
705 result = attachBuffer(&slot, buffer); in onTransact()
708 reply->writeInt32(result); in onTransact()
717 status_t result = queueBuffer(buf, input, &output); in onTransact() local
719 reply->writeInt32(result); in onTransact()
727 status_t result = data.read(*fence.get()); in onTransact() local
728 if (result == NO_ERROR) { in onTransact()
729 result = cancelBuffer(buf, fence); in onTransact()
731 reply->writeInt32(result); in onTransact()
771 status_t result = setSidebandStream(stream); in onTransact() local
772 reply->writeInt32(result); in onTransact()
787 status_t result = allowAllocation(allow); in onTransact() local
788 reply->writeInt32(result); in onTransact()
794 status_t result = setGenerationNumber(generationNumber); in onTransact() local
795 reply->writeInt32(result); in onTransact()
806 status_t result = setSharedBufferMode(sharedBufferMode); in onTransact() local
807 reply->writeInt32(result); in onTransact()
813 status_t result = setAutoRefresh(autoRefresh); in onTransact() local
814 reply->writeInt32(result); in onTransact()
820 status_t result = setDequeueTimeout(timeout); in onTransact() local
821 reply->writeInt32(result); in onTransact()
829 status_t result = getLastQueuedBuffer(&buffer, &fence, transform); in onTransact() local
830 reply->writeInt32(result); in onTransact()
831 if (result != NO_ERROR) { in onTransact()
832 return result; in onTransact()
838 result = reply->write(*buffer); in onTransact()
839 if (result == NO_ERROR) { in onTransact()
843 if (result != NO_ERROR) { in onTransact()
844 ALOGE("getLastQueuedBuffer failed to write buffer: %d", result); in onTransact()
845 return result; in onTransact()
847 result = reply->write(*fence); in onTransact()
848 if (result != NO_ERROR) { in onTransact()
849 ALOGE("getLastQueuedBuffer failed to write fence: %d", result); in onTransact()
850 return result; in onTransact()
858 status_t result = reply->write(frameTimestamps); in onTransact() local
859 if (result != NO_ERROR) { in onTransact()
861 result); in onTransact()
862 return result; in onTransact()
870 status_t result = reply->writeInt32(actualResult); in onTransact() local
871 if (result != NO_ERROR) { in onTransact()
872 return result; in onTransact()
874 result = reply->writeUint64(outId); in onTransact()
875 if (result != NO_ERROR) { in onTransact()
876 return result; in onTransact()
927 status_t result = fence->flatten(buffer, size, fds, count); in flatten() local
928 if (result != NO_ERROR) { in flatten()
929 return result; in flatten()
951 status_t result = fence->unflatten(buffer, size, fds, count); in unflatten() local
952 if (result != NO_ERROR) { in unflatten()
953 return result; in unflatten()