Home
last modified time | relevance | path

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

12

/external/skqp/infra/bots/recipe_modules/flavor/
Dgn_chromebook_flavor.py176 def _prefix_device_path(self, device_path): argument
177 return '%s:%s' % (self.user_ip, device_path)
179 def copy_file_to_device(self, host_path, device_path): argument
180 device_path = self._prefix_device_path(device_path)
182 self.m.python.inline(str('scp %s %s' % (host_path, device_path)),
189 """, args=[host_path, device_path], infra_step=True)
203 def copy_directory_contents_to_device(self, host_path, device_path): argument
204 self._copy_dir(host_path, self._prefix_device_path(device_path))
206 def copy_directory_contents_to_host(self, device_path, host_path): argument
207 self._copy_dir(self._prefix_device_path(device_path), host_path)
Dapi.py102 def copy_file_to_device(self, host_path, device_path): argument
103 return self._f.copy_file_to_device(host_path, device_path)
141 host_path, device_path, test_expected_version, argument
155 self.create_clean_device_dir(device_path)
157 host_path, device_path)
Ddefault_flavor.py126 def copy_file_to_device(self, host_path, device_path): argument
130 if str(host_path) != str(device_path):
134 str(host_path), str(device_path)))
/external/skia/infra/bots/recipe_modules/flavor/
Dgn_chromebook_flavor.py176 def _prefix_device_path(self, device_path): argument
177 return '%s:%s' % (self.user_ip, device_path)
179 def copy_file_to_device(self, host_path, device_path): argument
180 device_path = self._prefix_device_path(device_path)
182 self.m.python.inline(str('scp %s %s' % (host_path, device_path)),
189 """, args=[host_path, device_path], infra_step=True)
203 def copy_directory_contents_to_device(self, host_path, device_path): argument
204 self._copy_dir(host_path, self._prefix_device_path(device_path))
206 def copy_directory_contents_to_host(self, device_path, host_path): argument
207 self._copy_dir(self._prefix_device_path(device_path), host_path)
Dapi.py102 def copy_file_to_device(self, host_path, device_path): argument
103 return self._f.copy_file_to_device(host_path, device_path)
141 host_path, device_path, test_expected_version, argument
155 self.create_clean_device_dir(device_path)
157 host_path, device_path)
Ddefault_flavor.py126 def copy_file_to_device(self, host_path, device_path): argument
130 if str(host_path) != str(device_path):
134 str(host_path), str(device_path)))
/external/webrtc/talk/media/devices/
Dv4llookup.cc53 bool V4LLookup::CheckIsV4L2Device(const std::string& device_path) { in CheckIsV4L2Device() argument
57 if (lstat(device_path.c_str(), &s) != 0 || !S_ISCHR(s.st_mode)) return false; in CheckIsV4L2Device()
66 video_fd = ::open(device_path.c_str(), O_RDONLY | O_NONBLOCK); in CheckIsV4L2Device()
74 LOG(LS_INFO) << "Found V4L2 capture device " << device_path; in CheckIsV4L2Device()
78 LOG_ERRNO(LS_ERROR) << "VIDIOC_QUERYCAP failed for " << device_path; in CheckIsV4L2Device()
81 LOG_ERRNO(LS_ERROR) << "Failed to open " << device_path; in CheckIsV4L2Device()
Dv4llookup.h46 static bool IsV4L2Device(const std::string& device_path) { in IsV4L2Device() argument
47 return GetV4LLookup()->CheckIsV4L2Device(device_path); in IsV4L2Device()
64 virtual bool CheckIsV4L2Device(const std::string& device_path);
Dlinuxdevicemanager.cc268 std::string device_path = "/dev/" + filename; in ScanV4L2Devices() local
270 if (V4LLookup::IsV4L2Device(device_path)) { in ScanV4L2Devices()
272 Device(GetVideoDeviceName(meta, filename), device_path)); in ScanV4L2Devices()
/external/libmojo/third_party/catapult/devil/devil/android/
Ddevice_utils.py1209 def _GetChangedAndStaleFiles(self, host_path, device_path, track_stale=False): argument
1228 device_path = device_path.rstrip('/')
1230 specific_device_paths = [device_path]
1237 posixpath.join(device_path, relative_dir, f) for f in filenames)
1244 cache_entry = self._cache['device_path_checksums'].get(device_path)
1251 self._cache['device_path_checksums'][device_path] = cache_entry
1259 return ([(host_path, device_path)], [], [], lambda: 0)
1266 device_checksum = device_checksums.get(device_path)
1270 to_push.append((host_path, device_path))
1274 device_path, os.path.relpath(host_abs_path, host_path))
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils.py1414 def _GetChangedAndStaleFiles(self, host_path, device_path, track_stale=False): argument
1433 device_path = device_path.rstrip('/')
1435 specific_device_paths = [device_path]
1442 posixpath.join(device_path, relative_dir, f) for f in filenames)
1449 cache_entry = self._cache['device_path_checksums'].get(device_path)
1456 self._cache['device_path_checksums'][device_path] = cache_entry
1464 return ([(host_path, device_path)], [], [], lambda: 0)
1471 device_checksum = device_checksums.get(device_path)
1475 to_push.append((host_path, device_path))
1479 device_path, os.path.relpath(host_abs_path, host_path))
[all …]
/external/autotest/client/common_lib/cros/network/
Dinterface.py158 def device_path(self): member in Interface
161 device_path = os.path.join(DEVICE_INFO_ROOT, self._name, 'device')
162 if not self.host.path_exists(device_path):
163 logging.error('No device information found at %s', device_path)
166 return device_path
179 device_path = self.device_path
180 if not device_path:
187 vendor_id = read_file(os.path.join(device_path, 'vendor'))
188 product_id = read_file(os.path.join(device_path, 'device'))
198 os.path.join(device_path, 'driver', 'module'),
/external/libusb/examples/
Dfxload.c87 const char *device_path = getenv("DEVICE"); in main() local
112 device_path = optarg; in main()
113 if (sscanf(device_path, "%u,%u", &busnum, &devaddr) != 2 ) { in main()
156 if ((device_id != NULL) && (device_path != NULL)) { in main()
184 if ((type == NULL) || (device_id == NULL) || (device_path != NULL)) { in main()
192 if ((type != NULL) && (device_path != NULL)) { in main()
207 ((type == NULL) && (device_id == NULL) && (device_path == NULL)) || in main()
211 ((type == NULL) && (device_path != NULL) && (busnum == _busnum) && (devaddr == _devaddr)) || in main()
213 …((type != NULL) && (device_id == NULL) && (device_path == NULL) && (fx_type == known_device[j].typ… in main()
/external/vboot_reference/firmware/stub/
Dtpm_lite_stub.c154 char* device_path; in VbExTpmOpen() local
161 device_path = getenv("TPM_DEVICE_PATH"); in VbExTpmOpen()
162 if (device_path == NULL) { in VbExTpmOpen()
163 device_path = TPM_DEVICE_PATH; in VbExTpmOpen()
169 tpm_fd = open(device_path, O_RDWR); in VbExTpmOpen()
176 VBDEBUG(("TPM: retrying %s: %s\n", device_path, strerror(errno))); in VbExTpmOpen()
184 device_path, strerror(saved_errno)); in VbExTpmOpen()
/external/autotest/client/cros/i2c/
Dusb_to_i2c.py103 def __init__(self, device_path): argument
109 self.logger.info('Setup serial device... [%s]', device_path)
110 self.device_path = device_path
111 self.serial = serial.Serial(port=self.device_path,
/external/libmojo/third_party/catapult/devil/devil/android/sdk/
Dadb_wrapper_devicetest.py66 device_path = '/data/local/tmp/testfile.txt'
68 self._adb.Push(path, device_path)
72 self.assertEqual(self._adb.Shell('cat %s' % device_path), 'foo')
73 self._adb.Pull(device_path, local_tmpdir)
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dadb_wrapper_devicetest.py69 device_path = '/data/local/tmp/testfile.txt'
71 self._adb.Push(path, device_path)
75 self.assertEqual(self._adb.Shell('cat %s' % device_path), 'foo')
76 self._adb.Pull(device_path, local_tmpdir)
/external/autotest/client/cros/bluetooth/
Dbluetooth_device_xmlrpc_server.py60 def RequestPinCode(self, device_path): argument
70 logging.info('RequestPinCode for %s; return %s', device_path, self._pin)
913 def _set_trusted_by_path(self, device_path, trusted=True): argument
924 device_path)
981 device_path = device.object_path
990 logging.info('Device paired: %s', device_path)
992 self._set_trusted_by_path(device_path, trusted=True)
993 logging.info('Device trusted: %s', device_path)
1343 device_path = self._get_device_path(address)
1346 if device_path:
[all …]
/external/autotest/client/site_tests/hardware_StorageFio/
Dhardware_StorageFio.py50 device_path = findsys.stdout.rstrip()
52 vendor_file = device_path.replace('block/%s' % device, 'vendor')
53 model_file = device_path.replace('block/%s' % device, 'model')
/external/autotest/client/site_tests/network_DhcpVendorEncapsulatedOptions/
Dnetwork_DhcpVendorEncapsulatedOptions.py46 device_path = shill_proxy.ShillProxy.dbus2primitive(device.object_path)
47 service = proxy.find_object('Service', {'Device': device_path})
/external/chromium-trace/catapult/devil/docs/
Ddevice_utils.md537 host_device_tuples: A list of (host_path, device_path) tuples, where
539 that should be minimially pushed to the device, and |device_path| is
565 device_path: A string containing the absolute path to the file on the
586 device_path: A string containing the absolute path to the file on the
604 device_path: A string containing the absolute path of the file to pull
622 device_path: A string containing the absolute path of the file to read
633 The contents of |device_path| as a string. Contents are intepreted using
650 device_path: A string containing the absolute path to the file to write
677 device_path: A string containing the path of the directory on the device
688 AdbCommandFailedError if |device_path| does not specify a valid and
[all …]
/external/vboot_reference/cgpt/
Dcgpt_wrapper.c42 static bool is_mtd(const char *device_path) { in is_mtd() argument
44 if (lstat(device_path, &stat) != 0) { in is_mtd()
/external/autotest/client/cros/
Dnetwork.py76 device_path = service_properties['Device']
77 device = conn_mgr.GetObjectInterface('Device', device_path)
Ddhcpv6_test_base.py61 device_path = shill_proxy.ShillProxy.dbus2primitive(device.object_path)
62 return self.shill_proxy.find_object('Service', {'Device': device_path})
/external/chromium-trace/catapult/devil/devil/utils/
Dmock_calls_test.py27 def Push(self, host_path, device_path): argument
28 logging.debug('(device %s) pushing %r to %r', self, host_path, device_path)

12