HomeSort by relevance Sort by last modified time
    Searched refs:BluetoothShare (Results 1 - 21 of 21) sorted by null

  /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 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;
114 + BluetoothShare.VISIBILITY + " IS NULL OR "
115 + BluetoothShare.VISIBILITY + " == '"
116 + BluetoothShare.VISIBILITY_VISIBLE + "')";
119 final String sortOrder = BluetoothShare.TIMESTAMP + " DESC"
    [all...]
BluetoothOppProvider.java 162 db.execSQL("CREATE TABLE " + DB_TABLE + "(" + BluetoothShare._ID
163 + " INTEGER PRIMARY KEY AUTOINCREMENT," + BluetoothShare.URI + " TEXT, "
164 + BluetoothShare.FILENAME_HINT + " TEXT, " + BluetoothShare._DATA + " TEXT, "
165 + BluetoothShare.MIMETYPE + " TEXT, " + BluetoothShare.DIRECTION + " INTEGER, "
166 + BluetoothShare.DESTINATION + " TEXT, " + BluetoothShare.VISIBILITY
167 + " INTEGER, " + BluetoothShare.USER_CONFIRMATION + " INTEGER, "
168 + BluetoothShare.STATUS + " INTEGER, " + BluetoothShare.TOTAL_BYTE
    [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);
251 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1);
253 updateValues.put(BluetoothShare.URI, msg.obj.toString()); // update
254 updateValues.put(BluetoothShare.MIMETYPE, getContentResolver().getType(
264 Uri contentUri1 = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1);
438 Cursor cursor = getContentResolver().query(BluetoothShare.CONTENT_URI, null, null,
439 null, BluetoothShare._ID);
452 int idColumn = cursor.getColumnIndexOrThrow(BluetoothShare._ID);
561 String uriString = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.URI));
571 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 86 private int mAccepted = BluetoothShare.USER_CONFIRMATION_PENDING;
179 if (mAccepted == BluetoothShare.USER_CONFIRMATION_DENIED) {
268 values.put(BluetoothShare.FILENAME_HINT, name);
270 values.put(BluetoothShare.TOTAL_BYTES, length);
272 values.put(BluetoothShare.MIMETYPE, mimeType);
274 values.put(BluetoothShare.DESTINATION, destination);
276 values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_INBOUND);
277 values.put(BluetoothShare.TIMESTAMP, mTimestamp);
281 if (!mServerBlocking && (mAccepted == BluetoothShare.USER_CONFIRMATION_CONFIRMED |
    [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);
341 int status = BluetoothShare.STATUS_SUCCESS
    [all...]
BluetoothOppTransfer.java 153 markBatchFailed(BluetoothShare.STATUS_CONNECTION_ERROR);
178 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
220 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
246 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
268 Intent in = new Intent(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION);
279 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId);
282 .put(BluetoothShare.USER_CONFIRMATION, BluetoothShare.USER_CONFIRMATION_TIMEOUT);
298 if (BluetoothShare.isStatusError(mCurrentShare.mStatus)) {
301 if (mCurrentShare.mDirection == BluetoothShare.DIRECTION_INBOUN
    [all...]
BluetoothOppIncomingFileConfirmActivity.java 83 if (!BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION.equals(intent.getAction())) {
123 BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION));
143 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION,
144 BluetoothShare.USER_CONFIRMATION_CONFIRMED);
154 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION,
155 BluetoothShare.USER_CONFIRMATION_DENIED);
166 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 278 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id);
280 updateValues.put(BluetoothShare.STATUS, status);
290 if (BluetoothShare.isStatusCompleted(status)) {
291 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...]
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)) {
446 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);

Completed in 222 milliseconds