/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) {
|
BluetoothOppTransferHistory.java | 94 if (dir == BluetoothShare.DIRECTION_OUTBOUND) { 96 direction = "(" + BluetoothShare.DIRECTION + " == " + BluetoothShare.DIRECTION_OUTBOUND 104 direction = "(" + BluetoothShare.DIRECTION + " == " + BluetoothShare.DIRECTION_INBOUND 108 String selection = BluetoothShare.STATUS + " >= '200' AND " + direction; 112 + BluetoothShare.VISIBILITY + " IS NULL OR " 113 + BluetoothShare.VISIBILITY + " == '" 114 + BluetoothShare.VISIBILITY_VISIBLE + "')"; 117 final String sortOrder = BluetoothShare.TIMESTAMP + " DESC" [all...] |
BluetoothOppProvider.java | 105 LIVE_FOLDER_PROJECTION_MAP.put(LiveFolders._ID, BluetoothShare._ID + " AS " 107 LIVE_FOLDER_PROJECTION_MAP.put(LiveFolders.NAME, BluetoothShare.FILENAME_HINT + " AS " 175 db.execSQL("CREATE TABLE " + DB_TABLE + "(" + BluetoothShare._ID 176 + " INTEGER PRIMARY KEY AUTOINCREMENT," + BluetoothShare.URI + " TEXT, " 177 + BluetoothShare.FILENAME_HINT + " TEXT, " + BluetoothShare._DATA + " TEXT, " 178 + BluetoothShare.MIMETYPE + " TEXT, " + BluetoothShare.DIRECTION + " INTEGER, " 179 + BluetoothShare.DESTINATION + " TEXT, " + BluetoothShare.VISIBILIT [all...] |
BluetoothOppUtility.java | 74 info.mID = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)); 75 info.mStatus = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); 77 .getColumnIndexOrThrow(BluetoothShare.DIRECTION)); 79 .getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); 81 .getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES)); 83 .getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)); 85 .getColumnIndexOrThrow(BluetoothShare.DESTINATION)); 88 .getColumnIndexOrThrow(BluetoothShare._DATA)); 91 .getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)); 97 info.mFileUri = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.URI)) [all...] |
BluetoothOppService.java | 155 getContentResolver().registerContentObserver(BluetoothShare.CONTENT_URI, true, mObserver); 239 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1); 241 updateValues.put(BluetoothShare.URI, msg.obj.toString()); // update 242 updateValues.put(BluetoothShare.MIMETYPE, getContentResolver().getType( 252 Uri contentUri1 = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1); 426 Cursor cursor = getContentResolver().query(BluetoothShare.CONTENT_URI, null, null, 427 null, BluetoothShare._ID); 440 int idColumn = cursor.getColumnIndexOrThrow(BluetoothShare._ID); 546 String uriString = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.URI)); 556 cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)) [all...] |
BluetoothOppNotification.java | 59 static final String status = "(" + BluetoothShare.STATUS + " == '192'" + ")"; 61 static final String visible = "(" + BluetoothShare.VISIBILITY + " IS NULL OR " 62 + BluetoothShare.VISIBILITY + " == '" + BluetoothShare.VISIBILITY_VISIBLE + "'" + ")"; 64 static final String confirm = "(" + BluetoothShare.USER_CONFIRMATION + " == '" 65 + BluetoothShare.USER_CONFIRMATION_CONFIRMED + "' OR " 66 + BluetoothShare.USER_CONFIRMATION + " == '" 67 + BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED + "' OR " 68 + BluetoothShare.USER_CONFIRMATION + " == '" 69 + 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) { 86 cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)); 95 int destinationColumnId = cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION); 102 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); 103 if (BluetoothShare.isStatusCompleted(status)) { 106 if (BluetoothShare.isStatusError(status)) { 110 if (dir == BluetoothShare.DIRECTION_INBOUND) [all...] |
BluetoothOppObexServerSession.java | 84 private int mAccepted = BluetoothShare.USER_CONFIRMATION_PENDING; 179 if (mAccepted == BluetoothShare.USER_CONFIRMATION_DENIED) { 268 values.put(BluetoothShare.FILENAME_HINT, name); 269 values.put(BluetoothShare.TOTAL_BYTES, length.intValue()); 270 values.put(BluetoothShare.MIMETYPE, mimeType); 272 values.put(BluetoothShare.DESTINATION, destination); 274 values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_INBOUND); 275 values.put(BluetoothShare.TIMESTAMP, mTimestamp); 280 values.put(BluetoothShare.USER_CONFIRMATION [all...] |
BluetoothOppReceiver.java | 128 } else if (action.equals(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION)) { 151 if (transInfo.mDirection == BluetoothShare.DIRECTION_INBOUND 152 && BluetoothShare.isStatusSuccess(transInfo.mStatus)) { 175 in.putExtra("direction", BluetoothShare.DIRECTION_OUTBOUND); 182 in.putExtra("direction", BluetoothShare.DIRECTION_INBOUND); 189 in.putExtra("direction", BluetoothShare.DIRECTION_INBOUND); 198 int statusColumn = cursor.getColumnIndexOrThrow(BluetoothShare.STATUS); 200 int visibilityColumn = cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY); 203 .getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION); 205 if (((userConfirmation == BluetoothShare.USER_CONFIRMATION_PENDING) [all...] |
BluetoothOppBatch.java | 139 if (info.mStatus == BluetoothShare.STATUS_RUNNING) { 140 info.mStatus = BluetoothShare.STATUS_CANCELED; 141 if (info.mDirection == BluetoothShare.DIRECTION_INBOUND && info.mFilename != null) { 169 if (info.mDirection == BluetoothShare.DIRECTION_INBOUND && info.mFilename != null) { 174 Constants.updateShareStatus(mContext, info.mId, BluetoothShare.STATUS_CANCELED); 212 if (share.mStatus == BluetoothShare.STATUS_PENDING) {
|
BluetoothOppReceiveFileInfo.java | 93 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); 97 BluetoothShare.FILENAME_HINT, BluetoothShare.TOTAL_BYTES, BluetoothShare.MIMETYPE 120 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); 125 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_NO_SDCARD); 135 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_SDCARD_FULL); 141 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); 148 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); 162 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR) [all...] |
BluetoothOppObexClientSession.java | 264 int status = BluetoothShare.STATUS_SUCCESS; 271 status = BluetoothShare.STATUS_CANCELED; 276 status = BluetoothShare.STATUS_CONNECTION_ERROR; 278 if (status == BluetoothShare.STATUS_SUCCESS) { 291 if (status == BluetoothShare.STATUS_SUCCESS) { 325 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); 327 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); 328 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); 329 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype); 340 int status = BluetoothShare.STATUS_SUCCESS [all...] |
BluetoothOppTransfer.java | 151 markBatchFailed(BluetoothShare.STATUS_CONNECTION_ERROR); 176 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { 218 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { 244 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { 266 Intent in = new Intent(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION); 277 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); 280 .put(BluetoothShare.USER_CONFIRMATION, BluetoothShare.USER_CONFIRMATION_TIMEOUT); 296 if (BluetoothShare.isStatusError(mCurrentShare.mStatus)) { 299 if (mCurrentShare.mDirection == BluetoothShare.DIRECTION_INBOUN [all...] |
BluetoothOppIncomingFileConfirmActivity.java | 85 if (!BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION.equals(intent.getAction())) { 124 BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION)); 146 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION, 147 BluetoothShare.USER_CONFIRMATION_CONFIRMED); 157 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION, 158 BluetoothShare.USER_CONFIRMATION_DENIED); 169 mUpdateValues.put(BluetoothShare.VISIBILITY, BluetoothShare.VISIBILITY_HIDDEN);
|
BluetoothShare.java | 44 public final class BluetoothShare implements BaseColumns { 45 private BluetoothShare() {
|
BluetoothOppManager.java | 437 values.put(BluetoothShare.URI, fileUri.toString()); 438 values.put(BluetoothShare.MIMETYPE, contentType); 439 values.put(BluetoothShare.DESTINATION, mRemoteDevice.getAddress()); 440 values.put(BluetoothShare.TIMESTAMP, ts); 442 values.put(BluetoothShare.USER_CONFIRMATION, 443 BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED); 446 BluetoothShare.CONTENT_URI, values); 457 values.put(BluetoothShare.URI, mUri); 458 values.put(BluetoothShare.MIMETYPE, mTypeOfSingleFile); 459 values.put(BluetoothShare.DESTINATION, mRemoteDevice.getAddress()) [all...] |
Constants.java | 276 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); 278 updateValues.put(BluetoothShare.STATUS, status); 288 if (BluetoothShare.isStatusCompleted(status)) { 289 Intent intent = new Intent(BluetoothShare.TRANSFER_COMPLETED_ACTION);
|
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...] |
BluetoothOppLiveFolder.java | 73 Constants.ACTION_OPEN, BluetoothShare.CONTENT_URI));
|
BluetoothOppTransferActivity.java | 146 mIsComplete = BluetoothShare.isStatusCompleted(mTransInfo.mStatus); 153 getContentResolver().registerContentObserver(BluetoothShare.CONTENT_URI, true, 180 boolean isSuccess = BluetoothShare.isStatusSuccess(mTransInfo.mStatus); 181 boolean isComplete = BluetoothShare.isStatusCompleted(mTransInfo.mStatus); 183 if (direction == BluetoothShare.DIRECTION_INBOUND) { 194 } else if (direction == BluetoothShare.DIRECTION_OUTBOUND) { 303 if (mTransInfo.mStatus == BluetoothShare.STATUS_ERROR_SDCARD_FULL) { 343 if (BluetoothShare.isStatusError(mTransInfo.mStatus)) { 443 if (!mIsComplete && BluetoothShare.isStatusCompleted(mTransInfo.mStatus)
|
BluetoothOppHandoverReceiver.java | 80 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id);
|
BluetoothOppSendFileInfo.java | 62 null, null, 0, null, BluetoothShare.STATUS_FILE_ERROR);
|