Home
last modified time | relevance | path

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

/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp67 cb_scratch = info->device_path; in MatchFastboot()
72 local_serial != info->device_path) in MatchFastboot()
80 if (std::equal(prefix.begin(), prefix.end(), device_path.begin())) { in UsbStillAvailible()
81 std::string fname(device_path.begin() + prefix.size(), device_path.end()); in UsbStillAvailible()
112 if (device_path != "") { // make sure the device is still connected in SetUp()
129 if (device_path == "") { // We set it the first time, then make sure it never changes in SetUp()
130 device_path = cb_scratch; in SetUp()
132 ASSERT_EQ(device_path, cb_scratch); // The path can not change in SetUp()
188 device_path = cb_scratch; in ReconnectFastbootDevice()
241 std::string FastBootTest::device_path = ""; member in fastboot::FastBootTest
Dfixtures.h73 static std::string device_path; variable
/system/core/fs_mgr/libfs_avb/
Dfs_avb_util.cpp50 std::string device_path = fstab_entry.blk_device; in LoadAndVerifyVbmeta() local
54 if (!dm.GetDmDevicePathByName(fstab_entry.blk_device, &device_path)) { in LoadAndVerifyVbmeta()
60 return LoadAndVerifyVbmetaByPath(device_path, avb_partition_name, expected_public_key_blob, in LoadAndVerifyVbmeta()
Davb_ops.cpp158 std::string device_path; in GetLogicalPath() local
161 if (!dm.GetDmDevicePathByName(fstab_entry->blk_device, &device_path)) { in GetLogicalPath()
165 return device_path; in GetLogicalPath()
Dfs_avb.cpp209 auto device_path = custom_device_path ? custom_device_path : android_by_name_symlink; in LoadAndVerifyVbmeta() local
213 load_chained_vbmeta, rollback_protection, device_path, false, in LoadAndVerifyVbmeta()
/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py193 def _pull_file_from_device(self, device_path, host_path): argument
194 if self.adb.run(['pull', device_path, host_path]):
198 filename = device_path[device_path.rfind('/')+1:]
199 if (self.adb.run(['shell', 'cp', device_path, '/data/local/tmp']) and
203 log_warning('failed to pull %s from device' % device_path)
/system/apex/apexd/
Dapexd_loop.cpp67 Status configureReadAhead(const std::string& device_path) { in configureReadAhead() argument
68 auto pos = device_path.find("/dev/block/"); in configureReadAhead()
73 pos = device_path.find_last_of('/'); in configureReadAhead()
74 std::string device_name = device_path.substr(pos + 1, std::string::npos); in configureReadAhead()
Dapexd_loop.h59 Status configureReadAhead(const std::string& device_path);
/system/core/fastboot/
Dusb.h52 char device_path[256]; member
Dusb_linux.cpp175 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); in filter_usb_device()
Dusb_osx.cpp340 snprintf(handle->info.device_path, sizeof(handle->info.device_path), in try_device()
Dusb_windows.cpp320 info.device_path[0] = 0; in recognized_device()
Dfastboot.cpp245 strcmp(local_serial, info->device_path) != 0)) return -1; in match_fastboot_with_serial()
267 if (strlen(info->device_path) > 0) printf(" %s", info->device_path); in list_devices_callback()
/system/core/fs_mgr/libdm/
Ddm_test.cpp95 std::string device_path; in path() local
96 if (!dm_.GetDmDevicePathByName(name_, &device_path)) { in path()
99 return device_path; in path()
/system/update_engine/
Dboot_control_chromeos.cc284 base::FilePath device_path(device); in SysfsBlockDevice() local
285 if (device_path.DirName().value() != "/dev") { in SysfsBlockDevice()
288 return base::FilePath("/sys/block").Append(device_path.BaseName()).value(); in SysfsBlockDevice()
/system/core/toolbox/
Dgetevent.c531 const char *device_path = "/dev/input"; in getevent_main() local
628 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in getevent_main()
630 fprintf(stderr, "could not add watch for %s, %s\n", device_path, strerror(errno)); in getevent_main()
633 res = scan_dir(device_path, print_flags); in getevent_main()
635 fprintf(stderr, "scan dir failed for %s\n", device_path); in getevent_main()
661 read_notify(device_path, ufds[0].fd, print_flags); in getevent_main()
/system/update_engine/payload_consumer/
Dpostinstall_runner_action_unittest.cc100 void RunPostinstallAction(const string& device_path,
170 const string& device_path, in RunPostinstallAction() argument
179 part.target_path = device_path; in RunPostinstallAction()
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp547 bool fs_mgr_overlayfs_mount_scratch(const std::string& device_path, const std::string mnt_type, in fs_mgr_overlayfs_mount_scratch() argument
550 if (!fs_mgr_access(device_path)) return false; in fs_mgr_overlayfs_mount_scratch()
552 if (!fs_mgr_rw_access(device_path)) return false; in fs_mgr_overlayfs_mount_scratch()
555 auto f2fs = fs_mgr_is_f2fs(device_path); in fs_mgr_overlayfs_mount_scratch()
556 auto ext4 = fs_mgr_is_ext4(device_path); in fs_mgr_overlayfs_mount_scratch()
567 entry.blk_device = device_path; in fs_mgr_overlayfs_mount_scratch()
576 fs_mgr_set_blk_ro(device_path, false); in fs_mgr_overlayfs_mount_scratch()
/system/core/adb/client/
Dusb_libusb.cpp391 std::string device_path = get_device_dev_path(device); in device_connected() local