Lines Matching refs:parser
70 import com.android.exchange.adapter.Parser.EmptyStreamException;
536 // Create the parser with statusOnly set to true; we only care about
776 XmlPullParser parser = factory.newPullParser();
777 parser.setInput(is, "UTF-8");
778 int type = parser.getEventType();
780 type = parser.next();
782 String name = parser.getName();
785 parseAutodiscover(parser, hostAuth);
833 void parseServer(XmlPullParser parser, HostAuth hostAuth)
837 int type = parser.next();
838 if (type == XmlPullParser.END_TAG && parser.getName().equals("Server")) {
841 String name = parser.getName();
843 if (parser.nextText().equals("MobileSync")) {
848 autodiscoverUrlToHostAddress(parser.nextText());
858 void parseSettings(XmlPullParser parser, HostAuth hostAuth)
861 int type = parser.next();
862 if (type == XmlPullParser.END_TAG && parser.getName().equals("Settings")) {
865 String name = parser.getName();
867 parseServer(parser, hostAuth);
873 void parseAction(XmlPullParser parser, HostAuth hostAuth)
876 int type = parser.next();
877 if (type == XmlPullParser.END_TAG && parser.getName().equals("Action")) {
880 String name = parser.getName();
884 LogUtils.d(TAG, "Redirect: " + parser.nextText());
886 parseSettings(parser, hostAuth);
892 void parseUser(XmlPullParser parser, HostAuth hostAuth)
895 int type = parser.next();
896 if (type == XmlPullParser.END_TAG && parser.getName().equals("User")) {
899 String name = parser.getName();
901 String addr = parser.nextText();
904 String dn = parser.nextText();
911 void parseResponse(XmlPullParser parser, HostAuth hostAuth)
914 int type = parser.next();
915 if (type == XmlPullParser.END_TAG && parser.getName().equals("Response")) {
918 String name = parser.getName();
920 parseUser(parser, hostAuth);
922 parseAction(parser, hostAuth);
928 void parseAutodiscover(XmlPullParser parser, HostAuth hostAuth)
931 int type = parser.nextTag();
932 if (type == XmlPullParser.END_TAG && parser.getName().equals("Autodiscover")) {
934 } else if (type == XmlPullParser.START_TAG && parser.getName().equals("Response")) {
935 parseResponse(parser, hostAuth);