Home
last modified time | relevance | path

Searched refs:device_path (Results 1 – 25 of 127) sorted by relevance

123456

/external/linux-kselftest/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c64 device_path[sizeof(P_tmpdir "/binderfs_XXXXXX/") + BINDERFS_MAX_NAME]; in __do_binderfs_test() local
90 snprintf(device_path, sizeof(device_path), "%s/binder-control", binderfs_mntpt); in __do_binderfs_test()
91 fd = open(device_path, O_RDONLY | O_CLOEXEC); in __do_binderfs_test()
113 snprintf(device_path, sizeof(device_path), "%s/my-binder", binderfs_mntpt); in __do_binderfs_test()
114 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test()
135 ret = unlink(device_path); in __do_binderfs_test()
144 snprintf(device_path, sizeof(device_path), "%s/binder-control", binderfs_mntpt); in __do_binderfs_test()
145 ret = unlink(device_path); in __do_binderfs_test()
159 snprintf(device_path, sizeof(device_path), "%s/features/%s", in __do_binderfs_test()
161 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test()
[all …]
/external/skia/infra/bots/recipe_modules/flavor/
Dssh.py78 device_path = self.device_path_join(self.device_dirs.bin_dir, self.app_name)
79 self.copy_file_to_device(host_path, device_path)
80 self.ssh('make %s executable' % self.app_name, 'chmod', '+x', device_path)
97 def scp_device_path(self, device_path): argument
98 return '%s:%s' % (self.user_ip, device_path)
100 def copy_file_to_device(self, host_path, device_path): argument
101 device_path = self.scp_device_path(device_path)
102 self._run('scp %s %s' % (host_path, device_path),
103 ['scp'] + self._ssh_args + [host_path, device_path], infra_step=True)
Dchromebook.py46 def copy_directory_contents_to_device(self, host_path, device_path): argument
47 self._copy_dir(host_path, self.scp_device_path(device_path))
49 def copy_directory_contents_to_host(self, device_path, host_path): argument
50 self._copy_dir(self.scp_device_path(device_path), host_path)
/external/rust/android-crates-io/crates/uefi-raw/src/protocol/device_path/
Ddevice_path_gen.rs9 use crate::protocol::device_path;
13 use device_path::DevicePathProtocol as DevicePathHeader;
15 use device_path::DeviceType;
70 pub interface_type: device_path::hardware::BmcInterfaceType,
117 pub primary_secondary: device_path::messaging::PrimarySecondary,
118 pub master_slave: device_path::messaging::MasterSlave,
213 pub ip_address_origin: device_path::messaging::Ipv4AddressOrigin,
226 pub ip_address_origin: device_path::messaging::Ipv6AddressOrigin,
240 pub resource_flags: device_path::messaging::InfinibandResourceFlags,
253 pub parity: device_path::messaging::Parity,
[all …]
/external/python/pyserial/serial/tools/
Dlist_ports_linux.py31 self.device_path = os.path.realpath('/sys/class/tty/{}/device'.format(self.name))
32 … self.subsystem = os.path.basename(os.path.realpath(os.path.join(self.device_path, 'subsystem')))
34 self.device_path = None
38 self.usb_interface_path = os.path.dirname(self.device_path)
40 self.usb_interface_path = self.device_path
69 self.hwid = self.read_line(self.device_path, 'id')
72 self.hwid = os.path.basename(self.device_path)
/external/flashrom/
Di2c_helper_linux.c104 char *device_path = extract_programmer_param_str(cfg, "devpath"); in i2c_open_from_programmer_params() local
106 if (device_path != NULL && bus_str != NULL) { in i2c_open_from_programmer_params()
110 if (device_path == NULL && bus_str == NULL) { in i2c_open_from_programmer_params()
115 if (device_path != NULL) in i2c_open_from_programmer_params()
116 fd = i2c_open_path(device_path, addr, force); in i2c_open_from_programmer_params()
122 free(device_path); in i2c_open_from_programmer_params()
/external/autotest/client/common_lib/cros/network/
Dinterface.py192 def device_path(self): member in Interface
195 device_path = os.path.join(DEVICE_INFO_ROOT, self._name, 'device')
196 if not self.host.path_exists(device_path):
197 logging.error('No device information found at %s', device_path)
200 return device_path
222 os.path.join(self.device_path, 'driver', 'module'),
235 path_readlink_result = self._run('readlink "%s"' % self.device_path)
243 device_path = self.device_path
244 if not device_path:
252 vendor_id = read_file(os.path.join(device_path, 'vendor'))
[all …]
/external/pigweed/pw_bluetooth_sapphire/fuchsia/bt_host/
Dhost.cc33 const std::string& device_path, in BtHostComponent() argument
36 device_path_(device_path), in BtHostComponent()
53 async_dispatcher_t* dispatcher, const std::string& device_path) { in Create() argument
55 new BtHostComponent(dispatcher, device_path, /*initialize_rng=*/true)); in Create()
61 async_dispatcher_t* dispatcher, const std::string& device_path) { in CreateForTesting() argument
63 new BtHostComponent(dispatcher, device_path, /*initialize_rng=*/false)); in CreateForTesting()
Dhost.h35 async_dispatcher_t* dispatcher, const std::string& device_path);
39 async_dispatcher_t* dispatcher, const std::string& device_path);
62 std::string device_path() { return device_path_; } in device_path() function
69 const std::string& device_path,
/external/libusb/examples/
Dfxload.c88 const char *device_path = getenv("DEVICE"); in main() local
113 device_path = optarg; in main()
114 if (sscanf(device_path, "%u,%u", &busnum, &devaddr) != 2 ) { in main()
157 if ((device_id != NULL) && (device_path != NULL)) { in main()
185 if ((type == NULL) || (device_id == NULL) || (device_path != NULL)) { in main()
193 if ((type != NULL) && (device_path != NULL)) { in main()
208 ((type == NULL) && (device_id == NULL) && (device_path == NULL)) || in main()
212 ((type == NULL) && (device_path != NULL) && (busnum == _busnum) && (devaddr == _devaddr)) || in main()
214 …((type != NULL) && (device_id == NULL) && (device_path == NULL) && (fx_type == known_device[j].typ… in main()
/external/vboot_reference/firmware/stub/
Dtpm_lite_stub.c188 const char *device_path; in vb2ex_tpm_open() local
195 device_path = getenv("TPM_DEVICE_PATH"); in vb2ex_tpm_open()
196 if (device_path == NULL) { in vb2ex_tpm_open()
197 device_path = TPM_DEVICE_PATH; in vb2ex_tpm_open()
203 tpm_fd = open(device_path, O_RDWR | O_CLOEXEC); in vb2ex_tpm_open()
211 device_path, strerror(errno)); in vb2ex_tpm_open()
219 device_path, strerror(saved_errno)); in vb2ex_tpm_open()
/external/tensorflow/tensorflow/dtensor/mlir/
Dcollectives_common.cc77 std::string device_path = in DeviceTypeFromMesh() local
79 size_t device_path_pos = device_path.find_last_of(':'); in DeviceTypeFromMesh()
81 return errors::InvalidArgument("Unexpected device path: ", device_path); in DeviceTypeFromMesh()
83 return device_path.substr(0, device_path_pos); in DeviceTypeFromMesh()
/external/angle/src/tests/py_utils/
Dandroid_helper.py216 def _ReadDeviceFile(device_path): argument
218 _AdbRun(['pull', device_path, tempfile_path])
223 def _RemoveDeviceFile(device_path): argument
224 _AdbShell('rm -f ' + device_path + ' || true') # ignore errors
296 def _CompareHashes(local_path, device_path): argument
303 path=device_path, gz_tail_size=gz_tail_size)
305 cmd = 'test -f {path} && sha256sum -b {path} || true'.format(path=device_path)
307 if _Global.use_run_as and device_path.startswith('/data'):
388 def _HashesMatch(local_path, device_path): argument
390 if _CompareHashes(local_path, device_path):
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils.py380 def _IterPushableComponents(host_path, device_path): argument
409 os.path.realpath(host_path), device_path, not os.path.islink(host_path))
416 device_path, child)))
420 os.path.realpath(host_path), device_path,
1997 device_path = posixpath.join(device_dir, relative_dir).rstrip('/')
1998 expected_device_nodes.add(device_path)
1999 device_dirs_to_push_to.add(device_path)
2060 for host_path, device_path in possibly_stale_tuples:
2061 device_checksum = device_checksums.get(device_path, None)
2064 up_to_date.add(device_path)
[all …]
/external/cronet/tot/build/android/pylib/utils/
Ddevice_dependencies.py150 def SubstituteDeviceRootSingle(device_path, device_root): argument
151 if not device_path:
153 if isinstance(device_path, list):
154 return posixpath.join(*(p if p else device_root for p in device_path))
155 return device_path
/external/cronet/stable/build/android/pylib/utils/
Ddevice_dependencies.py150 def SubstituteDeviceRootSingle(device_path, device_root): argument
151 if not device_path:
153 if isinstance(device_path, list):
154 return posixpath.join(*(p if p else device_root for p in device_path))
155 return device_path
/external/angle/build/android/pylib/utils/
Ddevice_dependencies.py151 def SubstituteDeviceRootSingle(device_path, device_root): argument
152 if not device_path:
154 if isinstance(device_path, list):
155 return posixpath.join(*(p if p else device_root for p in device_path))
156 return device_path
/external/rust/android-crates-io/crates/uefi/src/proto/device_path/
Dtext.rs11 use crate::proto::device_path::{DevicePath, DevicePathNode};
16 use uefi_raw::protocol::device_path::{DevicePathFromTextProtocol, DevicePathToTextProtocol};
109 device_path: &DevicePath, in convert_device_path_to_text()
115 device_path.as_ffi_ptr().cast(), in convert_device_path_to_text()
Dbuild.rs8 pub use crate::proto::device_path::device_path_gen::build::*;
11 use crate::proto::device_path::{DevicePath, DevicePathNode};
244 use crate::proto::device_path::media::{PartitionFormat, PartitionSignature};
245 use crate::proto::device_path::messaging::{
266 let node: &crate::proto::device_path::acpi::Adr = in test_acpi_adr()
301 let node: &crate::proto::device_path::acpi::Expanded = in test_acpi_expanded()
360 let mut node: &crate::proto::device_path::messaging::RestService = in test_messaging_rest_service()
Ddevice_path_gen.rs12 use crate::proto::device_path::{
315 pub(super) interface_type: device_path::hardware::BmcInterfaceType,
322 pub fn interface_type(&self) -> device_path::hardware::BmcInterfaceType { in interface_type()
709 pub(super) primary_secondary: device_path::messaging::PrimarySecondary,
710 pub(super) master_slave: device_path::messaging::MasterSlave,
717 pub fn primary_secondary(&self) -> device_path::messaging::PrimarySecondary { in primary_secondary()
723 pub fn master_slave(&self) -> device_path::messaging::MasterSlave { in master_slave()
1300 pub(super) ip_address_origin: device_path::messaging::Ipv4AddressOrigin,
1339 pub fn ip_address_origin(&self) -> device_path::messaging::Ipv4AddressOrigin { in ip_address_origin()
1393 pub(super) ip_address_origin: device_path::messaging::Ipv6AddressOrigin,
[all …]
/external/libcups/scheduler/
Dcolorman.c121 static void colord_device_add_profile(const char *device_path,
901 const char *device_path; /* Device object path */ in colord_create_device() local
914 device_path = device_id; in colord_create_device()
922 dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &device_path); in colord_create_device()
971 dbus_message_iter_get_basic(&args, &device_path); in colord_create_device()
972 cupsdLogMessage(CUPSD_LOG_DEBUG, "Created device \"%s\".", device_path); in colord_create_device()
982 colord_device_add_profile(device_path, profile_path, relation); in colord_create_device()
1113 char *device_path; /* Device object path */ in colord_delete_device() local
1120 if ((device_path = colord_find_device(device_id)) == NULL) in colord_delete_device()
1133 dbus_message_iter_append_basic(&args, DBUS_TYPE_OBJECT_PATH, &device_path); in colord_delete_device()
[all …]
/external/cpuinfo/scripts/
Dandroid-device-dump.py252 def adb_push(local_path, device_path): argument
256 adb = subprocess.Popen(["adb", "push", local_path, device_path], env=env)
260 def adb_pull(device_path, local_path): argument
261 if any(device_path.startswith(prefix) for prefix in SHELL_PREFIX):
262 content = adb_shell(["cat", device_path])
272 adb = subprocess.Popen(["adb", "pull", device_path, local_path], env=env)
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dadb_wrapper_devicetest.py67 device_path = '/data/local/tmp/testfile.txt'
69 self._adb.Push(path, device_path)
73 self.assertEqual(self._adb.Shell('cat %s' % device_path), 'foo')
74 self._adb.Pull(device_path, local_tmpdir)
/external/rust/android-crates-io/crates/uefi/src/
Dboot.rs30 use crate::proto::device_path::LoadedImageDevicePath;
31 use crate::proto::device_path::{DevicePath, FfiDevicePath};
754 device_path: &mut &DevicePath, in locate_device_path()
760 let mut device_path_ptr: *const uefi_raw::protocol::device_path::DevicePathProtocol = in locate_device_path()
761 device_path.as_ffi_ptr().cast(); in locate_device_path()
765 *device_path = DevicePath::from_ffi_ptr(device_path_ptr.cast()); in locate_device_path()
1075 let (boot_policy, device_path, source_buffer, source_size) = source.to_ffi_params(); in load_image()
1082 device_path.cast(), in load_image()
1354 let device_path = open_protocol_exclusive::<DevicePath>(device_handle)?; in get_image_file_system() localVariable
1356 let device_handle = locate_device_path::<SimpleFileSystem>(&mut &*device_path)?; in get_image_file_system()
[all …]
/external/autotest/client/cros/storage_tests/
Dfio_test.py65 device_path = findsys.stdout.rstrip()
67 removable_file = os.path.join(device_path, "removable")
74 dir_path = utils.run('dirname %s' % device_path).stdout.rstrip()
81 vendor_file = device_path.replace('block/%s' % device, 'vendor')
82 model_file = device_path.replace('block/%s' % device, 'model')

123456