/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | CastTileTest.java | 143 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/engineconfigurable/src/ |
D | InputSource.cpp | 47 status_t Element<audio_source_t>::set(audio_devices_t devices) in set() argument 49 if (devices != AUDIO_DEVICE_NONE) { in set() 50 devices |= AUDIO_DEVICE_BIT_IN; in set() 52 if (!audio_is_input_device(devices)) { in set() 54 __FUNCTION__, devices, getName().c_str()); in set() 57 ALOGD("%s: 0x%X for input source %s", __FUNCTION__, devices, getName().c_str()); in set() 58 mApplicableDevices = devices; in set()
|
D | Engine.cpp | 224 audio_devices_t devices = AUDIO_DEVICE_NONE; in getDevicesForProductStrategy() local 233 devices = productStrategies.getDeviceTypesForProductStrategy(strategyForMedia); in getDevicesForProductStrategy() 241 devices = productStrategies.getDeviceTypesForProductStrategy(strategyNotification); in getDevicesForProductStrategy() 243 devices = productStrategies.getDeviceTypesForProductStrategy(ps); in getDevicesForProductStrategy() 245 if (devices == AUDIO_DEVICE_NONE || in getDevicesForProductStrategy() 246 (devices & availableOutputDevicesType) == AUDIO_DEVICE_NONE) { in getDevicesForProductStrategy() 247 devices = getApmObserver()->getDefaultOutputDevice()->type(); in getDevicesForProductStrategy() 248 ALOGE_IF(devices == AUDIO_DEVICE_NONE, "%s: no valid default device defined", __FUNCTION__); in getDevicesForProductStrategy() 251 if (/*device_distinguishes_on_address(devices)*/ devices == AUDIO_DEVICE_OUT_BUS) { in getDevicesForProductStrategy() 256 ALOGV("%s:device 0x%x %s %d", __FUNCTION__, devices, address.c_str(), ps); in getDevicesForProductStrategy() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | DeviceDescriptor.cpp | 140 void DeviceVector::add(const DeviceVector &devices) in add() argument 143 for (const auto& device : devices) { in add() 184 void DeviceVector::remove(const DeviceVector &devices) in remove() argument 186 for (const auto& device : devices) { in remove() 193 DeviceVector devices; in getDevicesFromHwModule() local 196 devices.add(device); in getDevicesFromHwModule() 199 return devices; in getDevicesFromHwModule() 251 DeviceVector devices; in getDevicesFromTypeMask() local 258 devices.add(itemAt(i)); in getDevicesFromTypeMask() 264 return devices; in getDevicesFromTypeMask() [all …]
|
D | AudioOutputDescriptor.cpp | 224 dst->appendFormat(" Devices: %s\n", devices().toString().c_str()); in dump() 274 DeviceVector SwAudioOutputDescriptor::devices() const in devices() function in android::SwAudioOutputDescriptor 277 DeviceVector devices = mOutput1->devices(); in devices() local 278 devices.merge(mOutput2->devices()); in devices() 279 return devices; in devices() 312 bool SwAudioOutputDescriptor::supportsAllDevices(const DeviceVector &devices) const in supportsAllDevices() 314 return supportedDevices().containsAllDevices(devices); in supportsAllDevices() 317 DeviceVector SwAudioOutputDescriptor::filterSupportedDevices(const DeviceVector &devices) const in filterSupportedDevices() 320 return filteredDevices.filter(devices); in filterSupportedDevices() 405 for (const auto& devicePort : devices()) { in setVolume() [all …]
|
/frameworks/av/services/audiopolicy/ |
D | audio_policy.conf | 91 devices { 110 devices speaker 119 devices AUDIO_DEVICE_IN_BUILTIN_MIC 133 devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX 141 devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | DeviceDescriptor.h | 95 void add(const DeviceVector &devices); 97 void remove(const DeviceVector &devices); 126 bool containsAtLeastOne(const DeviceVector &devices) const; 133 bool containsAllDevices(const DeviceVector &devices) const; 140 DeviceVector filter(const DeviceVector &devices) const; 155 ssize_t merge(const DeviceVector &devices) in merge() argument 158 add(devices); in merge() 161 return SortedVector::merge(devices); in merge()
|
D | AudioIODescriptorInterface.h | 41 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()
|
D | AudioOutputDescriptor.h | 153 virtual DeviceVector devices() const { return mDevices; } in devices() function 285 return !devices().isEmpty() ? devices().itemAt(0)->hasGainController() : false; in useHwGain() 318 virtual DeviceVector devices() const; 319 void setDevices(const DeviceVector &devices) { mDevices = devices; } in setDevices() argument 346 const DeviceVector &devices, 378 bool supportsAllDevices(const DeviceVector &devices) const; 387 DeviceVector filterSupportedDevices(const DeviceVector &devices) const;
|
D | HwModule.h | 48 void setDeclaredDevices(const DeviceVector &devices); 51 DeviceVector devices = mDeclaredDevices; in getAllDevices() local 52 devices.merge(mDynamicDevices); in getAllDevices() 53 return devices; in getAllDevices()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | BluetoothMediaManagerTest.java | 91 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 …]
|
D | LocalMediaManagerTest.java | 210 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/media/libaudiohal/impl/ |
D | DeviceHalLocal.cpp | 38 status_t DeviceHalLocal::getSupportedDevices(uint32_t *devices) { in getSupportedDevices() argument 40 *devices = mDev->get_supported_devices(mDev); in getSupportedDevices() 107 audio_devices_t devices, in openOutputStream() argument 115 handle, devices, flags, in openOutputStream() 119 mDev, handle, devices, flags, config, &halStream, address); in openOutputStream() 129 audio_devices_t devices, in openInputStream() argument 140 handle, devices, flags, in openInputStream() 144 mDev, handle, devices, config, &halStream, flags, address, source); in openInputStream()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 129 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/ |
D | device_for_product_strategy_phone.pfw | 91 # 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/ |
D | LocalMediaManager.java | 203 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
|
D | MediaManager.java | 104 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/ |
D | UsbUtil.java | 33 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/ |
D | CastTile.java | 186 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/native/vulkan/vkjson/ |
D | vkjson_info.cc | 104 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/av/services/audioflinger/ |
D | AudioHwDevice.cpp | 37 audio_devices_t devices, in openOutputStream() argument 53 status_t status = outputStream->open(handle, devices, config, address); in openOutputStream() 78 status = outputStream->open(handle, devices, &originalConfig, address); in openOutputStream()
|
/frameworks/ml/nn/runtime/test/ |
D | TestPartitioning.cpp | 577 int partitionTheWork(const std::vector<std::shared_ptr<Device>>& devices, in partitionTheWork() argument 580 devices, static_cast<uint32_t>(preference), plan); in partitionTheWork() 640 const std::vector<std::shared_ptr<Device>>& devices) { in PartitioningCompilation() argument 643 int result = m->createCompilation(&c, devices); in PartitioningCompilation() 792 std::vector<std::shared_ptr<Device>> devices; in makeDevices() local 818 devices.push_back(device); in makeDevices() 820 devices.push_back(DeviceManager::getCpuDevice()); in makeDevices() 821 return devices; in makeDevices() 1378 const auto devices = makeDevices({{"V1_0", 0.6, HalVersion::V1_0, ~0U}, in TEST_F() local 1382 ASSERT_EQ(model.partitionTheWork(devices, ExecutePreference::PREFER_LOW_POWER, &plan), in TEST_F() [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | RootScanner.java | 136 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/ |
D | AudioPolicyManager.cpp | 257 bool force = (msdOutDevices.isEmpty() || msdOutDevices != desc->devices()) in setDeviceConnectionStateInt() 493 if(!hasPrimaryOutput() || mPrimaryOutput->devices().types() == AUDIO_DEVICE_OUT_STUB) { in updateCallRouting() 631 const DeviceVector& devices, audio_devices_t device) const { in findDevice() argument 632 DeviceVector deviceList = devices.getDevicesFromTypeMask(device); in findDevice() 639 const DeviceVector& devices, const char *moduleId) const { in getModuleDeviceTypes() argument 641 return mod != 0 ? devices.getDeviceTypesFromHwModule(mod->getHandle()) : AUDIO_DEVICE_NONE; in getModuleDeviceTypes() 717 rxDevices = mPrimaryOutput->devices(); in setPhoneState() 830 const DeviceVector& devices, in getProfileForOutput() argument 851 if (!curProfile->isCompatibleProfile(devices, in getProfileForOutput() 863 if (!curProfile->deviceSupportsEncodedFormats(devices.types())) { in getProfileForOutput() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothManager.java | 174 List<BluetoothDevice> devices = new ArrayList<BluetoothDevice>(); in getDevicesMatchingConnectionStates() local 179 if (iGatt == null) return devices; in getDevicesMatchingConnectionStates() 180 devices = iGatt.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates() 185 return devices; in getDevicesMatchingConnectionStates()
|