Lines Matching refs:result
93 status_t result =remote()->transact(REQUEST_BUFFER, data, &reply); in requestBuffer() local
94 if (result != NO_ERROR) { in requestBuffer()
95 return result; in requestBuffer()
100 result = reply.read(**buf); in requestBuffer()
101 if(result != NO_ERROR) { in requestBuffer()
103 return result; in requestBuffer()
106 result = reply.readInt32(); in requestBuffer()
107 return result; in requestBuffer()
115 status_t result = remote()->transact(SET_MAX_DEQUEUED_BUFFER_COUNT, in setMaxDequeuedBufferCount() local
117 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
118 return result; in setMaxDequeuedBufferCount()
120 result = reply.readInt32(); in setMaxDequeuedBufferCount()
121 return result; in setMaxDequeuedBufferCount()
129 status_t result = remote()->transact(SET_ASYNC_MODE, in setAsyncMode() local
131 if (result != NO_ERROR) { in setAsyncMode()
132 return result; in setAsyncMode()
134 result = reply.readInt32(); in setAsyncMode()
135 return result; in setAsyncMode()
151 status_t result = remote()->transact(DEQUEUE_BUFFER, data, &reply); in dequeueBuffer() local
152 if (result != NO_ERROR) { in dequeueBuffer()
153 return result; in dequeueBuffer()
158 result = reply.read(**fence); in dequeueBuffer()
159 if (result != NO_ERROR) { in dequeueBuffer()
161 return result; in dequeueBuffer()
164 result = reply.readUint64(outBufferAge); in dequeueBuffer()
168 result = reply.readUint64(&bufferAge); in dequeueBuffer()
170 if (result != NO_ERROR) { in dequeueBuffer()
171 ALOGE("IGBP::dequeueBuffer failed to read buffer age: %d", result); in dequeueBuffer()
172 return result; in dequeueBuffer()
175 result = reply.read(*outTimestamps); in dequeueBuffer()
176 if (result != NO_ERROR) { in dequeueBuffer()
178 result); in dequeueBuffer()
179 return result; in dequeueBuffer()
182 result = reply.readInt32(); in dequeueBuffer()
183 return result; in dequeueBuffer()
190 status_t result = remote()->transact(DETACH_BUFFER, data, &reply); in detachBuffer() local
191 if (result != NO_ERROR) { in detachBuffer()
192 return result; in detachBuffer()
194 result = reply.readInt32(); in detachBuffer()
195 return result; in detachBuffer()
209 status_t result = remote()->transact(DETACH_NEXT_BUFFER, data, &reply); in detachNextBuffer() local
210 if (result != NO_ERROR) { in detachNextBuffer()
211 return result; in detachNextBuffer()
213 result = reply.readInt32(); in detachNextBuffer()
214 if (result == NO_ERROR) { in detachNextBuffer()
218 result = reply.read(**outBuffer); in detachNextBuffer()
219 if (result != NO_ERROR) { in detachNextBuffer()
221 return result; in detachNextBuffer()
227 result = reply.read(**outFence); in detachNextBuffer()
228 if (result != NO_ERROR) { in detachNextBuffer()
231 return result; in detachNextBuffer()
235 return result; in detachNextBuffer()
242 status_t result = remote()->transact(ATTACH_BUFFER, data, &reply); in attachBuffer() local
243 if (result != NO_ERROR) { in attachBuffer()
244 return result; in attachBuffer()
248 result = reply.readInt32(); in attachBuffer()
249 if (result == NO_ERROR && in attachBuffer()
256 return result; in attachBuffer()
267 status_t result = remote()->transact(QUEUE_BUFFER, data, &reply); in queueBuffer() local
268 if (result != NO_ERROR) { in queueBuffer()
269 return result; in queueBuffer()
272 result = reply.read(*output); in queueBuffer()
273 if (result != NO_ERROR) { in queueBuffer()
274 return result; in queueBuffer()
277 result = reply.readInt32(); in queueBuffer()
278 return result; in queueBuffer()
286 status_t result = remote()->transact(CANCEL_BUFFER, data, &reply); in cancelBuffer() local
287 if (result != NO_ERROR) { in cancelBuffer()
288 return result; in cancelBuffer()
290 result = reply.readInt32(); in cancelBuffer()
291 return result; in cancelBuffer()
298 status_t result = remote()->transact(QUERY, data, &reply); in query() local
299 if (result != NO_ERROR) { in query()
300 return result; in query()
303 result = reply.readInt32(); in query()
304 return result; in query()
319 status_t result = remote()->transact(CONNECT, data, &reply); in connect() local
320 if (result != NO_ERROR) { in connect()
321 return result; in connect()
324 result = reply.readInt32(); in connect()
325 return result; in connect()
333 status_t result =remote()->transact(DISCONNECT, data, &reply); in disconnect() local
334 if (result != NO_ERROR) { in disconnect()
335 return result; in disconnect()
337 result = reply.readInt32(); in disconnect()
338 return result; in disconnect()
343 status_t result; in setSidebandStream() local
351 if ((result = remote()->transact(SET_SIDEBAND_STREAM, data, &reply)) == NO_ERROR) { in setSidebandStream()
352 result = reply.readInt32(); in setSidebandStream()
354 return result; in setSidebandStream()
365 status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply, IBinder::FLAG_ONEWAY); in allocateBuffers() local
366 if (result != NO_ERROR) { in allocateBuffers()
367 ALOGE("allocateBuffers failed to transact: %d", result); in allocateBuffers()
375 status_t result = remote()->transact(ALLOW_ALLOCATION, data, &reply); in allowAllocation() local
376 if (result != NO_ERROR) { in allowAllocation()
377 return result; in allowAllocation()
379 result = reply.readInt32(); in allowAllocation()
380 return result; in allowAllocation()
387 status_t result = remote()->transact(SET_GENERATION_NUMBER, data, &reply); in setGenerationNumber() local
388 if (result == NO_ERROR) { in setGenerationNumber()
389 result = reply.readInt32(); in setGenerationNumber()
391 return result; in setGenerationNumber()
397 status_t result = remote()->transact(GET_CONSUMER_NAME, data, &reply); in getConsumerName() local
398 if (result != NO_ERROR) { in getConsumerName()
399 ALOGE("getConsumerName failed to transact: %d", result); in getConsumerName()
410 status_t result = remote()->transact(SET_SHARED_BUFFER_MODE, data, in setSharedBufferMode() local
412 if (result == NO_ERROR) { in setSharedBufferMode()
413 result = reply.readInt32(); in setSharedBufferMode()
415 return result; in setSharedBufferMode()
423 status_t result = remote()->transact(SET_AUTO_REFRESH, data, &reply); in setAutoRefresh() local
424 if (result == NO_ERROR) { in setAutoRefresh()
425 result = reply.readInt32(); in setAutoRefresh()
427 return result; in setAutoRefresh()
434 status_t result = remote()->transact(SET_DEQUEUE_TIMEOUT, data, &reply); in setDequeueTimeout() local
435 if (result != NO_ERROR) { in setDequeueTimeout()
436 ALOGE("setDequeueTimeout failed to transact: %d", result); in setDequeueTimeout()
437 return result; in setDequeueTimeout()
447 status_t result = remote()->transact(SET_LEGACY_BUFFER_DROP, in setLegacyBufferDrop() local
449 if (result != NO_ERROR) { in setLegacyBufferDrop()
450 return result; in setLegacyBufferDrop()
452 result = reply.readInt32(); in setLegacyBufferDrop()
453 return result; in setLegacyBufferDrop()
460 status_t result = remote()->transact(GET_LAST_QUEUED_BUFFER, data, in getLastQueuedBuffer() local
462 if (result != NO_ERROR) { in getLastQueuedBuffer()
463 ALOGE("getLastQueuedBuffer failed to transact: %d", result); in getLastQueuedBuffer()
464 return result; in getLastQueuedBuffer()
466 result = reply.readInt32(); in getLastQueuedBuffer()
467 if (result != NO_ERROR) { in getLastQueuedBuffer()
468 return result; in getLastQueuedBuffer()
474 result = reply.read(*buffer); in getLastQueuedBuffer()
475 if (result == NO_ERROR) { in getLastQueuedBuffer()
476 result = reply.read(outTransformMatrix, sizeof(float) * 16); in getLastQueuedBuffer()
479 if (result != NO_ERROR) { in getLastQueuedBuffer()
480 ALOGE("getLastQueuedBuffer failed to read buffer: %d", result); in getLastQueuedBuffer()
481 return result; in getLastQueuedBuffer()
484 result = reply.read(*fence); in getLastQueuedBuffer()
485 if (result != NO_ERROR) { in getLastQueuedBuffer()
486 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); in getLastQueuedBuffer()
487 return result; in getLastQueuedBuffer()
491 return result; in getLastQueuedBuffer()
496 status_t result = data.writeInterfaceToken( in getFrameTimestamps() local
498 if (result != NO_ERROR) { in getFrameTimestamps()
499 ALOGE("IGBP::getFrameTimestamps failed to write token: %d", result); in getFrameTimestamps()
502 result = remote()->transact(GET_FRAME_TIMESTAMPS, data, &reply); in getFrameTimestamps()
503 if (result != NO_ERROR) { in getFrameTimestamps()
504 ALOGE("IGBP::getFrameTimestamps failed to transact: %d", result); in getFrameTimestamps()
507 result = reply.read(*outDelta); in getFrameTimestamps()
508 if (result != NO_ERROR) { in getFrameTimestamps()
510 result); in getFrameTimestamps()
517 status_t result = remote()->transact(GET_UNIQUE_ID, data, &reply); in getUniqueId() local
518 if (result != NO_ERROR) { in getUniqueId()
519 ALOGE("getUniqueId failed to transact: %d", result); in getUniqueId()
522 result = reply.readInt32(&actualResult); in getUniqueId()
523 if (result != NO_ERROR) { in getUniqueId()
524 return result; in getUniqueId()
526 result = reply.readUint64(outId); in getUniqueId()
527 if (result != NO_ERROR) { in getUniqueId()
528 return result; in getUniqueId()
536 status_t result = remote()->transact(GET_CONSUMER_USAGE, data, &reply); in getConsumerUsage() local
537 if (result != NO_ERROR) { in getConsumerUsage()
538 ALOGE("getConsumerUsage failed to transact: %d", result); in getConsumerUsage()
541 result = reply.readInt32(&actualResult); in getConsumerUsage()
542 if (result != NO_ERROR) { in getConsumerUsage()
543 return result; in getConsumerUsage()
545 result = reply.readUint64(outUsage); in getConsumerUsage()
546 if (result != NO_ERROR) { in getConsumerUsage()
547 return result; in getConsumerUsage()
556 status_t result = remote()->transact(SET_AUTO_PREROTATION, data, &reply); in setAutoPrerotation() local
557 if (result == NO_ERROR) { in setAutoPrerotation()
558 result = reply.readInt32(); in setAutoPrerotation()
560 return result; in setAutoPrerotation()
794 int result = requestBuffer(bufferIdx, &buffer); in onTransact() local
799 reply->writeInt32(result); in onTransact()
805 int result = setMaxDequeuedBufferCount(maxDequeuedBuffers); in onTransact() local
806 reply->writeInt32(result); in onTransact()
812 int result = setAsyncMode(async); in onTransact() local
813 reply->writeInt32(result); in onTransact()
828 int result = dequeueBuffer(&buf, &fence, width, height, format, usage, &bufferAge, in onTransact() local
841 reply->writeInt32(result); in onTransact()
847 int result = detachBuffer(slot); in onTransact() local
848 reply->writeInt32(result); in onTransact()
855 int32_t result = detachNextBuffer(&buffer, &fence); in onTransact() local
856 reply->writeInt32(result); in onTransact()
857 if (result == NO_ERROR) { in onTransact()
872 status_t result = data.read(*buffer.get()); in onTransact() local
874 if (result == NO_ERROR) { in onTransact()
875 result = attachBuffer(&slot, buffer); in onTransact()
878 reply->writeInt32(result); in onTransact()
887 status_t result = queueBuffer(buf, input, &output); in onTransact() local
889 reply->writeInt32(result); in onTransact()
897 status_t result = data.read(*fence.get()); in onTransact() local
898 if (result == NO_ERROR) { in onTransact()
899 result = cancelBuffer(buf, fence); in onTransact()
901 reply->writeInt32(result); in onTransact()
941 status_t result = setSidebandStream(stream); in onTransact() local
942 reply->writeInt32(result); in onTransact()
957 status_t result = allowAllocation(allow); in onTransact() local
958 reply->writeInt32(result); in onTransact()
964 status_t result = setGenerationNumber(generationNumber); in onTransact() local
965 reply->writeInt32(result); in onTransact()
976 status_t result = setSharedBufferMode(sharedBufferMode); in onTransact() local
977 reply->writeInt32(result); in onTransact()
983 status_t result = setAutoRefresh(autoRefresh); in onTransact() local
984 reply->writeInt32(result); in onTransact()
990 status_t result = setDequeueTimeout(timeout); in onTransact() local
991 reply->writeInt32(result); in onTransact()
999 status_t result = getLastQueuedBuffer(&buffer, &fence, transform); in onTransact() local
1000 reply->writeInt32(result); in onTransact()
1001 if (result != NO_ERROR) { in onTransact()
1002 return result; in onTransact()
1008 result = reply->write(*buffer); in onTransact()
1009 if (result == NO_ERROR) { in onTransact()
1013 if (result != NO_ERROR) { in onTransact()
1014 ALOGE("getLastQueuedBuffer failed to write buffer: %d", result); in onTransact()
1015 return result; in onTransact()
1021 result = reply->write(*fence); in onTransact()
1022 if (result != NO_ERROR) { in onTransact()
1023 ALOGE("getLastQueuedBuffer failed to write fence: %d", result); in onTransact()
1024 return result; in onTransact()
1032 status_t result = reply->write(frameTimestamps); in onTransact() local
1033 if (result != NO_ERROR) { in onTransact()
1035 result); in onTransact()
1036 return result; in onTransact()
1044 status_t result = reply->writeInt32(actualResult); in onTransact() local
1045 if (result != NO_ERROR) { in onTransact()
1046 return result; in onTransact()
1048 result = reply->writeUint64(outId); in onTransact()
1049 if (result != NO_ERROR) { in onTransact()
1050 return result; in onTransact()
1058 status_t result = reply->writeInt32(actualResult); in onTransact() local
1059 if (result != NO_ERROR) { in onTransact()
1060 return result; in onTransact()
1062 result = reply->writeUint64(outUsage); in onTransact()
1063 if (result != NO_ERROR) { in onTransact()
1064 return result; in onTransact()
1071 int result = setLegacyBufferDrop(drop); in onTransact() local
1072 reply->writeInt32(result); in onTransact()
1078 status_t result = setAutoPrerotation(autoPrerotation); in onTransact() local
1079 reply->writeInt32(result); in onTransact()