Lines Matching refs:result
100 status_t result = remote()->transact(REQUEST_BUFFER, data, &reply); in requestBuffer() local
101 if (result != NO_ERROR) { in requestBuffer()
102 return result; in requestBuffer()
107 result = reply.read(**buf); in requestBuffer()
108 if(result != NO_ERROR) { in requestBuffer()
110 return result; in requestBuffer()
113 result = reply.readInt32(); in requestBuffer()
114 return result; in requestBuffer()
123 status_t result = remote()->transact(REQUEST_BUFFERS, data, &reply); in requestBuffers() local
124 if (result != NO_ERROR) { in requestBuffers()
125 return result; in requestBuffers()
127 result = reply.resizeOutVector(outputs); in requestBuffers()
129 if (result != NO_ERROR) { in requestBuffers()
130 return result; in requestBuffers()
132 result = reply.read(output); in requestBuffers()
135 return result; in requestBuffers()
143 status_t result = remote()->transact(SET_MAX_DEQUEUED_BUFFER_COUNT, in setMaxDequeuedBufferCount() local
145 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
146 return result; in setMaxDequeuedBufferCount()
148 result = reply.readInt32(); in setMaxDequeuedBufferCount()
149 return result; in setMaxDequeuedBufferCount()
157 status_t result = remote()->transact(SET_ASYNC_MODE, in setAsyncMode() local
159 if (result != NO_ERROR) { in setAsyncMode()
160 return result; in setAsyncMode()
162 result = reply.readInt32(); in setAsyncMode()
163 return result; in setAsyncMode()
179 status_t result = remote()->transact(DEQUEUE_BUFFER, data, &reply); in dequeueBuffer() local
180 if (result != NO_ERROR) { in dequeueBuffer()
181 return result; in dequeueBuffer()
186 result = reply.read(**fence); in dequeueBuffer()
187 if (result != NO_ERROR) { in dequeueBuffer()
189 return result; in dequeueBuffer()
192 result = reply.readUint64(outBufferAge); in dequeueBuffer()
196 result = reply.readUint64(&bufferAge); in dequeueBuffer()
198 if (result != NO_ERROR) { in dequeueBuffer()
199 ALOGE("IGBP::dequeueBuffer failed to read buffer age: %d", result); in dequeueBuffer()
200 return result; in dequeueBuffer()
203 result = reply.read(*outTimestamps); in dequeueBuffer()
204 if (result != NO_ERROR) { in dequeueBuffer()
206 result); in dequeueBuffer()
207 return result; in dequeueBuffer()
210 result = reply.readInt32(); in dequeueBuffer()
211 return result; in dequeueBuffer()
223 status_t result = remote()->transact(DEQUEUE_BUFFERS, data, &reply); in dequeueBuffers() local
224 if (result != NO_ERROR) { in dequeueBuffers()
225 return result; in dequeueBuffers()
227 result = reply.resizeOutVector(outputs); in dequeueBuffers()
229 if (result != NO_ERROR) { in dequeueBuffers()
230 return result; in dequeueBuffers()
232 result = reply.read(output); in dequeueBuffers()
234 return result; in dequeueBuffers()
241 status_t result = remote()->transact(DETACH_BUFFER, data, &reply); in detachBuffer() local
242 if (result != NO_ERROR) { in detachBuffer()
243 return result; in detachBuffer()
245 result = reply.readInt32(); in detachBuffer()
246 return result; in detachBuffer()
254 status_t result = remote()->transact(DETACH_BUFFERS, data, &reply); in detachBuffers() local
255 if (result != NO_ERROR) { in detachBuffers()
256 return result; in detachBuffers()
258 result = reply.readInt32Vector(results); in detachBuffers()
259 return result; in detachBuffers()
273 status_t result = remote()->transact(DETACH_NEXT_BUFFER, data, &reply); in detachNextBuffer() local
274 if (result != NO_ERROR) { in detachNextBuffer()
275 return result; in detachNextBuffer()
277 result = reply.readInt32(); in detachNextBuffer()
278 if (result == NO_ERROR) { in detachNextBuffer()
282 result = reply.read(**outBuffer); in detachNextBuffer()
283 if (result != NO_ERROR) { in detachNextBuffer()
285 return result; in detachNextBuffer()
291 result = reply.read(**outFence); in detachNextBuffer()
292 if (result != NO_ERROR) { in detachNextBuffer()
295 return result; in detachNextBuffer()
299 return result; in detachNextBuffer()
306 status_t result = remote()->transact(ATTACH_BUFFER, data, &reply); in attachBuffer() local
307 if (result != NO_ERROR) { in attachBuffer()
308 return result; in attachBuffer()
312 result = reply.readInt32(); in attachBuffer()
313 if (result == NO_ERROR && in attachBuffer()
320 return result; in attachBuffer()
332 status_t result = remote()->transact(ATTACH_BUFFERS, data, &reply); in attachBuffers() local
333 if (result != NO_ERROR) { in attachBuffers()
334 return result; in attachBuffers()
336 result = reply.resizeOutVector(outputs); in attachBuffers()
338 if (result != NO_ERROR) { in attachBuffers()
339 return result; in attachBuffers()
341 result = reply.read(output); in attachBuffers()
343 if (result == NO_ERROR) { in attachBuffers()
345 if (output.result == NO_ERROR && output.slot < 0) { in attachBuffers()
349 output.result = UNKNOWN_ERROR; in attachBuffers()
353 return result; in attachBuffers()
364 status_t result = remote()->transact(QUEUE_BUFFER, data, &reply); in queueBuffer() local
365 if (result != NO_ERROR) { in queueBuffer()
366 return result; in queueBuffer()
369 result = reply.read(*output); in queueBuffer()
370 if (result != NO_ERROR) { in queueBuffer()
371 return result; in queueBuffer()
374 result = reply.readInt32(); in queueBuffer()
375 return result; in queueBuffer()
386 status_t result = remote()->transact(QUEUE_BUFFERS, data, &reply); in queueBuffers() local
387 if (result != NO_ERROR) { in queueBuffers()
388 return result; in queueBuffers()
390 result = reply.resizeOutVector(outputs); in queueBuffers()
392 if (result != NO_ERROR) { in queueBuffers()
393 return result; in queueBuffers()
395 result = reply.read(output); in queueBuffers()
397 return result; in queueBuffers()
405 status_t result = remote()->transact(CANCEL_BUFFER, data, &reply); in cancelBuffer() local
406 if (result != NO_ERROR) { in cancelBuffer()
407 return result; in cancelBuffer()
409 result = reply.readInt32(); in cancelBuffer()
410 return result; in cancelBuffer()
422 status_t result = remote()->transact(CANCEL_BUFFERS, data, &reply); in cancelBuffers() local
423 if (result != NO_ERROR) { in cancelBuffers()
424 return result; in cancelBuffers()
426 result = reply.readInt32Vector(results); in cancelBuffers()
427 return result; in cancelBuffers()
434 status_t result = remote()->transact(QUERY, data, &reply); in query() local
435 if (result != NO_ERROR) { in query()
436 return result; in query()
439 result = reply.readInt32(); in query()
440 return result; in query()
448 status_t result = remote()->transact(QUERY_MULTIPLE, data, &reply); in query() local
449 if (result != NO_ERROR) { in query()
450 return result; in query()
452 result = reply.resizeOutVector(outputs); in query()
454 if (result != NO_ERROR) { in query()
455 return result; in query()
457 result = reply.read(output); in query()
459 return result; in query()
474 status_t result = remote()->transact(CONNECT, data, &reply); in connect() local
475 if (result != NO_ERROR) { in connect()
476 return result; in connect()
479 result = reply.readInt32(); in connect()
480 return result; in connect()
488 status_t result =remote()->transact(DISCONNECT, data, &reply); in disconnect() local
489 if (result != NO_ERROR) { in disconnect()
490 return result; in disconnect()
492 result = reply.readInt32(); in disconnect()
493 return result; in disconnect()
498 status_t result; in setSidebandStream() local
506 if ((result = remote()->transact(SET_SIDEBAND_STREAM, data, &reply)) == NO_ERROR) { in setSidebandStream()
507 result = reply.readInt32(); in setSidebandStream()
509 return result; in setSidebandStream()
520 status_t result = remote()->transact(ALLOCATE_BUFFERS, data, &reply, IBinder::FLAG_ONEWAY); in allocateBuffers() local
521 if (result != NO_ERROR) { in allocateBuffers()
522 ALOGE("allocateBuffers failed to transact: %d", result); in allocateBuffers()
530 status_t result = remote()->transact(ALLOW_ALLOCATION, data, &reply); in allowAllocation() local
531 if (result != NO_ERROR) { in allowAllocation()
532 return result; in allowAllocation()
534 result = reply.readInt32(); in allowAllocation()
535 return result; in allowAllocation()
542 status_t result = remote()->transact(SET_GENERATION_NUMBER, data, &reply); in setGenerationNumber() local
543 if (result == NO_ERROR) { in setGenerationNumber()
544 result = reply.readInt32(); in setGenerationNumber()
546 return result; in setGenerationNumber()
552 status_t result = remote()->transact(GET_CONSUMER_NAME, data, &reply); in getConsumerName() local
553 if (result != NO_ERROR) { in getConsumerName()
554 ALOGE("getConsumerName failed to transact: %d", result); in getConsumerName()
565 status_t result = remote()->transact(SET_SHARED_BUFFER_MODE, data, in setSharedBufferMode() local
567 if (result == NO_ERROR) { in setSharedBufferMode()
568 result = reply.readInt32(); in setSharedBufferMode()
570 return result; in setSharedBufferMode()
578 status_t result = remote()->transact(SET_AUTO_REFRESH, data, &reply); in setAutoRefresh() local
579 if (result == NO_ERROR) { in setAutoRefresh()
580 result = reply.readInt32(); in setAutoRefresh()
582 return result; in setAutoRefresh()
589 status_t result = remote()->transact(SET_DEQUEUE_TIMEOUT, data, &reply); in setDequeueTimeout() local
590 if (result != NO_ERROR) { in setDequeueTimeout()
591 ALOGE("setDequeueTimeout failed to transact: %d", result); in setDequeueTimeout()
592 return result; in setDequeueTimeout()
602 status_t result = remote()->transact(SET_LEGACY_BUFFER_DROP, in setLegacyBufferDrop() local
604 if (result != NO_ERROR) { in setLegacyBufferDrop()
605 return result; in setLegacyBufferDrop()
607 result = reply.readInt32(); in setLegacyBufferDrop()
608 return result; in setLegacyBufferDrop()
615 status_t result = remote()->transact(GET_LAST_QUEUED_BUFFER, data, in getLastQueuedBuffer() local
617 if (result != NO_ERROR) { in getLastQueuedBuffer()
618 ALOGE("getLastQueuedBuffer failed to transact: %d", result); in getLastQueuedBuffer()
619 return result; in getLastQueuedBuffer()
621 result = reply.readInt32(); in getLastQueuedBuffer()
622 if (result != NO_ERROR) { in getLastQueuedBuffer()
623 return result; in getLastQueuedBuffer()
629 result = reply.read(*buffer); in getLastQueuedBuffer()
630 if (result == NO_ERROR) { in getLastQueuedBuffer()
631 result = reply.read(outTransformMatrix, sizeof(float) * 16); in getLastQueuedBuffer()
634 if (result != NO_ERROR) { in getLastQueuedBuffer()
635 ALOGE("getLastQueuedBuffer failed to read buffer: %d", result); in getLastQueuedBuffer()
636 return result; in getLastQueuedBuffer()
639 result = reply.read(*fence); in getLastQueuedBuffer()
640 if (result != NO_ERROR) { in getLastQueuedBuffer()
641 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); in getLastQueuedBuffer()
642 return result; in getLastQueuedBuffer()
646 return result; in getLastQueuedBuffer()
653 status_t result = remote()->transact(GET_LAST_QUEUED_BUFFER2, data, &reply); in getLastQueuedBuffer() local
654 if (result != NO_ERROR) { in getLastQueuedBuffer()
655 ALOGE("getLastQueuedBuffer failed to transact: %d", result); in getLastQueuedBuffer()
656 return result; in getLastQueuedBuffer()
659 result = reply.readInt32(&remoteError); in getLastQueuedBuffer()
660 if (result != NO_ERROR) { in getLastQueuedBuffer()
661 ALOGE("getLastQueuedBuffer failed to read status: %d", result); in getLastQueuedBuffer()
662 return result; in getLastQueuedBuffer()
668 result = reply.readBool(&hasBuffer); in getLastQueuedBuffer()
669 if (result != NO_ERROR) { in getLastQueuedBuffer()
670 ALOGE("getLastQueuedBuffer failed to read buffer: %d", result); in getLastQueuedBuffer()
671 return result; in getLastQueuedBuffer()
676 result = reply.read(*buffer); in getLastQueuedBuffer()
677 if (result == NO_ERROR) { in getLastQueuedBuffer()
678 result = reply.read(*outRect); in getLastQueuedBuffer()
680 if (result == NO_ERROR) { in getLastQueuedBuffer()
681 result = reply.readUint32(outTransform); in getLastQueuedBuffer()
684 if (result != NO_ERROR) { in getLastQueuedBuffer()
685 ALOGE("getLastQueuedBuffer failed to read buffer: %d", result); in getLastQueuedBuffer()
686 return result; in getLastQueuedBuffer()
689 result = reply.read(*fence); in getLastQueuedBuffer()
690 if (result != NO_ERROR) { in getLastQueuedBuffer()
691 ALOGE("getLastQueuedBuffer failed to read fence: %d", result); in getLastQueuedBuffer()
692 return result; in getLastQueuedBuffer()
696 return result; in getLastQueuedBuffer()
701 status_t result = data.writeInterfaceToken( in getFrameTimestamps() local
703 if (result != NO_ERROR) { in getFrameTimestamps()
704 ALOGE("IGBP::getFrameTimestamps failed to write token: %d", result); in getFrameTimestamps()
707 result = remote()->transact(GET_FRAME_TIMESTAMPS, data, &reply); in getFrameTimestamps()
708 if (result != NO_ERROR) { in getFrameTimestamps()
709 ALOGE("IGBP::getFrameTimestamps failed to transact: %d", result); in getFrameTimestamps()
712 result = reply.read(*outDelta); in getFrameTimestamps()
713 if (result != NO_ERROR) { in getFrameTimestamps()
715 result); in getFrameTimestamps()
722 status_t result = remote()->transact(GET_UNIQUE_ID, data, &reply); in getUniqueId() local
723 if (result != NO_ERROR) { in getUniqueId()
724 ALOGE("getUniqueId failed to transact: %d", result); in getUniqueId()
727 result = reply.readInt32(&actualResult); in getUniqueId()
728 if (result != NO_ERROR) { in getUniqueId()
729 return result; in getUniqueId()
731 result = reply.readUint64(outId); in getUniqueId()
732 if (result != NO_ERROR) { in getUniqueId()
733 return result; in getUniqueId()
741 status_t result = remote()->transact(GET_CONSUMER_USAGE, data, &reply); in getConsumerUsage() local
742 if (result != NO_ERROR) { in getConsumerUsage()
743 ALOGE("getConsumerUsage failed to transact: %d", result); in getConsumerUsage()
746 result = reply.readInt32(&actualResult); in getConsumerUsage()
747 if (result != NO_ERROR) { in getConsumerUsage()
748 return result; in getConsumerUsage()
750 result = reply.readUint64(outUsage); in getConsumerUsage()
751 if (result != NO_ERROR) { in getConsumerUsage()
752 return result; in getConsumerUsage()
761 status_t result = remote()->transact(SET_AUTO_PREROTATION, data, &reply); in setAutoPrerotation() local
762 if (result == NO_ERROR) { in setAutoPrerotation()
763 result = reply.readInt32(); in setAutoPrerotation()
765 return result; in setAutoPrerotation()
775 status_t result = remote()->transact(SET_FRAME_RATE, data, &reply); in setFrameRate() local
776 if (result == NO_ERROR) { in setFrameRate()
777 result = reply.readInt32(); in setFrameRate()
779 return result; in setFrameRate()
794 status_t result = remote()->transact(SET_ADDITIONAL_OPTIONS, data, &reply); in setAdditionalOptions() local
795 if (result == NO_ERROR) { in setAdditionalOptions()
796 result = reply.readInt32(); in setAdditionalOptions()
798 return result; in setAdditionalOptions()
1082 int result = requestBuffer(bufferIdx, &buffer); in onTransact() local
1087 reply->writeInt32(result); in onTransact()
1094 status_t result = data.readInt32Vector(&slots); in onTransact() local
1095 if (result != NO_ERROR) { in onTransact()
1096 return result; in onTransact()
1099 result = reply->writeVectorSize(outputs); in onTransact()
1101 if (result != NO_ERROR) { in onTransact()
1102 return result; in onTransact()
1104 result = reply->write(output); in onTransact()
1106 return result; in onTransact()
1111 int result = setMaxDequeuedBufferCount(maxDequeuedBuffers); in onTransact() local
1112 reply->writeInt32(result); in onTransact()
1118 int result = setAsyncMode(async); in onTransact() local
1119 reply->writeInt32(result); in onTransact()
1134 int result = dequeueBuffer(&buf, &fence, width, height, format, usage, &bufferAge, in onTransact() local
1147 reply->writeInt32(result); in onTransact()
1154 status_t result = data.resizeOutVector(&inputs); in onTransact() local
1155 if (result != NO_ERROR) { in onTransact()
1156 return result; in onTransact()
1159 result = data.read(input); in onTransact()
1160 if (result != NO_ERROR) { in onTransact()
1161 return result; in onTransact()
1165 result = reply->writeVectorSize(outputs); in onTransact()
1167 if (result != NO_ERROR) { in onTransact()
1168 return result; in onTransact()
1170 result = reply->write(output); in onTransact()
1172 return result; in onTransact()
1177 int result = detachBuffer(slot); in onTransact() local
1178 reply->writeInt32(result); in onTransact()
1185 status_t result = data.readInt32Vector(&slots); in onTransact() local
1186 if (result != NO_ERROR) { in onTransact()
1187 return result; in onTransact()
1196 int32_t result = detachNextBuffer(&buffer, &fence); in onTransact() local
1197 reply->writeInt32(result); in onTransact()
1198 if (result == NO_ERROR) { in onTransact()
1213 status_t result = data.read(*buffer.get()); in onTransact() local
1215 if (result == NO_ERROR) { in onTransact()
1216 result = attachBuffer(&slot, buffer); in onTransact()
1219 reply->writeInt32(result); in onTransact()
1225 status_t result = data.resizeOutVector(&buffers); in onTransact() local
1226 if (result != NO_ERROR) { in onTransact()
1227 return result; in onTransact()
1231 result = data.read(*buffer.get()); in onTransact()
1232 if (result != NO_ERROR) { in onTransact()
1233 return result; in onTransact()
1238 result = reply->writeVectorSize(outputs); in onTransact()
1240 if (result != NO_ERROR) { in onTransact()
1241 return result; in onTransact()
1243 result = reply->write(output); in onTransact()
1245 return result; in onTransact()
1253 status_t result = queueBuffer(buf, input, &output); in onTransact() local
1255 reply->writeInt32(result); in onTransact()
1262 status_t result = data.resizeOutVector(&inputs); in onTransact() local
1263 if (result != NO_ERROR) { in onTransact()
1264 return result; in onTransact()
1267 result = data.read(input); in onTransact()
1268 if (result != NO_ERROR) { in onTransact()
1269 return result; in onTransact()
1274 result = reply->writeVectorSize(outputs); in onTransact()
1276 if (result != NO_ERROR) { in onTransact()
1277 return result; in onTransact()
1279 result = reply->write(output); in onTransact()
1281 return result; in onTransact()
1287 status_t result = data.read(*fence.get()); in onTransact() local
1288 if (result == NO_ERROR) { in onTransact()
1289 result = cancelBuffer(buf, fence); in onTransact()
1291 reply->writeInt32(result); in onTransact()
1297 status_t result = data.resizeOutVector(&inputs); in onTransact() local
1299 if (result != NO_ERROR) { in onTransact()
1300 return result; in onTransact()
1302 result = data.read(input); in onTransact()
1304 if (result != NO_ERROR) { in onTransact()
1305 return result; in onTransact()
1308 result = cancelBuffers(inputs, &results); in onTransact()
1309 if (result != NO_ERROR) { in onTransact()
1310 return result; in onTransact()
1326 status_t result = data.readInt32Vector(&inputs); in onTransact() local
1327 if (result != NO_ERROR) { in onTransact()
1328 return result; in onTransact()
1331 result = query(inputs, &outputs); in onTransact()
1332 if (result != NO_ERROR) { in onTransact()
1333 return result; in onTransact()
1335 result = reply->writeVectorSize(outputs); in onTransact()
1337 if (result != NO_ERROR) { in onTransact()
1338 return result; in onTransact()
1340 result = reply->write(output); in onTransact()
1342 return result; in onTransact()
1372 status_t result = setSidebandStream(stream); in onTransact() local
1373 reply->writeInt32(result); in onTransact()
1388 status_t result = allowAllocation(allow); in onTransact() local
1389 reply->writeInt32(result); in onTransact()
1395 status_t result = setGenerationNumber(generationNumber); in onTransact() local
1396 reply->writeInt32(result); in onTransact()
1407 status_t result = setSharedBufferMode(sharedBufferMode); in onTransact() local
1408 reply->writeInt32(result); in onTransact()
1414 status_t result = setAutoRefresh(autoRefresh); in onTransact() local
1415 reply->writeInt32(result); in onTransact()
1421 status_t result = setDequeueTimeout(timeout); in onTransact() local
1422 reply->writeInt32(result); in onTransact()
1430 status_t result = getLastQueuedBuffer(&buffer, &fence, transform); in onTransact() local
1431 reply->writeInt32(result); in onTransact()
1432 if (result != NO_ERROR) { in onTransact()
1433 return result; in onTransact()
1439 result = reply->write(*buffer); in onTransact()
1440 if (result == NO_ERROR) { in onTransact()
1444 if (result != NO_ERROR) { in onTransact()
1445 ALOGE("getLastQueuedBuffer failed to write buffer: %d", result); in onTransact()
1446 return result; in onTransact()
1452 result = reply->write(*fence); in onTransact()
1453 if (result != NO_ERROR) { in onTransact()
1454 ALOGE("getLastQueuedBuffer failed to write fence: %d", result); in onTransact()
1455 return result; in onTransact()
1465 status_t result = getLastQueuedBuffer(&buffer, &fence, &crop, &transform); in onTransact() local
1466 reply->writeInt32(result); in onTransact()
1467 if (result != NO_ERROR) { in onTransact()
1468 return result; in onTransact()
1474 result = reply->write(*buffer); in onTransact()
1475 if (result == NO_ERROR) { in onTransact()
1476 result = reply->write(crop); in onTransact()
1478 if (result == NO_ERROR) { in onTransact()
1479 result = reply->writeUint32(transform); in onTransact()
1482 if (result != NO_ERROR) { in onTransact()
1483 ALOGE("getLastQueuedBuffer failed to write buffer: %d", result); in onTransact()
1484 return result; in onTransact()
1490 result = reply->write(*fence); in onTransact()
1491 if (result != NO_ERROR) { in onTransact()
1492 ALOGE("getLastQueuedBuffer failed to write fence: %d", result); in onTransact()
1493 return result; in onTransact()
1502 status_t result = reply->write(frameTimestamps); in onTransact() local
1503 if (result != NO_ERROR) { in onTransact()
1505 result); in onTransact()
1506 return result; in onTransact()
1514 status_t result = reply->writeInt32(actualResult); in onTransact() local
1515 if (result != NO_ERROR) { in onTransact()
1516 return result; in onTransact()
1518 result = reply->writeUint64(outId); in onTransact()
1519 if (result != NO_ERROR) { in onTransact()
1520 return result; in onTransact()
1528 status_t result = reply->writeInt32(actualResult); in onTransact() local
1529 if (result != NO_ERROR) { in onTransact()
1530 return result; in onTransact()
1532 result = reply->writeUint64(outUsage); in onTransact()
1533 if (result != NO_ERROR) { in onTransact()
1534 return result; in onTransact()
1541 int result = setLegacyBufferDrop(drop); in onTransact() local
1542 reply->writeInt32(result); in onTransact()
1548 status_t result = setAutoPrerotation(autoPrerotation); in onTransact() local
1549 reply->writeInt32(result); in onTransact()
1558 status_t result = setFrameRate(frameRate, compatibility, changeFrameRateStrategy); in onTransact() local
1559 reply->writeInt32(result); in onTransact()
1580 status_t result = setAdditionalOptions(opts); in onTransact() local
1581 reply->writeInt32(result); in onTransact()