Home
last modified time | relevance | path

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

12345

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothScanner.java98 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()
483 client.listener.onScanningStopped(client.devices); in sendScanningStopped()
494 client.devices.add(device); in sendDeviceAdded()
508 for (int ptr = client.devices.size() - 1; ptr > -1; ptr--) { in sendDeviceChanged()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DShortcutsUpdater.java56 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/runtime/test/
DTestPartitioning.cpp846 int partitionTheWork(const std::vector<std::shared_ptr<Device>>& devices, in partitionTheWork() argument
850 ->partitionTheWork(devices, static_cast<uint32_t>(preference), in partitionTheWork()
942 const std::vector<std::shared_ptr<Device>>& devices) { in PartitioningCompilation() argument
945 int result = m->createCompilation(&c, devices); in PartitioningCompilation()
1128 std::vector<std::shared_ptr<Device>> devices; in makeDevices() local
1172 devices.push_back(std::move(driverDevice)); in makeDevices()
1174 devices.push_back(DeviceManager::getCpuDevice()); in makeDevices()
1175 return devices; in makeDevices()
1826 const auto devices = makeDevices({{"V1_0", 0.6, HalVersion::V1_0, ~0U}, in TEST_F() local
1831 ASSERT_EQ(model.partitionTheWork(devices, ExecutePreference::PREFER_LOW_POWER, in TEST_F()
[all …]
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()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDeviceManager.cpp146 std::vector<std::shared_ptr<IDevice>> devices; in registerDevices() local
147 devices.reserve(devicesToRegister.size()); in registerDevices()
157 devices.push_back(std::move(shimDevice)); in registerDevices()
174 devices.push_back(InvalidDevice::create()); in registerDevices()
177 CHECK_EQ(devices.size(), devicesToRegister.size()); in registerDevices()
182 const auto& device = devices[i]; in registerDevices()
195 LOG(INFO) << devices.size() << " NNAPI Devices/services registered, blocking"; in registerDevices()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdater.java95 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/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothProfileDeviceManagerTest.java211 String devices = Settings.Secure.getStringForUser(mMockContext.getContentResolver(), in getSettingsDeviceList() local
213 if (devices == null) devices = ""; in getSettingsDeviceList()
214 return devices; in getSettingsDeviceList()
218 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in makeDeviceList() local
222 devices.add(device); in makeDeviceList()
224 return devices; in makeDeviceList()
232 List<String> devices) { in setPreconditionsAndStart() argument
253 for (BluetoothDevice device : makeDeviceList(devices)) { in setPreconditionsAndStart()
336 ArrayList<BluetoothDevice> devices = mProfileDeviceManager.getDeviceListSnapshot(); in assertDeviceList() local
338 Assert.assertEquals(expectedDevices, devices); in assertDeviceList()
[all …]
/packages/modules/NeuralNetworks/driver/sample_shim/
DShellServiceSample.cpp64 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/services/Car/service/src/com/android/car/
DBluetoothProfileDeviceManager.java400 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in load() local
404 devices.add(device); in load()
412 mPrioritizedDevices = devices; in load()
415 logd("Loaded Priority list: " + devices); in load()
454 ArrayList<BluetoothDevice> devices = getDeviceListSnapshot(); in sync() local
455 for (BluetoothDevice device : devices) { in sync()
469 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDeviceListSnapshot() local
471 devices = (ArrayList) mPrioritizedDevices.clone(); in getDeviceListSnapshot()
473 return devices; in getDeviceListSnapshot()
809 ArrayList<BluetoothDevice> devices = getDeviceListSnapshot(); in dump() local
[all …]
/packages/modules/adb/
DOVERVIEW.TXT7 - keep track of all Android devices and emulators instances
19 is to sense the USB ports to know when devices are attached/removed,
22 It thus maintains a list of "connected devices" and assigns a 'state'
28 services and devices.
35 (through USB for devices, through TCP for emulators) and provide a
44 devices when they are in the bootloader or recovery mode.
64 communicate with a device at all. A typical example is "adb devices"
65 which is used to return the list of currently known devices and their
123 - USB transports, for physical devices through USB
DSERVICES.TXT15 host:devices
16 host:devices-l
17 Ask to return the list of available Android devices and their
18 state. devices-l includes the device paths in the state.
23 host:track-devices
24 This is a variant of host:devices which doesn't close the
28 to track the state of connected devices in real-time without
50 devices. (Used to implement the -d convenience option)
178 privileges and thus may not run on all devices. <path> is a full
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbUtil.java36 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()
88 HashMap<String, UsbDevice> devices = usbManager.getDeviceList(); in isDeviceConnected() local
89 for (UsbDevice dev : devices.values()) { in isDeviceConnected()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaDeviceUpdateWorkerTest.java140 final List<MediaDevice> devices = in onDeviceListUpdate_sameDeviceList_shouldBeEqual() local
143 assertThat(devices.get(0).getId()).isEqualTo(newDevices.get(0).getId()); in onDeviceListUpdate_sameDeviceList_shouldBeEqual()
144 assertThat(devices.get(1).getId()).isEqualTo(newDevices.get(1).getId()); in onDeviceListUpdate_sameDeviceList_shouldBeEqual()
159 final List<MediaDevice> devices = in onDeviceListUpdate_add1DeviceToDeviceList_shouldBeEqual() local
162 assertThat(devices.size()).isEqualTo(newDevices.size()); in onDeviceListUpdate_add1DeviceToDeviceList_shouldBeEqual()
173 final List<MediaDevice> devices = in onDeviceListUpdate_less1DeviceToDeviceList_shouldBeEqual() local
176 assertThat(devices.size()).isEqualTo(newDevices.size()); in onDeviceListUpdate_less1DeviceToDeviceList_shouldBeEqual()
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioService.java306 List<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local
309 devices.add(sm.getDevice()); in getConnectedDevices()
312 return devices; in getConnectedDevices()
317 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local
319 return devices; in getDevicesMatchingConnectionStates()
323 return devices; in getDevicesMatchingConnectionStates()
338 devices.add(device); in getDevicesMatchingConnectionStates()
343 return devices; in getDevicesMatchingConnectionStates()
354 List<BluetoothDevice> devices = new ArrayList<>(); in getDevices() local
357 devices.add(sm.getDevice()); in getDevices()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/inject/
DBluetoothSingleHfpModule.java76 devices -> devices != null && !devices.isEmpty() ? devices.get(0) : null); in provideCurrentHfpDeviceLiveData()
/packages/apps/Car/Dialer/framework/fake/src/com/android/car/dialer/framework/
DFakeModule.java72 devices -> devices != null && !devices.isEmpty() ? devices.get(0) : null); in provideCurrentHfpDeviceLiveData()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java341 List<BluetoothDevice> devices = new ArrayList<>(); in getConnectedDevices() local
344 devices.add(sm.getDevice()); in getConnectedDevices()
347 return devices; in getConnectedDevices()
400 ArrayList<BluetoothDevice> devices = new ArrayList<>(); in getDevicesMatchingConnectionStates() local
402 return devices; in getDevicesMatchingConnectionStates()
406 return devices; in getDevicesMatchingConnectionStates()
421 devices.add(device); in getDevicesMatchingConnectionStates()
426 return devices; in getDevicesMatchingConnectionStates()
437 List<BluetoothDevice> devices = new ArrayList<>(); in getDevices() local
440 devices.add(sm.getDevice()); in getDevices()
[all …]
/packages/services/Mtp/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()
/packages/apps/Settings/src/com/android/settings/media/
DMediaOutputIndicatorWorker.java135 public void onDeviceListUpdate(List<MediaDevice> devices) { in onDeviceListUpdate() argument
136 buildMediaDevices(devices); in onDeviceListUpdate()
140 private void buildMediaDevices(List<MediaDevice> devices) { in buildMediaDevices() argument
142 mMediaDevices.addAll(devices); in buildMediaDevices()
DMediaDeviceUpdateWorker.java104 public void onDeviceListUpdate(List<MediaDevice> devices) { in onDeviceListUpdate() argument
105 buildMediaDevices(devices); in onDeviceListUpdate()
109 private void buildMediaDevices(List<MediaDevice> devices) { in buildMediaDevices() argument
111 mMediaDevices.addAll(devices); in buildMediaDevices()
/packages/apps/Settings/src/com/android/settings/sound/
DAudioSwitchPreferenceController.java196 final List<BluetoothDevice> devices = hfpProfile.getConnectedDevices(); in getConnectedHfpDevices() local
197 for (BluetoothDevice device : devices) { in getConnectedHfpDevices()
227 final List<BluetoothDevice> devices = hapProfile.getConnectedDevices(); in getConnectedHearingAidDevices() local
228 for (BluetoothDevice device : devices) { in getConnectedHearingAidDevices()
294 public void onAudioDevicesRemoved(AudioDeviceInfo[] devices) { in onAudioDevicesRemoved() argument
/packages/modules/NeuralNetworks/runtime/
DMemory.cpp430 std::set<const Device*> devices; in getDevices() local
433 devices.insert(device); in getDevices()
435 return devices; in getDevices()
448 std::set<const Device*> devices = getDevices(mDesc); in finish() local
449 if (devices.empty()) { in finish()
452 } else if (devices.size() == 1) { in finish()
453 mAllocator = *devices.begin(); in finish()
459 mSupportsAhwb = std::all_of(devices.begin(), devices.end(), [](const auto* device) { in finish()
DModelBuilder.h72 const std::vector<std::shared_ptr<Device>>& devices,
130 int partitionTheWork(const std::vector<std::shared_ptr<Device>>& devices, uint32_t preference,
150 const std::vector<std::shared_ptr<Device>>& devices,
162 const std::vector<std::shared_ptr<Device>>& devices,
/packages/apps/Car/Dialer/src/com/android/car/dialer/bluetooth/
DBluetoothPairListLiveData.java84 Set<BluetoothDevice> devices = mBluetoothAdapter.getBondedDevices(); in updateList() local
85 L.d(TAG, "updateList to %s", devices); in updateList()
86 setValue(devices); in updateList()
/packages/services/Telecomm/src/com/android/server/telecom/
DWiredHeadsetManager.java53 public void onAudioDevicesRemoved(AudioDeviceInfo[] devices) { in onAudioDevicesRemoved() argument
105 AudioDeviceInfo[] devices = mAudioManager.getDevices(AudioManager.GET_DEVICES_ALL); in isWiredHeadsetPluggedIn() local
107 for (AudioDeviceInfo device : devices) { in isWiredHeadsetPluggedIn()

12345