Home
last modified time | relevance | path

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

/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp69 cb_scratch = info->device_path; in MatchFastboot()
74 local_serial != info->device_path) in MatchFastboot()
88 if (std::equal(prefix.begin(), prefix.end(), device_path.begin())) { in UsbStillAvailible()
89 std::string fname(device_path.begin() + prefix.size(), device_path.end()); in UsbStillAvailible()
120 if (device_path != "") { // make sure the device is still connected in SetUp()
141 if (device_path == "") { // We set it the first time, then make sure it never changes in SetUp()
142 device_path = cb_scratch; in SetUp()
144 ASSERT_EQ(device_path, cb_scratch); // The path can not change in SetUp()
202 device_path = cb_scratch; in ReconnectFastbootDevice()
222 device_path = cb_scratch; in ReconnectFastbootDevice()
[all …]
Dfixtures.h76 static std::string device_path; variable
/system/extras/simpleperf/scripts/
Dbinary_cache_builder.py190 def _pull_file_from_device(self, device_path, host_path): argument
191 if self.adb.run(['pull', device_path, host_path]):
195 filename = device_path[device_path.rfind('/')+1:]
196 if (self.adb.run(['shell', 'cp', device_path, '/data/local/tmp']) and
200 logging.warning('failed to pull %s from device' % device_path)
/system/update_engine/common/
Dfake_boot_control.h134 auto device_path = devices_[slot].find(partition_name);
135 if (device_path == devices_[slot].end()) {
140 device.rw_device_path = device_path->second;
/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.cpp212 auto device_path = custom_device_path ? custom_device_path : android_by_name_symlink; in LoadAndVerifyVbmeta() local
216 load_chained_vbmeta, rollback_protection, device_path, false, in LoadAndVerifyVbmeta()
/system/apex/apexd/
Dapexd_loop.cpp87 Result<void> ConfigureScheduler(const std::string& device_path) { in ConfigureScheduler() argument
88 if (!StartsWith(device_path, "/dev/")) { in ConfigureScheduler()
89 return Error() << "Invalid argument " << device_path; in ConfigureScheduler()
92 const std::string device_name = Basename(device_path); in ConfigureScheduler()
249 Result<void> ConfigureReadAhead(const std::string& device_path) { in ConfigureReadAhead() argument
250 CHECK(StartsWith(device_path, "/dev/")); in ConfigureReadAhead()
251 std::string device_name = Basename(device_path); in ConfigureReadAhead()
Dapexd_loop.h67 android::base::Result<void> ConfigureReadAhead(const std::string& device_path);
/system/core/fastboot/
Dusb.h52 char device_path[256]; member
Dusb_osx.cpp340 snprintf(handle->info.device_path, sizeof(handle->info.device_path), in try_device()
Dusb_linux.cpp177 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); in filter_usb_device()
Dusb_windows.cpp324 info.device_path[0] = 0; in recognized_device()
Dfastboot.cpp277 strcmp(local_serial, info->device_path) != 0)) return -1; in match_fastboot_with_serial()
303 if (strlen(info->device_path) > 0) printf(" %s", info->device_path); in list_devices_callback()
/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.cc104 void RunPostinstallAction(const string& device_path,
189 const string& device_path, in RunPostinstallAction() argument
196 part.target_path = device_path; in RunPostinstallAction()
197 part.readonly_target_path = device_path; in RunPostinstallAction()
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp848 bool fs_mgr_overlayfs_mount_scratch(const std::string& device_path, const std::string mnt_type, in fs_mgr_overlayfs_mount_scratch() argument
851 if (!fs_mgr_access(device_path)) return false; in fs_mgr_overlayfs_mount_scratch()
853 if (!fs_mgr_rw_access(device_path)) return false; in fs_mgr_overlayfs_mount_scratch()
856 auto f2fs = fs_mgr_is_f2fs(device_path); in fs_mgr_overlayfs_mount_scratch()
857 auto ext4 = fs_mgr_is_ext4(device_path); in fs_mgr_overlayfs_mount_scratch()
868 entry.blk_device = device_path; in fs_mgr_overlayfs_mount_scratch()
890 fs_mgr_set_blk_ro(device_path, false); in fs_mgr_overlayfs_mount_scratch()
Dfs_mgr.cpp1967 static bool ConfigureIoScheduler(const std::string& device_path) { in ConfigureIoScheduler() argument
1968 if (!StartsWith(device_path, "/dev/")) { in ConfigureIoScheduler()
1969 LERROR << __func__ << ": invalid argument " << device_path; in ConfigureIoScheduler()
1974 StringPrintf("/sys/block/%s/queue/scheduler", Basename(device_path).c_str()); in ConfigureIoScheduler()
/system/gsid/
Dgsi_service.cpp684 std::string device_path; in getAvbPublicKey() local
693 device_path = mapped_device->path(); in getAvbPublicKey()
695 if (!impl_->GetMappedImageDevice(name, &device_path)) { in getAvbPublicKey()
701 android::base::unique_fd fd(open(device_path.c_str(), O_RDONLY | O_CLOEXEC)); in getAvbPublicKey()
703 PLOG(ERROR) << "Fail to open mapped device: " << device_path; in getAvbPublicKey()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp194 auto device_path = GetDevicePathForFile(fw.get()); in CreateBackingImage() local
195 if (android::base::StartsWith(device_path, "/dev/block/dm-") && !MetadataDirIsTest()) { in CreateBackingImage()
196 LOG(ERROR) << "Cannot persist images against device-mapper device: " << device_path; in CreateBackingImage()
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dsnapshot.h786 bool GetMappedImageDevicePath(const std::string& device_name, std::string* device_path);
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp4052 std::string* device_path) { in GetMappedImageDevicePath() argument
4055 return dm_.GetDmDevicePathByName(device_name, device_path); in GetMappedImageDevicePath()
4059 return images_->GetMappedImageDevice(device_name, device_path); in GetMappedImageDevicePath()