/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 103 LIVE_FOLDER_PROJECTION_MAP.put(LiveFolders._ID, BluetoothShare._ID + " AS " in LIVE_FOLDER_PROJECTION_MAP.put() 105 LIVE_FOLDER_PROJECTION_MAP.put(LiveFolders.NAME, BluetoothShare.FILENAME_HINT + " AS " in LIVE_FOLDER_PROJECTION_MAP.put() 173 db.execSQL("CREATE TABLE " + DB_TABLE + "(" + BluetoothShare._ID in createTable() 174 + " INTEGER PRIMARY KEY AUTOINCREMENT," + BluetoothShare.URI + " TEXT, " in createTable() 175 + BluetoothShare.FILENAME_HINT + " TEXT, " + BluetoothShare._DATA + " TEXT, " in createTable() 176 + BluetoothShare.MIMETYPE + " TEXT, " + BluetoothShare.DIRECTION + " INTEGER, " in createTable() 177 + BluetoothShare.DESTINATION + " TEXT, " + BluetoothShare.VISIBILITY in createTable() 178 + " INTEGER, " + BluetoothShare.USER_CONFIRMATION + " INTEGER, " in createTable() 179 + BluetoothShare.STATUS + " INTEGER, " + BluetoothShare.TOTAL_BYTES in createTable() 180 + " INTEGER, " + BluetoothShare.CURRENT_BYTES + " INTEGER, " in createTable() [all …]
|
D | 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 + "'" + ")"; 71 static final String WHERE_COMPLETED = BluetoothShare.STATUS + " >= '200' AND " + visible; 73 static final String WHERE_CONFIRM_PENDING = BluetoothShare.USER_CONFIRMATION + " == '" 74 + BluetoothShare.USER_CONFIRMATION_PENDING + "'" + " AND " + visible; [all …]
|
D | BluetoothOppUtility.java | 69 info.mID = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)); in queryRecord() 70 info.mStatus = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); in queryRecord() 72 .getColumnIndexOrThrow(BluetoothShare.DIRECTION)); in queryRecord() 74 .getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in queryRecord() 76 .getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES)); in queryRecord() 78 .getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)); in queryRecord() 80 .getColumnIndexOrThrow(BluetoothShare.DESTINATION)); in queryRecord() 83 .getColumnIndexOrThrow(BluetoothShare._DATA)); in queryRecord() 86 .getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)); in queryRecord() 92 info.mFileUri = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.URI)); in queryRecord() [all …]
|
D | BluetoothOppService.java | 156 getContentResolver().registerContentObserver(BluetoothShare.CONTENT_URI, true, mObserver); in onCreate() 225 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1); 227 updateValues.put(BluetoothShare.URI, msg.obj.toString()); // update 228 updateValues.put(BluetoothShare.MIMETYPE, getContentResolver().getType( 238 Uri contentUri1 = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1); 400 Cursor cursor = getContentResolver().query(BluetoothShare.CONTENT_URI, null, null, in run() 401 null, BluetoothShare._ID); in run() 414 int idColumn = cursor.getColumnIndexOrThrow(BluetoothShare._ID); in run() 521 cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)), in insertShare() 522 cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.URI)), in insertShare() [all …]
|
D | BluetoothOppObexServerSession.java | 84 private int mAccepted = BluetoothShare.USER_CONFIRMATION_PENDING; 179 if (mAccepted == BluetoothShare.USER_CONFIRMATION_DENIED) { in onPut() 254 values.put(BluetoothShare.FILENAME_HINT, name); in onPut() 255 values.put(BluetoothShare.TOTAL_BYTES, length.intValue()); in onPut() 256 values.put(BluetoothShare.MIMETYPE, mimeType); in onPut() 260 values.put(BluetoothShare.DESTINATION, a); in onPut() 262 values.put(BluetoothShare.DESTINATION, "FF:FF:FF:00:00:00"); in onPut() 265 values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_INBOUND); in onPut() 266 values.put(BluetoothShare.TIMESTAMP, mTimestamp); in onPut() 271 values.put(BluetoothShare.USER_CONFIRMATION, in onPut() [all …]
|
D | BluetoothOppReceiver.java | 129 } else if (action.equals(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION)) { in onReceive() 152 if (transInfo.mDirection == BluetoothShare.DIRECTION_INBOUND in onReceive() 153 && BluetoothShare.isStatusSuccess(transInfo.mStatus)) { in onReceive() 177 int statusColumn = cursor.getColumnIndexOrThrow(BluetoothShare.STATUS); in onReceive() 179 int visibilityColumn = cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY); in onReceive() 182 .getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION); in onReceive() 184 …if ((BluetoothShare.isStatusCompleted(status) || (userConfirmation == BluetoothShare.USER_CONFIRMA… in onReceive() 185 && visibility == BluetoothShare.VISIBILITY_VISIBLE) { in onReceive() 187 values.put(BluetoothShare.VISIBILITY, BluetoothShare.VISIBILITY_HIDDEN); in onReceive() 194 } else if (action.equals(BluetoothShare.TRANSFER_COMPLETED_ACTION)) { in onReceive() [all …]
|
D | BluetoothOppShareInfo.java | 93 if (mDirection == BluetoothShare.DIRECTION_OUTBOUND) { in isReadyToStart() 94 if (mStatus == BluetoothShare.STATUS_PENDING && mUri != null) { in isReadyToStart() 97 } else if (mDirection == BluetoothShare.DIRECTION_INBOUND) { in isReadyToStart() 98 if (mStatus == BluetoothShare.STATUS_PENDING) { in isReadyToStart() 107 if (!BluetoothShare.isStatusCompleted(mStatus)) { in hasCompletionNotification() 110 if (mVisibility == BluetoothShare.VISIBILITY_VISIBLE) { in hasCompletionNotification() 120 if (BluetoothShare.STATUS_RUNNING == mStatus) { in isObsolete()
|
D | BluetoothOppObexClientSession.java | 251 int status = BluetoothShare.STATUS_SUCCESS; in doSend() 258 status = BluetoothShare.STATUS_CANCELED; in doSend() 263 status = BluetoothShare.STATUS_CONNECTION_ERROR; in doSend() 265 if (status == BluetoothShare.STATUS_SUCCESS) { in doSend() 278 if (status == BluetoothShare.STATUS_SUCCESS) { in doSend() 313 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in processShareInfo() 315 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); in processShareInfo() 316 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); in processShareInfo() 317 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype); in processShareInfo() 328 int status = BluetoothShare.STATUS_SUCCESS; in sendFile() [all …]
|
D | BluetoothOppReceiveFileInfo.java | 93 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in generateFileInfo() 97 BluetoothShare.FILENAME_HINT, BluetoothShare.TOTAL_BYTES, BluetoothShare.MIMETYPE in generateFileInfo() 119 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo() 124 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_NO_SDCARD); in generateFileInfo() 134 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_SDCARD_FULL); in generateFileInfo() 140 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo() 146 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo() 157 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo() 170 updateValues.put(BluetoothShare.FILENAME_HINT, displayName); in generateFileInfo() 178 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo() [all …]
|
D | BluetoothOppTransfer.java | 159 markBatchFailed(BluetoothShare.STATUS_CONNECTION_ERROR); in handleMessage() 172 markBatchFailed(BluetoothShare.STATUS_CONNECTION_ERROR); in handleMessage() 197 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { in handleMessage() 239 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { in handleMessage() 265 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { in handleMessage() 287 Intent in = new Intent(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION); in handleMessage() 298 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in markShareTimeout() 301 .put(BluetoothShare.USER_CONFIRMATION, BluetoothShare.USER_CONFIRMATION_TIMEOUT); in markShareTimeout() 317 if (BluetoothShare.isStatusError(mCurrentShare.mStatus)) { in markBatchFailed() 320 if (mCurrentShare.mDirection == BluetoothShare.DIRECTION_INBOUND in markBatchFailed() [all …]
|
D | BluetoothOppBatch.java | 140 if (info.mStatus == BluetoothShare.STATUS_RUNNING) { in deleteShare() 141 info.mStatus = BluetoothShare.STATUS_CANCELED; in deleteShare() 142 if (info.mDirection == BluetoothShare.DIRECTION_INBOUND && info.mFilename != null) { in deleteShare() 170 if (info.mDirection == BluetoothShare.DIRECTION_INBOUND && info.mFilename != null) { in cancelBatch() 175 Constants.updateShareStatus(mContext, info.mId, BluetoothShare.STATUS_CANCELED); in cancelBatch() 209 if (share.mStatus == BluetoothShare.STATUS_PENDING) { in getPendingShare()
|
D | BluetoothOppManager.java | 282 values.put(BluetoothShare.URI, fileUri.toString()); in startTransfer() 283 values.put(BluetoothShare.MIMETYPE, contentType); in startTransfer() 284 values.put(BluetoothShare.DESTINATION, device.getAddress()); in startTransfer() 285 values.put(BluetoothShare.TIMESTAMP, ts); in startTransfer() 288 BluetoothShare.CONTENT_URI, values); in startTransfer() 294 values.put(BluetoothShare.URI, mUriOfSendingFile); in startTransfer() 295 values.put(BluetoothShare.MIMETYPE, mMimeTypeOfSendigFile); in startTransfer() 296 values.put(BluetoothShare.DESTINATION, device.getAddress()); in startTransfer() 298 final Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, in startTransfer()
|
D | BluetoothOppIncomingFileConfirmActivity.java | 85 if (!BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION.equals(intent.getAction())) { 124 BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION)); in onCreate() 146 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION, in onClick() 147 BluetoothShare.USER_CONFIRMATION_CONFIRMED); in onClick() 157 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION, in onClick() 158 BluetoothShare.USER_CONFIRMATION_DENIED); in onClick() 169 mUpdateValues.put(BluetoothShare.VISIBILITY, BluetoothShare.VISIBILITY_HIDDEN); in onKeyDown()
|
D | TestActivity.java | 237 values.put(BluetoothShare.URI, "content://media/external/images/media/" + media); 252 values.put(BluetoothShare.DESTINATION, address); 254 values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_OUTBOUND); 257 values.put(BluetoothShare.TIMESTAMP, ts); 268 Uri contentUri = getContentResolver().insert(BluetoothShare.CONTENT_URI, values); 279 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" 287 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" 295 updateValues.put(BluetoothShare.USER_CONFIRMATION, 296 BluetoothShare.USER_CONFIRMATION_CONFIRMED); 303 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" [all …]
|
D | Constants.java | 172 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in updateShareStatus() 174 updateValues.put(BluetoothShare.STATUS, status); in updateShareStatus() 184 if (BluetoothShare.isStatusCompleted(status)) { in sendIntentIfCompleted() 185 Intent intent = new Intent(BluetoothShare.TRANSFER_COMPLETED_ACTION); in sendIntentIfCompleted()
|
D | BluetoothOppTransferActivity.java | 142 mIsComplete = BluetoothShare.isStatusCompleted(mTransInfo.mStatus); in onCreate() 149 getContentResolver().registerContentObserver(BluetoothShare.CONTENT_URI, true, in onCreate() 176 boolean isSuccess = BluetoothShare.isStatusSuccess(mTransInfo.mStatus); in displayWhichDialog() 177 boolean isComplete = BluetoothShare.isStatusCompleted(mTransInfo.mStatus); in displayWhichDialog() 179 if (direction == BluetoothShare.DIRECTION_INBOUND) { in displayWhichDialog() 190 } else if (direction == BluetoothShare.DIRECTION_OUTBOUND) { in displayWhichDialog() 298 if (mTransInfo.mStatus == BluetoothShare.STATUS_ERROR_SDCARD_FULL) { in customizeViewContent() 338 if (BluetoothShare.isStatusError(mTransInfo.mStatus)) { in customizeViewContent() 438 if (!mIsComplete && BluetoothShare.isStatusCompleted(mTransInfo.mStatus)) { in updateProgressbar()
|
D | BluetoothShare.java | 44 public final class BluetoothShare implements BaseColumns { class 45 private BluetoothShare() { in BluetoothShare() method in BluetoothShare
|
D | BluetoothOppSendFileInfo.java | 125 BluetoothShare.STATUS_FILE_ERROR, dest); in generateFileInfo() 132 BluetoothShare.STATUS_FILE_ERROR, dest); in generateFileInfo()
|
D | BluetoothOppLiveFolder.java | 72 Constants.ACTION_OPEN, BluetoothShare.CONTENT_URI)); in createLiveFolder()
|