question: private void addMetricsFromAttributes ( XmlPullParser parser ) { int attrCount = parser . getAttributeCount ( ) ; for ( int i = 0 ; i < attrCount ; i ++ ) { mMetrics . put ( parser . getAttributeName ( i ) , parser . getAttributeValue ( i ) ) ; } }
target:  Adds all attributes from the current XML tag to metrics as name-value pairs