Lines Matching refs:transfer
59 static final String BUNDLE_TRANSFER = "transfer";
175 // Create the actual transfer
180 // Start the transfer
188 if (DBG) Log.d(TAG, "Queueing out transfer " + Integer.toString(pendingTransfer.id));
190 // Queue the transfer and enable Bluetooth - when it is enabled
191 // the transfer will be started.
207 // Remote device will connect and finish the transfer
285 HandoverTransfer transfer = mTransfers.get(key);
286 if (!transfer.isRunning()) {
289 // There is already a transfer running to this
291 // with the existing transfer.
297 HandoverTransfer transfer = new HandoverTransfer(this, this, pendingTransfer);
298 mTransfers.put(key, transfer);
299 transfer.updateNotification();
305 HandoverTransfer transfer = mTransfers.get(key);
306 if (transfer.isRunning()) {
307 return transfer;
341 HandoverTransfer transfer = findHandoverTransfer(sourceAddress, incoming);
342 if (transfer != null) {
343 if (DBG) Log.d(TAG, "Cancelling transfer " +
344 Integer.toString(transfer.mTransferId));
345 transfer.cancel();
361 HandoverTransfer transfer = findHandoverTransfer(sourceAddress, incoming);
362 if (transfer == null) {
363 // There is no transfer running for this source address; most likely
364 // the transfer was cancelled. We need to tell BT OPP to stop transferring.
366 if (DBG) Log.d(TAG, "Didn't find transfer, stopping");
384 transfer.finishTransfer(true, uri, mimeType);
386 transfer.finishTransfer(false, null, null);
390 transfer.updateFileProgress(progress);
394 transfer.setObjectCount(count);
421 public void onTransferComplete(HandoverTransfer transfer, boolean success) {
424 // First, remove the transfer from our list
429 if (transferEntry == transfer) {
435 notifyClientTransferComplete(transfer.getTransferId());
441 if (DBG) Log.d(TAG, "Transfer failed, final state: " +
442 Integer.toString(transfer.mState));