Searched refs:mIntentArgument (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 76 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in HeadsetStateMachineTest 174 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_Connect() 177 mIntentArgument.getValue()); in testStateTransition_DisconnectedToConnecting_Connect() 191 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnected() 194 mIntentArgument.getValue()); in testStateTransition_DisconnectedToConnecting_StackConnected() 208 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnecting() 211 mIntentArgument.getValue()); in testStateTransition_DisconnectedToConnecting_StackConnecting() 242 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_StackDisconnected() 245 mIntentArgument.getValue()); in testStateTransition_ConnectingToDisconnected_StackDisconnected() 259 numBroadcastsSent)).sendBroadcastAsUser(mIntentArgument.capture(), in testStateTransition_ConnectingToDisconnected_Timeout() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 38 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in RemoteDevicesTest 86 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture()); in testUpdateBatteryLevel_normalSequence() 87 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument); in testUpdateBatteryLevel_normalSequence() 102 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testUpdateBatteryLevel_normalSequence() 105 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument); in testUpdateBatteryLevel_normalSequence() 169 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture()); in testResetBatteryLevel_testResetAfterUpdate() 170 verifyBatteryLevelChangedIntent(mDevice1, batteryLevel, mIntentArgument); in testResetBatteryLevel_testResetAfterUpdate() 182 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate() 185 mIntentArgument); in testResetBatteryLevel_testResetAfterUpdate() 198 verify(mAdapterService, times(3)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MapClientStateMachineTest.java | 63 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in MapClientStateMachineTest 129 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectingToDisconnected() 149 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectingToConnected() 170 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectedWithMasDisconnected() 177 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectedWithMasDisconnected() 197 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testReceiveEmptyEvent() 210 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in setupSdpRecordReceipt()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachineTest.java | 71 private ArgumentCaptor<Intent> mIntentArgument = ArgumentCaptor.forClass(Intent.class); field in AvrcpControllerStateMachineTest 161 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testDisconnect() 162 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testDisconnect() 165 mIntentArgument.getValue().getAction()); in testDisconnect() 167 mIntentArgument.getValue().getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in testDisconnect() 195 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testControlOnly() 196 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testControlOnly() 199 mIntentArgument.getValue().getAction()); in testControlOnly() 201 mIntentArgument.getValue().getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in testControlOnly() 227 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testBrowsingOnly() [all …]
|