question: @ VisibleForTesting boolean prepareAndUploadPoints ( Track track , List < Location > locations , boolean lastBatch ) { ArrayList < Track > splitTracks = SendToGoogleUtils . prepareLocations ( track , locations ) ; boolean onlyOneSegment = lastBatch && currentSegment == 1 && splitTracks . size ( ) == 1 ; for ( Track segment : splitTracks ) { if ( ! onlyOneSegment ) { segment . setName ( context . getString ( R . string . send_google_track_part_label , segment . getName ( ) , currentSegment ) ) ; } if ( ! uploadSegment ( segment . getName ( ) , segment . getLocations ( ) ) ) { Log . d ( TAG , "Unable to upload segment" ) ; return false ; } currentSegment ++ ; } return true ; }
target:  Prepares and uploads a list of locations from a track.