/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppShareInfo.java | 95 if (mDirection == BluetoothShare.DIRECTION_OUTBOUND) { 96 if (mStatus == BluetoothShare.STATUS_PENDING && mUri != null) { 99 } else if (mDirection == BluetoothShare.DIRECTION_INBOUND) { 100 if (mStatus == BluetoothShare.STATUS_PENDING) { 101 //&& mConfirm != BluetoothShare.USER_CONFIRMATION_PENDING) { 109 if (!BluetoothShare.isStatusCompleted(mStatus)) { 112 if (mVisibility == BluetoothShare.VISIBILITY_VISIBLE) { 122 if (BluetoothShare.STATUS_RUNNING == mStatus) {
|
BluetoothOppProvider.java | 142 db.execSQL("CREATE TABLE " + DB_TABLE + "(" + BluetoothShare._ID 143 + " INTEGER PRIMARY KEY AUTOINCREMENT," + BluetoothShare.URI + " TEXT, " 144 + BluetoothShare.FILENAME_HINT + " TEXT, " + BluetoothShare._DATA + " TEXT, " 145 + BluetoothShare.MIMETYPE + " TEXT, " + BluetoothShare.DIRECTION + " INTEGER, " 146 + BluetoothShare.DESTINATION + " TEXT, " + BluetoothShare.VISIBILITY 147 + " INTEGER, " + BluetoothShare.USER_CONFIRMATION + " INTEGER, " 148 + BluetoothShare.STATUS + " INTEGER, " + BluetoothShare.TOTAL_BYTE [all...] |
BluetoothOppTransferHistory.java | 96 if (dir == BluetoothShare.DIRECTION_OUTBOUND) { 98 direction = "(" + BluetoothShare.DIRECTION + " == " + BluetoothShare.DIRECTION_OUTBOUND 106 direction = "(" + BluetoothShare.DIRECTION + " == " + BluetoothShare.DIRECTION_INBOUND 110 String selection = BluetoothShare.STATUS + " >= '200' AND " + direction; 113 selection = selection + " AND (" + BluetoothShare.VISIBILITY + " IS NULL OR " 114 + BluetoothShare.VISIBILITY + " == '" + BluetoothShare.VISIBILITY_VISIBLE 118 final String sortOrder = BluetoothShare.TIMESTAMP + " DESC" [all...] |
BluetoothOppReceiver.java | 107 values.put(BluetoothShare.USER_CONFIRMATION, BluetoothShare.USER_CONFIRMATION_DENIED); 118 values.put(BluetoothShare.USER_CONFIRMATION, 119 BluetoothShare.USER_CONFIRMATION_CONFIRMED); 138 if (transInfo.mDirection == BluetoothShare.DIRECTION_INBOUND 139 && BluetoothShare.isStatusSuccess(transInfo.mStatus)) { 158 in.putExtra("direction", BluetoothShare.DIRECTION_OUTBOUND); 167 in.putExtra("direction", BluetoothShare.DIRECTION_INBOUND); 176 in.putExtra("direction", BluetoothShare.DIRECTION_INBOUND); 187 int visibilityColumn = cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY) [all...] |
BluetoothOppNotification.java | 63 static final String STATUS = "(" + BluetoothShare.STATUS + " == '192'" + ")"; 66 "(" + BluetoothShare.VISIBILITY + " IS NULL OR " + BluetoothShare.VISIBILITY + " == '" 67 + BluetoothShare.VISIBILITY_VISIBLE + "'" + ")"; 69 static final String CONFIRM = "(" + BluetoothShare.USER_CONFIRMATION + " == '" 70 + BluetoothShare.USER_CONFIRMATION_CONFIRMED + "' OR " 71 + BluetoothShare.USER_CONFIRMATION + " == '" 72 + BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED + "' OR " 73 + BluetoothShare.USER_CONFIRMATION + " == '" 74 + BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED + "'" + ")" [all...] |
BluetoothOppTransferAdapter.java | 71 int status = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); 72 int dir = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)); 73 if (BluetoothShare.isStatusError(status)) { 76 if (dir == BluetoothShare.DIRECTION_OUTBOUND) { 85 String title = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)); 94 int destinationColumnId = cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION); 101 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); 102 if (BluetoothShare.isStatusCompleted(status)) { 105 if (BluetoothShare.isStatusError(status)) { 109 if (dir == BluetoothShare.DIRECTION_INBOUND) [all...] |
BluetoothOppUtility.java | 74 return uri.toString().startsWith(BluetoothShare.CONTENT_URI.toString()); 96 info.mID = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)); 97 info.mStatus = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); 98 info.mDirection = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)); 99 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); 101 cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES)); 102 info.mTimeStamp = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)); 103 info.mDestAddr = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION)); 105 info.mFileName = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare._DATA)); 108 cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)) [all...] |
BluetoothOppObexServerSession.java | 89 private int mAccepted = BluetoothShare.USER_CONFIRMATION_PENDING; 191 if (mAccepted == BluetoothShare.USER_CONFIRMATION_DENIED) { 272 values.put(BluetoothShare.FILENAME_HINT, name); 273 values.put(BluetoothShare.TOTAL_BYTES, length); 274 values.put(BluetoothShare.MIMETYPE, mimeType); 275 values.put(BluetoothShare.DESTINATION, destination); 276 values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_INBOUND); 277 values.put(BluetoothShare.TIMESTAMP, mTimestamp); 280 if (!mServerBlocking && (mAccepted == BluetoothShare.USER_CONFIRMATION_CONFIRME [all...] |
BluetoothOppService.java | 152 BluetoothShare.VISIBILITY + "=" + BluetoothShare.VISIBILITY_HIDDEN; 155 BluetoothShare.DIRECTION + "=" + BluetoothShare.DIRECTION_INBOUND + " AND " 156 + BluetoothShare.STATUS + "=" + BluetoothShare.STATUS_SUCCESS + " AND " 160 BluetoothShare.DIRECTION + "=" + BluetoothShare.DIRECTION_INBOUND + " AND " 161 + BluetoothShare.USER_CONFIRMATION + "=" 162 + BluetoothShare.USER_CONFIRMATION_PENDING [all...] |
BluetoothOppReceiveFileInfo.java | 98 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); 102 BluetoothShare.FILENAME_HINT, BluetoothShare.TOTAL_BYTES, BluetoothShare.MIMETYPE 127 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); 134 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_NO_SDCARD); 146 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_SDCARD_FULL); 152 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); 159 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); 201 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR) [all...] |
BluetoothOppTransfer.java | 125 == BluetoothShare.USER_CONFIRMATION_PENDING)) { 221 markBatchFailed(BluetoothShare.STATUS_CONNECTION_ERROR); 250 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { 311 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { 328 markBatchFailed(BluetoothShare.STATUS_UNKNOWN_ERROR); 341 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { 365 Intent in = new Intent(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION); 376 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); 378 updateValues.put(BluetoothShare.USER_CONFIRMATION, 379 BluetoothShare.USER_CONFIRMATION_TIMEOUT) [all...] |
BluetoothOppObexClientSession.java | 307 int status = BluetoothShare.STATUS_SUCCESS; 314 status = BluetoothShare.STATUS_CANCELED; 319 status = BluetoothShare.STATUS_CONNECTION_ERROR; 321 if (status == BluetoothShare.STATUS_SUCCESS) { 335 msg.what = (status == BluetoothShare.STATUS_SUCCESS) 367 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); 369 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); 370 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); 371 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype); 383 int status = BluetoothShare.STATUS_SUCCESS [all...] |
BluetoothShare.java | 44 public final class BluetoothShare implements BaseColumns { 45 private BluetoothShare() {
|
BluetoothOppManager.java | 461 values.put(BluetoothShare.URI, fileUri.toString()); 472 values.put(BluetoothShare.MIMETYPE, contentType); 473 values.put(BluetoothShare.DESTINATION, mRemoteDevice.getAddress()); 474 values.put(BluetoothShare.TIMESTAMP, ts); 476 values.put(BluetoothShare.USER_CONFIRMATION, 477 BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED); 480 mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values); 493 values.put(BluetoothShare.URI, mUri); 494 values.put(BluetoothShare.MIMETYPE, mTypeOfSingleFile); 495 values.put(BluetoothShare.DESTINATION, mRemoteDevice.getAddress()) [all...] |
BluetoothOppBatch.java | 153 if (info.mDirection == BluetoothShare.DIRECTION_INBOUND && info.mFilename != null) { 160 Constants.updateShareStatus(mContext, info.mId, BluetoothShare.STATUS_CANCELED); 198 if (share.mStatus == BluetoothShare.STATUS_PENDING) {
|
Constants.java | 226 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); 228 updateValues.put(BluetoothShare.STATUS, status); 235 if (BluetoothShare.isStatusCompleted(status)) { 236 Intent intent = new Intent(BluetoothShare.TRANSFER_COMPLETED_ACTION);
|
BluetoothOppIncomingFileConfirmActivity.java | 82 if (!BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION.equals(intent.getAction())) { 130 new IntentFilter(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION)); 151 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION, 152 BluetoothShare.USER_CONFIRMATION_CONFIRMED); 162 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION, 163 BluetoothShare.USER_CONFIRMATION_DENIED);
|
TestActivity.java | 129 * values.put(BluetoothShare.URI, stream.toString()); 130 * values.put(BluetoothShare.DESTINATION, "FF:FF:FF:00:00:00"); 131 * values.put(BluetoothShare.DIRECTION, 132 * BluetoothShare.DIRECTION_OUTBOUND); final Uri contentUri = 133 * getContentResolver().insert(BluetoothShare.CONTENT_URI, values); 174 * Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); 179 * updateValues.put(BluetoothShare.TOTAL_BYTES, 120000); 187 * queryC.getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES); int 193 * updateValues.put(BluetoothShare.CURRENT_BYTES, currentByte); 200 * BluetoothShare.URI, BluetoothShare.STATUS [all...] |
BluetoothOppTransferActivity.java | 149 mIsComplete = BluetoothShare.isStatusCompleted(mTransInfo.mStatus); 156 getContentResolver().registerContentObserver(BluetoothShare.CONTENT_URI, true, 185 boolean isSuccess = BluetoothShare.isStatusSuccess(mTransInfo.mStatus); 186 boolean isComplete = BluetoothShare.isStatusCompleted(mTransInfo.mStatus); 188 if (direction == BluetoothShare.DIRECTION_INBOUND) { 199 } else if (direction == BluetoothShare.DIRECTION_OUTBOUND) { 310 if (mTransInfo.mStatus == BluetoothShare.STATUS_ERROR_SDCARD_FULL) { 352 if (BluetoothShare.isStatusError(mTransInfo.mStatus)) { 465 if (!mIsComplete && BluetoothShare.isStatusCompleted(mTransInfo.mStatus)
|
BluetoothOppHandoverReceiver.java | 90 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id);
|
BluetoothOppSendFileInfo.java | 64 new BluetoothOppSendFileInfo(null, null, 0, null, BluetoothShare.STATUS_FILE_ERROR);
|