Home
last modified time | relevance | path

Searched refs:mIntentArgument (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java77 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in HeadsetStateMachineTest
175 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_Connect()
179 mIntentArgument.getValue()); in testStateTransition_DisconnectedToConnecting_Connect()
193 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_StackConnected()
197 mIntentArgument.getValue()); in testStateTransition_DisconnectedToConnecting_StackConnected()
211 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_StackConnecting()
215 mIntentArgument.getValue()); in testStateTransition_DisconnectedToConnecting_StackConnecting()
246 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_ConnectingToDisconnected_StackDisconnected()
250 mIntentArgument.getValue()); in testStateTransition_ConnectingToDisconnected_StackDisconnected()
264 numBroadcastsSent)).sendBroadcastAsUser(mIntentArgument.capture(), in testStateTransition_ConnectingToDisconnected_Timeout()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java40 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in RemoteDevicesTest
88 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testUpdateBatteryLevel_normalSequence()
90 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument); in testUpdateBatteryLevel_normalSequence()
105 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testUpdateBatteryLevel_normalSequence()
108 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument); in testUpdateBatteryLevel_normalSequence()
172 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate()
174 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument); in testResetBatteryLevel_testResetAfterUpdate()
186 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate()
189 mIntentArgument); in testResetBatteryLevel_testResetAfterUpdate()
203 verify(mAdapterService, times(3)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java86 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in MapClientStateMachineTest
179 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testStateTransitionFromConnectingToDisconnected()
200 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testStateTransitionFromConnectingToConnected()
222 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testStateTransitionFromConnectedWithMasDisconnected()
230 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testStateTransitionFromConnectedWithMasDisconnected()
251 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testReceiveEmptyEvent()
275 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testSetMessageStatus()
301 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testDisconnect()
308 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testDisconnect()
327 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testDisconnectTimeout()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java84 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in AvrcpControllerStateMachineTest
205 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in setUpConnectedState()
366 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testDisconnectInternal()
368 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testDisconnectInternal()
371 mIntentArgument.getValue().getAction()); in testDisconnectInternal()
373 mIntentArgument.getValue().getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in testDisconnectInternal()
395 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testControlOnly()
397 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testControlOnly()
400 mIntentArgument.getValue().getAction()); in testControlOnly()
402 mIntentArgument.getValue().getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in testControlOnly()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/sdp/
DDipTest.java63 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in DipTest
136 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testDipCallbackSuccess()
138 verifyDipSdpRecordIntent(mIntentArgument, AbstractionLayer.BT_STATUS_SUCCESS, mTestDevice, in testDipCallbackSuccess()