Home
last modified time | relevance | path

Searched refs:mCallProxy (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfoTest.java63 @Mock BluetoothMethodProxy mCallProxy; field in BluetoothOppSendFileInfoTest
68 BluetoothMethodProxy.setInstanceForTesting(mCallProxy); in setUp()
142 doReturn(fd).when(mCallProxy).contentResolverOpenAssetFileDescriptor(any(), eq(uri), any()); in generateFileInfo_withContentUriForOtherUser_returnsSendFileInfoError()
149 .when(mCallProxy) in generateFileInfo_withContentUriForOtherUser_returnsSendFileInfoError()
172 doReturn(fd).when(mCallProxy).contentResolverOpenAssetFileDescriptor(any(), eq(uri), any()); in generateFileInfo_withContentUriForImplicitUser_returnsInfoWithCorrectLength()
179 .when(mCallProxy) in generateFileInfo_withContentUriForImplicitUser_returnsInfoWithCorrectLength()
206 doReturn(fd).when(mCallProxy).contentResolverOpenAssetFileDescriptor(any(), eq(uri), any()); in generateFileInfo_withContentUriForSameUser_returnsInfoWithCorrectLength()
213 .when(mCallProxy) in generateFileInfo_withContentUriForSameUser_returnsInfoWithCorrectLength()
239 .when(mCallProxy) in generateFileInfo_withoutPermissionForAccessingUri_returnsSendFileInfoError()
264 .when(mCallProxy) in generateFileInfo_withUncorrectableMismatch_returnsSendFileInfoError()
[all …]
DBluetoothOppReceiveFileInfoTest.java48 BluetoothMethodProxy mCallProxy; field in BluetoothOppReceiveFileInfoTest
59 mCallProxy = spy(BluetoothMethodProxy.getInstance()); in setUp()
60 BluetoothMethodProxy.setInstanceForTesting(mCallProxy); in setUp()
63 .when(mCallProxy) in setUp()
128 .when(mCallProxy) in generateFileInfo_wrongHint_fileError()
176 .when(mCallProxy) in generateFileInfo_noInsertUri_returnFileError()
186 .when(mCallProxy) in generateFileInfo_noInsertUri_returnFileError()
216 .when(mCallProxy) in generateFileInfo_withInsertUri_workCorrectly()
226 .when(mCallProxy) in generateFileInfo_withInsertUri_workCorrectly()
260 .when(mCallProxy) in generateFileInfo_longFileName_trimFileName()
[all …]
DBluetoothOppHandoverReceiverTest.java60 @Spy BluetoothMethodProxy mCallProxy = BluetoothMethodProxy.getInstance(); field in BluetoothOppHandoverReceiverTest
65 BluetoothMethodProxy.setInstanceForTesting(mCallProxy); in setUp()
66 doReturn(0).when(mCallProxy).contentResolverDelete(any(), any(Uri.class), any(), any()); in setUp()
68 .when(mCallProxy) in setUp()
94 verify(mCallProxy, timeout(3_000).times(1)) in onReceive_withActionHandoverSend_startTransfer()
122 verify(mCallProxy, timeout(3_000).times(3)) in onReceive_withActionHandoverSendMultiple_startTransfer()
137 verify(mCallProxy) in onReceive_withActionStopHandover_triggerContentResolverDelete()
DBluetoothOppManagerTest.java64 BluetoothMethodProxy mCallProxy; field in BluetoothOppManagerTest
73 mCallProxy = spy(BluetoothMethodProxy.getInstance()); in setUp()
74 BluetoothMethodProxy.setInstanceForTesting(mCallProxy); in setUp()
77 .when(mCallProxy) in setUp()
187 verify(mCallProxy, timeout(5_000).times(3)) in startTransfer_withMultipleUris_contentResolverInsertMultipleTimes()
198 verify(mCallProxy, timeout(5_000).times(1)) in startTransfer_withOneUri_contentResolverInsertOnce()
226 verify(mCallProxy, timeout(5_000).atLeast(ALLOWED_INSERT_SHARE_THREAD_NUMBER)) in startTransferMoreThanAllowedInsertShareThreadNumberTimes_blockExceedingTransfer()
236 doReturn(true).when(mCallProxy).bluetoothAdapterIsEnabled(any()); in isEnabled()
238 doReturn(false).when(mCallProxy).bluetoothAdapterIsEnabled(any()); in isEnabled()
DBluetoothOppUtilityTest.java73 @Spy BluetoothMethodProxy mCallProxy = BluetoothMethodProxy.getInstance(); field in BluetoothOppUtilityTest
84 BluetoothMethodProxy.setInstanceForTesting(mCallProxy); in setUp()
105 .when(mCallProxy) in queryRecord_withInvalidFileUrl_returnsNull()
122 .when(mCallProxy) in queryRecord_mockCursor_returnsInstance()
143 .when(mCallProxy) in queryTransfersInBatch_returnsCorrectUrlArrayList()
169 doReturn(0).when(mCallProxy).contentResolverDelete(any(), any(), any(), any()); in openReceivedFile_fileNotExist()
171 .when(mCallProxy) in openReceivedFile_fileNotExist()
179 .when(mCallProxy) in openReceivedFile_fileNotExist()
208 .when(mCallProxy) in openReceivedFile_fileExist_HandlingApplicationExist()
215 doReturn(0).when(mCallProxy).contentResolverDelete(any(), any(), any(), any()); in openReceivedFile_fileExist_HandlingApplicationExist()
[all …]
DBluetoothOppTransferTest.java73 @Mock BluetoothMethodProxy mCallProxy; field in BluetoothOppTransferTest
85 BluetoothMethodProxy.setInstanceForTesting(mCallProxy); in setUp()
87 .when(mCallProxy) in setUp()
94 .when(mCallProxy) in setUp()
180 doReturn(true).when(mCallProxy).bluetoothAdapterIsEnabled(any()); in start_receiverRegistered()
189 doReturn(true).when(mCallProxy).bluetoothAdapterIsEnabled(any()); in stop_unregisterRegistered()
366 verify(mCallProxy).handlerSendEmptyMessage(any(), eq(TRANSPORT_ERROR)); in socketConnectThreadRun_bluetoothDisabled_connectionFailed()
387 verify(mCallProxy) in oppConnectionReceiver_onReceiveWithActionAclDisconnected_sendsConnectTimeout()
414 verify(mCallProxy).handlerSendEmptyMessage(any(), eq(TRANSPORT_ERROR)); in oppConnectionReceiver_onReceiveWithActionSdpRecord_withoutSdpRecord()
DBluetoothOppPreferenceTest.java48 BluetoothMethodProxy mCallProxy; field in BluetoothOppPreferenceTest
57 mCallProxy = spy(BluetoothMethodProxy.getInstance()); in setUp()
58 BluetoothMethodProxy.setInstanceForTesting(mCallProxy); in setUp()
61 .when(mCallProxy) in setUp()
/packages/modules/Bluetooth/android/app/tests/instrumentation/com/android/bluetooth/opp/
DBluetoothOppUtilityTest.java44 @Spy BluetoothMethodProxy mCallProxy = BluetoothMethodProxy.getInstance(); field in BluetoothOppUtilityTest
54 BluetoothMethodProxy.setInstanceForTesting(mCallProxy); in setUp()