question: protected int parseAndAddNode ( XmlResourceParser parser , HashMap < String , TagParser > tagParserMap , ArrayList < Long > screenIds ) throws XmlPullParserException , IOException { if ( TAG_INCLUDE . equals ( parser . getName ( ) ) ) { final int resId = getAttributeResourceValue ( parser , ATTR_WORKSPACE , 0 ) ; if ( resId != 0 ) { return parseLayout ( resId , screenIds ) ; } else { return 0 ; } } mValues . clear ( ) ; parseContainerAndScreen ( parser , mTemp ) ; final long container = mTemp [ 0 ] ; final long screenId = mTemp [ 1 ] ; mValues . put ( LauncherSettings . Favorites . CONTAINER , container ) ; mValues . put ( LauncherSettings . Favorites . SCREEN , screenId ) ; mValues . put ( LauncherSettings . Favorites . CELLX , getAttributeValue ( parser , ATTR_X ) ) ; mValues . put ( LauncherSettings . Favorites . CELLY , getAttributeValue ( parser , ATTR_Y ) ) ; TagParser tagParser = tagParserMap . get ( parser . getName ( ) ) ; if ( tagParser == null ) { if ( LOGD ) Log . d ( TAG , "Ignoring unknown element tag: " + parser . getName ( ) ) ; return 0 ; } long newElementId = tagParser . parseAndAdd ( parser ) ; if ( newElementId >= 0 ) { if ( ! screenIds . contains ( screenId ) && container == LauncherSettings . Favorites . CONTAINER_DESKTOP ) { screenIds . add ( screenId ) ; } return 1 ; } return 0 ; }
target:  Parses the current node and returns the number of elements added.