/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppNotificationTest.java | 87 int dir = BluetoothShare.DIRECTION_INBOUND; in updateActiveNotification() 91 int status = BluetoothShare.STATUS_RUNNING; in updateActiveNotification() 92 int confirmation = BluetoothShare.USER_CONFIRMATION_CONFIRMED; in updateActiveNotification() 93 int confirmationHandoverInitiated = BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED; in updateActiveNotification() 98 BluetoothShare.TIMESTAMP, BluetoothShare.DIRECTION, BluetoothShare._ID, in updateActiveNotification() 99 BluetoothShare.TOTAL_BYTES, BluetoothShare.CURRENT_BYTES, BluetoothShare._DATA, in updateActiveNotification() 100 BluetoothShare.FILENAME_HINT, BluetoothShare.USER_CONFIRMATION, in updateActiveNotification() 101 BluetoothShare.DESTINATION, BluetoothShare.STATUS in updateActiveNotification() 111 eq(BluetoothShare.CONTENT_URI), any(), any(), any(), any()); in updateActiveNotification() 129 int status = BluetoothShare.STATUS_SUCCESS; in updateCompletedNotification_withOutBoundShare_showsNoti() [all …]
|
D | BluetoothOppTransferActivityTest.java | 96 new CursorMockData(BluetoothShare._ID, 0, idValue), in setUp() 97 new CursorMockData(BluetoothShare.MIMETYPE, 5, fileTypeValue), in setUp() 98 new CursorMockData(BluetoothShare.TIMESTAMP, 6, timestampValue), in setUp() 99 new CursorMockData(BluetoothShare.DESTINATION, 7, destinationValue), in setUp() 100 new CursorMockData(BluetoothShare._DATA, 8, null), in setUp() 101 new CursorMockData(BluetoothShare.FILENAME_HINT, 9, null), in setUp() 102 new CursorMockData(BluetoothShare.URI, 10, "content://textfile.txt"), in setUp() 103 new CursorMockData(BluetoothShare.USER_CONFIRMATION, 11, in setUp() 104 BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED) in setUp() 118 new CursorMockData(BluetoothShare.STATUS, 1, BluetoothShare.STATUS_PENDING)); in onCreate_showSendOnGoingDialog() [all …]
|
D | BluetoothOppReceiverTest.java | 135 Objects.equal(BluetoothShare.USER_CONFIRMATION_CONFIRMED, in onReceive_withActionAccept_updatesContents() 136 arg.get(BluetoothShare.USER_CONFIRMATION))), any(), any()); in onReceive_withActionAccept_updatesContents() 147 Objects.equal(BluetoothShare.USER_CONFIRMATION_DENIED, in onReceive_withActionDecline_updatesContents() 148 arg.get(BluetoothShare.USER_CONFIRMATION))), any(), any()); in onReceive_withActionDecline_updatesContents() 161 intended(hasExtra("direction", BluetoothShare.DIRECTION_OUTBOUND)); in onReceive_withActionOutboundTransfer_startsTransferHistoryActivity() 173 intended(hasExtra("direction", BluetoothShare.DIRECTION_INBOUND)); in onReceive_withActionInboundTransfer_startsTransferHistoryActivity() 183 intended(hasExtra("direction", BluetoothShare.DIRECTION_INBOUND)); in onReceive_withActionOpenReceivedFile_startsTransferHistoryActivity() 192 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.VISIBILITY, 0, in onReceive_withActionHide_contentUpdate() 193 BluetoothShare.VISIBILITY_VISIBLE), in onReceive_withActionHide_contentUpdate() 194 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.USER_CONFIRMATION, 1, in onReceive_withActionHide_contentUpdate() [all …]
|
D | BluetoothOppTransferHistoryTest.java | 91 eq(BluetoothShare.CONTENT_URI), in setUp() 100 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.STATUS, 1, in setUp() 101 BluetoothShare.STATUS_SUCCESS), in setUp() 102 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.DIRECTION, 2, in setUp() 103 BluetoothShare.DIRECTION_INBOUND), in setUp() 104 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.TOTAL_BYTES, 3, 100), in setUp() 105 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.CURRENT_BYTES, 4, 0), in setUp() 106 new BluetoothOppTestUtils.CursorMockData(BluetoothShare._ID, 0, idValue), in setUp() 107 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.MIMETYPE, 5, fileTypeValue), in setUp() 108 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.TIMESTAMP, 6, in setUp() [all …]
|
D | BluetoothOppReceiveFileInfoTest.java | 61 any(), eq(BluetoothShare.CONTENT_URI), any()); in setUp() 73 new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_CANCELED); in createInstance_withStatus_createCorrectly() 75 assertThat(info.mStatus).isEqualTo(BluetoothShare.STATUS_CANCELED); in createInstance_withStatus_createCorrectly() 81 int status = BluetoothShare.STATUS_SUCCESS; in createInstance_withData_createCorrectly() 94 int status = BluetoothShare.STATUS_SUCCESS; in createInstance_withFileName_createCorrectly() 115 new String[]{BluetoothShare.FILENAME_HINT, BluetoothShare.TOTAL_BYTES, in generateFileInfo_wrongHint_fileError() 116 BluetoothShare.MIMETYPE}); in generateFileInfo_wrongHint_fileError() 120 any(), eq(Uri.parse(BluetoothShare.CONTENT_URI + "/" + id)), any(), any(), any(), in generateFileInfo_wrongHint_fileError() 126 assertThat(info.mStatus).isEqualTo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo_wrongHint_fileError() 138 assertThat(info.mStatus).isEqualTo(BluetoothShare.STATUS_ERROR_NO_SDCARD); in generateFileInfo_noMediaMounted_noSdcardError() [all …]
|
D | IncomingFileConfirmActivityTest.java | 104 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.STATUS, 1, in setUp() 105 BluetoothShare.STATUS_PENDING), in setUp() 106 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.DIRECTION, 2, in setUp() 107 BluetoothShare.DIRECTION_OUTBOUND), in setUp() 108 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.TOTAL_BYTES, 3, 100), in setUp() 109 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.CURRENT_BYTES, 4, 0), in setUp() 110 new BluetoothOppTestUtils.CursorMockData(BluetoothShare._ID, 0, idValue), in setUp() 111 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.MIMETYPE, 5, fileTypeValue), in setUp() 112 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.TIMESTAMP, 6, in setUp() 114 new BluetoothOppTestUtils.CursorMockData(BluetoothShare.DESTINATION, 7, in setUp() [all …]
|
D | BluetoothOppUtilityTest.java | 119 String where = BluetoothShare.TIMESTAMP + " == " + timestampValue; in queryTransfersInBatch_returnsCorrectUrlArrayList() 123 eq(BluetoothShare.CONTENT_URI), eq(new String[]{ in queryTransfersInBatch_returnsCorrectUrlArrayList() 124 BluetoothShare._DATA in queryTransfersInBatch_returnsCorrectUrlArrayList() 125 }), eq(where), eq(null), eq(BluetoothShare._ID)); in queryTransfersInBatch_returnsCorrectUrlArrayList() 240 int directionValue = BluetoothShare.DIRECTION_OUTBOUND; in fillRecord_filledAllProperties() 243 int statusValue = BluetoothShare.STATUS_PENDING; in fillRecord_filledAllProperties() 251 new CursorMockData(BluetoothShare._ID, 0, idValue), in fillRecord_filledAllProperties() 252 new CursorMockData(BluetoothShare.STATUS, 1, statusValue), in fillRecord_filledAllProperties() 253 new CursorMockData(BluetoothShare.DIRECTION, 2, directionValue), in fillRecord_filledAllProperties() 254 new CursorMockData(BluetoothShare.TOTAL_BYTES, 3, totalBytesValue), in fillRecord_filledAllProperties() [all …]
|
D | BluetoothOppShareInfoTest.java | 39 private int direction = BluetoothShare.DIRECTION_INBOUND; 41 private int visibility = BluetoothShare.VISIBILITY_VISIBLE; 42 private int confirm = BluetoothShare.USER_CONFIRMATION_CONFIRMED; 43 private int status = BluetoothShare.STATUS_PENDING; 76 mBluetoothOppShareInfo.mDirection = BluetoothShare.DIRECTION_OUTBOUND; in testReadyToStart() 79 mBluetoothOppShareInfo.mStatus = BluetoothShare.STATUS_RUNNING; in testReadyToStart() 87 mBluetoothOppShareInfo.mStatus = BluetoothShare.STATUS_CANCELED; in testHasCompletionNotification() 90 mBluetoothOppShareInfo.mVisibility = BluetoothShare.VISIBILITY_HIDDEN; in testHasCompletionNotification() 97 mBluetoothOppShareInfo.mStatus = BluetoothShare.STATUS_RUNNING; in testIsObsolete()
|
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); 281 Uri.parse(BluetoothShare.CONTENT_URI + "/" + mDeleteView.getText().toString()); 290 Uri.parse(BluetoothShare.CONTENT_URI + "/" + mUpdateView.getText().toString()); 297 updateValues.put(BluetoothShare.USER_CONFIRMATION, 298 BluetoothShare.USER_CONFIRMATION_CONFIRMED); 307 Uri.parse(BluetoothShare.CONTENT_URI + "/" + mAckView.getText().toString()); [all …]
|
D | BluetoothOppTransferTest.java | 70 private final int mDirection = BluetoothShare.DIRECTION_INBOUND; 72 private final int mVisibility = BluetoothShare.VISIBILITY_VISIBLE; 73 private final int mConfirm = BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED; 74 private final int mStatus = BluetoothShare.STATUS_PENDING; 119 mFilename, mMimetype, BluetoothShare.DIRECTION_INBOUND, mDestination, mVisibility, in onShareAdded_checkFirstPendingShare() 120 BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED, mStatus, mTotalBytes, in onShareAdded_checkFirstPendingShare() 199 BluetoothShare.DIRECTION_OUTBOUND, mDestination, mVisibility, mConfirm, mStatus, in eventHandler_handleMessage_MSG_SHARE_COMPLETE_shareAdded() 238 BluetoothShare.DIRECTION_OUTBOUND, mDestination, mVisibility, mConfirm, mStatus, in eventHandler_handleMessage_MSG_SHARE_INTERRUPTED_batchFailed() 265 arg -> arg.getAction().equals(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION))); in eventHandler_handleMessage_MSG_CONNECT_TIMEOUT() 315 transfer.mCurrentShare.mConfirm = BluetoothShare.USER_CONFIRMATION_PENDING; in oppConnectionReceiver_onReceiveWithActionAclDisconnected_sendsConnectTimeout() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 146 db.execSQL("CREATE TABLE " + DB_TABLE + "(" + BluetoothShare._ID in createTable() 147 + " INTEGER PRIMARY KEY AUTOINCREMENT," + BluetoothShare.URI + " TEXT, " in createTable() 148 + BluetoothShare.FILENAME_HINT + " TEXT, " + BluetoothShare._DATA + " TEXT, " in createTable() 149 + BluetoothShare.MIMETYPE + " TEXT, " + BluetoothShare.DIRECTION + " INTEGER, " in createTable() 150 + BluetoothShare.DESTINATION + " TEXT, " + BluetoothShare.VISIBILITY in createTable() 151 + " INTEGER, " + BluetoothShare.USER_CONFIRMATION + " INTEGER, " in createTable() 152 + BluetoothShare.STATUS + " INTEGER, " + BluetoothShare.TOTAL_BYTES in createTable() 153 + " INTEGER, " + BluetoothShare.CURRENT_BYTES + " INTEGER, " in createTable() 154 + BluetoothShare.TIMESTAMP + " INTEGER," + Constants.MEDIA_SCANNED in createTable() 226 BluetoothShare.URI, in oppDatabaseMigration() [all …]
|
D | BluetoothOppService.java | 173 BluetoothShare.VISIBILITY + "=" + BluetoothShare.VISIBILITY_HIDDEN; 176 BluetoothShare.DIRECTION + "=" + BluetoothShare.DIRECTION_INBOUND + " AND " 177 + BluetoothShare.STATUS + "=" + BluetoothShare.STATUS_SUCCESS + " AND " 181 BluetoothShare.DIRECTION + "=" + BluetoothShare.DIRECTION_INBOUND + " AND " 182 + BluetoothShare.USER_CONFIRMATION + "=" 183 + BluetoothShare.USER_CONFIRMATION_PENDING; 186 "(" + BluetoothShare.STATUS + " > " + BluetoothShare.STATUS_SUCCESS + " AND " 263 getContentResolver().registerContentObserver(BluetoothShare.CONTENT_URI, true, mObserver); in start() 316 String dir = info.mDirection == BluetoothShare.DIRECTION_OUTBOUND ? " -> " : " <- "; in dump() 416 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + msg.arg1); [all …]
|
D | BluetoothOppNotification.java | 68 static final String STATUS = "(" + BluetoothShare.STATUS + " == '192'" + ")"; 71 "(" + BluetoothShare.VISIBILITY + " IS NULL OR " + BluetoothShare.VISIBILITY + " == '" 72 + BluetoothShare.VISIBILITY_VISIBLE + "'" + ")"; 74 static final String CONFIRM = "(" + BluetoothShare.USER_CONFIRMATION + " == '" 75 + BluetoothShare.USER_CONFIRMATION_CONFIRMED + "' OR " 76 + BluetoothShare.USER_CONFIRMATION + " == '" 77 + BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED + "' OR " 78 + BluetoothShare.USER_CONFIRMATION + " == '" 79 + BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED + "'" + ")"; 81 static final String NOT_THROUGH_HANDOVER = "(" + BluetoothShare.USER_CONFIRMATION + " != '" [all …]
|
D | BluetoothOppTransferHistory.java | 97 if (dir == BluetoothShare.DIRECTION_OUTBOUND) { in onCreate() 99 direction = "(" + BluetoothShare.DIRECTION + " == " + BluetoothShare.DIRECTION_OUTBOUND in onCreate() 107 direction = "(" + BluetoothShare.DIRECTION + " == " + BluetoothShare.DIRECTION_INBOUND in onCreate() 111 String selection = BluetoothShare.STATUS + " >= '200' AND " + direction; in onCreate() 114 selection = selection + " AND (" + BluetoothShare.VISIBILITY + " IS NULL OR " in onCreate() 115 + BluetoothShare.VISIBILITY + " == '" + BluetoothShare.VISIBILITY_VISIBLE in onCreate() 119 final String sortOrder = BluetoothShare.TIMESTAMP + " DESC"; in onCreate() 121 getContentResolver(), BluetoothShare.CONTENT_URI, new String[]{ in onCreate() 123 BluetoothShare.FILENAME_HINT, in onCreate() 124 BluetoothShare.STATUS, in onCreate() [all …]
|
D | BluetoothOppObexServerSession.java | 89 private int mAccepted = BluetoothShare.USER_CONFIRMATION_PENDING; 191 if (mAccepted == BluetoothShare.USER_CONFIRMATION_DENIED) { in onPut() 272 values.put(BluetoothShare.FILENAME_HINT, name); in onPut() 273 values.put(BluetoothShare.TOTAL_BYTES, length); in onPut() 274 values.put(BluetoothShare.MIMETYPE, mimeType); in onPut() 275 values.put(BluetoothShare.DESTINATION, destination); in onPut() 276 values.put(BluetoothShare.DIRECTION, BluetoothShare.DIRECTION_INBOUND); in onPut() 277 values.put(BluetoothShare.TIMESTAMP, mTimestamp); in onPut() 280 if (!mServerBlocking && (mAccepted == BluetoothShare.USER_CONFIRMATION_CONFIRMED in onPut() 281 || mAccepted == BluetoothShare.USER_CONFIRMATION_AUTO_CONFIRMED)) { in onPut() [all …]
|
D | BluetoothOppUtility.java | 86 if (uri.toString().startsWith(BluetoothShare.CONTENT_URI.toString()) in isBluetoothShareUri() 87 && !uri.getAuthority().equals(BluetoothShare.CONTENT_URI.getAuthority())) { in isBluetoothShareUri() 90 return Objects.equals(uri.getAuthority(), BluetoothShare.CONTENT_URI.getAuthority()); in isBluetoothShareUri() 114 info.mID = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID)); in fillRecord() 115 info.mStatus = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); in fillRecord() 116 info.mDirection = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)); in fillRecord() 117 info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in fillRecord() 119 cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES)); in fillRecord() 120 info.mTimeStamp = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)); in fillRecord() 121 info.mDestAddr = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION)); in fillRecord() [all …]
|
D | BluetoothOppReceiver.java | 111 values.put(BluetoothShare.USER_CONFIRMATION, BluetoothShare.USER_CONFIRMATION_DENIED); in onReceive() 123 values.put(BluetoothShare.USER_CONFIRMATION, in onReceive() 124 BluetoothShare.USER_CONFIRMATION_CONFIRMED); in onReceive() 144 if (transInfo.mDirection == BluetoothShare.DIRECTION_INBOUND in onReceive() 145 && BluetoothShare.isStatusSuccess(transInfo.mStatus)) { in onReceive() 164 in.putExtra("direction", BluetoothShare.DIRECTION_OUTBOUND); in onReceive() 173 in.putExtra("direction", BluetoothShare.DIRECTION_INBOUND); in onReceive() 182 in.putExtra("direction", BluetoothShare.DIRECTION_INBOUND); in onReceive() 193 int visibilityColumn = cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY); in onReceive() 196 cursor.getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION); in onReceive() [all …]
|
D | BluetoothOppObexClientSession.java | 306 int status = BluetoothShare.STATUS_SUCCESS; in doSend() 313 status = BluetoothShare.STATUS_CANCELED; in doSend() 318 status = BluetoothShare.STATUS_CONNECTION_ERROR; in doSend() 320 if (status == BluetoothShare.STATUS_SUCCESS) { in doSend() 334 msg.what = (status == BluetoothShare.STATUS_SUCCESS) in doSend() 366 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in processShareInfo() 368 updateValues.put(BluetoothShare.FILENAME_HINT, fileInfo.mFileName); in processShareInfo() 369 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); in processShareInfo() 370 updateValues.put(BluetoothShare.MIMETYPE, fileInfo.mMimetype); in processShareInfo() 382 int status = BluetoothShare.STATUS_SUCCESS; in sendFile() [all …]
|
D | BluetoothOppTransfer.java | 138 == BluetoothShare.USER_CONFIRMATION_PENDING)) { in onReceive() 245 markBatchFailed(BluetoothShare.STATUS_CONNECTION_ERROR); in handleMessage() 276 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { in handleMessage() 337 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { in handleMessage() 354 markBatchFailed(BluetoothShare.STATUS_UNKNOWN_ERROR); in handleMessage() 367 if (mBatch.mDirection == BluetoothShare.DIRECTION_OUTBOUND) { in handleMessage() 391 Intent in = new Intent(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION); in handleMessage() 402 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in markShareTimeout() 404 updateValues.put(BluetoothShare.USER_CONFIRMATION, in markShareTimeout() 405 BluetoothShare.USER_CONFIRMATION_TIMEOUT); in markShareTimeout() [all …]
|
D | BluetoothOppTransferAdapter.java | 71 int status = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)); in bindView() 72 int dir = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION)); in bindView() 73 if (BluetoothShare.isStatusError(status)) { in bindView() 76 if (dir == BluetoothShare.DIRECTION_OUTBOUND) { in bindView() 85 String title = cursor.getString(cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT)); in bindView() 94 int destinationColumnId = cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION); in bindView() 101 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in bindView() 102 if (BluetoothShare.isStatusCompleted(status)) { in bindView() 105 if (BluetoothShare.isStatusError(status)) { in bindView() 109 if (dir == BluetoothShare.DIRECTION_INBOUND) { in bindView() [all …]
|
D | BluetoothOppShareInfo.java | 95 if (mDirection == BluetoothShare.DIRECTION_OUTBOUND) { in isReadyToStart() 96 if (mStatus == BluetoothShare.STATUS_PENDING && mUri != null) { in isReadyToStart() 99 } else if (mDirection == BluetoothShare.DIRECTION_INBOUND) { in isReadyToStart() 100 if (mStatus == BluetoothShare.STATUS_PENDING) { in isReadyToStart() 109 if (!BluetoothShare.isStatusCompleted(mStatus)) { in hasCompletionNotification() 112 if (mVisibility == BluetoothShare.VISIBILITY_VISIBLE) { in hasCompletionNotification() 122 if (BluetoothShare.STATUS_RUNNING == mStatus) { in isObsolete()
|
D | BluetoothOppManager.java | 477 values.put(BluetoothShare.URI, fileUri.toString()); in insertMultipleShare() 488 values.put(BluetoothShare.MIMETYPE, contentType); in insertMultipleShare() 489 values.put(BluetoothShare.DESTINATION, mRemoteDevice.getIdentityAddress()); in insertMultipleShare() 490 values.put(BluetoothShare.TIMESTAMP, ts); in insertMultipleShare() 492 values.put(BluetoothShare.USER_CONFIRMATION, in insertMultipleShare() 493 BluetoothShare.USER_CONFIRMATION_HANDOVER_CONFIRMED); in insertMultipleShare() 496 mContext.getContentResolver(), BluetoothShare.CONTENT_URI, values); in insertMultipleShare() 509 values.put(BluetoothShare.URI, mUri); in insertSingleShare() 510 values.put(BluetoothShare.MIMETYPE, mTypeOfSingleFile); in insertSingleShare() 511 values.put(BluetoothShare.DESTINATION, mRemoteDevice.getIdentityAddress()); in insertSingleShare() [all …]
|
D | BluetoothOppReceiveFileInfo.java | 97 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in generateFileInfo() 102 BluetoothShare.FILENAME_HINT, BluetoothShare.TOTAL_BYTES, in generateFileInfo() 103 BluetoothShare.MIMETYPE in generateFileInfo() 121 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_ERROR_NO_SDCARD); in generateFileInfo() 127 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo() 134 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo() 191 return new BluetoothOppReceiveFileInfo(BluetoothShare.STATUS_FILE_ERROR); in generateFileInfo()
|
D | BluetoothOppIncomingFileConfirmActivity.java | 125 if (!BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION.equals(intent.getAction())) { in onCreate() 132 new IntentFilter(BluetoothShare.USER_CONFIRMATION_TIMEOUT_ACTION)); in onCreate() 157 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION, in onIncomingFileConfirmOk() 158 BluetoothShare.USER_CONFIRMATION_CONFIRMED); in onIncomingFileConfirmOk() 169 mUpdateValues.put(BluetoothShare.USER_CONFIRMATION, in onIncomingFileConfirmCancel() 170 BluetoothShare.USER_CONFIRMATION_DENIED); in onIncomingFileConfirmCancel()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | DataMigrationTest.java | 49 import com.android.bluetooth.opp.BluetoothShare; 424 new Pair(BluetoothShare.URI, "content"), 425 new Pair(BluetoothShare.FILENAME_HINT, "content"), 426 new Pair(BluetoothShare.MIMETYPE, "content"), 427 new Pair(BluetoothShare.DESTINATION, "content"), 430 new Pair(BluetoothShare.VISIBILITY, 42), 431 new Pair(BluetoothShare.USER_CONFIRMATION, 42), 432 new Pair(BluetoothShare.DIRECTION, 42), 433 new Pair(BluetoothShare.STATUS, 42), 437 new Pair(BluetoothShare.TOTAL_BYTES, 42L), [all …]
|