Home | History | Annotate | Download | only in opp

Lines Matching refs:mBatch

95     private BluetoothOppBatch mBatch;
116 if (device == null || mBatch == null || mCurrentShare == null) {
117 Log.e(TAG, "device : " + device + " mBatch :" + mBatch + " mCurrentShare :"
123 Log.v(TAG, "Device :" + device + "- OPP device: " + mBatch.mDestination
126 if ((device.equals(mBatch.mDestination))
131 + mBatch.mId);
181 mBatch = batch;
184 mBatch.registerListern(this);
194 return mBatch.mId;
222 mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
246 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
247 mCurrentShare = mBatch.getPendingShare();
252 " from batch " + mBatch.mId);
256 if (V) Log.v(TAG, "Batch " + mBatch.mId + " is done");
268 if (V) Log.v(TAG, "receive MSG_SESSION_COMPLETE for batch " + mBatch.mId);
269 mBatch.mStatus = Constants.BATCH_STATUS_FINISHED;
278 if (V) Log.v(TAG, "receive MSG_SESSION_ERROR for batch " + mBatch.mId);
285 mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
295 if (V) Log.v(TAG, "receive MSG_SHARE_INTERRUPTED for batch " + mBatch.mId);
297 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
308 mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
319 if (V) Log.v(TAG, "receive MSG_CONNECT_TIMEOUT for batch " + mBatch.mId);
323 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
385 if (mBatch == null) {
388 info = mBatch.getPendingShare();
413 info = mBatch.getPendingShare();
449 Log.e(TAG, "Can't start transfer when Bluetooth is disabled for " + mBatch.mId);
451 mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
456 if (V) Log.v(TAG, "Create handler thread for batch " + mBatch.mId);
462 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
465 } else if (mBatch.mDirection == BluetoothShare.DIRECTION_INBOUND) {
508 mBatch.mStatus = Constants.BATCH_STATUS_RUNNING;
510 mCurrentShare = mBatch.getPendingShare();
519 mBatch.mId);
521 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
524 } else if (mBatch.mDirection == BluetoothShare.DIRECTION_INBOUND) {
534 mBatch.mStatus = Constants.BATCH_STATUS_FAILED;
540 mSession.start(mSessionHandler, mBatch.getNumShares());
593 mDevice = mBatch.mDestination;
594 if (!mBatch.mDestination.sdpSearch(BluetoothUuid.ObexObjectPush)) {
599 mConnectThread = new SocketConnectThread(mBatch.mDestination, false, false, -1);
799 BluetoothOppShareInfo info = mBatch.getPendingShare();
801 mCurrentShare = mBatch.getPendingShare();
811 " from batch " + mBatch.mId);
839 mBatch.mStatus = Constants.BATCH_STATUS_FINISHED;