Home
last modified time | relevance | path

Searched refs:devices (Results 1 – 25 of 177) sorted by relevance

12345678

/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.cpp149 DeviceVector devices; in getDevicesForStrategyInt() local
154 devices = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_SPEAKER); in getDevicesForStrategyInt()
159 devices = getDevicesForStrategyInt( in getDevicesForStrategyInt()
171 devices = getDevicesForStrategyInt(STRATEGY_MEDIA, in getDevicesForStrategyInt()
177 devices.replaceDevicesByType( in getDevicesForStrategyInt()
188 devices = getDevicesForStrategyInt( in getDevicesForStrategyInt()
229 devices = availableOutputDevices.getDevicesFromType( in getDevicesForStrategyInt()
231 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
233 devices = availableOutputDevices.getFirstDevicesFromTypes({ in getDevicesForStrategyInt()
235 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DInputSource.cpp47 status_t Element<audio_source_t>::set(audio_devices_t devices) in set() argument
49 if (devices == AUDIO_DEVICE_NONE) { in set()
51 mApplicableDevices = devices; in set()
54 devices |= AUDIO_DEVICE_BIT_IN; in set()
55 if (!audio_is_input_device(devices)) { in set()
57 __FUNCTION__, devices, getName().c_str()); in set()
60 ALOGV("%s: 0x%X for input source %s", __FUNCTION__, devices, getName().c_str()); in set()
61 mApplicableDevices = devices; in set()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java143 List<CastDevice> devices = new ArrayList<>(); in testStateActive_wifiEnabledAndCasting() local
144 devices.add(device); in testStateActive_wifiEnabledAndCasting()
145 when(mController.getCastDevices()).thenReturn(devices); in testStateActive_wifiEnabledAndCasting()
162 List<CastDevice> devices = new ArrayList<>(); in testHandleClick_castDevicePresent() local
163 devices.add(device); in testHandleClick_castDevicePresent()
164 when(mController.getCastDevices()).thenReturn(devices); in testHandleClick_castDevicePresent()
178 List<CastDevice> devices = new ArrayList<>(); in testHandleClick_projectionOnly() local
179 devices.add(device); in testHandleClick_projectionOnly()
180 when(mController.getCastDevices()).thenReturn(devices); in testHandleClick_projectionOnly()
195 List<CastDevice> devices = new ArrayList<>(); in testUpdateState_projectionOnly() local
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DDeviceDescriptor.cpp200 void DeviceVector::add(const DeviceVector &devices) in add() argument
203 for (const auto& device : devices) { in add()
244 void DeviceVector::remove(const DeviceVector &devices) in remove() argument
246 for (const auto& device : devices) { in remove()
253 DeviceVector devices; in getDevicesFromHwModule() local
256 devices.add(device); in getDevicesFromHwModule()
259 return devices; in getDevicesFromHwModule()
300 DeviceVector devices; in getDevicesFromTypes() local
302 return devices; in getDevicesFromTypes()
306 devices.add(itemAt(i)); in getDevicesFromTypes()
[all …]
DAudioOutputDescriptor.cpp242 dst->appendFormat(" Devices: %s\n", devices().toString().c_str()); in dump()
292 DeviceVector SwAudioOutputDescriptor::devices() const in devices() function in android::SwAudioOutputDescriptor
295 DeviceVector devices = mOutput1->devices(); in devices() local
296 devices.merge(mOutput2->devices()); in devices()
297 return devices; in devices()
330 bool SwAudioOutputDescriptor::supportsAllDevices(const DeviceVector &devices) const in supportsAllDevices()
332 return supportedDevices().containsAllDevices(devices); in supportsAllDevices()
335 DeviceVector SwAudioOutputDescriptor::filterSupportedDevices(const DeviceVector &devices) const in filterSupportedDevices()
338 return filteredDevices.filter(devices); in filterSupportedDevices()
423 for (const auto& devicePort : devices()) { in setVolume()
[all …]
DIOProfile.cpp27 bool IOProfile::isCompatibleProfile(const DeviceVector &devices, in isCompatibleProfile() argument
44 if (!devices.isEmpty()) { in isCompatibleProfile()
45 if (!mSupportedDevices.containsAllDevices(devices)) { in isCompatibleProfile()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaManagerTest.java91 final List<BluetoothDevice> devices = new ArrayList<>(); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice() local
94 devices.add(bluetoothDevice); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
96 when(mA2dpProfile.getConnectableDevices()).thenReturn(devices); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
103 assertThat(mMediaManager.mMediaDevices).hasSize(devices.size()); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
108 final List<BluetoothDevice> devices = new ArrayList<>(); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice() local
111 devices.add(bluetoothDevice); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice()
113 when(mA2dpProfile.getConnectableDevices()).thenReturn(devices); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice()
125 final List<BluetoothDevice> devices = new ArrayList<>(); in startScan_noA2dpProfileBluetoothDevice_shouldNotAddDevice() local
127 when(mA2dpProfile.getConnectableDevices()).thenReturn(devices); in startScan_noA2dpProfileBluetoothDevice_shouldNotAddDevice()
136 final List<BluetoothDevice> devices = new ArrayList<>(); in startScan_haveHapProfileDeviceIsPreferredAndBonded_shouldAddDevice() local
[all …]
DLocalMediaManagerTest.java210 final List<MediaDevice> devices = new ArrayList<>(); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList() local
213 devices.add(device1); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList()
214 devices.add(device2); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList()
221 mLocalMediaManager.mMediaDeviceCallback.onDeviceListAdded(devices); in onDeviceListAdded_phoneDeviceNotExistInList_addPhoneDeviceAndDevicesList()
229 final List<MediaDevice> devices = new ArrayList<>(); in onDeviceListAdded_phoneDeviceExistInList_addDeviceList() local
234 devices.add(device1); in onDeviceListAdded_phoneDeviceExistInList_addDeviceList()
235 devices.add(device2); in onDeviceListAdded_phoneDeviceExistInList_addDeviceList()
246 mLocalMediaManager.mMediaDeviceCallback.onDeviceListAdded(devices); in onDeviceListAdded_phoneDeviceExistInList_addDeviceList()
302 final List<MediaDevice> devices = new ArrayList<>(); in onDeviceListRemoved_phoneDeviceIsLastDeviceAfterRemoveDeviceList_removeAll() local
306 devices.add(device1); in onDeviceListRemoved_phoneDeviceIsLastDeviceAfterRemoveDeviceList_removeAll()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DDeviceDescriptor.h108 void add(const DeviceVector &devices);
110 void remove(const DeviceVector &devices);
168 bool containsAtLeastOne(const DeviceVector &devices) const;
175 bool containsAllDevices(const DeviceVector &devices) const;
182 DeviceVector filter(const DeviceVector &devices) const;
197 ssize_t merge(const DeviceVector &devices) in merge() argument
200 add(devices); in merge()
203 return SortedVector::merge(devices); in merge()
DAudioIODescriptorInterface.h41 IoDescriptor& desc, Filter filter, bool& active, const DeviceVector& devices) in findPreferredDevice() argument
48 return devices.getDeviceFromId(activeClientsWithRoute[0]->preferredDeviceId()); in findPreferredDevice()
55 IoCollection& ioCollection, Filter filter, const DeviceVector& devices) in findPreferredDevice() argument
61 sp<DeviceDescriptor> curDevice = findPreferredDevice(desc, filter, active, devices); in findPreferredDevice()
DAudioOutputDescriptor.h155 virtual DeviceVector devices() const { return mDevices; } in devices() function
297 return !devices().isEmpty() ? devices().itemAt(0)->hasGainController() : false; in useHwGain()
329 virtual DeviceVector devices() const;
330 void setDevices(const DeviceVector &devices) { mDevices = devices; } in setDevices() argument
357 const DeviceVector &devices,
389 bool supportsAllDevices(const DeviceVector &devices) const;
398 DeviceVector filterSupportedDevices(const DeviceVector &devices) const;
DHwModule.h48 void setDeclaredDevices(const DeviceVector &devices);
51 DeviceVector devices = mDeclaredDevices; in getAllDevices() local
52 devices.merge(mDynamicDevices); in getAllDevices()
53 return devices; in getAllDevices()
/frameworks/ml/nn/runtime/test/
DTestFree.cpp58 std::vector<ANeuralNetworksDevice*> devices; in createDeviceList() local
67 devices.push_back(device); in createDeviceList()
71 return devices; in createDeviceList()
101 const auto devices = createDeviceList(); in TEST() local
104 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(model, devices.data(), devices.size(), in TEST()
DTestPartitioning.cpp796 int partitionTheWork(const std::vector<std::shared_ptr<Device>>& devices, in partitionTheWork() argument
800 ->partitionTheWork(devices, static_cast<uint32_t>(preference), in partitionTheWork()
882 const std::vector<std::shared_ptr<Device>>& devices) { in PartitioningCompilation() argument
885 int result = m->createCompilation(&c, devices); in PartitioningCompilation()
1048 std::vector<std::shared_ptr<Device>> devices; in makeDevices() local
1080 devices.push_back(device); in makeDevices()
1082 devices.push_back(DeviceManager::getCpuDevice()); in makeDevices()
1083 return devices; in makeDevices()
1665 const auto devices = makeDevices({{"V1_0", 0.6, HalVersion::V1_0, ~0U}, in TEST_F() local
1670 ASSERT_EQ(model.partitionTheWork(devices, ExecutePreference::PREFER_LOW_POWER, in TEST_F()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java129 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in addDevice_validCachedDevices_devicesAdded() local
130 assertThat(devices).contains(cachedDevice1); in addDevice_validCachedDevices_devicesAdded()
131 assertThat(devices).contains(cachedDevice2); in addDevice_validCachedDevices_devicesAdded()
173 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() local
174 assertThat(devices).contains(cachedDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
175 assertThat(devices).doesNotContain(cachedDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
188 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() local
189 assertThat(devices).contains(cachedDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
190 assertThat(devices).contains(cachedDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
245 Collection<CachedBluetoothDevice> devices = mCachedDeviceManager.getCachedDevicesCopy(); in clearNonBondedDevices_bondedAndNonBondedDevices_nonBondedDevicesCleared() local
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/Phone/Settings/
Ddevice_for_product_strategy_phone.pfw91 # Fallback BT Sco devices in case of FORCE_BT_SCO
121 # Fallback BT Sco devices in case of FORCE_BT_SCO
151 # Fallback BT Sco devices in case of FORCE_BT_SCO
181 # Fallback BT Sco devices in case of FORCE_BT_SCO
208 # Fallback BT Sco devices in case of FORCE_BT_SCO
258 # Fallback BT Sco devices in case of FORCE_BT_SCO
296 # Fallback BT Sco devices in case of FORCE_BT_SCO
324 # Fallback BT Sco devices in case of FORCE_BT_SCO
352 # Fallback BT Sco devices in case of FORCE_BT_SCO
380 # Fallback BT Sco devices in case of FORCE_BT_SCO
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DLocalMediaManager.java203 public MediaDevice getMediaDeviceById(List<MediaDevice> devices, String id) { in getMediaDeviceById() argument
204 for (MediaDevice mediaDevice : devices) { in getMediaDeviceById()
249 public void onDeviceListAdded(List<MediaDevice> devices) { in onDeviceListAdded() argument
250 for (MediaDevice device : devices) { in onDeviceListAdded()
278 public void onDeviceListRemoved(List<MediaDevice> devices) { in onDeviceListRemoved() argument
279 mMediaDevices.removeAll(devices); in onDeviceListRemoved()
315 void onDeviceListUpdate(List<MediaDevice> devices); in onDeviceListUpdate() argument
DMediaManager.java104 protected void dispatchDeviceListRemoved(List<MediaDevice> devices) { in dispatchDeviceListRemoved() argument
107 callback.onDeviceListRemoved(devices); in dispatchDeviceListRemoved()
144 void onDeviceListAdded(List<MediaDevice> devices); in onDeviceListAdded() argument
158 void onDeviceListRemoved(List<MediaDevice> devices); in onDeviceListRemoved() argument
/frameworks/base/tests/UsbHostExternalManagmentTest/UsbHostExternalManagmentTestApp/src/com/android/hardware/usb/externalmanagementtest/
DUsbUtil.java33 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in findAllPossibleAndroidDevices() local
35 for (UsbDevice device : devices.values()) { in findAllPossibleAndroidDevices()
79 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in isDeviceConnected() local
80 for (UsbDevice dev : devices.values()) { in isDeviceConnected()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCastTile.java186 final List<CastDevice> devices = mController.getCastDevices(); in handleUpdateState() local
190 for (CastDevice device : devices) { in handleUpdateState()
222 mDetailAdapter.updateItems(devices); in handleUpdateState()
329 private void updateItems(List<CastDevice> devices) { in updateItems() argument
332 if (devices != null && !devices.isEmpty()) { in updateItems()
334 for (CastDevice device : devices) { in updateItems()
348 for (CastDevice device : devices) { in updateItems()
351 items = new Item[devices.size()]; in updateItems()
355 if (!devices.contains(device)) continue; in updateItems()
/frameworks/av/media/libaudiofoundation/
DDeviceDescriptorBase.cpp150 std::string toString(const DeviceDescriptorBaseVector& devices) in toString() argument
153 for (const auto& device : devices) { in toString()
154 if (device != *devices.begin()) { in toString()
162 AudioDeviceTypeAddrVector deviceTypeAddrsFromDescriptors(const DeviceDescriptorBaseVector& devices) in deviceTypeAddrsFromDescriptors() argument
165 for (const auto& device : devices) { in deviceTypeAddrsFromDescriptors()
/frameworks/native/vulkan/vkjson/
Dvkjson_info.cc104 instance.devices.size()) { in Dump()
106 << " requested but only " << instance.devices.size() in Dump()
110 out_device = &instance.devices[options.device_index]; in Dump()
112 for (const auto& device : instance.devices) { in Dump()
177 for (uint32_t i = 0, n = static_cast<uint32_t>(instance.devices.size()); i < n; i++) { in main()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DRootScanner.java136 final MtpDeviceRecord[] devices = mManager.getDevices(); in run() local
139 for (final MtpDeviceRecord device : devices) { in run()
156 for (final MtpDeviceRecord device : devices) { in run()
181 if (devices.length == 0) { in run()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp275 bool force = (msdOutDevices.isEmpty() || msdOutDevices != desc->devices()) in setDeviceConnectionStateInt()
516 mPrimaryOutput->devices().onlyContainsDevicesWithType(AUDIO_DEVICE_OUT_STUB)) { in updateCallRouting()
705 rxDevices = mPrimaryOutput->devices(); in setPhoneState()
802 const DeviceVector& devices, in getProfileForOutput() argument
823 if (!curProfile->isCompatibleProfile(devices, in getProfileForOutput()
835 if (!curProfile->devicesSupportEncodedFormats(devices.types())) { in getProfileForOutput()
855 DeviceVector devices = mEngine->getOutputDevicesForStream(stream, false /*fromCache*/); in getOutput() local
863 SortedVector<audio_io_handle_t> outputs = getOutputsForDevices(devices, mOutputs); in getOutput()
867 devices.toString().c_str(), output); in getOutput()
1082 const DeviceVector &devices, in getOutputForDevices() argument
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothManager.java188 List<BluetoothDevice> devices = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local
193 if (iGatt == null) return devices; in getDevicesMatchingConnectionStates()
194 devices = iGatt.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
199 return devices; in getDevicesMatchingConnectionStates()

12345678