Lines Matching refs:result
130 status_t result = remote()->transact(BnSurfaceComposer::CAPTURE_SCREEN, data, &reply); in captureScreen() local
131 if (result != NO_ERROR) { in captureScreen()
132 ALOGE("captureScreen failed to transact: %d", result); in captureScreen()
133 return result; in captureScreen()
135 result = reply.readInt32(); in captureScreen()
136 if (result != NO_ERROR) { in captureScreen()
137 ALOGE("captureScreen failed to readInt32: %d", result); in captureScreen()
138 return result; in captureScreen()
145 return result; in captureScreen()
153 status_t result = remote()->transact(BnSurfaceComposer::CAPTURE_SCREEN_BY_ID, data, &reply); in captureScreen() local
154 if (result != NO_ERROR) { in captureScreen()
155 ALOGE("captureScreen failed to transact: %d", result); in captureScreen()
156 return result; in captureScreen()
158 result = reply.readInt32(); in captureScreen()
159 if (result != NO_ERROR) { in captureScreen()
160 ALOGE("captureScreen failed to readInt32: %d", result); in captureScreen()
161 return result; in captureScreen()
167 return result; in captureScreen()
188 status_t result = remote()->transact(BnSurfaceComposer::CAPTURE_LAYERS, data, &reply); in captureLayers() local
189 if (result != NO_ERROR) { in captureLayers()
190 ALOGE("captureLayers failed to transact: %d", result); in captureLayers()
191 return result; in captureLayers()
193 result = reply.readInt32(); in captureLayers()
194 if (result != NO_ERROR) { in captureLayers()
195 ALOGE("captureLayers failed to readInt32: %d", result); in captureLayers()
196 return result; in captureLayers()
202 return result; in captureLayers()
230 int32_t result = 0; in authenticateSurfaceTexture() local
231 err = reply.readInt32(&result); in authenticateSurfaceTexture()
237 return result != 0; in authenticateSurfaceTexture()
262 int32_t result = 0; in getSupportedFrameTimestamps() local
263 err = reply.readInt32(&result); in getSupportedFrameTimestamps()
267 if (result != NO_ERROR) { in getSupportedFrameTimestamps()
268 return result; in getSupportedFrameTimestamps()
287 sp<IDisplayEventConnection> result; in createDisplayEventConnection() local
291 return result; in createDisplayEventConnection()
301 return result; in createDisplayEventConnection()
303 result = interface_cast<IDisplayEventConnection>(reply.readStrongBinder()); in createDisplayEventConnection()
304 return result; in createDisplayEventConnection()
361 const status_t result = reply.readInt32(); in getDisplayState() local
362 if (result == NO_ERROR) { in getDisplayState()
365 return result; in getDisplayState()
373 const status_t result = reply.readInt32(); in getDisplayInfo() local
374 if (result == NO_ERROR) { in getDisplayInfo()
377 return result; in getDisplayInfo()
385 const status_t result = reply.readInt32(); in getDisplayConfigs() local
386 if (result == NO_ERROR) { in getDisplayConfigs()
395 return result; in getDisplayConfigs()
405 status_t result = reply.readInt32(); in getDisplayStats() local
406 if (result == NO_ERROR) { in getDisplayStats()
411 return result; in getDisplayStats()
426 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in getDisplayColorModes() local
427 if (result != NO_ERROR) { in getDisplayColorModes()
428 ALOGE("getDisplayColorModes failed to writeInterfaceToken: %d", result); in getDisplayColorModes()
429 return result; in getDisplayColorModes()
431 result = data.writeStrongBinder(display); in getDisplayColorModes()
432 if (result != NO_ERROR) { in getDisplayColorModes()
433 ALOGE("getDisplayColorModes failed to writeStrongBinder: %d", result); in getDisplayColorModes()
434 return result; in getDisplayColorModes()
436 result = remote()->transact(BnSurfaceComposer::GET_DISPLAY_COLOR_MODES, data, &reply); in getDisplayColorModes()
437 if (result != NO_ERROR) { in getDisplayColorModes()
438 ALOGE("getDisplayColorModes failed to transact: %d", result); in getDisplayColorModes()
439 return result; in getDisplayColorModes()
441 result = static_cast<status_t>(reply.readInt32()); in getDisplayColorModes()
442 if (result == NO_ERROR) { in getDisplayColorModes()
450 return result; in getDisplayColorModes()
456 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in getDisplayNativePrimaries() local
457 if (result != NO_ERROR) { in getDisplayNativePrimaries()
458 ALOGE("getDisplayNativePrimaries failed to writeInterfaceToken: %d", result); in getDisplayNativePrimaries()
459 return result; in getDisplayNativePrimaries()
461 result = data.writeStrongBinder(display); in getDisplayNativePrimaries()
462 if (result != NO_ERROR) { in getDisplayNativePrimaries()
463 ALOGE("getDisplayNativePrimaries failed to writeStrongBinder: %d", result); in getDisplayNativePrimaries()
464 return result; in getDisplayNativePrimaries()
466 result = remote()->transact(BnSurfaceComposer::GET_DISPLAY_NATIVE_PRIMARIES, data, &reply); in getDisplayNativePrimaries()
467 if (result != NO_ERROR) { in getDisplayNativePrimaries()
468 ALOGE("getDisplayNativePrimaries failed to transact: %d", result); in getDisplayNativePrimaries()
469 return result; in getDisplayNativePrimaries()
471 result = reply.readInt32(); in getDisplayNativePrimaries()
472 if (result == NO_ERROR) { in getDisplayNativePrimaries()
476 return result; in getDisplayNativePrimaries()
481 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in getActiveColorMode() local
482 if (result != NO_ERROR) { in getActiveColorMode()
483 ALOGE("getActiveColorMode failed to writeInterfaceToken: %d", result); in getActiveColorMode()
484 return static_cast<ColorMode>(result); in getActiveColorMode()
486 result = data.writeStrongBinder(display); in getActiveColorMode()
487 if (result != NO_ERROR) { in getActiveColorMode()
488 ALOGE("getActiveColorMode failed to writeStrongBinder: %d", result); in getActiveColorMode()
489 return static_cast<ColorMode>(result); in getActiveColorMode()
491 result = remote()->transact(BnSurfaceComposer::GET_ACTIVE_COLOR_MODE, data, &reply); in getActiveColorMode()
492 if (result != NO_ERROR) { in getActiveColorMode()
493 ALOGE("getActiveColorMode failed to transact: %d", result); in getActiveColorMode()
494 return static_cast<ColorMode>(result); in getActiveColorMode()
502 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in setActiveColorMode() local
503 if (result != NO_ERROR) { in setActiveColorMode()
504 ALOGE("setActiveColorMode failed to writeInterfaceToken: %d", result); in setActiveColorMode()
505 return result; in setActiveColorMode()
507 result = data.writeStrongBinder(display); in setActiveColorMode()
508 if (result != NO_ERROR) { in setActiveColorMode()
509 ALOGE("setActiveColorMode failed to writeStrongBinder: %d", result); in setActiveColorMode()
510 return result; in setActiveColorMode()
512 result = data.writeInt32(static_cast<int32_t>(colorMode)); in setActiveColorMode()
513 if (result != NO_ERROR) { in setActiveColorMode()
514 ALOGE("setActiveColorMode failed to writeInt32: %d", result); in setActiveColorMode()
515 return result; in setActiveColorMode()
517 result = remote()->transact(BnSurfaceComposer::SET_ACTIVE_COLOR_MODE, data, &reply); in setActiveColorMode()
518 if (result != NO_ERROR) { in setActiveColorMode()
519 ALOGE("setActiveColorMode failed to transact: %d", result); in setActiveColorMode()
520 return result; in setActiveColorMode()
529 status_t result = data.writeStrongBinder(display); in getAutoLowLatencyModeSupport() local
530 if (result != NO_ERROR) { in getAutoLowLatencyModeSupport()
531 ALOGE("getAutoLowLatencyModeSupport failed to writeStrongBinder: %d", result); in getAutoLowLatencyModeSupport()
532 return result; in getAutoLowLatencyModeSupport()
534 result = remote()->transact(BnSurfaceComposer::GET_AUTO_LOW_LATENCY_MODE_SUPPORT, data, in getAutoLowLatencyModeSupport()
536 if (result != NO_ERROR) { in getAutoLowLatencyModeSupport()
537 ALOGE("getAutoLowLatencyModeSupport failed to transact: %d", result); in getAutoLowLatencyModeSupport()
538 return result; in getAutoLowLatencyModeSupport()
545 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in setAutoLowLatencyMode() local
546 if (result != NO_ERROR) { in setAutoLowLatencyMode()
547 ALOGE("setAutoLowLatencyMode failed to writeInterfaceToken: %d", result); in setAutoLowLatencyMode()
551 result = data.writeStrongBinder(display); in setAutoLowLatencyMode()
552 if (result != NO_ERROR) { in setAutoLowLatencyMode()
553 ALOGE("setAutoLowLatencyMode failed to writeStrongBinder: %d", result); in setAutoLowLatencyMode()
556 result = data.writeBool(on); in setAutoLowLatencyMode()
557 if (result != NO_ERROR) { in setAutoLowLatencyMode()
558 ALOGE("setAutoLowLatencyMode failed to writeBool: %d", result); in setAutoLowLatencyMode()
561 result = remote()->transact(BnSurfaceComposer::SET_AUTO_LOW_LATENCY_MODE, data, &reply); in setAutoLowLatencyMode()
562 if (result != NO_ERROR) { in setAutoLowLatencyMode()
563 ALOGE("setAutoLowLatencyMode failed to transact: %d", result); in setAutoLowLatencyMode()
571 status_t result = data.writeStrongBinder(display); in getGameContentTypeSupport() local
572 if (result != NO_ERROR) { in getGameContentTypeSupport()
573 ALOGE("getGameContentTypeSupport failed to writeStrongBinder: %d", result); in getGameContentTypeSupport()
574 return result; in getGameContentTypeSupport()
576 result = remote()->transact(BnSurfaceComposer::GET_GAME_CONTENT_TYPE_SUPPORT, data, &reply); in getGameContentTypeSupport()
577 if (result != NO_ERROR) { in getGameContentTypeSupport()
578 ALOGE("getGameContentTypeSupport failed to transact: %d", result); in getGameContentTypeSupport()
579 return result; in getGameContentTypeSupport()
586 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in setGameContentType() local
587 if (result != NO_ERROR) { in setGameContentType()
588 ALOGE("setGameContentType failed to writeInterfaceToken: %d", result); in setGameContentType()
591 result = data.writeStrongBinder(display); in setGameContentType()
592 if (result != NO_ERROR) { in setGameContentType()
593 ALOGE("setGameContentType failed to writeStrongBinder: %d", result); in setGameContentType()
596 result = data.writeBool(on); in setGameContentType()
597 if (result != NO_ERROR) { in setGameContentType()
598 ALOGE("setGameContentType failed to writeBool: %d", result); in setGameContentType()
601 result = remote()->transact(BnSurfaceComposer::SET_GAME_CONTENT_TYPE, data, &reply); in setGameContentType()
602 if (result != NO_ERROR) { in setGameContentType()
603 ALOGE("setGameContentType failed to transact: %d", result); in setGameContentType()
609 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in clearAnimationFrameStats() local
610 if (result != NO_ERROR) { in clearAnimationFrameStats()
611 ALOGE("clearAnimationFrameStats failed to writeInterfaceToken: %d", result); in clearAnimationFrameStats()
612 return result; in clearAnimationFrameStats()
614 result = remote()->transact(BnSurfaceComposer::CLEAR_ANIMATION_FRAME_STATS, data, &reply); in clearAnimationFrameStats()
615 if (result != NO_ERROR) { in clearAnimationFrameStats()
616 ALOGE("clearAnimationFrameStats failed to transact: %d", result); in clearAnimationFrameStats()
617 return result; in clearAnimationFrameStats()
634 status_t result = data.writeStrongBinder(display); in getHdrCapabilities() local
635 if (result != NO_ERROR) { in getHdrCapabilities()
636 ALOGE("getHdrCapabilities failed to writeStrongBinder: %d", result); in getHdrCapabilities()
637 return result; in getHdrCapabilities()
639 result = remote()->transact(BnSurfaceComposer::GET_HDR_CAPABILITIES, in getHdrCapabilities()
641 if (result != NO_ERROR) { in getHdrCapabilities()
642 ALOGE("getHdrCapabilities failed to transact: %d", result); in getHdrCapabilities()
643 return result; in getHdrCapabilities()
645 result = reply.readInt32(); in getHdrCapabilities()
646 if (result == NO_ERROR) { in getHdrCapabilities()
647 result = reply.read(*outCapabilities); in getHdrCapabilities()
649 return result; in getHdrCapabilities()
654 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in enableVSyncInjections() local
655 if (result != NO_ERROR) { in enableVSyncInjections()
656 ALOGE("enableVSyncInjections failed to writeInterfaceToken: %d", result); in enableVSyncInjections()
657 return result; in enableVSyncInjections()
659 result = data.writeBool(enable); in enableVSyncInjections()
660 if (result != NO_ERROR) { in enableVSyncInjections()
661 ALOGE("enableVSyncInjections failed to writeBool: %d", result); in enableVSyncInjections()
662 return result; in enableVSyncInjections()
664 result = remote()->transact(BnSurfaceComposer::ENABLE_VSYNC_INJECTIONS, data, &reply, in enableVSyncInjections()
666 if (result != NO_ERROR) { in enableVSyncInjections()
667 ALOGE("enableVSyncInjections failed to transact: %d", result); in enableVSyncInjections()
668 return result; in enableVSyncInjections()
670 return result; in enableVSyncInjections()
675 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in injectVSync() local
676 if (result != NO_ERROR) { in injectVSync()
677 ALOGE("injectVSync failed to writeInterfaceToken: %d", result); in injectVSync()
678 return result; in injectVSync()
680 result = data.writeInt64(when); in injectVSync()
681 if (result != NO_ERROR) { in injectVSync()
682 ALOGE("injectVSync failed to writeInt64: %d", result); in injectVSync()
683 return result; in injectVSync()
685 result = remote()->transact(BnSurfaceComposer::INJECT_VSYNC, data, &reply, in injectVSync()
687 if (result != NO_ERROR) { in injectVSync()
688 ALOGE("injectVSync failed to transact: %d", result); in injectVSync()
689 return result; in injectVSync()
691 return result; in injectVSync()
711 int32_t result = 0; in getLayerDebugInfo() local
712 err = reply.readInt32(&result); in getLayerDebugInfo()
716 if (result != NO_ERROR) { in getLayerDebugInfo()
717 return result; in getLayerDebugInfo()
751 bool result; in getColorManagement() local
752 status_t err = reply.readBool(&result); in getColorManagement()
754 *outGetColorManagement = result; in getColorManagement()
804 status_t result = in setDisplayContentSamplingEnabled() local
807 return result; in setDisplayContentSamplingEnabled()
821 status_t result = in getDisplayedContentSample() local
824 if (result != NO_ERROR) { in getDisplayedContentSample()
825 return result; in getDisplayedContentSample()
828 result = reply.readUint64(&outStats->numFrames); in getDisplayedContentSample()
829 if (result != NO_ERROR) { in getDisplayedContentSample()
830 return result; in getDisplayedContentSample()
833 result = reply.readUint64Vector(&outStats->component_0_sample); in getDisplayedContentSample()
834 if (result != NO_ERROR) { in getDisplayedContentSample()
835 return result; in getDisplayedContentSample()
837 result = reply.readUint64Vector(&outStats->component_1_sample); in getDisplayedContentSample()
838 if (result != NO_ERROR) { in getDisplayedContentSample()
839 return result; in getDisplayedContentSample()
841 result = reply.readUint64Vector(&outStats->component_2_sample); in getDisplayedContentSample()
842 if (result != NO_ERROR) { in getDisplayedContentSample()
843 return result; in getDisplayedContentSample()
845 result = reply.readUint64Vector(&outStats->component_3_sample); in getDisplayedContentSample()
846 return result; in getDisplayedContentSample()
939 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in setDesiredDisplayConfigSpecs() local
940 if (result != NO_ERROR) { in setDesiredDisplayConfigSpecs()
941 ALOGE("setDesiredDisplayConfigSpecs: failed to writeInterfaceToken: %d", result); in setDesiredDisplayConfigSpecs()
942 return result; in setDesiredDisplayConfigSpecs()
944 result = data.writeStrongBinder(displayToken); in setDesiredDisplayConfigSpecs()
945 if (result != NO_ERROR) { in setDesiredDisplayConfigSpecs()
946 ALOGE("setDesiredDisplayConfigSpecs: failed to write display token: %d", result); in setDesiredDisplayConfigSpecs()
947 return result; in setDesiredDisplayConfigSpecs()
949 result = data.writeInt32(defaultConfig); in setDesiredDisplayConfigSpecs()
950 if (result != NO_ERROR) { in setDesiredDisplayConfigSpecs()
951 ALOGE("setDesiredDisplayConfigSpecs failed to write defaultConfig: %d", result); in setDesiredDisplayConfigSpecs()
952 return result; in setDesiredDisplayConfigSpecs()
954 result = data.writeFloat(primaryRefreshRateMin); in setDesiredDisplayConfigSpecs()
955 if (result != NO_ERROR) { in setDesiredDisplayConfigSpecs()
956 ALOGE("setDesiredDisplayConfigSpecs failed to write primaryRefreshRateMin: %d", result); in setDesiredDisplayConfigSpecs()
957 return result; in setDesiredDisplayConfigSpecs()
959 result = data.writeFloat(primaryRefreshRateMax); in setDesiredDisplayConfigSpecs()
960 if (result != NO_ERROR) { in setDesiredDisplayConfigSpecs()
961 ALOGE("setDesiredDisplayConfigSpecs failed to write primaryRefreshRateMax: %d", result); in setDesiredDisplayConfigSpecs()
962 return result; in setDesiredDisplayConfigSpecs()
964 result = data.writeFloat(appRequestRefreshRateMin); in setDesiredDisplayConfigSpecs()
965 if (result != NO_ERROR) { in setDesiredDisplayConfigSpecs()
967 result); in setDesiredDisplayConfigSpecs()
968 return result; in setDesiredDisplayConfigSpecs()
970 result = data.writeFloat(appRequestRefreshRateMax); in setDesiredDisplayConfigSpecs()
971 if (result != NO_ERROR) { in setDesiredDisplayConfigSpecs()
973 result); in setDesiredDisplayConfigSpecs()
974 return result; in setDesiredDisplayConfigSpecs()
977 result = remote()->transact(BnSurfaceComposer::SET_DESIRED_DISPLAY_CONFIG_SPECS, data, in setDesiredDisplayConfigSpecs()
979 if (result != NO_ERROR) { in setDesiredDisplayConfigSpecs()
980 ALOGE("setDesiredDisplayConfigSpecs failed to transact: %d", result); in setDesiredDisplayConfigSpecs()
981 return result; in setDesiredDisplayConfigSpecs()
997 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in getDesiredDisplayConfigSpecs() local
998 if (result != NO_ERROR) { in getDesiredDisplayConfigSpecs()
999 ALOGE("getDesiredDisplayConfigSpecs failed to writeInterfaceToken: %d", result); in getDesiredDisplayConfigSpecs()
1000 return result; in getDesiredDisplayConfigSpecs()
1002 result = data.writeStrongBinder(displayToken); in getDesiredDisplayConfigSpecs()
1003 if (result != NO_ERROR) { in getDesiredDisplayConfigSpecs()
1004 ALOGE("getDesiredDisplayConfigSpecs failed to writeStrongBinder: %d", result); in getDesiredDisplayConfigSpecs()
1005 return result; in getDesiredDisplayConfigSpecs()
1007 result = remote()->transact(BnSurfaceComposer::GET_DESIRED_DISPLAY_CONFIG_SPECS, data, in getDesiredDisplayConfigSpecs()
1009 if (result != NO_ERROR) { in getDesiredDisplayConfigSpecs()
1010 ALOGE("getDesiredDisplayConfigSpecs failed to transact: %d", result); in getDesiredDisplayConfigSpecs()
1011 return result; in getDesiredDisplayConfigSpecs()
1013 result = reply.readInt32(outDefaultConfig); in getDesiredDisplayConfigSpecs()
1014 if (result != NO_ERROR) { in getDesiredDisplayConfigSpecs()
1015 ALOGE("getDesiredDisplayConfigSpecs failed to read defaultConfig: %d", result); in getDesiredDisplayConfigSpecs()
1016 return result; in getDesiredDisplayConfigSpecs()
1018 result = reply.readFloat(outPrimaryRefreshRateMin); in getDesiredDisplayConfigSpecs()
1019 if (result != NO_ERROR) { in getDesiredDisplayConfigSpecs()
1020 ALOGE("getDesiredDisplayConfigSpecs failed to read primaryRefreshRateMin: %d", result); in getDesiredDisplayConfigSpecs()
1021 return result; in getDesiredDisplayConfigSpecs()
1023 result = reply.readFloat(outPrimaryRefreshRateMax); in getDesiredDisplayConfigSpecs()
1024 if (result != NO_ERROR) { in getDesiredDisplayConfigSpecs()
1025 ALOGE("getDesiredDisplayConfigSpecs failed to read primaryRefreshRateMax: %d", result); in getDesiredDisplayConfigSpecs()
1026 return result; in getDesiredDisplayConfigSpecs()
1028 result = reply.readFloat(outAppRequestRefreshRateMin); in getDesiredDisplayConfigSpecs()
1029 if (result != NO_ERROR) { in getDesiredDisplayConfigSpecs()
1031 result); in getDesiredDisplayConfigSpecs()
1032 return result; in getDesiredDisplayConfigSpecs()
1034 result = reply.readFloat(outAppRequestRefreshRateMax); in getDesiredDisplayConfigSpecs()
1035 if (result != NO_ERROR) { in getDesiredDisplayConfigSpecs()
1037 result); in getDesiredDisplayConfigSpecs()
1038 return result; in getDesiredDisplayConfigSpecs()
1373 int32_t result = authenticateSurfaceTexture(bufferProducer) ? 1 : 0; in onTransact() local
1374 reply->writeInt32(result); in onTransact()
1380 status_t result = getSupportedFrameTimestamps(&supportedTimestamps); in onTransact() local
1381 status_t err = reply->writeInt32(result); in onTransact()
1385 if (result != NO_ERROR) { in onTransact()
1386 return result; in onTransact()
1431 const status_t result = getDisplayState(display, &state); in onTransact() local
1432 reply->writeInt32(result); in onTransact()
1433 if (result == NO_ERROR) { in onTransact()
1443 const status_t result = getDisplayInfo(display, &info); in onTransact() local
1444 reply->writeInt32(result); in onTransact()
1445 if (result == NO_ERROR) { in onTransact()
1454 const status_t result = getDisplayConfigs(display, &configs); in onTransact() local
1455 reply->writeInt32(result); in onTransact()
1456 if (result == NO_ERROR) { in onTransact()
1469 status_t result = getDisplayStats(display, &stats); in onTransact() local
1470 reply->writeInt32(result); in onTransact()
1471 if (result == NO_ERROR) { in onTransact()
1488 status_t result = data.readStrongBinder(&display); in onTransact() local
1489 if (result != NO_ERROR) { in onTransact()
1490 ALOGE("getDisplayColorModes failed to readStrongBinder: %d", result); in onTransact()
1491 return result; in onTransact()
1493 result = getDisplayColorModes(display, &colorModes); in onTransact()
1494 reply->writeInt32(result); in onTransact()
1495 if (result == NO_ERROR) { in onTransact()
1508 status_t result = data.readStrongBinder(&display); in onTransact() local
1509 if (result != NO_ERROR) { in onTransact()
1510 ALOGE("getDisplayNativePrimaries failed to readStrongBinder: %d", result); in onTransact()
1511 return result; in onTransact()
1514 result = getDisplayNativePrimaries(display, primaries); in onTransact()
1515 reply->writeInt32(result); in onTransact()
1516 if (result == NO_ERROR) { in onTransact()
1526 status_t result = data.readStrongBinder(&display); in onTransact() local
1527 if (result != NO_ERROR) { in onTransact()
1528 ALOGE("getActiveColorMode failed to readStrongBinder: %d", result); in onTransact()
1529 return result; in onTransact()
1532 result = reply->writeInt32(static_cast<int32_t>(colorMode)); in onTransact()
1533 return result; in onTransact()
1538 status_t result = data.readStrongBinder(&display); in onTransact() local
1539 if (result != NO_ERROR) { in onTransact()
1540 ALOGE("getActiveColorMode failed to readStrongBinder: %d", result); in onTransact()
1541 return result; in onTransact()
1544 result = data.readInt32(&colorModeInt); in onTransact()
1545 if (result != NO_ERROR) { in onTransact()
1546 ALOGE("setActiveColorMode failed to readInt32: %d", result); in onTransact()
1547 return result; in onTransact()
1549 result = setActiveColorMode(display, in onTransact()
1551 result = reply->writeInt32(result); in onTransact()
1552 return result; in onTransact()
1558 status_t result = data.readStrongBinder(&display); in onTransact() local
1559 if (result != NO_ERROR) { in onTransact()
1560 ALOGE("getAutoLowLatencyModeSupport failed to readStrongBinder: %d", result); in onTransact()
1561 return result; in onTransact()
1564 result = getAutoLowLatencyModeSupport(display, &supported); in onTransact()
1565 if (result == NO_ERROR) { in onTransact()
1566 result = reply->writeBool(supported); in onTransact()
1568 return result; in onTransact()
1574 status_t result = data.readStrongBinder(&display); in onTransact() local
1575 if (result != NO_ERROR) { in onTransact()
1576 ALOGE("setAutoLowLatencyMode failed to readStrongBinder: %d", result); in onTransact()
1577 return result; in onTransact()
1580 result = data.readBool(&setAllm); in onTransact()
1581 if (result != NO_ERROR) { in onTransact()
1582 ALOGE("setAutoLowLatencyMode failed to readBool: %d", result); in onTransact()
1583 return result; in onTransact()
1586 return result; in onTransact()
1592 status_t result = data.readStrongBinder(&display); in onTransact() local
1593 if (result != NO_ERROR) { in onTransact()
1594 ALOGE("getGameContentTypeSupport failed to readStrongBinder: %d", result); in onTransact()
1595 return result; in onTransact()
1598 result = getGameContentTypeSupport(display, &supported); in onTransact()
1599 if (result == NO_ERROR) { in onTransact()
1600 result = reply->writeBool(supported); in onTransact()
1602 return result; in onTransact()
1608 status_t result = data.readStrongBinder(&display); in onTransact() local
1609 if (result != NO_ERROR) { in onTransact()
1610 ALOGE("setGameContentType failed to readStrongBinder: %d", result); in onTransact()
1611 return result; in onTransact()
1614 result = data.readBool(&setGameContentTypeOn); in onTransact()
1615 if (result != NO_ERROR) { in onTransact()
1616 ALOGE("setGameContentType failed to readBool: %d", result); in onTransact()
1617 return result; in onTransact()
1620 return result; in onTransact()
1625 status_t result = clearAnimationFrameStats(); in onTransact() local
1626 reply->writeInt32(result); in onTransact()
1632 status_t result = getAnimationFrameStats(&stats); in onTransact() local
1634 reply->writeInt32(result); in onTransact()
1647 status_t result = data.readStrongBinder(&display); in onTransact() local
1648 if (result != NO_ERROR) { in onTransact()
1650 result); in onTransact()
1651 return result; in onTransact()
1654 result = getHdrCapabilities(display, &capabilities); in onTransact()
1655 reply->writeInt32(result); in onTransact()
1656 if (result == NO_ERROR) { in onTransact()
1664 status_t result = data.readBool(&enable); in onTransact() local
1665 if (result != NO_ERROR) { in onTransact()
1666 ALOGE("enableVSyncInjections failed to readBool: %d", result); in onTransact()
1667 return result; in onTransact()
1674 status_t result = data.readInt64(&when); in onTransact() local
1675 if (result != NO_ERROR) { in onTransact()
1676 ALOGE("enableVSyncInjections failed to readInt64: %d", result); in onTransact()
1677 return result; in onTransact()
1684 status_t result = getLayerDebugInfo(&outLayers); in onTransact() local
1685 reply->writeInt32(result); in onTransact()
1686 if (result == NO_ERROR) in onTransact()
1688 result = reply->writeParcelableVector(outLayers); in onTransact()
1690 return result; in onTransact()
1712 bool result; in onTransact() local
1713 status_t error = getColorManagement(&result); in onTransact()
1715 reply->writeBool(result); in onTransact()
1726 auto result = in onTransact() local
1728 if (result == NO_ERROR) { in onTransact()
1733 return result; in onTransact()
1742 status_t result = data.readStrongBinder(&display); in onTransact() local
1743 if (result != NO_ERROR) { in onTransact()
1745 result); in onTransact()
1746 return result; in onTransact()
1749 result = data.readBool(&enable); in onTransact()
1750 if (result != NO_ERROR) { in onTransact()
1751 ALOGE("setDisplayContentSamplingEnabled failure in reading enable: %d", result); in onTransact()
1752 return result; in onTransact()
1755 result = data.readByte(static_cast<int8_t*>(&componentMask)); in onTransact()
1756 if (result != NO_ERROR) { in onTransact()
1758 result); in onTransact()
1759 return result; in onTransact()
1762 result = data.readUint64(&maxFrames); in onTransact()
1763 if (result != NO_ERROR) { in onTransact()
1764 ALOGE("setDisplayContentSamplingEnabled failure in reading max frames: %d", result); in onTransact()
1765 return result; in onTransact()
1778 status_t result = data.readUint64(&maxFrames); in onTransact() local
1779 if (result != NO_ERROR) { in onTransact()
1780 ALOGE("getDisplayedContentSample failure in reading max frames: %d", result); in onTransact()
1781 return result; in onTransact()
1784 result = data.readUint64(×tamp); in onTransact()
1785 if (result != NO_ERROR) { in onTransact()
1786 ALOGE("getDisplayedContentSample failure in reading timestamp: %d", result); in onTransact()
1787 return result; in onTransact()
1791 result = getDisplayedContentSample(display, maxFrames, timestamp, &stats); in onTransact()
1792 if (result == NO_ERROR) { in onTransact()
1799 return result; in onTransact()
1803 bool result; in onTransact() local
1804 status_t error = getProtectedContentSupport(&result); in onTransact()
1806 reply->writeBool(result); in onTransact()
1817 bool result; in onTransact() local
1818 error = isWideColorDisplay(display, &result); in onTransact()
1820 reply->writeBool(result); in onTransact()
1831 status_t result = data.read(samplingArea); in onTransact() local
1832 if (result != NO_ERROR) { in onTransact()
1834 return result; in onTransact()
1837 result = data.readNullableStrongBinder(&stopLayerHandle); in onTransact()
1838 if (result != NO_ERROR) { in onTransact()
1840 return result; in onTransact()
1843 result = data.readNullableStrongBinder(&listener); in onTransact()
1844 if (result != NO_ERROR) { in onTransact()
1846 return result; in onTransact()
1853 status_t result = data.readNullableStrongBinder(&listener); in onTransact() local
1854 if (result != NO_ERROR) { in onTransact()
1856 return result; in onTransact()
1864 status_t result = data.readInt32(&defaultConfig); in onTransact() local
1865 if (result != NO_ERROR) { in onTransact()
1866 ALOGE("setDesiredDisplayConfigSpecs: failed to read defaultConfig: %d", result); in onTransact()
1867 return result; in onTransact()
1870 result = data.readFloat(&primaryRefreshRateMin); in onTransact()
1871 if (result != NO_ERROR) { in onTransact()
1873 result); in onTransact()
1874 return result; in onTransact()
1877 result = data.readFloat(&primaryRefreshRateMax); in onTransact()
1878 if (result != NO_ERROR) { in onTransact()
1880 result); in onTransact()
1881 return result; in onTransact()
1884 result = data.readFloat(&appRequestRefreshRateMin); in onTransact()
1885 if (result != NO_ERROR) { in onTransact()
1887 result); in onTransact()
1888 return result; in onTransact()
1891 result = data.readFloat(&appRequestRefreshRateMax); in onTransact()
1892 if (result != NO_ERROR) { in onTransact()
1894 result); in onTransact()
1895 return result; in onTransact()
1897 result = in onTransact()
1901 if (result != NO_ERROR) { in onTransact()
1904 result); in onTransact()
1905 return result; in onTransact()
1907 reply->writeInt32(result); in onTransact()
1908 return result; in onTransact()
1919 status_t result = in onTransact() local
1924 if (result != NO_ERROR) { in onTransact()
1927 result); in onTransact()
1928 return result; in onTransact()
1931 result = reply->writeInt32(defaultConfig); in onTransact()
1932 if (result != NO_ERROR) { in onTransact()
1933 ALOGE("getDesiredDisplayConfigSpecs: failed to write defaultConfig: %d", result); in onTransact()
1934 return result; in onTransact()
1936 result = reply->writeFloat(primaryRefreshRateMin); in onTransact()
1937 if (result != NO_ERROR) { in onTransact()
1939 result); in onTransact()
1940 return result; in onTransact()
1942 result = reply->writeFloat(primaryRefreshRateMax); in onTransact()
1943 if (result != NO_ERROR) { in onTransact()
1945 result); in onTransact()
1946 return result; in onTransact()
1948 result = reply->writeFloat(appRequestRefreshRateMin); in onTransact()
1949 if (result != NO_ERROR) { in onTransact()
1951 result); in onTransact()
1952 return result; in onTransact()
1954 result = reply->writeFloat(appRequestRefreshRateMax); in onTransact()
1955 if (result != NO_ERROR) { in onTransact()
1957 result); in onTransact()
1958 return result; in onTransact()
1960 reply->writeInt32(result); in onTransact()
1961 return result; in onTransact()
2047 status_t result = setFrameRate(surface, frameRate, compatibility); in onTransact() local
2048 reply->writeInt32(result); in onTransact()
2054 status_t result = acquireFrameRateFlexibilityToken(&token); in onTransact() local
2055 reply->writeInt32(result); in onTransact()
2056 if (result == NO_ERROR) { in onTransact()