/packages/modules/Bluetooth/system/stack/hid/ |
D | hidh_conn.cc | 130 hh_cb.devices[xx].in_use = false; in hidh_conn_reg() 131 hh_cb.devices[xx].conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_conn_reg() 147 tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn; in hidh_conn_disconnect() 154 if (!L2CA_SetIdleTimeoutByBdAddr(hh_cb.devices[dhandle].addr, 0, in hidh_conn_disconnect() 157 hh_cb.devices[dhandle].addr); in hidh_conn_disconnect() 165 BTM_LogHistory(kBtmLogTag, hh_cb.devices[dhandle].addr, "Disconnecting", in hidh_conn_disconnect() 202 tHID_CONN* p_hcon = &hh_cb.devices[i].conn; in hidh_l2cif_connect_ind() 205 kBtmLogTag, hh_cb.devices[i].addr, "Connect request", in hidh_l2cif_connect_ind() 250 BTM_LogHistory(kBtmLogTag, hh_cb.devices[i].addr, "Connecting", in hidh_l2cif_connect_ind() 284 device = &hh_cb.devices[dhandle]; in hidh_try_repage() [all …]
|
D | hidh_api.cc | 327 hh_cb.devices[i].conn.process_repage_timer = in HID_HostRegister() 349 alarm_free(hh_cb.devices[i].conn.process_repage_timer); in HID_HostDeregister() 350 hh_cb.devices[i].conn.process_repage_timer = NULL; in HID_HostDeregister() 371 if (hh_cb.devices[i].in_use && (hh_cb.devices[i].addr == addr)) { in HID_HostSDPDisable() 372 return (hh_cb.devices[i].attr_mask & HID_SDP_DISABLE); in HID_HostSDPDisable() 394 if ((hh_cb.devices[i].in_use) && addr == hh_cb.devices[i].addr) break; in HID_HostAddDev() 399 if (!hh_cb.devices[i].in_use) break; in HID_HostAddDev() 410 if (!hh_cb.devices[i].in_use) { in HID_HostAddDev() 411 hh_cb.devices[i].in_use = true; in HID_HostAddDev() 412 hh_cb.devices[i].addr = addr; in HID_HostAddDev() [all …]
|
/packages/modules/Bluetooth/system/bta/vc/ |
D | vc.cc | 236 std::vector<RawAddress> devices = {device->address}; in ClearDeviceInformationAndStartSearch() local 239 RemovePendingVolumeControlOperations(devices, in ClearDeviceInformationAndStartSearch() 397 auto devices = csis_api->GetDeviceList(group_id); in HandleAutonomusVolumeChange() local 398 for (auto it = devices.begin(); it != devices.end();) { in HandleAutonomusVolumeChange() 401 it = devices.erase(it); in HandleAutonomusVolumeChange() 407 if (devices.empty() && (is_volume_change || is_mute_change)) { in HandleAutonomusVolumeChange() 416 PrepareVolumeControlOperation(devices, group_id, true, in HandleAutonomusVolumeChange() 424 PrepareVolumeControlOperation(devices, group_id, true, opcode, arg); in HandleAutonomusVolumeChange() 735 void RemovePendingVolumeControlOperations(std::vector<RawAddress>& devices, in RemovePendingVolumeControlOperations() argument 754 for (auto const& addr : devices) { in RemovePendingVolumeControlOperations() [all …]
|
/packages/modules/Virtualization/docs/ |
D | device_assignment.md | 12 VM DTBO is a device tree overlay which describes all assignable devices 17 devices to the VM (which can't be discovered from the HW) while keeping the VMM 23 labels, describing the assigned devices. 42 #### Describe assignable devices 44 VM DTBO should describe assignable devices and their labels. 46 * VM DTBO should have assignable devices in the `&{/}`, so it can be 47 overlaid onto VM DT. Assignable devices should be backed by physical device. 50 * VM DTBO should have labels for assignable devices, so AVF can recognize 55 #### Describe physical devices and physical IOMMUs 57 VM DTBO should describe a `/host` node which describes physical devices and [all …]
|
/packages/modules/NeuralNetworks/driver/sample_hidl/ |
D | SampleDriverLimited.cpp | 43 const auto devices = getExampleLimitedDevices(); in main() local 47 hidlDevices.reserve(devices.size()); in main() 49 devices.begin(), devices.end(), std::back_inserter(hidlDevices), in main() 53 CHECK_EQ(devices.size(), hidlDevices.size()); in main() 55 if (hidlDevices[i]->registerAsService(devices[i]->getName()) != android::OK) { in main() 56 LOG(ERROR) << "Could not register service " << devices[i]->getName(); in main()
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/ |
D | TvMediaOutputController.java | 131 List<MediaDevice> devices) { in buildMediaItems() argument 134 return buildInitialList(devices); in buildMediaItems() 136 return buildBetterSubsequentList(oldMediaItems, devices); in buildMediaItems() 140 private List<MediaItem> buildInitialList(List<MediaDevice> devices) { in buildInitialList() argument 141 sortMediaDevices(devices); in buildInitialList() 145 for (MediaDevice device : devices) { in buildInitialList() 163 List<MediaDevice> devices) { in buildBetterSubsequentList() argument 169 addItemsBasedOnConnection(targetMediaItems, oldMediaItems, devices, in buildBetterSubsequentList() 171 addItemsBasedOnConnection(targetMediaItems, oldMediaItems, devices, in buildBetterSubsequentList() 179 List<MediaItem> oldMediaItems, List<MediaDevice> devices, boolean isConnected) { in addItemsBasedOnConnection() argument [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothScanner.java | 98 public void onScanningStopped(ArrayList<Device> devices) { in onScanningStopped() argument 165 public final ArrayList<Device> devices; field in BluetoothScanner.ClientRecord 170 devices = new ArrayList<>(); in ClientRecord() 235 newClient.devices.add(target); in startListening() 328 for (int devPtr = client.devices.size() - 1; devPtr > -1; devPtr--) { in removeDevice() 329 Device d = client.devices.get(devPtr); in removeDevice() 331 client.devices.remove(devPtr); in removeDevice() 462 client.listener.onScanningStopped(client.devices); in sendScanningStopped() 477 for (int i = 0; i < client.devices.size(); i++) { in updateDeviceInClient() 478 if (client.devices.get(i).address.equals(device.address)) { in updateDeviceInClient() [all …]
|
/packages/modules/Bluetooth/system/bta/has/ |
D | has_ctp.h | 164 std::list<RawAddress> devices; member 203 : devices(other.devices), in HasCtpGroupOpCoordinator() 206 ref_cnt += other.devices.size(); in HasCtpGroupOpCoordinator() 220 devices = std::list<RawAddress>(targets.cbegin(), targets.cend()); in HasCtpGroupOpCoordinator() 222 ref_cnt += devices.size(); in HasCtpGroupOpCoordinator() 238 ref_cnt -= devices.size(); in ~HasCtpGroupOpCoordinator() 248 auto it = std::find(devices.begin(), devices.end(), addr); in SetCompleted() 249 if (it != devices.end()) { in SetCompleted() 250 devices.erase(it); in SetCompleted()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ShortcutsUpdater.java | 56 List<ShortcutInfo> devices = getDeviceShortcuts(roots); in update() local 58 for (ShortcutInfo s : devices) { in update() 62 mgr.setDynamicShortcuts(devices.subList(0, getNumDynSlots(mgr, devices.size()))); in update() 81 List<ShortcutInfo> devices = new ArrayList<>(); in getDeviceShortcuts() local 93 devices.add(0, createShortcut(root, R.drawable.ic_advanced_shortcut)); in getDeviceShortcuts() 96 devices.add(0, createShortcut(root, R.drawable.ic_folder_shortcut)); in getDeviceShortcuts() 108 return devices; in getDeviceShortcuts()
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidlLimited.cpp | 50 const auto devices = getExampleLimitedDevices(); in main() local 54 aidlDevices.reserve(devices.size()); in main() 55 std::transform(devices.begin(), devices.end(), std::back_inserter(aidlDevices), in main() 59 CHECK_EQ(devices.size(), aidlDevices.size()); in main() 61 const std::string name = devices[i]->getName(); in main()
|
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/ |
D | _rootcanal.py | 118 (devices, _) = self._read_device_list() 119 pts_id = max([id for (id, _) in devices]) 126 (devices, phys) = self._read_device_list() 127 for (device_id, _) in devices: 137 (devices, phys) = self._read_device_list() 138 for (device_id, device_name) in devices: 151 devices = [] 165 devices.append((device_id, device_name)) 173 return (devices, phys)
|
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/ |
D | uhid.rs | 35 devices: Vec<UHIDDevice<File>>, field 47 UHid { devices: Vec::<UHIDDevice<File>>::new() } in new() 76 Ok(d) => self.devices.push(d), in create() 84 for device in self.devices.iter_mut() { in clear() 90 self.devices.clear(); in clear() 95 self.devices.is_empty() in is_empty()
|
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/ |
D | LeAudioRecycleViewAdapter.java | 80 private final ArrayList<LeAudioDeviceStateWrapper> devices; field in LeAudioRecycleViewAdapter 87 devices = new ArrayList<>(); in LeAudioRecycleViewAdapter() 104 LeAudioDeviceStateWrapper leAudioDeviceStateWrapper = devices.get(position); in onBindViewHolder() 969 return devices.get(position).device.getAddress().hashCode(); in getItemId() 974 return devices != null ? devices.size() : 0; in getItemCount() 1002 public void updateLeAudioDeviceList(@Nullable List<LeAudioDeviceStateWrapper> devices) { in updateLeAudioDeviceList() argument 1003 this.devices.clear(); in updateLeAudioDeviceList() 1004 this.devices.addAll(devices); in updateLeAudioDeviceList() 1007 for (LeAudioDeviceStateWrapper dev_state : this.devices) { in updateLeAudioDeviceList() 1259 clickListener.onItemClick(devices.get(position)); in ViewHolder() [all …]
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestFree.cpp | 58 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()
|
D | TestPartitioning.cpp | 847 int partitionTheWork(const std::vector<std::shared_ptr<Device>>& devices, in partitionTheWork() argument 851 ->partitionTheWork(devices, static_cast<uint32_t>(preference), in partitionTheWork() 943 const std::vector<std::shared_ptr<Device>>& devices) { in PartitioningCompilation() argument 946 int result = m->createCompilation(&c, devices); in PartitioningCompilation() 1129 std::vector<std::shared_ptr<Device>> devices; in makeDevices() local 1173 devices.push_back(std::move(driverDevice)); in makeDevices() 1175 devices.push_back(DeviceManager::getCpuDevice()); in makeDevices() 1176 return devices; in makeDevices() 1827 const auto devices = makeDevices({{"V1_0", 0.6, HalVersion::V1_0, ~0U}, in TEST_F() local 1832 ASSERT_EQ(model.partitionTheWork(devices, ExecutePreference::PREFER_LOW_POWER, in TEST_F() [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothSummaryUpdater.java | 95 final Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices(); in getConnectedDeviceSummary() local 96 if (devices == null) { in getConnectedDeviceSummary() 99 } else if (devices.isEmpty()) { in getConnectedDeviceSummary() 103 for (BluetoothDevice device : devices) { in getConnectedDeviceSummary() 114 + devices.size()); in getConnectedDeviceSummary() 115 for (BluetoothDevice device : devices) { in getConnectedDeviceSummary()
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimDeviceManager.cpp | 159 std::vector<std::shared_ptr<IDevice>> devices; in registerDevices() local 160 devices.reserve(devicesToRegister.size()); in registerDevices() 170 devices.push_back(std::move(shimDevice)); in registerDevices() 187 devices.push_back(InvalidDevice::create()); in registerDevices() 190 CHECK_EQ(devices.size(), devicesToRegister.size()); in registerDevices() 195 const auto& device = devices[i]; in registerDevices() 208 LOG(INFO) << devices.size() << " NNAPI Devices/services registered, blocking"; in registerDevices()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioDeviceInfo.java | 128 boolean audioDevicesAdded(List<AudioDeviceInfo> devices) { in audioDevicesAdded() argument 129 Objects.requireNonNull(devices, "Audio devices can not be null"); in audioDevicesAdded() 136 for (int c = 0; c < devices.size(); c++) { in audioDevicesAdded() 137 if (getTypeLocked() != devices.get(c).getType()) { in audioDevicesAdded() 140 setAudioDeviceInfoLocked(devices.get(c)); in audioDevicesAdded() 156 public boolean audioDevicesRemoved(List<AudioDeviceInfo> devices) { in audioDevicesRemoved() argument 157 Objects.requireNonNull(devices, "Audio devices can not be null"); in audioDevicesRemoved() 164 for (int c = 0; c < devices.size(); c++) { in audioDevicesRemoved() 165 if (getTypeLocked() != devices.get(c).getType() in audioDevicesRemoved() 166 || !getAddressLocked().equals(devices.get(c).getAddress())) { in audioDevicesRemoved()
|
D | CarAudioUtils.java | 135 private static boolean excludesDynamicDevices(List<AudioDeviceAttributes> devices) { in excludesDynamicDevices() argument 136 for (int c = 0; c < devices.size(); c++) { in excludesDynamicDevices() 137 if (!isDynamicDeviceType(devices.get(c).getType())) { in excludesDynamicDevices() 173 List<AudioDeviceAttributes> devices = carVolumeGroupInfo.getAudioDeviceAttributes(); in getDynamicDevices() local 174 for (int c = 0; c < devices.size(); c++) { in getDynamicDevices() 175 if (!isDynamicDeviceType(devices.get(c).getType())) { in getDynamicDevices() 178 AudioDeviceInfo info = getAudioDeviceInfo(devices.get(c), manager); in getDynamicDevices()
|
/packages/modules/NeuralNetworks/driver/sample_shim/ |
D | ShellServiceSample.cpp | 64 int registerDevices(const std::string& driverPath, const std::vector<Names>& devices) { in registerDevices() argument 69 registerInvalidDevices(devices); in registerDevices() 79 registerInvalidDevices(devices); in registerDevices() 87 registerInvalidDevices(devices); in registerDevices() 101 for (const auto& device : devices) { in registerDevices()
|
/packages/modules/Bluetooth/tools/rootcanal/ |
D | CMakeLists.txt | 139 PROTOS ${ROOTCANAL_ROOT}/model/devices/scripted_beacon_ble_payload.proto 142 -I${ROOTCANAL_ROOT}/model/devices 143 PROTOC_OUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/model/devices) 207 model/devices/beacon.cc 208 model/devices/beacon_swarm.cc 209 model/devices/device.cc 210 model/devices/hci_device.cc 211 model/devices/link_layer_socket_device.cc 212 model/devices/scripted_beacon.cc 213 model/devices/sniffer.cc
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbUtil.java | 36 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in findAllPossibleAndroidDevices() local 37 ArrayList<UsbDevice> androidDevices = new ArrayList<>(devices.size()); in findAllPossibleAndroidDevices() 38 for (UsbDevice device : devices.values()) { in findAllPossibleAndroidDevices() 82 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in isDeviceConnected() local 83 for (UsbDevice dev : devices.values()) { in isDeviceConnected()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/ |
D | BatteryService.java | 240 List<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local 243 devices.add(sm.getDevice()); in getConnectedDevices() 246 return devices; in getConnectedDevices() 306 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local 308 return devices; in getDevicesMatchingConnectionStates() 312 return devices; in getDevicesMatchingConnectionStates() 323 devices.add(device); in getDevicesMatchingConnectionStates() 328 return devices; in getDevicesMatchingConnectionStates() 339 List<BluetoothDevice> devices = new ArrayList<>(); in getDevices() local 342 devices.add(sm.getDevice()); in getDevices() [all …]
|
/packages/modules/Bluetooth/system/bta/hearing_aid/ |
D | hearing_aid.cc | 145 devices.push_back(device); in Add() 149 for (auto it = devices.begin(); it != devices.end();) { in Remove() 155 it = devices.erase(it); in Remove() 161 auto iter = std::find_if(devices.begin(), devices.end(), in FindByAddress() 166 return (iter == devices.end()) ? nullptr : &(*iter); in FindByAddress() 171 devices.begin(), devices.end(), [&device](const HearingDevice& other) { in FindOtherConnectedDeviceFromSet() 176 return (iter == devices.end()) ? nullptr : &(*iter); in FindOtherConnectedDeviceFromSet() 180 auto iter = std::find_if(devices.begin(), devices.end(), in FindByConnId() 185 return (iter == devices.end()) ? nullptr : &(*iter); in FindByConnId() 189 auto iter = std::find_if(devices.begin(), devices.end(), in FindByGapHandle() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothDeviceManagerTest.java | 431 List<AudioDeviceInfo> devices = new ArrayList<>(); in testConnectDisconnectAudioHearingAid() local 432 devices.add(mockAudioDeviceInfo); in testConnectDisconnectAudioHearingAid() 435 .thenReturn(devices); in testConnectDisconnectAudioHearingAid() 466 List<AudioDeviceInfo> devices = new ArrayList<>(); in testConnectDisconnectAudioLeAudio() local 467 devices.add(mockAudioDeviceInfo); in testConnectDisconnectAudioLeAudio() 470 .thenReturn(devices); in testConnectDisconnectAudioLeAudio() 538 List<AudioDeviceInfo> devices = new ArrayList<>(); in testConnectMultipleLeAudioDevices() local 543 devices.add(leAudioDevice1); in testConnectMultipleLeAudioDevices() 544 devices.add(leAudioDevice2); in testConnectMultipleLeAudioDevices() 547 .thenReturn(devices); in testConnectMultipleLeAudioDevices() [all …]
|