question: private void updateDisplayName ( ) { String className = mAttributes . get ( "class" ) ; if ( className == null ) return ; String text = mAttributes . get ( "text" ) ; if ( text == null ) return ; String contentDescription = mAttributes . get ( "content-desc" ) ; if ( contentDescription == null ) return ; String index = mAttributes . get ( "index" ) ; if ( index == null ) return ; String bounds = mAttributes . get ( "bounds" ) ; if ( bounds == null ) { return ; } className = className . replace ( "android.widget." , "" ) ; className = className . replace ( "android.view." , "" ) ; StringBuilder builder = new StringBuilder ( ) ; builder . append ( '(' ) ; builder . append ( index ) ; builder . append ( ") " ) ; builder . append ( className ) ; if ( ! text . isEmpty ( ) ) { builder . append ( ':' ) ; builder . append ( text ) ; } if ( ! contentDescription . isEmpty ( ) ) { builder . append ( " {" ) ; builder . append ( contentDescription ) ; builder . append ( '}' ) ; } builder . append ( ' ' ) ; builder . append ( bounds ) ; mDisplayName = builder . toString ( ) ; }
target:  Builds the display name based on attributes of the node