Home
last modified time | relevance | path

Searched refs:BluetoothOppManager (Results 1 – 20 of 20) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppManagerTest.java23 import static com.android.bluetooth.opp.BluetoothOppManager.ALLOWED_INSERT_SHARE_THREAD_NUMBER;
24 import static com.android.bluetooth.opp.BluetoothOppManager.OPP_PREFERENCE_FILE;
87 BluetoothOppManager.sInstance = null; in tearDown()
95 BluetoothOppManager bluetoothOppManager = BluetoothOppManager.getInstance(mContext); in restoreApplicationData_afterSavingSingleSendingFileInfo_containsSendingFileInfoSaved()
100 BluetoothOppManager.sInstance = null; in restoreApplicationData_afterSavingSingleSendingFileInfo_containsSendingFileInfoSaved()
101 BluetoothOppManager restartedBluetoothOppManager = in restoreApplicationData_afterSavingSingleSendingFileInfo_containsSendingFileInfoSaved()
102 BluetoothOppManager.getInstance(mContext); in restoreApplicationData_afterSavingSingleSendingFileInfo_containsSendingFileInfoSaved()
120 BluetoothOppManager bluetoothOppManager = BluetoothOppManager.getInstance(mContext); in restoreApplicationData_afterSavingMultipleSendingFileInfo_containsSendingFileInfoSaved()
131 BluetoothOppManager.sInstance = null; in restoreApplicationData_afterSavingMultipleSendingFileInfo_containsSendingFileInfoSaved()
132 BluetoothOppManager restartedBluetoothOppManager = in restoreApplicationData_afterSavingMultipleSendingFileInfo_containsSendingFileInfoSaved()
[all …]
DBluetoothOppHandoverReceiverTest.java89 BluetoothOppManager spyManager = spy(new BluetoothOppManager()); in onReceive_withActionHandoverSend_startTransfer()
90 BluetoothOppManager.setInstance(spyManager); in onReceive_withActionHandoverSend_startTransfer()
100 BluetoothOppManager.setInstance(null); in onReceive_withActionHandoverSend_startTransfer()
121 BluetoothOppManager spyManager = spy(new BluetoothOppManager()); in onReceive_withActionHandoverSendMultiple_startTransfer()
122 BluetoothOppManager.setInstance(spyManager); in onReceive_withActionHandoverSendMultiple_startTransfer()
132 BluetoothOppManager.setInstance(null); in onReceive_withActionHandoverSendMultiple_startTransfer()
DBluetoothOppBtEnablingActivityTest.java108 final BluetoothOppManager[] mOppManager = new BluetoothOppManager[1]; in onCreate_bluetoothEnableTimeout_finishAfterTimeout()
112 mOppManager[0] = BluetoothOppManager.getInstance(activity); in onCreate_bluetoothEnableTimeout_finishAfterTimeout()
133 BluetoothOppManager mOppManager = BluetoothOppManager.getInstance(activity); in onKeyDown_cancelProgress()
DBluetoothOppPreferenceTest.java19 import static com.android.bluetooth.opp.BluetoothOppManager.OPP_PREFERENCE_FILE;
69 BluetoothOppManager.sInstance = null; in tearDown()
DBluetoothOppObexServerSessionTest.java330 BluetoothOppManager bluetoothOppManager = in onConnect_returnsObexHttpOk()
331 spy(BluetoothOppManager.getInstance(mTargetContext)); in onConnect_returnsObexHttpOk()
332 BluetoothOppManager.setInstance(bluetoothOppManager); in onConnect_returnsObexHttpOk()
339 BluetoothOppManager.setInstance(null); in onConnect_returnsObexHttpOk()
DBluetoothOppLauncherActivityTest.java76 @Mock BluetoothOppManager mBluetoothOppManager;
96 BluetoothOppManager.setInstance(mBluetoothOppManager); in setUp()
107 BluetoothOppManager.setInstance(null); in tearDown()
DBluetoothOppReceiverTest.java111 BluetoothOppManager bluetoothOppManager = spy(BluetoothOppManager.getInstance(mContext)); in onReceive_withActionDeviceSelected_callsStartTransfer()
112 BluetoothOppManager.setInstance(bluetoothOppManager); in onReceive_withActionDeviceSelected_callsStartTransfer()
127 BluetoothOppManager.setInstance(null); in onReceive_withActionDeviceSelected_callsStartTransfer()
DBluetoothOppBtEnableActivityTest.java83 activity -> activity.mOppManager = mock(BluetoothOppManager.class)); in onCreate_clickOnEnable_launchEnablingActivity()
DBluetoothOppReceiveFileInfoTest.java69 BluetoothOppManager.sInstance = null; in tearDown()
DBluetoothOppUtilityTest.java297 BluetoothOppManager.getInstance(mContext).getDeviceName(remoteDevice); in fillRecord_filledAllProperties()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppManager.java69 public class BluetoothOppManager { class
72 @VisibleForTesting static BluetoothOppManager sInstance;
129 public static BluetoothOppManager getInstance(Context context) { in getInstance()
132 sInstance = new BluetoothOppManager(); in getInstance()
142 static void setInstance(BluetoothOppManager instance) { in setInstance()
267 synchronized (BluetoothOppManager.this) { in saveSendingFileInfo()
285 synchronized (BluetoothOppManager.this) { in saveSendingFileInfo()
349 synchronized (BluetoothOppManager.this) { in getBatchSize()
358 synchronized (BluetoothOppManager.this) { in startTransfer()
432 synchronized (BluetoothOppManager.this) { in InsertShareInfoThread()
[all …]
DBluetoothOppHandoverReceiver.java68 BluetoothOppManager.getInstance(finalContext) in onReceive()
74 BluetoothOppManager.getInstance(finalContext) in onReceive()
94 BluetoothOppManager.getInstance(context).addToAcceptlist(brEdrAddress); in onReceive()
DBluetoothOppBtEnableActivity.java50 @VisibleForTesting BluetoothOppManager mOppManager;
58 mOppManager = BluetoothOppManager.getInstance(this); in onCreate()
DBluetoothOppBtEnablingActivity.java155 BluetoothOppManager mOppManager = BluetoothOppManager.getInstance(this); in cancelSendingProgress()
DBluetoothOppLauncherActivity.java206 BluetoothOppManager.getInstance( in onCreate()
272 if (!BluetoothOppManager.getInstance(this).isEnabled()) { in launchDevicePicker()
491 BluetoothOppManager manager = BluetoothOppManager.getInstance(getApplicationContext()); in sendFileInfo()
DBluetoothOppReceiver.java71 BluetoothOppManager mOppManager = BluetoothOppManager.getInstance(context); in onReceive()
DBluetoothOppTransferAdapter.java96 String deviceName = BluetoothOppManager.getInstance(context).getDeviceName(remoteDevice); in bindView()
DBluetoothOppObexServerSession.java203 BluetoothOppManager.getInstance(mContext).isAcceptlisted(destination); in onPut()
661 boolean isHandover = BluetoothOppManager.getInstance(mContext).isAcceptlisted(destination); in onConnect()
DBluetoothOppService.java650 if (BluetoothOppManager.getInstance(context).mSendingFlag) {
652 BluetoothOppManager.getInstance(context).mSendingFlag =
DBluetoothOppUtility.java148 info.mDeviceName = BluetoothOppManager.getInstance(context).getDeviceName(remoteDevice); in fillRecord()