Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCsipDeviceManagerTest.java267 CachedBluetoothDevice preferredDevice = null; in addMemberDevicesIntoMainDevice_noPreferredDevice_returnFalseAndNoChangeList() local
273 assertThat(mCsipDeviceManager.addMemberDevicesIntoMainDevice(GROUP1, preferredDevice)) in addMemberDevicesIntoMainDevice_noPreferredDevice_returnFalseAndNoChangeList()
285 CachedBluetoothDevice preferredDevice = mCachedDevice1; in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndNoOtherInList_noChangeList() local
291 assertThat(mCsipDeviceManager.addMemberDevicesIntoMainDevice(GROUP1, preferredDevice)) in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndNoOtherInList_noChangeList()
302 CachedBluetoothDevice preferredDevice = mCachedDevice1; in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndTwoMain_returnTrue() local
305 mCachedDevices.add(preferredDevice); in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndTwoMain_returnTrue()
309 assertThat(mCsipDeviceManager.addMemberDevicesIntoMainDevice(GROUP1, preferredDevice)) in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndTwoMain_returnTrue()
311 assertThat(mCachedDevices.contains(preferredDevice)).isTrue(); in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndTwoMain_returnTrue()
314 assertThat(preferredDevice.getMemberDevice()).contains(mCachedDevice2); in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndTwoMain_returnTrue()
321 CachedBluetoothDevice preferredDevice = mCachedDevice2; in addMemberDevicesIntoMainDevice_preferredDeviceIsMember_returnTrue() local
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.cpp413 const sp<DeviceDescriptor> &preferredDevice, in getOutputDevicesForAttributes() argument
417 if (preferredDevice != nullptr) { in getOutputDevicesForAttributes()
418 ALOGV("%s explicit Routing on device %s", __func__, preferredDevice->toString().c_str()); in getOutputDevicesForAttributes()
419 return DeviceVector(preferredDevice); in getOutputDevicesForAttributes()
/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.cpp845 const sp<DeviceDescriptor> &preferredDevice, in getOutputDevicesForAttributes() argument
849 if (preferredDevice != nullptr) { in getOutputDevicesForAttributes()
850 ALOGV("%s explicit Routing on device %s", __func__, preferredDevice->toString().c_str()); in getOutputDevicesForAttributes()
851 return DeviceVector(preferredDevice); in getOutputDevicesForAttributes()
/frameworks/av/services/audiopolicy/tests/
Daudiopolicymanager_tests.cpp3336 sp<DeviceDescriptor> preferredDevice = nullptr; in TEST_F() local
3339 preferredDevice = device; in TEST_F()
3343 ASSERT_NE(nullptr, preferredDevice); in TEST_F()
3348 {preferredDevice->getDeviceTypeAddr()})); in TEST_F()
3354 ASSERT_EQ(preferredDevice, availableDevices.getDeviceFromId(selectedDeviceId)); in TEST_F()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp8731 sp<DeviceDescriptor> preferredDevice = in areAllActiveTracksRerouted() local
8734 client->attributes(), preferredDevice, false) == routedDevices) { in areAllActiveTracksRerouted()