code: public boolean isViConnected() {
          if(mRemoteService != null) {
              try {
                  return mUserOriginPipeline.isActive() || mRemoteService.isViConnected();
              } catch(RemoteException e) {
                  Log.d(TAG, "Unable to send message to remote service", e);
              }
          }
          return false;
      }
docs: Return the connection status of the selected VI.
  
  @return true if the selected VI reports that it is connected to the
  vehicle.