code: private int nativeNext() throws XmlPullParserException {
      switch (mEventType) {
        case (CDSECT): {
          throw new IllegalArgumentException(
              "CDSECT is not handled by Android");
        }
        case (COMMENT): {
          throw new IllegalArgumentException(
              "COMMENT is not handled by Android");
        }
        case (DOCDECL): {
          throw new IllegalArgumentException(
              "DOCDECL is not handled by Android");
        }
        case (ENTITY_REF): {
          throw new IllegalArgumentException(
              "ENTITY_REF is not handled by Android");
        }
        case (END_DOCUMENT): {
          // The end document event should have been filtered
          // from the invoker. This should never happen.
          throw new IllegalArgumentException(
              "END_DOCUMENT should not be found here.");
        }
        case (END_TAG): {
          return navigateToNextNode(currentNode);
        }
        case (IGNORABLE_WHITESPACE): {
          throw new IllegalArgumentException(
              "IGNORABLE_WHITESPACE");
        }
        case (PROCESSING_INSTRUCTION): {
          throw new IllegalArgumentException(
              "PROCESSING_INSTRUCTION");
        }
        case (START_DOCUMENT): {
          currentNode = document.getDocumentElement();
          return START_TAG;
        }
        case (START_TAG): {
          if (currentNode.hasChildNodes()) {
            // The node has children, navigate down
            return processNextNodeType(
                currentNode.getFirstChild());
          } else {
            // The node has no children
            return END_TAG;
          }
        }
        case (TEXT): {
          return navigateToNextNode(currentNode);
        }
        default: {
          // This can only happen if mEventType is
          // assigned with an unmapped integer.
          throw new RuntimeException(
              "Robolectric-> Uknown XML event type: " + mEventType);
        }
      }
  
    }
docs: A twin implementation of the native android nativeNext(status)
  
  @throws XmlPullParserException