Searched refs:BluetoothShare (Results 1 - 21 of 21) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppShareInfo.java93 if (mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
94 if (mStatus == BluetoothShare.STATUS_PENDING && mUri != null) {
97 } else if (mDirection == BluetoothShare.DIRECTION_INBOUND) {
98 if (mStatus == BluetoothShare.STATUS_PENDING) {
99 //&& mConfirm != BluetoothShare.USER_CONFIRMATION_PENDING) {
107 if (!BluetoothShare.isStatusCompleted(mStatus)) {
110 if (mVisibility == BluetoothShare.VISIBILITY_VISIBLE) {
120 if (BluetoothShare.STATUS_RUNNING == mStatus) {
H A DBluetoothOppTransferHistory.java94 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
[all...]
H A DBluetoothOppProvider.java103 LIVE_FOLDER_PROJECTION_MAP.put(LiveFolders._ID, BluetoothShare._ID + " AS "
105 LIVE_FOLDER_PROJECTION_MAP.put(LiveFolders.NAME, BluetoothShare.FILENAME_HINT + " AS "
173 db.execSQL("CREATE TABLE " + DB_TABLE + "(" + BluetoothShare._ID
174 + " INTEGER PRIMARY KEY AUTOINCREMENT," + BluetoothShare.URI + " TEXT, "
175 + BluetoothShare.FILENAME_HINT + " TEXT, " + BluetoothShare._DATA + " TEXT, "
176 + BluetoothShare.MIMETYPE + " TEXT, " + BluetoothShare.DIRECTION + " INTEGER, "
177 + BluetoothShare.DESTINATION + " TEXT, " + BluetoothShare
[all...]
H A DBluetoothOppNotification.java60 static final String status = "(" + BluetoothShare.STATUS + " == '192'" + ")";
62 static final String visible = "(" + BluetoothShare.VISIBILITY + " IS NULL OR "
63 + BluetoothShare.VISIBILITY + " == '" + BluetoothShare.VISIBILITY_VISIBLE + "'" + ")";
65 static final String confirm = "(" + BluetoothShare.USER_CONFIRMATION + " == '"
66 + BluetoothShare.USER_CONFIRMATION_CONFIRMED + "' OR "
67 + BluetoothShare.USER_CONFIRMATION + " == '"
68 + BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED + "'" + ")";
72 static final String WHERE_COMPLETED = BluetoothShare.STATUS + " >= '200' AND " + visible;
75 + BluetoothShare
[all...]
H A DBluetoothOppService.java155 getContentResolver().registerContentObserver(BluetoothShare.CONTENT_URI, true, mObserver);
228 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1);
230 updateValues.put(BluetoothShare.URI, msg.obj.toString()); // update
231 updateValues.put(BluetoothShare.MIMETYPE, getContentResolver().getType(
241 Uri contentUri1 = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1);
400 Cursor cursor = getContentResolver().query(BluetoothShare.CONTENT_URI, null, null,
401 null, BluetoothShare._ID);
414 int idColumn = cursor.getColumnIndexOrThrow(BluetoothShare._ID);
521 cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)),
522 cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare
[all...]
H A DBluetoothOppUtility.java69 info.mID = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID));
70 info.mStatus = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS));
72 .getColumnIndexOrThrow(BluetoothShare.DIRECTION));
74 .getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES));
76 .getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES));
78 .getColumnIndexOrThrow(BluetoothShare.TIMESTAMP));
80 .getColumnIndexOrThrow(BluetoothShare.DESTINATION));
83 .getColumnIndexOrThrow(BluetoothShare._DATA));
86 .getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT));
92 info.mFileUri = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare
[all...]
H A DBluetoothOppReceiver.java127 } else if (action.equals(BluetoothShare.INCOMING_FILE_CONFIRMATION_REQUEST_ACTION)) {
150 if (transInfo.mDirection == BluetoothShare.DIRECTION_INBOUND
151 && BluetoothShare.isStatusSuccess(transInfo.mStatus)) {
174 in.putExtra("direction", BluetoothShare.DIRECTION_OUTBOUND);
181 in.putExtra("direction", BluetoothShare.DIRECTION_INBOUND);
188 in.putExtra("direction", BluetoothShare.DIRECTION_INBOUND);
197 int statusColumn = cursor.getColumnIndexOrThrow(BluetoothShare.STATUS);
199 int visibilityColumn = cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY);
202 .getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION);
204 if (((userConfirmation == BluetoothShare
[all...]
H A DBluetoothOppTransferAdapter.java71 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
[all...]
H A DBluetoothOppObexServerSession.java84 private int mAccepted = BluetoothShare.USER_CONFIRMATION_PENDING;
179 if (mAccepted == BluetoothShare.USER_CONFIRMATION_DENIED) {
257 values.put(BluetoothShare.FILENAME_HINT, name);
258 values.put(BluetoothShare.TOTAL_BYTES, length.intValue());
259 values.put(BluetoothShare.MIMETYPE, mimeType);
263 values.put(BluetoothShare.DESTINATION, a);
265 values.put(BluetoothShare.DESTINATION, "FF:FF:FF:00:00:00");
268 values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_INBOUND);
269 values.put(BluetoothShare
[all...]
H A DBluetoothOppBatch.java139 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);
208 if (share.mStatus == BluetoothShare.STATUS_PENDING) {
H A DBluetoothOppReceiveFileInfo.java93 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id);
97 BluetoothShare.FILENAME_HINT, BluetoothShare.TOTAL_BYTES, BluetoothShare.MIMETYPE
119 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR);
124 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_NO_SDCARD);
134 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_SDCARD_FULL);
140 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR);
146 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR);
157 return new BluetoothOppReceiveFileInfo(BluetoothShare
[all...]
H A DBluetoothOppObexClientSession.java261 int status = BluetoothShare.STATUS_SUCCESS;
268 status = BluetoothShare.STATUS_CANCELED;
273 status = BluetoothShare.STATUS_CONNECTION_ERROR;
275 if (status == BluetoothShare.STATUS_SUCCESS) {
288 if (status == BluetoothShare.STATUS_SUCCESS) {
323 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId);
325 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName);
326 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength);
327 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype);
338 int status = BluetoothShare
[all...]
H A DBluetoothOppTransfer.java158 markBatchFailed(BluetoothShare.STATUS_CONNECTION_ERROR);
175 markBatchFailed(BluetoothShare.STATUS_CONNECTION_ERROR);
200 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
242 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
268 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) {
290 Intent in = new Intent(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION);
301 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId);
304 .put(BluetoothShare.USER_CONFIRMATION, BluetoothShare.USER_CONFIRMATION_TIMEOUT);
320 if (BluetoothShare
[all...]
H A DBluetoothOppIncomingFileConfirmActivity.java85 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);
H A DBluetoothShare.java44 public final class BluetoothShare implements BaseColumns { class in inherits:BaseColumns
45 private BluetoothShare() { method in class:BluetoothShare
H A DBluetoothOppManager.java377 values.put(BluetoothShare.URI, fileUri.toString());
378 values.put(BluetoothShare.MIMETYPE, contentType);
379 values.put(BluetoothShare.DESTINATION, mRemoteDevice.getAddress());
380 values.put(BluetoothShare.TIMESTAMP, ts);
383 BluetoothShare.CONTENT_URI, values);
394 values.put(BluetoothShare.URI, mUri);
395 values.put(BluetoothShare.MIMETYPE, mTypeOfSingleFile);
396 values.put(BluetoothShare.DESTINATION, mRemoteDevice.getAddress());
398 final Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI,
H A DConstants.java195 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id);
197 updateValues.put(BluetoothShare.STATUS, status);
207 if (BluetoothShare.isStatusCompleted(status)) {
208 Intent intent = new Intent(BluetoothShare.TRANSFER_COMPLETED_ACTION);
H A DTestActivity.java129 * 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
[all...]
H A DBluetoothOppSendFileInfo.java134 BluetoothShare.STATUS_FILE_ERROR, dest);
141 BluetoothShare.STATUS_FILE_ERROR, dest);
153 BluetoothShare.STATUS_FILE_ERROR, dest);
H A DBluetoothOppLiveFolder.java73 Constants.ACTION_OPEN, BluetoothShare.CONTENT_URI));
H A DBluetoothOppTransferActivity.java146 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) {
304 if (mTransInfo.mStatus == BluetoothShare.STATUS_ERROR_SDCARD_FULL) {
344 if (BluetoothShare.isStatusError(mTransInfo.mStatus)) {
444 if (!mIsComplete && BluetoothShare.isStatusCompleted(mTransInfo.mStatus)

Completed in 169 milliseconds