question: private int findActivityElement ( int activityIndex ) { for ( int elementIndex = 0 ; elementIndex < mActivityList . size ( ) ; elementIndex ++ ) { if ( mActivityList . get ( elementIndex ) . mActivityIndex == activityIndex ) { return elementIndex ; } } return - 1 ; }
target:  Finds the index of the ActivityElement corresponding to the given activityIndex.