Home
last modified time | relevance | path

Searched refs:device2 (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Bluetooth/system/gd/storage/
Dclassic_device_test.cc62 ClassicDevice device2(&config, &memory_only_config, address.ToString()); in TEST() local
63 ASSERT_EQ(device1, device2); in TEST()
96 ClassicDevice device2(larger_config_ptr, larger_memory_only_config_ptr, in TEST() local
98 ASSERT_TRUE(device1 < device2); in TEST()
104 ClassicDevice device2(smaller_config_ptr, larger_memory_only_config_ptr, in TEST() local
106 ASSERT_FALSE(device1 < device2); in TEST()
112 ClassicDevice device2(larger_config_ptr, smaller_memory_only_config_ptr, in TEST() local
114 ASSERT_TRUE(device1 < device2); in TEST()
120 ClassicDevice device2(larger_config_ptr, larger_memory_only_config_ptr, in TEST() local
122 ASSERT_TRUE(device1 < device2); in TEST()
[all …]
Dle_device_test.cc61 LeDevice device2(&config, &memory_only_config, address.ToString()); in TEST() local
62 ASSERT_EQ(device1, device2); in TEST()
95 LeDevice device2(larger_config_ptr, larger_memory_only_config_ptr, larger_address.ToString()); in TEST() local
96 ASSERT_TRUE(device1 < device2); in TEST()
101 LeDevice device2(smaller_config_ptr, larger_memory_only_config_ptr, larger_address.ToString()); in TEST() local
102 ASSERT_FALSE(device1 < device2); in TEST()
107 LeDevice device2(larger_config_ptr, smaller_memory_only_config_ptr, larger_address.ToString()); in TEST() local
108 ASSERT_TRUE(device1 < device2); in TEST()
113 LeDevice device2(larger_config_ptr, larger_memory_only_config_ptr, smaller_address.ToString()); in TEST() local
114 ASSERT_TRUE(device1 < device2); in TEST()
[all …]
Ddevice_test.cc51 Device device2(&config, &memory_only_config, address2, in TEST() local
53 ASSERT_TRUE(device2.Exists()); in TEST()
54 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST()
60 ASSERT_EQ(device2, device3); in TEST()
79 Device device2(&config, &memory_only_config, address2, in TEST() local
81 ASSERT_TRUE(device2.Exists()); in TEST()
82 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST()
88 ASSERT_EQ(device2, device3); in TEST()
112 Device device2(&config, &memory_only_config, le_identity_address, in TEST() local
114 ASSERT_TRUE(device2.Exists()); in TEST()
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/
Dmetrics_collector_test.cc101 const RawAddress device2 = RawAddress({0x11, 0x22, 0x33, 0x44, 0x55, 0x67}); variable
220 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
223 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
232 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
247 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
250 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
265 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
286 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
289 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
298 collector->OnConnectionStateChanged(group_id2, device2, in TEST_F()
Ddevices_test.cc2417 auto device2 = AddTestDevice(2, 1); in TEST_P() local
2425 device2->SetConnectionState(DeviceConnectState::DISCONNECTING); in TEST_P()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetPhoneStateTest.java196 BluetoothDevice device2 = getTestDevice(2); in testListenForPhoneState_MultiDevice_AllUpAllDown() local
213 device2, in testListenForPhoneState_MultiDevice_AllUpAllDown()
219 mHeadsetPhoneState.listenForPhoneState(device2, PhoneStateListener.LISTEN_NONE); in testListenForPhoneState_MultiDevice_AllUpAllDown()
233 BluetoothDevice device2 = getTestDevice(2); in testListenForPhoneState_MultiDevice_PartialUpPartialDown() local
241 mHeadsetPhoneState.listenForPhoneState(device2, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testListenForPhoneState_MultiDevice_PartialUpPartialDown()
257 mHeadsetPhoneState.listenForPhoneState(device2, PhoneStateListener.LISTEN_NONE); in testListenForPhoneState_MultiDevice_PartialUpPartialDown()
DHeadsetServiceAndStateMachineTest.java1729 BluetoothDevice device2 = getTestDevice(1); in testPhoneStateChange_SynchronousCallStateChanged() local
1730 assertThat(device2).isNotNull(); in testPhoneStateChange_SynchronousCallStateChanged()
1731 connectTestDevice(device2); in testPhoneStateChange_SynchronousCallStateChanged()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingReceiverTest.java436 BluetoothDevice device2 = mock(BluetoothDevice.class); in broadcastReceiver_receiveAudioSharingDeviceConnected_alreadyTwoSinks_noNotif() local
438 when(deviceManager.findDevice(device2)).thenReturn(cachedDevice2); in broadcastReceiver_receiveAudioSharingDeviceConnected_alreadyTwoSinks_noNotif()
443 when(cachedDevice2.getDevice()).thenReturn(device2); in broadcastReceiver_receiveAudioSharingDeviceConnected_alreadyTwoSinks_noNotif()
445 when(mAssistant.getAllConnectedDevices()).thenReturn(ImmutableList.of(mDevice, device2)); in broadcastReceiver_receiveAudioSharingDeviceConnected_alreadyTwoSinks_noNotif()
504 BluetoothDevice device2 = mock(BluetoothDevice.class); in broadcastReceiver_receiveAudioSharingDeviceConnected_showNotification() local
506 when(deviceManager.findDevice(device2)).thenReturn(cachedDevice2); in broadcastReceiver_receiveAudioSharingDeviceConnected_showNotification()
510 when(cachedDevice2.getDevice()).thenReturn(device2); in broadcastReceiver_receiveAudioSharingDeviceConnected_showNotification()
511 when(mAssistant.getAllConnectedDevices()).thenReturn(ImmutableList.of(mDevice, device2)); in broadcastReceiver_receiveAudioSharingDeviceConnected_showNotification()
514 when(mAssistant.getAllSources(device2)).thenReturn(ImmutableList.of(state)); in broadcastReceiver_receiveAudioSharingDeviceConnected_showNotification()
628 BluetoothDevice device2 = mock(BluetoothDevice.class); in broadcastReceiver_receiveAudioSharingAddSource_alreadyTwoSinks_cancelNotif() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DUtilsTest.java164 BluetoothDevice device2 = mock(BluetoothDevice.class); in shouldBlockPairingInAudioSharing_twoSinksInSharing_returnTrue() local
168 when(mDeviceManager.findDevice(device2)).thenReturn(cachedDevice2); in shouldBlockPairingInAudioSharing_twoSinksInSharing_returnTrue()
173 when(cachedDevice2.getDevice()).thenReturn(device2); in shouldBlockPairingInAudioSharing_twoSinksInSharing_returnTrue()
175 when(mAssistant.getAllConnectedDevices()).thenReturn(ImmutableList.of(device1, device2)); in shouldBlockPairingInAudioSharing_twoSinksInSharing_returnTrue()
190 BluetoothDevice device2 = mock(BluetoothDevice.class); in enableLeAudioProfile_multipleDeviceInGroup() local
193 when(cachedDevice2.getDevice()).thenReturn(device2); in enableLeAudioProfile_multipleDeviceInGroup()
210 verify(mLeAudioProfile).setEnabled(device2, true); in enableLeAudioProfile_multipleDeviceInGroup()
262 BluetoothDevice device2 = mock(BluetoothDevice.class); in disableLeAudioProfile_multipleDeviceInGroup() local
265 when(cachedDevice2.getDevice()).thenReturn(device2); in disableLeAudioProfile_multipleDeviceInGroup()
282 verify(mLeAudioProfile).setEnabled(device2, false); in disableLeAudioProfile_multipleDeviceInGroup()
DSavedBluetoothDeviceUpdaterTest.java248 final BluetoothDevice device2 = mock(BluetoothDevice.class); in forceUpdate_deviceNotContain_removePreference() local
251 mBluetoothDeviceUpdater.mPreferenceMap.put(device2, mPreference); in forceUpdate_deviceNotContain_removePreference()
253 when(cachedDevice2.getDevice()).thenReturn(device2); in forceUpdate_deviceNotContain_removePreference()
255 when(mDeviceManager.findDevice(device2)).thenReturn(cachedDevice2); in forceUpdate_deviceNotContain_removePreference()
DBluetoothDevicePreferenceTest.java233 BluetoothDevice device2 = mock(BluetoothDevice.class); in onClicked_deviceNotBonded_blockPairing() local
237 when(cachedDevice2.getDevice()).thenReturn(device2); in onClicked_deviceNotBonded_blockPairing()
241 when(mDeviceManager.findDevice(device2)).thenReturn(cachedDevice2); in onClicked_deviceNotBonded_blockPairing()
242 when(assistant.getAllConnectedDevices()).thenReturn(ImmutableList.of(device1, device2)); in onClicked_deviceNotBonded_blockPairing()
DBluetoothDevicePairingDetailBaseTest.java401 final BluetoothDevice device2 = mBluetoothAdapter.getRemoteDevice(TEST_DEVICE_ADDRESS_B); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() local
407 when(cachedDevice.getDevice()).thenReturn(device2); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DMediaControlHelper.java128 CachedBluetoothDevice device1, CachedBluetoothDevice device2) { in hasOverlap() argument
129 return device1.equals(device2) in hasOverlap()
130 || device1.getMemberDevice().contains(device2) in hasOverlap()
131 || device2.getMemberDevice().contains(device1); in hasOverlap()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothDeviceManagerTest.java100 private BluetoothDevice device2; field in BluetoothDeviceManagerTest
112 device2 = makeBluetoothDevice("00:00:00:00:00:02"); in setUp()
120 when(mBluetoothHearingAid.getHiSyncId(device2)).thenReturn(100L); in setUp()
185 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testAddDeviceFailsWhenServicesAreNull()
201 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testMultiDeviceConnectAndDisconnect()
281 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testHearingAidDedup()
353 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testHeadsetServiceDisconnect()
361 verify(mRouteManager, never()).onDeviceLost(device2.getAddress()); in testHeadsetServiceDisconnect()
376 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testHearingAidServiceDisconnect()
382 verify(mRouteManager).onDeviceLost(device2.getAddress()); in testHearingAidServiceDisconnect()
[all …]
/packages/modules/Wifi/tests/hostsidetests/multidevices/test/direct/integration/
Dwifi_p2p_manager_test.py234 device2, argument
238 wp2putils.p2p_connect(device1, device2, re_connect, pws_method)
241 client_dut = device2.ad
250 device1, device2, is_group_negotiation=False
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapClientAccountManagerTest.java169 BluetoothDevice device2 = getTestDevice(/* id= */ 2); in testStartAccountManager_userUnlockedAccountVisibleHasAccount_accountsInitialized() local
171 new Account[] {getAccountForDevice(device1), getAccountForDevice(device2)}; in testStartAccountManager_userUnlockedAccountVisibleHasAccount_accountsInitialized()
250 BluetoothDevice device2 = getTestDevice(/* id= */ 2); in testGetAccounts_storageInitializedWithAccounts_returnsAccountList() local
252 new Account[] {getAccountForDevice(device1), getAccountForDevice(device2)}; in testGetAccounts_storageInitializedWithAccounts_returnsAccountList()
351 BluetoothDevice device2 = getTestDevice(/* id= */ 2); in testRemoveAccount_accountDoesNotExist_accountNotInAccountsListAndReturnsTrue() local
352 Account account2 = mAccountManager.getAccountForDevice(device2); in testRemoveAccount_accountDoesNotExist_accountNotInAccountsListAndReturnsTrue()
DPbapClientContactsStorageTest.java183 BluetoothDevice device2 = getTestDevice(2); in testStartStorage_withExistingAccounts_accountsCleanedUp() local
184 Account account2 = getAccountForDevice(device2); in testStartStorage_withExistingAccounts_accountsCleanedUp()
247 BluetoothDevice device2 = getTestDevice(2); in testRemoveAccount_accountDoesNotExist_accountsUnchanged() local
248 Account account2 = mStorage.getStorageAccountForDevice(device2); in testRemoveAccount_accountDoesNotExist_accountsUnchanged()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterPropertiesTest.java115 BluetoothDevice device1, device2; in testCleanupPrevBondRecordsFor() local
117 device2 = mRemoteDevices.getDevice(TEST_BT_ADDR_BYTES_2); in testCleanupPrevBondRecordsFor()
122 mAdapterProperties.onBondStateChanged(device2, BluetoothDevice.BOND_BONDED); in testCleanupPrevBondRecordsFor()
DBondStateMachineTest.java126 BluetoothDevice device1, device2; in testCreateBondAfterRemoveBond() local
128 device2 = mRemoteDevices.getDevice(TEST_BT_ADDR_BYTES_2); in testCreateBondAfterRemoveBond()
143 removeBondMsg2.obj = device2; in testCreateBondAfterRemoveBond()
162 createBondMsg2.obj = device2; in testCreateBondAfterRemoveBond()
189 BluetoothDevice device2 = in testCreateBondWithLeDevice() local
203 createBondMsg2.obj = device2; in testCreateBondWithLeDevice()
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/
DTvMediaOutputController.java123 mediaDevices.sort((device1, device2) -> { in sortMediaDevices() argument
125 int priority2 = getDevicePriorityGroup(device2); in sortMediaDevices()
131 if (device1.isConnected() != device2.isConnected()) { in sortMediaDevices()
134 return device1.getName().compareToIgnoreCase(device2.getName()); in sortMediaDevices()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBassClientServiceTest.java890 final BluetoothDevice device2 = in testNotRemovingCachedBroadcastOnFailEstablishWithoutScanning() local
919 onScanResult(device2, broadcastId2); in testNotRemovingCachedBroadcastOnFailEstablishWithoutScanning()
920 onSyncEstablished(device2, handle2); in testNotRemovingCachedBroadcastOnFailEstablishWithoutScanning()
2793 final BluetoothDevice device2 = in testSelectSource_queueAndRemoveAfterMaxLimit() local
2821 onScanResult(device2, broadcastId2); in testSelectSource_queueAndRemoveAfterMaxLimit()
2869 onSyncEstablished(device2, handle2); in testSelectSource_queueAndRemoveAfterMaxLimit()
2875 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit()
2899 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit()
2923 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit()
2948 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit()
[all …]
/packages/apps/Car/Settings/tests/deviceless/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceControllerTest.java89 BluetoothDevice device2 = BluetoothAdapter.getDefaultAdapter().getRemoteDevice( in setUp() local
91 when(mCachedDevice2.getDevice()).thenReturn(device2); in setUp()