HomeSort by relevance Sort by last modified time
    Searched refs:device_path (Results 1 - 25 of 81) sorted by null

1 2 3 4

  /external/webrtc/talk/media/devices/
v4llookup.h 46 static bool IsV4L2Device(const std::string& device_path) {
47 return GetV4LLookup()->CheckIsV4L2Device(device_path);
64 virtual bool CheckIsV4L2Device(const std::string& device_path);
v4llookup.cc 53 bool V4LLookup::CheckIsV4L2Device(const std::string& device_path) {
57 if (lstat(device_path.c_str(), &s) != 0 || !S_ISCHR(s.st_mode)) return false;
66 video_fd = ::open(device_path.c_str(), O_RDONLY | O_NONBLOCK);
74 LOG(LS_INFO) << "Found V4L2 capture device " << device_path;
78 LOG_ERRNO(LS_ERROR) << "VIDIOC_QUERYCAP failed for " << device_path;
81 LOG_ERRNO(LS_ERROR) << "Failed to open " << device_path;
linuxdevicemanager.cc 268 std::string device_path = "/dev/" + filename; local
270 if (V4LLookup::IsV4L2Device(device_path)) {
272 Device(GetVideoDeviceName(meta, filename), device_path));
  /system/core/fastboot/
usb.h 53 char device_path[256]; member in struct:usb_ifc_info
  /external/vboot_reference/firmware/stub/
tpm_lite_stub.c 154 char* device_path; local
161 device_path = getenv("TPM_DEVICE_PATH");
162 if (device_path == NULL) {
163 device_path = TPM_DEVICE_PATH;
169 tpm_fd = open(device_path, O_RDWR);
176 VBDEBUG(("TPM: retrying %s: %s\n", device_path, strerror(errno)));
184 device_path, strerror(saved_errno));
  /external/libusb/examples/
fxload.c 87 const char *device_path = getenv("DEVICE"); local
112 device_path = optarg;
113 if (sscanf(device_path, "%u,%u", &busnum, &devaddr) != 2 ) {
156 if ((device_id != NULL) && (device_path != NULL)) {
184 if ((type == NULL) || (device_id == NULL) || (device_path != NULL)) {
192 if ((type != NULL) && (device_path != NULL)) {
207 ((type == NULL) && (device_id == NULL) && (device_path == NULL)) ||
211 ((type == NULL) && (device_path != NULL) && (busnum == _busnum) && (devaddr == _devaddr)) ||
213 ((type != NULL) && (device_id == NULL) && (device_path == NULL) && (fx_type == known_device[j].type)) ) {
  /external/autotest/client/cros/i2c/
usb_to_i2c.py 103 def __init__(self, device_path):
106 @param device_path: The device path of serial port.
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/chromium-trace/catapult/devil/devil/android/sdk/
adb_wrapper_devicetest.py 65 device_path = '/data/local/tmp/testfile.txt'
67 self._adb.Push(path, device_path)
71 self.assertEqual(self._adb.Shell('cat %s' % device_path), 'foo')
72 self._adb.Pull(device_path, local_tmpdir)
  /external/libmojo/third_party/catapult/devil/devil/android/sdk/
adb_wrapper_devicetest.py 66 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)
  /system/extras/simpleperf/scripts/
binary_cache_builder.py 205 def _pull_file_from_device(self, device_path, host_path):
206 if self.adb.run(['pull', device_path, host_path]):
210 filename = device_path[device_path.rfind('/')+1:]
211 if (self.adb.run(['shell', 'cp', device_path, '/data/local/tmp']) and
215 log_warning('failed to pull %s from device' % device_path)
  /external/chromium-trace/catapult/devil/devil/android/
device_utils.py     [all...]
  /external/autotest/client/site_tests/hardware_StorageFio/
hardware_StorageFio.py 50 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/skia/infra/bots/recipe_modules/flavor/
default_flavor.py 106 'host_path and device_path are the same (%s vs %s).' % (
116 'host_path and device_path are the same (%s vs %s).' % (
119 def copy_file_to_device(self, host_path, device_path):
123 if str(host_path) != str(device_path): # pragma: no cover
126 'host_path and device_path are the same (%s vs %s).' % (
127 str(host_path), str(device_path)))
api.py 94 def copy_file_to_device(self, host_path, device_path):
95 return self._f.copy_file_to_device(host_path, device_path)
133 host_path, device_path, test_expected_version,
146 self.create_clean_device_dir(device_path)
148 host_path, device_path)
  /external/autotest/client/common_lib/cros/network/
interface.py 166 device_path = os.path.join(DEVICE_INFO_ROOT, self._name, 'device')
167 if not exists(device_path):
168 logging.error('No device information found at %s', device_path)
174 vendor_id = read_file(os.path.join(device_path, 'vendor'))
175 product_id = read_file(os.path.join(device_path, 'device'))
185 os.path.join(device_path, 'driver', 'module'),
  /external/autotest/client/site_tests/network_DhcpVendorEncapsulatedOptions/
network_DhcpVendorEncapsulatedOptions.py 46 device_path = shill_proxy.ShillProxy.dbus2primitive(device.object_path)
47 service = proxy.find_object('Service', {'Device': device_path})
  /external/libmojo/third_party/catapult/devil/devil/android/
device_utils.py     [all...]
  /external/vboot_reference/cgpt/
cgpt_wrapper.c 41 // Check if |device_path| is an MTD device based on its major number being 90.
42 static bool is_mtd(const char *device_path) {
44 if (lstat(device_path, &stat) != 0) {
  /system/update_engine/
boot_control_chromeos.cc 258 base::FilePath device_path(device);
259 if (device_path.DirName().value() != "/dev") {
262 return base::FilePath("/sys/block").Append(device_path.BaseName()).value();
  /system/core/toolbox/
getevent.c 531 const char *device_path = "/dev/input"; local
625 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE);
627 fprintf(stderr, "could not add watch for %s, %s\n", device_path, strerror(errno));
630 res = scan_dir(device_path, print_flags);
632 fprintf(stderr, "scan dir failed for %s\n", device_path);
658 read_notify(device_path, ufds[0].fd, print_flags);
  /system/update_engine/payload_consumer/
postinstall_runner_action_unittest.cc 98 // partition |device_path|, running the |postinstall_program| command from
100 void RunPosinstallAction(const string& device_path,
169 const string& device_path,
177 part.target_path = device_path;
  /external/autotest/client/site_tests/security_DeviceJail_Detach/
security_DeviceJail_Detach.py 48 return { child.device_path : child.driver for child in device.children
  /external/autotest/client/cros/bluetooth/
bluetooth_device_xmlrpc_server.py 46 def RequestPinCode(self, device_path):
51 @param device_path: The object path of the device.
56 logging.info('RequestPinCode for %s; return %s', device_path, self._pin)
870 def _set_trusted_by_path(self, device_path, trusted=True):
873 @param device_path: the object path of the device.
881 device_path)
938 device_path = device.object_path
    [all...]
  /external/autotest/client/cros/
dhcpv6_test_base.py 61 device_path = shill_proxy.ShillProxy.dbus2primitive(device.object_path)
62 return self.shill_proxy.find_object('Service', {'Device': device_path})
network.py 169 device_path = service_properties['Device']
170 device = conn_mgr.GetObjectInterface('Device', device_path)

Completed in 755 milliseconds

1 2 3 4