/aosp14/system/core/fastboot/fuzzy_fastboot/ |
H A D | fixtures.cpp | 69 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 …]
|
H A D | fixtures.h | 76 static std::string device_path; variable
|
/aosp14/frameworks/base/tests/ApkVerityTest/block_device_writer/ |
H A D | block_device_writer.cpp | 139 int read_block_from_device(const char* device_path, uint64_t block_offset, in read_block_from_device() argument 142 android::base::unique_fd fd(open(device_path, O_RDONLY | O_DIRECT)); in read_block_from_device() 144 fprintf(stderr, "open %s failed\n", device_path); in read_block_from_device() 158 int write_block_to_device(const char* device_path, uint64_t block_offset, in write_block_to_device() argument 161 android::base::unique_fd fd(open(device_path, O_WRONLY | O_DIRECT)); in write_block_to_device() 163 fprintf(stderr, "open %s failed\n", device_path); in write_block_to_device()
|
/aosp14/system/core/fs_mgr/libfs_avb/ |
H A D | fs_avb_util.cpp | 50 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()
|
H A D | avb_ops.cpp | 158 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()
|
H A D | fs_avb.cpp | 212 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()
|
/aosp14/system/core/toolbox/ |
H A D | getevent.c | 531 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()
|
/aosp14/system/core/fastboot/ |
H A D | usb.h | 54 char device_path[256]; member
|
H A D | usb_linux.cpp | 177 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); in filter_usb_device()
|
H A D | usb_osx.cpp | 355 snprintf(handle->info.device_path, sizeof(handle->info.device_path), in try_device()
|
H A D | usb_windows.cpp | 324 info.device_path[0] = 0; in recognized_device()
|
H A D | fastboot.cpp | 250 strcmp(local_serial, info->device_path) != 0)) in match_fastboot_with_serial() 301 PrintDevice(serial.c_str(), interface.c_str(), info->device_path); in list_devices_callback()
|
/aosp14/system/core/fs_mgr/ |
H A D | fs_mgr_overlayfs.cpp | 831 bool MountScratch(const std::string& device_path, bool readonly = false) { in MountScratch() argument 833 if (!fs_mgr_access(device_path)) { in MountScratch() 834 LOG(ERROR) << "Path does not exist: " << device_path; in MountScratch() 837 } else if (!fs_mgr_rw_access(device_path)) { in MountScratch() 838 LOG(ERROR) << "Path does not exist or is not readwrite: " << device_path; in MountScratch() 843 if (fs_mgr_is_f2fs(device_path)) { in MountScratch() 845 } else if (fs_mgr_is_ext4(device_path)) { in MountScratch() 862 entry.blk_device = device_path; in MountScratch() 869 fs_mgr_set_blk_ro(device_path, false); in MountScratch()
|
H A D | fs_mgr.cpp | 2013 static bool ConfigureIoScheduler(const std::string& device_path) { in ConfigureIoScheduler() argument 2014 if (!StartsWith(device_path, "/dev/")) { in ConfigureIoScheduler() 2015 LERROR << __func__ << ": invalid argument " << device_path; in ConfigureIoScheduler() 2020 StringPrintf("/sys/block/%s/queue/scheduler", Basename(device_path).c_str()); in ConfigureIoScheduler()
|
/aosp14/system/core/fs_mgr/libfiemap/ |
H A D | image_manager.cpp | 194 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()
|
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
H A D | snapshot.h | 795 bool GetMappedImageDevicePath(const std::string& device_name, std::string* device_path);
|
/aosp14/system/core/fs_mgr/libsnapshot/ |
H A D | snapshot.cpp | 4112 std::string* device_path) { in GetMappedImageDevicePath() argument 4115 return dm_.GetDmDevicePathByName(device_name, device_path); in GetMappedImageDevicePath() 4119 return images_->GetMappedImageDevice(device_name, device_path); in GetMappedImageDevicePath()
|