Lines Matching refs:info

570         BluetoothOppShareInfo info = new BluetoothOppShareInfo(
588 Log.v(TAG, "ID : " + info.mId);
589 // Log.v(TAG, "URI : " + ((info.mUri != null) ? "yes" : "no"));
590 Log.v(TAG, "URI : " + info.mUri);
591 Log.v(TAG, "HINT : " + info.mHint);
592 Log.v(TAG, "FILENAME: " + info.mFilename);
593 Log.v(TAG, "MIMETYPE: " + info.mMimetype);
594 Log.v(TAG, "DIRECTION: " + info.mDirection);
595 Log.v(TAG, "DESTINAT: " + info.mDestination);
596 Log.v(TAG, "VISIBILI: " + info.mVisibility);
597 Log.v(TAG, "CONFIRM : " + info.mConfirm);
598 Log.v(TAG, "STATUS : " + info.mStatus);
599 Log.v(TAG, "TOTAL : " + info.mTotalBytes);
600 Log.v(TAG, "CURRENT : " + info.mCurrentBytes);
601 Log.v(TAG, "TIMESTAMP : " + info.mTimestamp);
602 Log.v(TAG, "SCANNED : " + info.mMediaScanned);
605 mShares.add(arrayPos, info);
607 /* Mark the info as failed if it's in invalid status */
608 if (info.isObsolete()) {
609 Constants.updateShareStatus(this, info.mId, BluetoothShare.STATUS_UNKNOWN_ERROR);
612 * Add info into a batch. The logic is
613 * 1) Only add valid and readyToStart info
621 if (info.isReadyToStart()) {
622 if (info.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
625 info.mUri);
627 Log.e(TAG, "Can't open file for OUTBOUND info " + info.mId);
628 Constants.updateShareStatus(this, info.mId, BluetoothShare.STATUS_BAD_REQUEST);
629 BluetoothOppUtility.closeSendFileInfo(info.mUri);
634 BluetoothOppBatch newBatch = new BluetoothOppBatch(this, info);
638 if (info.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
640 + " for OUTBOUND info " + info.mId);
642 } else if (info.mDirection == BluetoothShare.DIRECTION_INBOUND) {
644 + " for INBOUND info " + info.mId);
649 if (info.mDirection == BluetoothShare.DIRECTION_OUTBOUND && mTransfer != null) {
651 + " for info " + info.mId);
653 } else if (info.mDirection == BluetoothShare.DIRECTION_INBOUND
656 + " for info " + info.mId);
661 int i = findBatchWithTimeStamp(info.mTimestamp);
663 if (V) Log.v(TAG, "Service add info " + info.mId + " to existing batch "
665 mBatchs.get(i).addShare(info);
668 BluetoothOppBatch newBatch = new BluetoothOppBatch(this, info);
672 if (V) Log.v(TAG, "Service add new Batch " + newBatch.mId + " for info " +
673 info.mId);
676 if (info.mDirection == BluetoothShare.DIRECTION_INBOUND) {
678 newBatch.mId + " for info " + info.mId);
690 BluetoothOppShareInfo info = mShares.get(arrayPos);
693 info.mId = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID));
694 if (info.mUri != null) {
695 info.mUri = Uri.parse(stringFromCursor(info.mUri.toString(), cursor,
698 Log.w(TAG, "updateShare() called for ID " + info.mId + " with null URI");
700 info.mHint = stringFromCursor(info.mHint, cursor, BluetoothShare.FILENAME_HINT);
701 info.mFilename = stringFromCursor(info.mFilename, cursor, BluetoothShare._DATA);
702 info.mMimetype = stringFromCursor(info.mMimetype, cursor, BluetoothShare.MIMETYPE);
703 info.mDirection = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION));
704 info.mDestination = stringFromCursor(info.mDestination, cursor, BluetoothShare.DESTINATION);
711 if (info.mVisibility == BluetoothShare.VISIBILITY_VISIBLE
713 && (BluetoothShare.isStatusCompleted(info.mStatus) || newConfirm == BluetoothShare.USER_CONFIRMATION_PENDING)) {
714 mNotifier.mNotificationMgr.cancel(info.mId);
717 info.mVisibility = newVisibility;
719 if (info.mConfirm == BluetoothShare.USER_CONFIRMATION_PENDING
723 info.mConfirm = cursor.getInt(cursor
727 if (!BluetoothShare.isStatusCompleted(info.mStatus)
729 mNotifier.mNotificationMgr.cancel(info.mId);
732 info.mStatus = newStatus;
733 info.mTotalBytes = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES));
734 info.mCurrentBytes = cursor.getInt(cursor
736 info.mTimestamp = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP));
737 info.mMediaScanned = (cursor.getInt(cursor.getColumnIndexOrThrow(Constants.MEDIA_SCANNED)) != Constants.MEDIA_SCANNED_NOT_SCANNED);
740 if (V) Log.v(TAG, "Service handle info " + info.mId + " confirmed");
742 int i = findBatchWithTimeStamp(info.mTimestamp);
750 int i = findBatchWithTimeStamp(info.mTimestamp);
784 * Removes the local copy of the info about a share.
787 BluetoothOppShareInfo info = mShares.get(arrayPos);
791 * 1) Search existing batch for the info
795 int i = findBatchWithTimeStamp(info.mTimestamp);
798 if (batch.hasShare(info)) {
799 if (V) Log.v(TAG, "Service cancel batch for share " + info.mId);
883 BluetoothOppShareInfo info = mShares.get(arrayPos);
884 if (BluetoothShare.isStatusCompleted(info.mStatus)) {
891 BluetoothOppShareInfo info = mShares.get(arrayPos);
892 return info.hasCompletionNotification();
896 BluetoothOppShareInfo info = mShares.get(arrayPos);
898 if (D) Log.d(TAG, "Scanning file " + info.mFilename);
901 new MediaScannerNotifier(this, info, mHandler);
910 BluetoothOppShareInfo info = mShares.get(arrayPos);
911 return BluetoothShare.isStatusSuccess(info.mStatus)
912 && info.mDirection == BluetoothShare.DIRECTION_INBOUND && !info.mMediaScanned &&
913 info.mConfirm != BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED;
975 public MediaScannerNotifier(Context context, BluetoothOppShareInfo info, Handler handler) {
977 mInfo = info;