Home
last modified time | relevance | path

Searched refs:device_name (Results 1 – 21 of 21) sorted by relevance

/packages/modules/Bluetooth/tools/rootcanal/lib/hci/
Dpcap_filter.cc193 std::vector<uint8_t> device_name(entry.data_.begin() + 1, in FilterLengthAndData() local
195 device_name = ChangeDeviceName(device_name); in FilterLengthAndData()
196 entry.data_.insert(device_name.begin(), device_name.end(), in FilterLengthAndData()
446 std::vector<uint8_t> const& device_name) { in ChangeDeviceName() argument
448 if (old_device_name == device_name) { in ChangeDeviceName()
454 generate_device_name(device_name_map.size(), device_name.size(), true); in ChangeDeviceName()
456 std::vector<uint8_t>(device_name), in ChangeDeviceName()
463 std::array<uint8_t, 248> const& device_name) { in ChangeDeviceName() argument
466 device_name.begin(), device_name.end())) { in ChangeDeviceName()
475 generate_device_name(device_name_map.size(), device_name.size(), false); in ChangeDeviceName()
[all …]
/packages/services/DeviceAsWebcam/tests/
Dwindows_webcam_test.py36 device_name = ''
42 device_name = camera[0]
48 logging.info('Using webcam: %s', device_name)
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbluetooth_adv.rs298 fn append_device_name(dest: &mut Vec<u8>, device_name: &String) { in append_device_name()
299 if device_name.len() == 0 { in append_device_name()
303 let (ad_type, name) = if device_name.len() > DEVICE_NAME_MAX { in append_device_name()
304 (SHORTENED_LOCAL_NAME, [&device_name.as_bytes()[..DEVICE_NAME_MAX], &[0]].concat()) in append_device_name()
306 (COMPLETE_LOCAL_NAME, [device_name.as_bytes(), &[0]].concat()) in append_device_name()
328 pub fn make_with(&self, device_name: &String) -> Vec<u8> { in make_with()
331 AdvertiseData::append_device_name(&mut bytes, device_name); in make_with()
Dbluetooth_gatt.rs2014 let device_name = self.get_adapter_name(); in start_advertising_set() localVariable
2016 let adv_bytes = advertise_data.make_with(&device_name); in start_advertising_set()
2018 if let Some(d) = scan_response { d.make_with(&device_name) } else { Vec::<u8>::new() }; in start_advertising_set()
2025 if let Some(d) = periodic_data { d.make_with(&device_name) } else { Vec::<u8>::new() }; in start_advertising_set()
2104 let device_name = self.get_adapter_name(); in set_advertising_data() localVariable
2105 let bytes = data.make_with(&device_name); in set_advertising_data()
2135 let device_name = self.get_adapter_name(); in set_scan_response_data() localVariable
2136 let bytes = data.make_with(&device_name); in set_scan_response_data()
2213 let device_name = self.get_adapter_name(); in set_periodic_advertising_data() localVariable
2214 let bytes = data.make_with(&device_name); in set_periodic_advertising_data()
/packages/modules/adb/client/
Dusb_windows.cpp558 if (!known_device(next_interface->device_name)) { in find_devices()
560 handle = do_usb_open(next_interface->device_name); in find_devices()
564 D("adding a new device %ls", next_interface->device_name); in find_devices()
590 D("register_new_device failed for %ls", next_interface->device_name); in find_devices()
/packages/modules/adb/
Dtest_adb.py502 device_name = "localhost:{}".format(port)
504 "connect", device_name])
506 "connected to {}".format(device_name).encode("utf8"))
509 self.assertEqual(_devices(server_port), [[device_name, "device"]])
518 self.assertEqual(_devices(server_port), [[device_name, "offline"]])
522 "disconnect", device_name])
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/lib/
Duwb_base_test.py53 device_name = "initiator" if not count else "responder"
54 test_device_name = test_name + "_" + device_name
/packages/modules/Bluetooth/tools/rootcanal/include/hci/
Dpcap_filter.h96 std::array<uint8_t, 248> const& device_name);
98 std::vector<uint8_t> const& device_name);
/packages/modules/Bluetooth/system/gd/security/pairing/
Dclassic_pairing_handler.h45 std::string device_name, in ClassicPairingHandler() argument
58 device_name_(std::move(device_name)) {} in ClassicPairingHandler()
/packages/modules/Bluetooth/system/blueberry/utils/
Dandroid_bluetooth_decorator.py549 def scan_and_get_ble_device_address(self, device_name: str, timeout_sec: float = 30) -> str:
565 self._ad.sl4a.bleSetScanFilterDeviceName(device_name)
572 … 'Timed out %ds after waiting for phone finding BLE device: %s.' % (timeout_sec, device_name))
580 device_name = self._ad.sl4a.bluetoothGetLocalName()
581 logging.info('Bluetooth device name of AndroidDevice: %s', device_name)
582 return device_name
/packages/modules/Bluetooth/system/blueberry/controllers/
Dbt_stub.py46 def set_device_name(self, device_name: str) -> None:
/packages/modules/Connectivity/nearby/tests/multidevices/host/test_data/fastpair/
Dpixelbuds-a_account_devicemeta_json.txt28 "device_name": "",
Dsimulator_account_devicemeta_json.txt30 "device_name": "",
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dgap.py155 device_name = scan.data.complete_local_name
156 if "pts" in device_name.lower():
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/gatt/
Dgatt_connect_low_layer_test.py77 def _start_cert_advertising_with_random_address(self, device_name, random_address): argument
79 data=list(bytes(device_name, encoding='utf8')))
/packages/modules/Bluetooth/android/app/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp573 if (oob_data.device_name[i] == 0) { in createClassicOobDataObject()
581 reinterpret_cast<jbyte*>(oob_data.device_name)); in createClassicOobDataObject()
629 if (oob_data.device_name[i] == 0) { in createLeOobDataObject()
637 reinterpret_cast<jbyte*>(oob_data.device_name)); in createLeOobDataObject()
1323 memcpy(oob_data.device_name, deviceNameBytes, len); in set_data()
/packages/modules/Connectivity/nearby/service/proto/src/fastpair/
Dcache.proto123 string device_name = 6; field
355 string device_name = 5; field
/packages/modules/Bluetooth/system/include/hardware/
Dbluetooth.h425 uint8_t device_name[OOB_NAME_MAX_SIZE]; /* Name of the device */ member
/packages/modules/Bluetooth/system/btif/src/
Dbluetooth.cc1272 oob_data.device_name[i] = local_name[i]; in invoke_oob_data_request_cb()
Dbtif_dm.cc3796 oob_data_to_use.device_name, in btif_dm_ble_sc_oob_req_evt()
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DLeAudioRecycleViewAdapter.java1002 deviceName = itemView.findViewById(R.id.device_name); in ViewHolder()