@@ -903,24 +903,24 @@ public void onProtocolMessageReceived(ProtocolMessage msg) {
903903
904904 @ Override
905905 public void onProtocolSessionStartedNACKed (SessionType sessionType , byte sessionID , byte version , String correlationID , List <String > rejectedParams ) {
906- Log .w (TAG , sessionType + " onProtocolSessionStartedNACKed " + sessionID + " RejectedParams: " + rejectedParams );
907- BaseLifecycleManager .this .onProtocolSessionStartedNACKed (sessionType );
906+ Log .w (TAG , sessionType . getName () + " onProtocolSessionStartedNACKed " + sessionID + " RejectedParams: " + rejectedParams );
907+ BaseLifecycleManager .this .onStartServiceNACKed (sessionType );
908908 }
909909
910910 @ Override
911911 public void onProtocolSessionStarted (SessionType sessionType , byte sessionID , byte version , String correlationID , int hashID , boolean isEncrypted ) {
912912 Log .i (TAG , "on protocol session started" );
913- BaseLifecycleManager .this .onProtocolSessionStarted (sessionType );
913+ BaseLifecycleManager .this .onServiceStarted (sessionType );
914914 }
915915
916916 @ Override
917917 public void onProtocolSessionEnded (SessionType sessionType , byte sessionID , String correlationID ) {
918- BaseLifecycleManager .this .onProtocolSessionEnded (sessionType );
918+ BaseLifecycleManager .this .onServiceEnded (sessionType );
919919 }
920920
921921 @ Override
922922 public void onProtocolSessionEndedNACKed (SessionType sessionType , byte sessionID , String correlationID ) {
923- BaseLifecycleManager .this .onProtocolSessionEndedNACKed (sessionType );
923+ BaseLifecycleManager .this .onStopServiceNACKed (sessionType );
924924 }
925925
926926 @ Override
@@ -1294,7 +1294,7 @@ void initialize() {
12941294 setupInternalRpcListeners ();
12951295 }
12961296
1297- void onProtocolSessionStarted (SessionType sessionType ) {
1297+ void onServiceStarted (SessionType sessionType ) {
12981298 if (sessionType != null ) {
12991299 if (minimumProtocolVersion != null && minimumProtocolVersion .isNewerThan (getProtocolVersion ()) == 1 ) {
13001300 Log .w (TAG , String .format ("Disconnecting from head unit, the configured minimum protocol version %s is greater than the supported protocol version %s" , minimumProtocolVersion , getProtocolVersion ()));
@@ -1341,13 +1341,13 @@ void onProtocolSessionStarted(SessionType sessionType) {
13411341 void onTransportDisconnected (String info , boolean availablePrimary , BaseTransportConfig transportConfig ) {
13421342 }
13431343
1344- void onProtocolSessionStartedNACKed (SessionType sessionType ) {
1344+ void onStartServiceNACKed (SessionType sessionType ) {
13451345 }
13461346
1347- void onProtocolSessionEnded (SessionType sessionType ) {
1347+ void onServiceEnded (SessionType sessionType ) {
13481348 }
13491349
1350- void onProtocolSessionEndedNACKed (SessionType sessionType ) {
1350+ void onStopServiceNACKed (SessionType sessionType ) {
13511351 }
13521352
13531353 void startVideoService (boolean encrypted , VideoStreamingParameters parameters ) {
0 commit comments