Lines Matching refs:result

92         status_t result =remote()->transact(REQUEST_BUFFER, data, &reply);  in requestBuffer()  local
93 if (result != NO_ERROR) { in requestBuffer()
94 return result; in requestBuffer()
99 result = reply.read(**buf); in requestBuffer()
100 if(result != NO_ERROR) { in requestBuffer()
102 return result; in requestBuffer()
105 result = reply.readInt32(); in requestBuffer()
106 return result; in requestBuffer()
114 status_t result = remote()->transact(SET_MAX_DEQUEUED_BUFFER_COUNT, in setMaxDequeuedBufferCount() local
116 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
117 return result; in setMaxDequeuedBufferCount()
119 result = reply.readInt32(); in setMaxDequeuedBufferCount()
120 return result; in setMaxDequeuedBufferCount()
128 status_t result = remote()->transact(SET_ASYNC_MODE, in setAsyncMode() local
130 if (result != NO_ERROR) { in setAsyncMode()
131 return result; in setAsyncMode()
133 result = reply.readInt32(); in setAsyncMode()
134 return result; in setAsyncMode()
150 status_t result = remote()->transact(DEQUEUE_BUFFER, data, &reply); in dequeueBuffer() local
151 if (result != NO_ERROR) { in dequeueBuffer()
152 return result; in dequeueBuffer()
157 result = reply.read(**fence); in dequeueBuffer()
158 if (result != NO_ERROR) { in dequeueBuffer()
160 return result; in dequeueBuffer()
163 result = reply.readUint64(outBufferAge); in dequeueBuffer()
167 result = reply.readUint64(&bufferAge); in dequeueBuffer()
169 if (result != NO_ERROR) { in dequeueBuffer()
170 ALOGE("IGBP::dequeueBuffer failed to read buffer age: %d", result); in dequeueBuffer()
171 return result; in dequeueBuffer()
174 result = reply.read(*outTimestamps); in dequeueBuffer()
175 if (result != NO_ERROR) { in dequeueBuffer()
177 result); in dequeueBuffer()
178 return result; in dequeueBuffer()
181 result = reply.readInt32(); in dequeueBuffer()
182 return result; in dequeueBuffer()
189 status_t result = remote()->transact(DETACH_BUFFER, data, &reply); in detachBuffer() local
190 if (result != NO_ERROR) { in detachBuffer()
191 return result; in detachBuffer()
193 result = reply.readInt32(); in detachBuffer()
194 return result; in detachBuffer()
208 status_t result = remote()->transact(DETACH_NEXT_BUFFER, data, &reply); in detachNextBuffer() local
209 if (result != NO_ERROR) { in detachNextBuffer()
210 return result; in detachNextBuffer()
212 result = reply.readInt32(); in detachNextBuffer()
213 if (result == NO_ERROR) { in detachNextBuffer()
217 result = reply.read(**outBuffer); in detachNextBuffer()
218 if (result != NO_ERROR) { in detachNextBuffer()
220 return result; in detachNextBuffer()
226 result = reply.read(**outFence); in detachNextBuffer()
227 if (result != NO_ERROR) { in detachNextBuffer()
230 return result; in detachNextBuffer()
234 return result; in detachNextBuffer()
241 status_t result = remote()->transact(ATTACH_BUFFER, data, &reply); in attachBuffer() local
242 if (result != NO_ERROR) { in attachBuffer()
243 return result; in attachBuffer()
247 result = reply.readInt32(); in attachBuffer()
248 if (result == NO_ERROR && in attachBuffer()
255 return result; in attachBuffer()
266 status_t result = remote()->transact(QUEUE_BUFFER, data, &reply); in queueBuffer() local
267 if (result != NO_ERROR) { in queueBuffer()
268 return result; in queueBuffer()
271 result = reply.read(*output); in queueBuffer()
272 if (result != NO_ERROR) { in queueBuffer()
273 return result; in queueBuffer()
276 result = reply.readInt32(); in queueBuffer()
277 return result; in queueBuffer()
285 status_t result = remote()->transact(CANCEL_BUFFER, data, &reply); in cancelBuffer() local
286 if (result != NO_ERROR) { in cancelBuffer()
287 return result; in cancelBuffer()
289 result = reply.readInt32(); in cancelBuffer()
290 return result; in cancelBuffer()
297 status_t result = remote()->transact(QUERY, data, &reply); in query() local
298 if (result != NO_ERROR) { in query()
299 return result; in query()
302 result = reply.readInt32(); in query()
303 return result; in query()
318 status_t result = remote()->transact(CONNECT, data, &reply); in connect() local
319 if (result != NO_ERROR) { in connect()
320 return result; in connect()
323 result = reply.readInt32(); in connect()
324 return result; in connect()
332 status_t result =remote()->transact(DISCONNECT, data, &reply); in disconnect() local
333 if (result != NO_ERROR) { in disconnect()
334 return result; in disconnect()
336 result = reply.readInt32(); in disconnect()
337 return result; in disconnect()
342 status_t result; in setSidebandStream() local
350 if ((result = remote()->transact(SET_SIDEBAND_STREAM, data, &reply)) == NO_ERROR) { in setSidebandStream()
351 result = reply.readInt32(); in setSidebandStream()
353 return result; in setSidebandStream()
364 status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply, IBinder::FLAG_ONEWAY); in allocateBuffers() local
365 if (result != NO_ERROR) { in allocateBuffers()
366 ALOGE("allocateBuffers failed to transact: %d", result); in allocateBuffers()
374 status_t result = remote()->transact(ALLOW_ALLOCATION, data, &reply); in allowAllocation() local
375 if (result != NO_ERROR) { in allowAllocation()
376 return result; in allowAllocation()
378 result = reply.readInt32(); in allowAllocation()
379 return result; in allowAllocation()
386 status_t result = remote()->transact(SET_GENERATION_NUMBER, data, &reply); in setGenerationNumber() local
387 if (result == NO_ERROR) { in setGenerationNumber()
388 result = reply.readInt32(); in setGenerationNumber()
390 return result; in setGenerationNumber()
396 status_t result = remote()->transact(GET_CONSUMER_NAME, data, &reply); in getConsumerName() local
397 if (result != NO_ERROR) { in getConsumerName()
398 ALOGE("getConsumerName failed to transact: %d", result); in getConsumerName()
409 status_t result = remote()->transact(SET_SHARED_BUFFER_MODE, data, in setSharedBufferMode() local
411 if (result == NO_ERROR) { in setSharedBufferMode()
412 result = reply.readInt32(); in setSharedBufferMode()
414 return result; in setSharedBufferMode()
422 status_t result = remote()->transact(SET_AUTO_REFRESH, data, &reply); in setAutoRefresh() local
423 if (result == NO_ERROR) { in setAutoRefresh()
424 result = reply.readInt32(); in setAutoRefresh()
426 return result; in setAutoRefresh()
433 status_t result = remote()->transact(SET_DEQUEUE_TIMEOUT, data, &reply); in setDequeueTimeout() local
434 if (result != NO_ERROR) { in setDequeueTimeout()
435 ALOGE("setDequeueTimeout failed to transact: %d", result); in setDequeueTimeout()
436 return result; in setDequeueTimeout()
446 status_t result = remote()->transact(SET_LEGACY_BUFFER_DROP, in setLegacyBufferDrop() local
448 if (result != NO_ERROR) { in setLegacyBufferDrop()
449 return result; in setLegacyBufferDrop()
451 result = reply.readInt32(); in setLegacyBufferDrop()
452 return result; in setLegacyBufferDrop()
459 status_t result = remote()->transact(GET_LAST_QUEUED_BUFFER, data, in getLastQueuedBuffer() local
461 if (result != NO_ERROR) { in getLastQueuedBuffer()
462 ALOGE("getLastQueuedBuffer failed to transact: %d", result); in getLastQueuedBuffer()
463 return result; in getLastQueuedBuffer()
465 result = reply.readInt32(); in getLastQueuedBuffer()
466 if (result != NO_ERROR) { in getLastQueuedBuffer()
467 return result; in getLastQueuedBuffer()
473 result = reply.read(*buffer); in getLastQueuedBuffer()
474 if (result == NO_ERROR) { in getLastQueuedBuffer()
475 result = reply.read(outTransformMatrix, sizeof(float) * 16); in getLastQueuedBuffer()
478 if (result != NO_ERROR) { in getLastQueuedBuffer()
479 ALOGE("getLastQueuedBuffer failed to read buffer: %d", result); in getLastQueuedBuffer()
480 return result; in getLastQueuedBuffer()
483 result = reply.read(*fence); in getLastQueuedBuffer()
484 if (result != NO_ERROR) { in getLastQueuedBuffer()
485 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); in getLastQueuedBuffer()
486 return result; in getLastQueuedBuffer()
490 return result; in getLastQueuedBuffer()
495 status_t result = data.writeInterfaceToken( in getFrameTimestamps() local
497 if (result != NO_ERROR) { in getFrameTimestamps()
498 ALOGE("IGBP::getFrameTimestamps failed to write token: %d", result); in getFrameTimestamps()
501 result = remote()->transact(GET_FRAME_TIMESTAMPS, data, &reply); in getFrameTimestamps()
502 if (result != NO_ERROR) { in getFrameTimestamps()
503 ALOGE("IGBP::getFrameTimestamps failed to transact: %d", result); in getFrameTimestamps()
506 result = reply.read(*outDelta); in getFrameTimestamps()
507 if (result != NO_ERROR) { in getFrameTimestamps()
509 result); in getFrameTimestamps()
516 status_t result = remote()->transact(GET_UNIQUE_ID, data, &reply); in getUniqueId() local
517 if (result != NO_ERROR) { in getUniqueId()
518 ALOGE("getUniqueId failed to transact: %d", result); in getUniqueId()
521 result = reply.readInt32(&actualResult); in getUniqueId()
522 if (result != NO_ERROR) { in getUniqueId()
523 return result; in getUniqueId()
525 result = reply.readUint64(outId); in getUniqueId()
526 if (result != NO_ERROR) { in getUniqueId()
527 return result; in getUniqueId()
535 status_t result = remote()->transact(GET_CONSUMER_USAGE, data, &reply); in getConsumerUsage() local
536 if (result != NO_ERROR) { in getConsumerUsage()
537 ALOGE("getConsumerUsage failed to transact: %d", result); in getConsumerUsage()
540 result = reply.readInt32(&actualResult); in getConsumerUsage()
541 if (result != NO_ERROR) { in getConsumerUsage()
542 return result; in getConsumerUsage()
544 result = reply.readUint64(outUsage); in getConsumerUsage()
545 if (result != NO_ERROR) { in getConsumerUsage()
546 return result; in getConsumerUsage()
772 int result = requestBuffer(bufferIdx, &buffer); in onTransact() local
777 reply->writeInt32(result); in onTransact()
783 int result = setMaxDequeuedBufferCount(maxDequeuedBuffers); in onTransact() local
784 reply->writeInt32(result); in onTransact()
790 int result = setAsyncMode(async); in onTransact() local
791 reply->writeInt32(result); in onTransact()
806 int result = dequeueBuffer(&buf, &fence, width, height, format, usage, &bufferAge, in onTransact() local
819 reply->writeInt32(result); in onTransact()
825 int result = detachBuffer(slot); in onTransact() local
826 reply->writeInt32(result); in onTransact()
833 int32_t result = detachNextBuffer(&buffer, &fence); in onTransact() local
834 reply->writeInt32(result); in onTransact()
835 if (result == NO_ERROR) { in onTransact()
850 status_t result = data.read(*buffer.get()); in onTransact() local
852 if (result == NO_ERROR) { in onTransact()
853 result = attachBuffer(&slot, buffer); in onTransact()
856 reply->writeInt32(result); in onTransact()
865 status_t result = queueBuffer(buf, input, &output); in onTransact() local
867 reply->writeInt32(result); in onTransact()
875 status_t result = data.read(*fence.get()); in onTransact() local
876 if (result == NO_ERROR) { in onTransact()
877 result = cancelBuffer(buf, fence); in onTransact()
879 reply->writeInt32(result); in onTransact()
919 status_t result = setSidebandStream(stream); in onTransact() local
920 reply->writeInt32(result); in onTransact()
935 status_t result = allowAllocation(allow); in onTransact() local
936 reply->writeInt32(result); in onTransact()
942 status_t result = setGenerationNumber(generationNumber); in onTransact() local
943 reply->writeInt32(result); in onTransact()
954 status_t result = setSharedBufferMode(sharedBufferMode); in onTransact() local
955 reply->writeInt32(result); in onTransact()
961 status_t result = setAutoRefresh(autoRefresh); in onTransact() local
962 reply->writeInt32(result); in onTransact()
968 status_t result = setDequeueTimeout(timeout); in onTransact() local
969 reply->writeInt32(result); in onTransact()
977 status_t result = getLastQueuedBuffer(&buffer, &fence, transform); in onTransact() local
978 reply->writeInt32(result); in onTransact()
979 if (result != NO_ERROR) { in onTransact()
980 return result; in onTransact()
986 result = reply->write(*buffer); in onTransact()
987 if (result == NO_ERROR) { in onTransact()
991 if (result != NO_ERROR) { in onTransact()
992 ALOGE("getLastQueuedBuffer failed to write buffer: %d", result); in onTransact()
993 return result; in onTransact()
999 result = reply->write(*fence); in onTransact()
1000 if (result != NO_ERROR) { in onTransact()
1001 ALOGE("getLastQueuedBuffer failed to write fence: %d", result); in onTransact()
1002 return result; in onTransact()
1010 status_t result = reply->write(frameTimestamps); in onTransact() local
1011 if (result != NO_ERROR) { in onTransact()
1013 result); in onTransact()
1014 return result; in onTransact()
1022 status_t result = reply->writeInt32(actualResult); in onTransact() local
1023 if (result != NO_ERROR) { in onTransact()
1024 return result; in onTransact()
1026 result = reply->writeUint64(outId); in onTransact()
1027 if (result != NO_ERROR) { in onTransact()
1028 return result; in onTransact()
1036 status_t result = reply->writeInt32(actualResult); in onTransact() local
1037 if (result != NO_ERROR) { in onTransact()
1038 return result; in onTransact()
1040 result = reply->writeUint64(outUsage); in onTransact()
1041 if (result != NO_ERROR) { in onTransact()
1042 return result; in onTransact()
1049 int result = setLegacyBufferDrop(drop); in onTransact() local
1050 reply->writeInt32(result); in onTransact()
1101 status_t result = fence->flatten(buffer, size, fds, count); in flatten() local
1102 if (result != NO_ERROR) { in flatten()
1103 return result; in flatten()
1105 result = surfaceDamage.flatten(buffer, size); in flatten()
1106 if (result != NO_ERROR) { in flatten()
1107 return result; in flatten()
1130 status_t result = fence->unflatten(buffer, size, fds, count); in unflatten() local
1131 if (result != NO_ERROR) { in unflatten()
1132 return result; in unflatten()
1134 result = surfaceDamage.unflatten(buffer, size); in unflatten()
1135 if (result != NO_ERROR) { in unflatten()
1136 return result; in unflatten()