/packages/modules/Bluetooth/system/gd/storage/ |
D | classic_device_test.cc | 61 ClassicDevice device2(&config, &memory_only_config, address.ToString()); in TEST() local 62 ASSERT_EQ(device1, device2); in TEST() 94 …ClassicDevice device2(larger_config_ptr, larger_memory_only_config_ptr, larger_address.ToString()); in TEST() local 95 ASSERT_TRUE(device1 < device2); in TEST() 100 …ClassicDevice device2(smaller_config_ptr, larger_memory_only_config_ptr, larger_address.ToString()… in TEST() local 101 ASSERT_FALSE(device1 < device2); in TEST() 106 …ClassicDevice device2(larger_config_ptr, smaller_memory_only_config_ptr, larger_address.ToString()… in TEST() local 107 ASSERT_TRUE(device1 < device2); in TEST() 112 …ClassicDevice device2(larger_config_ptr, larger_memory_only_config_ptr, smaller_address.ToString()… in TEST() local 113 ASSERT_TRUE(device1 < device2); in TEST() [all …]
|
D | le_device_test.cc | 61 LeDevice device2(&config, &memory_only_config, address.ToString()); in TEST() local 62 ASSERT_EQ(device1, device2); in TEST() 94 LeDevice device2(larger_config_ptr, larger_memory_only_config_ptr, larger_address.ToString()); in TEST() local 95 ASSERT_TRUE(device1 < device2); in TEST() 100 LeDevice device2(smaller_config_ptr, larger_memory_only_config_ptr, larger_address.ToString()); in TEST() local 101 ASSERT_FALSE(device1 < device2); in TEST() 106 LeDevice device2(larger_config_ptr, smaller_memory_only_config_ptr, larger_address.ToString()); in TEST() local 107 ASSERT_TRUE(device1 < device2); in TEST() 112 LeDevice device2(larger_config_ptr, larger_memory_only_config_ptr, smaller_address.ToString()); in TEST() local 113 ASSERT_TRUE(device1 < device2); in TEST() [all …]
|
D | device_test.cc | 50 …Device device2(&config, &memory_only_config, address2, Device::ConfigKeyAddressType::LEGACY_KEY_AD… in TEST() local 51 ASSERT_TRUE(device2.Exists()); in TEST() 52 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST() 57 ASSERT_EQ(device2, device3); in TEST() 75 …Device device2(&config, &memory_only_config, address2, Device::ConfigKeyAddressType::CLASSIC_ADDRE… in TEST() local 76 ASSERT_TRUE(device2.Exists()); in TEST() 77 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST() 82 ASSERT_EQ(device2, device3); in TEST() 104 …Device device2(&config, &memory_only_config, le_identity_address, Device::ConfigKeyAddressType::LE… in TEST() local 105 ASSERT_TRUE(device2.Exists()); in TEST() [all …]
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | metrics_collector_test.cc | 101 const RawAddress device2 = RawAddress({0x11, 0x22, 0x33, 0x44, 0x55, 0x67}); variable 221 group_id2, device2, bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F() 224 group_id2, device2, bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F() 233 group_id2, device2, bluetooth::le_audio::ConnectionState::DISCONNECTED, in TEST_F() 248 group_id2, device2, bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F() 251 group_id2, device2, bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F() 266 group_id2, device2, bluetooth::le_audio::ConnectionState::DISCONNECTED, in TEST_F() 287 group_id2, device2, bluetooth::le_audio::ConnectionState::CONNECTING, in TEST_F() 290 group_id2, device2, bluetooth::le_audio::ConnectionState::CONNECTED, in TEST_F() 299 group_id2, device2, bluetooth::le_audio::ConnectionState::DISCONNECTED, in TEST_F()
|
D | devices_test.cc | 2319 auto device2 = AddTestDevice(2, 1); in TEST_P() local 2327 device2->SetConnectionState(DeviceConnectState::DISCONNECTING); in TEST_P()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/ |
D | MediaControlHelper.java | 128 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/ |
D | BluetoothDeviceManagerTest.java | 89 private BluetoothDevice device2; field in BluetoothDeviceManagerTest 101 device2 = makeBluetoothDevice("00:00:00:00:00:02"); in setUp() 109 when(mBluetoothHearingAid.getHiSyncId(device2)).thenReturn(100L); in setUp() 172 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testAddDeviceFailsWhenServicesAreNull() 188 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testMultiDeviceConnectAndDisconnect() 268 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testHearingAidDedup() 308 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testHeadsetServiceDisconnect() 316 verify(mRouteManager, never()).onDeviceLost(device2.getAddress()); in testHeadsetServiceDisconnect() 331 buildConnectionActionIntent(BluetoothHeadset.STATE_CONNECTED, device2, in testHearingAidServiceDisconnect() 337 verify(mRouteManager).onDeviceLost(device2.getAddress()); in testHearingAidServiceDisconnect() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetPhoneStateTest.java | 213 BluetoothDevice device2 = TestUtils.getTestDevice(mAdapter, 2); in testListenForPhoneState_MultiDevice_AllUpAllDown() local 230 device2, in testListenForPhoneState_MultiDevice_AllUpAllDown() 236 mHeadsetPhoneState.listenForPhoneState(device2, PhoneStateListener.LISTEN_NONE); in testListenForPhoneState_MultiDevice_AllUpAllDown() 250 BluetoothDevice device2 = TestUtils.getTestDevice(mAdapter, 2); in testListenForPhoneState_MultiDevice_PartialUpPartialDown() local 258 mHeadsetPhoneState.listenForPhoneState(device2, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testListenForPhoneState_MultiDevice_PartialUpPartialDown() 274 mHeadsetPhoneState.listenForPhoneState(device2, PhoneStateListener.LISTEN_NONE); in testListenForPhoneState_MultiDevice_PartialUpPartialDown()
|
D | HeadsetServiceAndStateMachineTest.java | 1784 BluetoothDevice device2 = TestUtils.getTestDevice(mAdapter, 1); in testPhoneStateChange_SynchronousCallStateChanged() local 1785 assertThat(device2).isNotNull(); in testPhoneStateChange_SynchronousCallStateChanged() 1786 connectTestDevice(device2); in testPhoneStateChange_SynchronousCallStateChanged()
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/ |
D | TvMediaOutputController.java | 114 mediaDevices.sort((device1, device2) -> { in sortMediaDevices() argument 116 int priority2 = getDevicePriorityGroup(device2); in sortMediaDevices() 122 if (device1.isConnected() != device2.isConnected()) { in sortMediaDevices() 125 return device1.getName().compareToIgnoreCase(device2.getName()); in sortMediaDevices()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | AdapterPropertiesTest.java | 111 BluetoothDevice device1, device2; in testCleanupPrevBondRecordsFor() local 113 device2 = mRemoteDevices.getDevice(TEST_BT_ADDR_BYTES_2); in testCleanupPrevBondRecordsFor() 118 mAdapterProperties.onBondStateChanged(device2, BluetoothDevice.BOND_BONDED); in testCleanupPrevBondRecordsFor()
|
D | BondStateMachineTest.java | 121 BluetoothDevice device1, device2; in testCreateBondAfterRemoveBond() local 123 device2 = mRemoteDevices.getDevice(TEST_BT_ADDR_BYTES_2); in testCreateBondAfterRemoveBond() 138 removeBondMsg2.obj = device2; in testCreateBondAfterRemoveBond() 157 createBondMsg2.obj = device2; in testCreateBondAfterRemoveBond() 181 BluetoothDevice device2 = in testCreateBondWithLeDevice() local 192 createBondMsg2.obj = device2; in testCreateBondWithLeDevice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdaterTest.java | 279 final BluetoothDevice device2 = mock(BluetoothDevice.class); in forceUpdate_deviceNotContain_removePreference() local 282 mBluetoothDeviceUpdater.mPreferenceMap.put(device2, mPreference); in forceUpdate_deviceNotContain_removePreference() 284 when(cachedDevice2.getDevice()).thenReturn(device2); in forceUpdate_deviceNotContain_removePreference() 286 when(mDeviceManager.findDevice(device2)).thenReturn(cachedDevice2); in forceUpdate_deviceNotContain_removePreference()
|
D | BluetoothDevicePairingDetailBaseTest.java | 226 final BluetoothDevice device2 = mBluetoothAdapter.getRemoteDevice(TEST_DEVICE_ADDRESS_B); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() local 232 when(cachedDevice.getDevice()).thenReturn(device2); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicesGroupPreferenceControllerTest.java | 92 BluetoothDevice device2 = BluetoothAdapter.getDefaultAdapter().getRemoteDevice( in setUp() local 94 when(mCachedDevice2.getDevice()).thenReturn(device2); in setUp()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/ |
D | BassClientServiceTest.java | 2268 final BluetoothDevice device2 = in testSelectSource_queueAndRemoveAfterMaxLimit() local 2296 onScanResult(device2, broadcastId2); in testSelectSource_queueAndRemoveAfterMaxLimit() 2352 onSyncEstablished(device2, handle2); in testSelectSource_queueAndRemoveAfterMaxLimit() 2360 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit() 2386 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit() 2411 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit() 2435 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit() 2456 assertThat(mBassClientService.getDeviceForSyncHandle(handle2)).isEqualTo(device2); in testSelectSource_queueAndRemoveAfterMaxLimit() 2475 final BluetoothDevice device2 = in testAddSourceToUnsyncedSource_causesSyncBeforeAddingSource() local 2504 onScanResult(device2, broadcastId2); in testAddSourceToUnsyncedSource_causesSyncBeforeAddingSource() [all …]
|