public synchronized void send(File file){
  if (!isHostFileSenderSupported()) {
    return;
  }
  if (isDiscardMode()) {
    file.delete();
    return;
  }
  waitForQueue();
  Bundle bundle=new Bundle();
  bundle.putString("HostFileSender_filename",file.getAbsolutePath());
  mInstrumentation.sendStatus(Activity.RESULT_OK,bundle);
  mQueue.add(file);
}

public synchronized void send ( File file ) { if ( ! isHostFileSenderSupported ( ) ) { return ; } if ( isDiscardMode ( ) ) { file . delete ( ) ; return ; } waitForQueue ( ) ; Bundle bundle = new Bundle ( ) ; bundle . putString ( "HostFileSender_filename" , file . getAbsolutePath ( ) ) ; mInstrumentation . sendStatus ( Activity . RESULT_OK , bundle ) ; mQueue . add ( file ) ; }
sends the given file to the host system . once passed in the file is " owned " by hostfilesender and should not be modified beyond this point .
