Lines Matching refs:result

127         status_t result = remote()->transact(BnSurfaceComposer::CAPTURE_SCREEN, data, &reply);  in captureScreen()  local
128 if (result != NO_ERROR) { in captureScreen()
129 ALOGE("captureScreen failed to transact: %d", result); in captureScreen()
130 return result; in captureScreen()
132 result = reply.readInt32(); in captureScreen()
133 if (result != NO_ERROR) { in captureScreen()
134 ALOGE("captureScreen failed to readInt32: %d", result); in captureScreen()
135 return result; in captureScreen()
142 return result; in captureScreen()
150 status_t result = remote()->transact(BnSurfaceComposer::CAPTURE_SCREEN_BY_ID, data, &reply); in captureScreen() local
151 if (result != NO_ERROR) { in captureScreen()
152 ALOGE("captureScreen failed to transact: %d", result); in captureScreen()
153 return result; in captureScreen()
155 result = reply.readInt32(); in captureScreen()
156 if (result != NO_ERROR) { in captureScreen()
157 ALOGE("captureScreen failed to readInt32: %d", result); in captureScreen()
158 return result; in captureScreen()
164 return result; in captureScreen()
185 status_t result = remote()->transact(BnSurfaceComposer::CAPTURE_LAYERS, data, &reply); in captureLayers() local
186 if (result != NO_ERROR) { in captureLayers()
187 ALOGE("captureLayers failed to transact: %d", result); in captureLayers()
188 return result; in captureLayers()
190 result = reply.readInt32(); in captureLayers()
191 if (result != NO_ERROR) { in captureLayers()
192 ALOGE("captureLayers failed to readInt32: %d", result); in captureLayers()
193 return result; in captureLayers()
199 return result; in captureLayers()
227 int32_t result = 0; in authenticateSurfaceTexture() local
228 err = reply.readInt32(&result); in authenticateSurfaceTexture()
234 return result != 0; in authenticateSurfaceTexture()
259 int32_t result = 0; in getSupportedFrameTimestamps() local
260 err = reply.readInt32(&result); in getSupportedFrameTimestamps()
264 if (result != NO_ERROR) { in getSupportedFrameTimestamps()
265 return result; in getSupportedFrameTimestamps()
284 sp<IDisplayEventConnection> result; in createDisplayEventConnection() local
288 return result; in createDisplayEventConnection()
298 return result; in createDisplayEventConnection()
300 result = interface_cast<IDisplayEventConnection>(reply.readStrongBinder()); in createDisplayEventConnection()
301 return result; in createDisplayEventConnection()
360 status_t result = reply.readInt32(); in getDisplayConfigs() local
361 if (result == NO_ERROR) { in getDisplayConfigs()
371 return result; in getDisplayConfigs()
381 status_t result = reply.readInt32(); in getDisplayStats() local
382 if (result == NO_ERROR) { in getDisplayStats()
387 return result; in getDisplayStats()
402 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in setActiveConfig() local
403 if (result != NO_ERROR) { in setActiveConfig()
404 ALOGE("setActiveConfig failed to writeInterfaceToken: %d", result); in setActiveConfig()
405 return result; in setActiveConfig()
407 result = data.writeStrongBinder(display); in setActiveConfig()
408 if (result != NO_ERROR) { in setActiveConfig()
409 ALOGE("setActiveConfig failed to writeStrongBinder: %d", result); in setActiveConfig()
410 return result; in setActiveConfig()
412 result = data.writeInt32(id); in setActiveConfig()
413 if (result != NO_ERROR) { in setActiveConfig()
414 ALOGE("setActiveConfig failed to writeInt32: %d", result); in setActiveConfig()
415 return result; in setActiveConfig()
417 result = remote()->transact(BnSurfaceComposer::SET_ACTIVE_CONFIG, data, &reply); in setActiveConfig()
418 if (result != NO_ERROR) { in setActiveConfig()
419 ALOGE("setActiveConfig failed to transact: %d", result); in setActiveConfig()
420 return result; in setActiveConfig()
428 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in getDisplayColorModes() local
429 if (result != NO_ERROR) { in getDisplayColorModes()
430 ALOGE("getDisplayColorModes failed to writeInterfaceToken: %d", result); in getDisplayColorModes()
431 return result; in getDisplayColorModes()
433 result = data.writeStrongBinder(display); in getDisplayColorModes()
434 if (result != NO_ERROR) { in getDisplayColorModes()
435 ALOGE("getDisplayColorModes failed to writeStrongBinder: %d", result); in getDisplayColorModes()
436 return result; in getDisplayColorModes()
438 result = remote()->transact(BnSurfaceComposer::GET_DISPLAY_COLOR_MODES, data, &reply); in getDisplayColorModes()
439 if (result != NO_ERROR) { in getDisplayColorModes()
440 ALOGE("getDisplayColorModes failed to transact: %d", result); in getDisplayColorModes()
441 return result; in getDisplayColorModes()
443 result = static_cast<status_t>(reply.readInt32()); in getDisplayColorModes()
444 if (result == NO_ERROR) { in getDisplayColorModes()
452 return result; in getDisplayColorModes()
458 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in getDisplayNativePrimaries() local
459 if (result != NO_ERROR) { in getDisplayNativePrimaries()
460 ALOGE("getDisplayNativePrimaries failed to writeInterfaceToken: %d", result); in getDisplayNativePrimaries()
461 return result; in getDisplayNativePrimaries()
463 result = data.writeStrongBinder(display); in getDisplayNativePrimaries()
464 if (result != NO_ERROR) { in getDisplayNativePrimaries()
465 ALOGE("getDisplayNativePrimaries failed to writeStrongBinder: %d", result); in getDisplayNativePrimaries()
466 return result; in getDisplayNativePrimaries()
468 result = remote()->transact(BnSurfaceComposer::GET_DISPLAY_NATIVE_PRIMARIES, data, &reply); in getDisplayNativePrimaries()
469 if (result != NO_ERROR) { in getDisplayNativePrimaries()
470 ALOGE("getDisplayNativePrimaries failed to transact: %d", result); in getDisplayNativePrimaries()
471 return result; in getDisplayNativePrimaries()
473 result = reply.readInt32(); in getDisplayNativePrimaries()
474 if (result == NO_ERROR) { in getDisplayNativePrimaries()
478 return result; in getDisplayNativePrimaries()
483 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in getActiveColorMode() local
484 if (result != NO_ERROR) { in getActiveColorMode()
485 ALOGE("getActiveColorMode failed to writeInterfaceToken: %d", result); in getActiveColorMode()
486 return static_cast<ColorMode>(result); in getActiveColorMode()
488 result = data.writeStrongBinder(display); in getActiveColorMode()
489 if (result != NO_ERROR) { in getActiveColorMode()
490 ALOGE("getActiveColorMode failed to writeStrongBinder: %d", result); in getActiveColorMode()
491 return static_cast<ColorMode>(result); in getActiveColorMode()
493 result = remote()->transact(BnSurfaceComposer::GET_ACTIVE_COLOR_MODE, data, &reply); in getActiveColorMode()
494 if (result != NO_ERROR) { in getActiveColorMode()
495 ALOGE("getActiveColorMode failed to transact: %d", result); in getActiveColorMode()
496 return static_cast<ColorMode>(result); in getActiveColorMode()
504 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in setActiveColorMode() local
505 if (result != NO_ERROR) { in setActiveColorMode()
506 ALOGE("setActiveColorMode failed to writeInterfaceToken: %d", result); in setActiveColorMode()
507 return result; in setActiveColorMode()
509 result = data.writeStrongBinder(display); in setActiveColorMode()
510 if (result != NO_ERROR) { in setActiveColorMode()
511 ALOGE("setActiveColorMode failed to writeStrongBinder: %d", result); in setActiveColorMode()
512 return result; in setActiveColorMode()
514 result = data.writeInt32(static_cast<int32_t>(colorMode)); in setActiveColorMode()
515 if (result != NO_ERROR) { in setActiveColorMode()
516 ALOGE("setActiveColorMode failed to writeInt32: %d", result); in setActiveColorMode()
517 return result; in setActiveColorMode()
519 result = remote()->transact(BnSurfaceComposer::SET_ACTIVE_COLOR_MODE, data, &reply); in setActiveColorMode()
520 if (result != NO_ERROR) { in setActiveColorMode()
521 ALOGE("setActiveColorMode failed to transact: %d", result); in setActiveColorMode()
522 return result; in setActiveColorMode()
529 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in clearAnimationFrameStats() local
530 if (result != NO_ERROR) { in clearAnimationFrameStats()
531 ALOGE("clearAnimationFrameStats failed to writeInterfaceToken: %d", result); in clearAnimationFrameStats()
532 return result; in clearAnimationFrameStats()
534 result = remote()->transact(BnSurfaceComposer::CLEAR_ANIMATION_FRAME_STATS, data, &reply); in clearAnimationFrameStats()
535 if (result != NO_ERROR) { in clearAnimationFrameStats()
536 ALOGE("clearAnimationFrameStats failed to transact: %d", result); in clearAnimationFrameStats()
537 return result; in clearAnimationFrameStats()
554 status_t result = data.writeStrongBinder(display); in getHdrCapabilities() local
555 if (result != NO_ERROR) { in getHdrCapabilities()
556 ALOGE("getHdrCapabilities failed to writeStrongBinder: %d", result); in getHdrCapabilities()
557 return result; in getHdrCapabilities()
559 result = remote()->transact(BnSurfaceComposer::GET_HDR_CAPABILITIES, in getHdrCapabilities()
561 if (result != NO_ERROR) { in getHdrCapabilities()
562 ALOGE("getHdrCapabilities failed to transact: %d", result); in getHdrCapabilities()
563 return result; in getHdrCapabilities()
565 result = reply.readInt32(); in getHdrCapabilities()
566 if (result == NO_ERROR) { in getHdrCapabilities()
567 result = reply.read(*outCapabilities); in getHdrCapabilities()
569 return result; in getHdrCapabilities()
574 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in enableVSyncInjections() local
575 if (result != NO_ERROR) { in enableVSyncInjections()
576 ALOGE("enableVSyncInjections failed to writeInterfaceToken: %d", result); in enableVSyncInjections()
577 return result; in enableVSyncInjections()
579 result = data.writeBool(enable); in enableVSyncInjections()
580 if (result != NO_ERROR) { in enableVSyncInjections()
581 ALOGE("enableVSyncInjections failed to writeBool: %d", result); in enableVSyncInjections()
582 return result; in enableVSyncInjections()
584 result = remote()->transact(BnSurfaceComposer::ENABLE_VSYNC_INJECTIONS, data, &reply, in enableVSyncInjections()
586 if (result != NO_ERROR) { in enableVSyncInjections()
587 ALOGE("enableVSyncInjections failed to transact: %d", result); in enableVSyncInjections()
588 return result; in enableVSyncInjections()
590 return result; in enableVSyncInjections()
595 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in injectVSync() local
596 if (result != NO_ERROR) { in injectVSync()
597 ALOGE("injectVSync failed to writeInterfaceToken: %d", result); in injectVSync()
598 return result; in injectVSync()
600 result = data.writeInt64(when); in injectVSync()
601 if (result != NO_ERROR) { in injectVSync()
602 ALOGE("injectVSync failed to writeInt64: %d", result); in injectVSync()
603 return result; in injectVSync()
605 result = remote()->transact(BnSurfaceComposer::INJECT_VSYNC, data, &reply, in injectVSync()
607 if (result != NO_ERROR) { in injectVSync()
608 ALOGE("injectVSync failed to transact: %d", result); in injectVSync()
609 return result; in injectVSync()
611 return result; in injectVSync()
632 int32_t result = 0; in getLayerDebugInfo() local
633 err = reply.readInt32(&result); in getLayerDebugInfo()
637 if (result != NO_ERROR) { in getLayerDebugInfo()
638 return result; in getLayerDebugInfo()
672 bool result; in getColorManagement() local
673 status_t err = reply.readBool(&result); in getColorManagement()
675 *outGetColorManagement = result; in getColorManagement()
726 status_t result = in setDisplayContentSamplingEnabled() local
729 return result; in setDisplayContentSamplingEnabled()
743 status_t result = in getDisplayedContentSample() local
746 if (result != NO_ERROR) { in getDisplayedContentSample()
747 return result; in getDisplayedContentSample()
750 result = reply.readUint64(&outStats->numFrames); in getDisplayedContentSample()
751 if (result != NO_ERROR) { in getDisplayedContentSample()
752 return result; in getDisplayedContentSample()
755 result = reply.readUint64Vector(&outStats->component_0_sample); in getDisplayedContentSample()
756 if (result != NO_ERROR) { in getDisplayedContentSample()
757 return result; in getDisplayedContentSample()
759 result = reply.readUint64Vector(&outStats->component_1_sample); in getDisplayedContentSample()
760 if (result != NO_ERROR) { in getDisplayedContentSample()
761 return result; in getDisplayedContentSample()
763 result = reply.readUint64Vector(&outStats->component_2_sample); in getDisplayedContentSample()
764 if (result != NO_ERROR) { in getDisplayedContentSample()
765 return result; in getDisplayedContentSample()
767 result = reply.readUint64Vector(&outStats->component_3_sample); in getDisplayedContentSample()
768 return result; in getDisplayedContentSample()
857 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in setAllowedDisplayConfigs() local
858 if (result != NO_ERROR) { in setAllowedDisplayConfigs()
859 ALOGE("setAllowedDisplayConfigs failed to writeInterfaceToken: %d", result); in setAllowedDisplayConfigs()
860 return result; in setAllowedDisplayConfigs()
862 result = data.writeStrongBinder(displayToken); in setAllowedDisplayConfigs()
863 if (result != NO_ERROR) { in setAllowedDisplayConfigs()
864 ALOGE("setAllowedDisplayConfigs failed to writeStrongBinder: %d", result); in setAllowedDisplayConfigs()
865 return result; in setAllowedDisplayConfigs()
867 result = data.writeInt32Vector(allowedConfigs); in setAllowedDisplayConfigs()
868 if (result != NO_ERROR) { in setAllowedDisplayConfigs()
869 ALOGE("setAllowedDisplayConfigs failed to writeInt32Vector: %d", result); in setAllowedDisplayConfigs()
870 return result; in setAllowedDisplayConfigs()
872 result = remote()->transact(BnSurfaceComposer::SET_ALLOWED_DISPLAY_CONFIGS, data, &reply); in setAllowedDisplayConfigs()
873 if (result != NO_ERROR) { in setAllowedDisplayConfigs()
874 ALOGE("setAllowedDisplayConfigs failed to transact: %d", result); in setAllowedDisplayConfigs()
875 return result; in setAllowedDisplayConfigs()
884 status_t result = data.writeInterfaceToken(ISurfaceComposer::getInterfaceDescriptor()); in getAllowedDisplayConfigs() local
885 if (result != NO_ERROR) { in getAllowedDisplayConfigs()
886 ALOGE("getAllowedDisplayConfigs failed to writeInterfaceToken: %d", result); in getAllowedDisplayConfigs()
887 return result; in getAllowedDisplayConfigs()
889 result = data.writeStrongBinder(displayToken); in getAllowedDisplayConfigs()
890 if (result != NO_ERROR) { in getAllowedDisplayConfigs()
891 ALOGE("getAllowedDisplayConfigs failed to writeStrongBinder: %d", result); in getAllowedDisplayConfigs()
892 return result; in getAllowedDisplayConfigs()
894 result = remote()->transact(BnSurfaceComposer::GET_ALLOWED_DISPLAY_CONFIGS, data, &reply); in getAllowedDisplayConfigs()
895 if (result != NO_ERROR) { in getAllowedDisplayConfigs()
896 ALOGE("getAllowedDisplayConfigs failed to transact: %d", result); in getAllowedDisplayConfigs()
897 return result; in getAllowedDisplayConfigs()
899 result = reply.readInt32Vector(outAllowedConfigs); in getAllowedDisplayConfigs()
900 if (result != NO_ERROR) { in getAllowedDisplayConfigs()
901 ALOGE("getAllowedDisplayConfigs failed to readInt32Vector: %d", result); in getAllowedDisplayConfigs()
902 return result; in getAllowedDisplayConfigs()
1134 int32_t result = authenticateSurfaceTexture(bufferProducer) ? 1 : 0; in onTransact() local
1135 reply->writeInt32(result); in onTransact()
1141 status_t result = getSupportedFrameTimestamps(&supportedTimestamps); in onTransact() local
1142 status_t err = reply->writeInt32(result); in onTransact()
1146 if (result != NO_ERROR) { in onTransact()
1147 return result; in onTransact()
1192 status_t result = getDisplayConfigs(display, &configs); in onTransact() local
1193 reply->writeInt32(result); in onTransact()
1194 if (result == NO_ERROR) { in onTransact()
1207 status_t result = getDisplayStats(display, &stats); in onTransact() local
1208 reply->writeInt32(result); in onTransact()
1209 if (result == NO_ERROR) { in onTransact()
1226 status_t result = setActiveConfig(display, id); in onTransact() local
1227 reply->writeInt32(result); in onTransact()
1234 status_t result = data.readStrongBinder(&display); in onTransact() local
1235 if (result != NO_ERROR) { in onTransact()
1236 ALOGE("getDisplayColorModes failed to readStrongBinder: %d", result); in onTransact()
1237 return result; in onTransact()
1239 result = getDisplayColorModes(display, &colorModes); in onTransact()
1240 reply->writeInt32(result); in onTransact()
1241 if (result == NO_ERROR) { in onTransact()
1254 status_t result = data.readStrongBinder(&display); in onTransact() local
1255 if (result != NO_ERROR) { in onTransact()
1256 ALOGE("getDisplayNativePrimaries failed to readStrongBinder: %d", result); in onTransact()
1257 return result; in onTransact()
1260 result = getDisplayNativePrimaries(display, primaries); in onTransact()
1261 reply->writeInt32(result); in onTransact()
1262 if (result == NO_ERROR) { in onTransact()
1272 status_t result = data.readStrongBinder(&display); in onTransact() local
1273 if (result != NO_ERROR) { in onTransact()
1274 ALOGE("getActiveColorMode failed to readStrongBinder: %d", result); in onTransact()
1275 return result; in onTransact()
1278 result = reply->writeInt32(static_cast<int32_t>(colorMode)); in onTransact()
1279 return result; in onTransact()
1284 status_t result = data.readStrongBinder(&display); in onTransact() local
1285 if (result != NO_ERROR) { in onTransact()
1286 ALOGE("getActiveColorMode failed to readStrongBinder: %d", result); in onTransact()
1287 return result; in onTransact()
1290 result = data.readInt32(&colorModeInt); in onTransact()
1291 if (result != NO_ERROR) { in onTransact()
1292 ALOGE("setActiveColorMode failed to readInt32: %d", result); in onTransact()
1293 return result; in onTransact()
1295 result = setActiveColorMode(display, in onTransact()
1297 result = reply->writeInt32(result); in onTransact()
1298 return result; in onTransact()
1302 status_t result = clearAnimationFrameStats(); in onTransact() local
1303 reply->writeInt32(result); in onTransact()
1309 status_t result = getAnimationFrameStats(&stats); in onTransact() local
1311 reply->writeInt32(result); in onTransact()
1324 status_t result = data.readStrongBinder(&display); in onTransact() local
1325 if (result != NO_ERROR) { in onTransact()
1327 result); in onTransact()
1328 return result; in onTransact()
1331 result = getHdrCapabilities(display, &capabilities); in onTransact()
1332 reply->writeInt32(result); in onTransact()
1333 if (result == NO_ERROR) { in onTransact()
1341 status_t result = data.readBool(&enable); in onTransact() local
1342 if (result != NO_ERROR) { in onTransact()
1343 ALOGE("enableVSyncInjections failed to readBool: %d", result); in onTransact()
1344 return result; in onTransact()
1351 status_t result = data.readInt64(&when); in onTransact() local
1352 if (result != NO_ERROR) { in onTransact()
1353 ALOGE("enableVSyncInjections failed to readInt64: %d", result); in onTransact()
1354 return result; in onTransact()
1361 status_t result = getLayerDebugInfo(&outLayers); in onTransact() local
1362 reply->writeInt32(result); in onTransact()
1363 if (result == NO_ERROR) in onTransact()
1365 result = reply->writeParcelableVector(outLayers); in onTransact()
1367 return result; in onTransact()
1389 bool result; in onTransact() local
1390 status_t error = getColorManagement(&result); in onTransact()
1392 reply->writeBool(result); in onTransact()
1403 auto result = in onTransact() local
1405 if (result == NO_ERROR) { in onTransact()
1410 return result; in onTransact()
1419 status_t result = data.readStrongBinder(&display); in onTransact() local
1420 if (result != NO_ERROR) { in onTransact()
1422 result); in onTransact()
1423 return result; in onTransact()
1426 result = data.readBool(&enable); in onTransact()
1427 if (result != NO_ERROR) { in onTransact()
1428 ALOGE("setDisplayContentSamplingEnabled failure in reading enable: %d", result); in onTransact()
1429 return result; in onTransact()
1432 result = data.readByte(static_cast<int8_t*>(&componentMask)); in onTransact()
1433 if (result != NO_ERROR) { in onTransact()
1435 result); in onTransact()
1436 return result; in onTransact()
1439 result = data.readUint64(&maxFrames); in onTransact()
1440 if (result != NO_ERROR) { in onTransact()
1441 ALOGE("setDisplayContentSamplingEnabled failure in reading max frames: %d", result); in onTransact()
1442 return result; in onTransact()
1455 status_t result = data.readUint64(&maxFrames); in onTransact() local
1456 if (result != NO_ERROR) { in onTransact()
1457 ALOGE("getDisplayedContentSample failure in reading max frames: %d", result); in onTransact()
1458 return result; in onTransact()
1461 result = data.readUint64(&timestamp); in onTransact()
1462 if (result != NO_ERROR) { in onTransact()
1463 ALOGE("getDisplayedContentSample failure in reading timestamp: %d", result); in onTransact()
1464 return result; in onTransact()
1468 result = getDisplayedContentSample(display, maxFrames, timestamp, &stats); in onTransact()
1469 if (result == NO_ERROR) { in onTransact()
1476 return result; in onTransact()
1480 bool result; in onTransact() local
1481 status_t error = getProtectedContentSupport(&result); in onTransact()
1483 reply->writeBool(result); in onTransact()
1494 bool result; in onTransact() local
1495 error = isWideColorDisplay(display, &result); in onTransact()
1497 reply->writeBool(result); in onTransact()
1508 status_t result = data.read(samplingArea); in onTransact() local
1509 if (result != NO_ERROR) { in onTransact()
1511 return result; in onTransact()
1514 result = data.readNullableStrongBinder(&stopLayerHandle); in onTransact()
1515 if (result != NO_ERROR) { in onTransact()
1517 return result; in onTransact()
1520 result = data.readNullableStrongBinder(&listener); in onTransact()
1521 if (result != NO_ERROR) { in onTransact()
1523 return result; in onTransact()
1530 status_t result = data.readNullableStrongBinder(&listener); in onTransact() local
1531 if (result != NO_ERROR) { in onTransact()
1533 return result; in onTransact()
1542 status_t result = setAllowedDisplayConfigs(displayToken, allowedConfigs); in onTransact() local
1543 reply->writeInt32(result); in onTransact()
1544 return result; in onTransact()
1550 status_t result = getAllowedDisplayConfigs(displayToken, &allowedConfigs); in onTransact() local
1552 reply->writeInt32(result); in onTransact()
1553 return result; in onTransact()