@@ -525,88 +525,6 @@ class BpSurfaceComposer : public BpInterface<ISurfaceComposer>
525525 return static_cast <status_t >(reply.readInt32 ());
526526 }
527527
528- virtual status_t getAutoLowLatencyModeSupport (const sp<IBinder>& display,
529- bool * outSupport) const {
530- Parcel data, reply;
531- data.writeInterfaceToken (ISurfaceComposer::getInterfaceDescriptor ());
532- status_t result = data.writeStrongBinder (display);
533- if (result != NO_ERROR ) {
534- ALOGE (" getAutoLowLatencyModeSupport failed to writeStrongBinder: %d" , result);
535- return result;
536- }
537- result = remote ()->transact (BnSurfaceComposer::GET_AUTO_LOW_LATENCY_MODE_SUPPORT , data,
538- &reply);
539- if (result != NO_ERROR ) {
540- ALOGE (" getAutoLowLatencyModeSupport failed to transact: %d" , result);
541- return result;
542- }
543- return reply.readBool (outSupport);
544- }
545-
546- virtual void setAutoLowLatencyMode (const sp<IBinder>& display, bool on) {
547- Parcel data, reply;
548- status_t result = data.writeInterfaceToken (ISurfaceComposer::getInterfaceDescriptor ());
549- if (result != NO_ERROR ) {
550- ALOGE (" setAutoLowLatencyMode failed to writeInterfaceToken: %d" , result);
551- return ;
552- }
553-
554- result = data.writeStrongBinder (display);
555- if (result != NO_ERROR ) {
556- ALOGE (" setAutoLowLatencyMode failed to writeStrongBinder: %d" , result);
557- return ;
558- }
559- result = data.writeBool (on);
560- if (result != NO_ERROR ) {
561- ALOGE (" setAutoLowLatencyMode failed to writeBool: %d" , result);
562- return ;
563- }
564- result = remote ()->transact (BnSurfaceComposer::SET_AUTO_LOW_LATENCY_MODE , data, &reply);
565- if (result != NO_ERROR ) {
566- ALOGE (" setAutoLowLatencyMode failed to transact: %d" , result);
567- return ;
568- }
569- }
570-
571- virtual status_t getGameContentTypeSupport (const sp<IBinder>& display, bool * outSupport) const {
572- Parcel data, reply;
573- data.writeInterfaceToken (ISurfaceComposer::getInterfaceDescriptor ());
574- status_t result = data.writeStrongBinder (display);
575- if (result != NO_ERROR ) {
576- ALOGE (" getGameContentTypeSupport failed to writeStrongBinder: %d" , result);
577- return result;
578- }
579- result = remote ()->transact (BnSurfaceComposer::GET_GAME_CONTENT_TYPE_SUPPORT , data, &reply);
580- if (result != NO_ERROR ) {
581- ALOGE (" getGameContentTypeSupport failed to transact: %d" , result);
582- return result;
583- }
584- return reply.readBool (outSupport);
585- }
586-
587- virtual void setGameContentType (const sp<IBinder>& display, bool on) {
588- Parcel data, reply;
589- status_t result = data.writeInterfaceToken (ISurfaceComposer::getInterfaceDescriptor ());
590- if (result != NO_ERROR ) {
591- ALOGE (" setGameContentType failed to writeInterfaceToken: %d" , result);
592- return ;
593- }
594- result = data.writeStrongBinder (display);
595- if (result != NO_ERROR ) {
596- ALOGE (" setGameContentType failed to writeStrongBinder: %d" , result);
597- return ;
598- }
599- result = data.writeBool (on);
600- if (result != NO_ERROR ) {
601- ALOGE (" setGameContentType failed to writeBool: %d" , result);
602- return ;
603- }
604- result = remote ()->transact (BnSurfaceComposer::SET_GAME_CONTENT_TYPE , data, &reply);
605- if (result != NO_ERROR ) {
606- ALOGE (" setGameContentType failed to transact: %d" , result);
607- }
608- }
609-
610528 virtual status_t clearAnimationFrameStats () {
611529 Parcel data, reply;
612530 status_t result = data.writeInterfaceToken (ISurfaceComposer::getInterfaceDescriptor ());
@@ -1489,75 +1407,6 @@ status_t BnSurfaceComposer::onTransact(
14891407 result = reply->writeInt32 (result);
14901408 return result;
14911409 }
1492-
1493- case GET_AUTO_LOW_LATENCY_MODE_SUPPORT : {
1494- CHECK_INTERFACE (ISurfaceComposer, data, reply);
1495- sp<IBinder> display = nullptr ;
1496- status_t result = data.readStrongBinder (&display);
1497- if (result != NO_ERROR ) {
1498- ALOGE (" getAutoLowLatencyModeSupport failed to readStrongBinder: %d" , result);
1499- return result;
1500- }
1501- bool supported = false ;
1502- result = getAutoLowLatencyModeSupport (display, &supported);
1503- if (result == NO_ERROR ) {
1504- result = reply->writeBool (supported);
1505- }
1506- return result;
1507- }
1508-
1509- case SET_AUTO_LOW_LATENCY_MODE : {
1510- CHECK_INTERFACE (ISurfaceComposer, data, reply);
1511- sp<IBinder> display = nullptr ;
1512- status_t result = data.readStrongBinder (&display);
1513- if (result != NO_ERROR ) {
1514- ALOGE (" setAutoLowLatencyMode failed to readStrongBinder: %d" , result);
1515- return result;
1516- }
1517- bool setAllm = false ;
1518- result = data.readBool (&setAllm);
1519- if (result != NO_ERROR ) {
1520- ALOGE (" setAutoLowLatencyMode failed to readBool: %d" , result);
1521- return result;
1522- }
1523- setAutoLowLatencyMode (display, setAllm);
1524- return result;
1525- }
1526-
1527- case GET_GAME_CONTENT_TYPE_SUPPORT : {
1528- CHECK_INTERFACE (ISurfaceComposer, data, reply);
1529- sp<IBinder> display = nullptr ;
1530- status_t result = data.readStrongBinder (&display);
1531- if (result != NO_ERROR ) {
1532- ALOGE (" getGameContentTypeSupport failed to readStrongBinder: %d" , result);
1533- return result;
1534- }
1535- bool supported = false ;
1536- result = getGameContentTypeSupport (display, &supported);
1537- if (result == NO_ERROR ) {
1538- result = reply->writeBool (supported);
1539- }
1540- return result;
1541- }
1542-
1543- case SET_GAME_CONTENT_TYPE : {
1544- CHECK_INTERFACE (ISurfaceComposer, data, reply);
1545- sp<IBinder> display = nullptr ;
1546- status_t result = data.readStrongBinder (&display);
1547- if (result != NO_ERROR ) {
1548- ALOGE (" setGameContentType failed to readStrongBinder: %d" , result);
1549- return result;
1550- }
1551- bool setGameContentTypeOn = false ;
1552- result = data.readBool (&setGameContentTypeOn);
1553- if (result != NO_ERROR ) {
1554- ALOGE (" setGameContentType failed to readBool: %d" , result);
1555- return result;
1556- }
1557- setGameContentType (display, setGameContentTypeOn);
1558- return result;
1559- }
1560-
15611410 case CLEAR_ANIMATION_FRAME_STATS : {
15621411 CHECK_INTERFACE (ISurfaceComposer, data, reply);
15631412 status_t result = clearAnimationFrameStats ();
0 commit comments