Lines Matching refs:result
83 status_t result =remote()->transact(REQUEST_BUFFER, data, &reply); in requestBuffer() local
84 if (result != NO_ERROR) { in requestBuffer()
85 return result; in requestBuffer()
90 result = reply.read(**buf); in requestBuffer()
91 if(result != NO_ERROR) { in requestBuffer()
93 return result; in requestBuffer()
96 result = reply.readInt32(); in requestBuffer()
97 return result; in requestBuffer()
105 status_t result = remote()->transact(SET_MAX_DEQUEUED_BUFFER_COUNT, in setMaxDequeuedBufferCount() local
107 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
108 return result; in setMaxDequeuedBufferCount()
110 result = reply.readInt32(); in setMaxDequeuedBufferCount()
111 return result; in setMaxDequeuedBufferCount()
119 status_t result = remote()->transact(SET_ASYNC_MODE, in setAsyncMode() local
121 if (result != NO_ERROR) { in setAsyncMode()
122 return result; in setAsyncMode()
124 result = reply.readInt32(); in setAsyncMode()
125 return result; in setAsyncMode()
141 status_t result = remote()->transact(DEQUEUE_BUFFER, data, &reply); in dequeueBuffer() local
142 if (result != NO_ERROR) { in dequeueBuffer()
143 return result; in dequeueBuffer()
148 result = reply.read(**fence); in dequeueBuffer()
149 if (result != NO_ERROR) { in dequeueBuffer()
151 return result; in dequeueBuffer()
154 result = reply.readUint64(outBufferAge); in dequeueBuffer()
158 result = reply.readUint64(&bufferAge); in dequeueBuffer()
160 if (result != NO_ERROR) { in dequeueBuffer()
161 ALOGE("IGBP::dequeueBuffer failed to read buffer age: %d", result); in dequeueBuffer()
162 return result; in dequeueBuffer()
165 result = reply.read(*outTimestamps); in dequeueBuffer()
166 if (result != NO_ERROR) { in dequeueBuffer()
168 result); in dequeueBuffer()
169 return result; in dequeueBuffer()
172 result = reply.readInt32(); in dequeueBuffer()
173 return result; in dequeueBuffer()
180 status_t result = remote()->transact(DETACH_BUFFER, data, &reply); in detachBuffer() local
181 if (result != NO_ERROR) { in detachBuffer()
182 return result; in detachBuffer()
184 result = reply.readInt32(); in detachBuffer()
185 return result; in detachBuffer()
199 status_t result = remote()->transact(DETACH_NEXT_BUFFER, data, &reply); in detachNextBuffer() local
200 if (result != NO_ERROR) { in detachNextBuffer()
201 return result; in detachNextBuffer()
203 result = reply.readInt32(); in detachNextBuffer()
204 if (result == NO_ERROR) { in detachNextBuffer()
208 result = reply.read(**outBuffer); in detachNextBuffer()
209 if (result != NO_ERROR) { in detachNextBuffer()
211 return result; in detachNextBuffer()
217 result = reply.read(**outFence); in detachNextBuffer()
218 if (result != NO_ERROR) { in detachNextBuffer()
221 return result; in detachNextBuffer()
225 return result; in detachNextBuffer()
232 status_t result = remote()->transact(ATTACH_BUFFER, data, &reply); in attachBuffer() local
233 if (result != NO_ERROR) { in attachBuffer()
234 return result; in attachBuffer()
238 result = reply.readInt32(); in attachBuffer()
239 if (result == NO_ERROR && in attachBuffer()
246 return result; in attachBuffer()
257 status_t result = remote()->transact(QUEUE_BUFFER, data, &reply); in queueBuffer() local
258 if (result != NO_ERROR) { in queueBuffer()
259 return result; in queueBuffer()
262 result = reply.read(*output); in queueBuffer()
263 if (result != NO_ERROR) { in queueBuffer()
264 return result; in queueBuffer()
267 result = reply.readInt32(); in queueBuffer()
268 return result; in queueBuffer()
276 status_t result = remote()->transact(CANCEL_BUFFER, data, &reply); in cancelBuffer() local
277 if (result != NO_ERROR) { in cancelBuffer()
278 return result; in cancelBuffer()
280 result = reply.readInt32(); in cancelBuffer()
281 return result; in cancelBuffer()
288 status_t result = remote()->transact(QUERY, data, &reply); in query() local
289 if (result != NO_ERROR) { in query()
290 return result; in query()
293 result = reply.readInt32(); in query()
294 return result; in query()
309 status_t result = remote()->transact(CONNECT, data, &reply); in connect() local
310 if (result != NO_ERROR) { in connect()
311 return result; in connect()
314 result = reply.readInt32(); in connect()
315 return result; in connect()
323 status_t result =remote()->transact(DISCONNECT, data, &reply); in disconnect() local
324 if (result != NO_ERROR) { in disconnect()
325 return result; in disconnect()
327 result = reply.readInt32(); in disconnect()
328 return result; in disconnect()
333 status_t result; in setSidebandStream() local
341 if ((result = remote()->transact(SET_SIDEBAND_STREAM, data, &reply)) == NO_ERROR) { in setSidebandStream()
342 result = reply.readInt32(); in setSidebandStream()
344 return result; in setSidebandStream()
355 status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply); in allocateBuffers() local
356 if (result != NO_ERROR) { in allocateBuffers()
357 ALOGE("allocateBuffers failed to transact: %d", result); in allocateBuffers()
365 status_t result = remote()->transact(ALLOW_ALLOCATION, data, &reply); in allowAllocation() local
366 if (result != NO_ERROR) { in allowAllocation()
367 return result; in allowAllocation()
369 result = reply.readInt32(); in allowAllocation()
370 return result; in allowAllocation()
377 status_t result = remote()->transact(SET_GENERATION_NUMBER, data, &reply); in setGenerationNumber() local
378 if (result == NO_ERROR) { in setGenerationNumber()
379 result = reply.readInt32(); in setGenerationNumber()
381 return result; in setGenerationNumber()
387 status_t result = remote()->transact(GET_CONSUMER_NAME, data, &reply); in getConsumerName() local
388 if (result != NO_ERROR) { in getConsumerName()
389 ALOGE("getConsumerName failed to transact: %d", result); in getConsumerName()
400 status_t result = remote()->transact(SET_SHARED_BUFFER_MODE, data, in setSharedBufferMode() local
402 if (result == NO_ERROR) { in setSharedBufferMode()
403 result = reply.readInt32(); in setSharedBufferMode()
405 return result; in setSharedBufferMode()
413 status_t result = remote()->transact(SET_AUTO_REFRESH, data, &reply); in setAutoRefresh() local
414 if (result == NO_ERROR) { in setAutoRefresh()
415 result = reply.readInt32(); in setAutoRefresh()
417 return result; in setAutoRefresh()
424 status_t result = remote()->transact(SET_DEQUEUE_TIMEOUT, data, &reply); in setDequeueTimeout() local
425 if (result != NO_ERROR) { in setDequeueTimeout()
426 ALOGE("setDequeueTimeout failed to transact: %d", result); in setDequeueTimeout()
427 return result; in setDequeueTimeout()
436 status_t result = remote()->transact(GET_LAST_QUEUED_BUFFER, data, in getLastQueuedBuffer() local
438 if (result != NO_ERROR) { in getLastQueuedBuffer()
439 ALOGE("getLastQueuedBuffer failed to transact: %d", result); in getLastQueuedBuffer()
440 return result; in getLastQueuedBuffer()
442 result = reply.readInt32(); in getLastQueuedBuffer()
443 if (result != NO_ERROR) { in getLastQueuedBuffer()
444 return result; in getLastQueuedBuffer()
450 result = reply.read(*buffer); in getLastQueuedBuffer()
451 if (result == NO_ERROR) { in getLastQueuedBuffer()
452 result = reply.read(outTransformMatrix, sizeof(float) * 16); in getLastQueuedBuffer()
455 if (result != NO_ERROR) { in getLastQueuedBuffer()
456 ALOGE("getLastQueuedBuffer failed to read buffer: %d", result); in getLastQueuedBuffer()
457 return result; in getLastQueuedBuffer()
460 result = reply.read(*fence); in getLastQueuedBuffer()
461 if (result != NO_ERROR) { in getLastQueuedBuffer()
462 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); in getLastQueuedBuffer()
463 return result; in getLastQueuedBuffer()
467 return result; in getLastQueuedBuffer()
472 status_t result = data.writeInterfaceToken( in getFrameTimestamps() local
474 if (result != NO_ERROR) { in getFrameTimestamps()
475 ALOGE("IGBP::getFrameTimestamps failed to write token: %d", result); in getFrameTimestamps()
478 result = remote()->transact(GET_FRAME_TIMESTAMPS, data, &reply); in getFrameTimestamps()
479 if (result != NO_ERROR) { in getFrameTimestamps()
480 ALOGE("IGBP::getFrameTimestamps failed to transact: %d", result); in getFrameTimestamps()
483 result = reply.read(*outDelta); in getFrameTimestamps()
484 if (result != NO_ERROR) { in getFrameTimestamps()
486 result); in getFrameTimestamps()
493 status_t result = remote()->transact(GET_UNIQUE_ID, data, &reply); in getUniqueId() local
494 if (result != NO_ERROR) { in getUniqueId()
495 ALOGE("getUniqueId failed to transact: %d", result); in getUniqueId()
498 result = reply.readInt32(&actualResult); in getUniqueId()
499 if (result != NO_ERROR) { in getUniqueId()
500 return result; in getUniqueId()
502 result = reply.readUint64(outId); in getUniqueId()
503 if (result != NO_ERROR) { in getUniqueId()
504 return result; in getUniqueId()
512 status_t result = remote()->transact(GET_CONSUMER_USAGE, data, &reply); in getConsumerUsage() local
513 if (result != NO_ERROR) { in getConsumerUsage()
514 ALOGE("getConsumerUsage failed to transact: %d", result); in getConsumerUsage()
517 result = reply.readInt32(&actualResult); in getConsumerUsage()
518 if (result != NO_ERROR) { in getConsumerUsage()
519 return result; in getConsumerUsage()
521 result = reply.readUint64(outUsage); in getConsumerUsage()
522 if (result != NO_ERROR) { in getConsumerUsage()
523 return result; in getConsumerUsage()
664 int result = requestBuffer(bufferIdx, &buffer); in onTransact() local
669 reply->writeInt32(result); in onTransact()
675 int result = setMaxDequeuedBufferCount(maxDequeuedBuffers); in onTransact() local
676 reply->writeInt32(result); in onTransact()
682 int result = setAsyncMode(async); in onTransact() local
683 reply->writeInt32(result); in onTransact()
698 int result = dequeueBuffer(&buf, &fence, width, height, format, usage, &bufferAge, in onTransact() local
707 reply->writeInt32(result); in onTransact()
713 int result = detachBuffer(slot); in onTransact() local
714 reply->writeInt32(result); in onTransact()
721 int32_t result = detachNextBuffer(&buffer, &fence); in onTransact() local
722 reply->writeInt32(result); in onTransact()
723 if (result == NO_ERROR) { in onTransact()
738 status_t result = data.read(*buffer.get()); in onTransact() local
740 if (result == NO_ERROR) { in onTransact()
741 result = attachBuffer(&slot, buffer); in onTransact()
744 reply->writeInt32(result); in onTransact()
753 status_t result = queueBuffer(buf, input, &output); in onTransact() local
755 reply->writeInt32(result); in onTransact()
763 status_t result = data.read(*fence.get()); in onTransact() local
764 if (result == NO_ERROR) { in onTransact()
765 result = cancelBuffer(buf, fence); in onTransact()
767 reply->writeInt32(result); in onTransact()
807 status_t result = setSidebandStream(stream); in onTransact() local
808 reply->writeInt32(result); in onTransact()
823 status_t result = allowAllocation(allow); in onTransact() local
824 reply->writeInt32(result); in onTransact()
830 status_t result = setGenerationNumber(generationNumber); in onTransact() local
831 reply->writeInt32(result); in onTransact()
842 status_t result = setSharedBufferMode(sharedBufferMode); in onTransact() local
843 reply->writeInt32(result); in onTransact()
849 status_t result = setAutoRefresh(autoRefresh); in onTransact() local
850 reply->writeInt32(result); in onTransact()
856 status_t result = setDequeueTimeout(timeout); in onTransact() local
857 reply->writeInt32(result); in onTransact()
865 status_t result = getLastQueuedBuffer(&buffer, &fence, transform); in onTransact() local
866 reply->writeInt32(result); in onTransact()
867 if (result != NO_ERROR) { in onTransact()
868 return result; in onTransact()
874 result = reply->write(*buffer); in onTransact()
875 if (result == NO_ERROR) { in onTransact()
879 if (result != NO_ERROR) { in onTransact()
880 ALOGE("getLastQueuedBuffer failed to write buffer: %d", result); in onTransact()
881 return result; in onTransact()
883 result = reply->write(*fence); in onTransact()
884 if (result != NO_ERROR) { in onTransact()
885 ALOGE("getLastQueuedBuffer failed to write fence: %d", result); in onTransact()
886 return result; in onTransact()
894 status_t result = reply->write(frameTimestamps); in onTransact() local
895 if (result != NO_ERROR) { in onTransact()
897 result); in onTransact()
898 return result; in onTransact()
906 status_t result = reply->writeInt32(actualResult); in onTransact() local
907 if (result != NO_ERROR) { in onTransact()
908 return result; in onTransact()
910 result = reply->writeUint64(outId); in onTransact()
911 if (result != NO_ERROR) { in onTransact()
912 return result; in onTransact()
920 status_t result = reply->writeInt32(actualResult); in onTransact() local
921 if (result != NO_ERROR) { in onTransact()
922 return result; in onTransact()
924 result = reply->writeUint64(outUsage); in onTransact()
925 if (result != NO_ERROR) { in onTransact()
926 return result; in onTransact()
977 status_t result = fence->flatten(buffer, size, fds, count); in flatten() local
978 if (result != NO_ERROR) { in flatten()
979 return result; in flatten()
1001 status_t result = fence->unflatten(buffer, size, fds, count); in unflatten() local
1002 if (result != NO_ERROR) { in unflatten()
1003 return result; in unflatten()