Home
last modified time | relevance | path

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

/aosp14/system/core/fastboot/fuzzy_fastboot/
H A 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 …]
H A Dfixtures.h76 static std::string device_path; variable
/aosp14/frameworks/base/tests/ApkVerityTest/block_device_writer/
H A Dblock_device_writer.cpp139 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 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()
H A 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()
H A 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()
/aosp14/system/core/toolbox/
H A 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()
/aosp14/system/core/fastboot/
H A Dusb.h54 char device_path[256]; member
H A Dusb_linux.cpp177 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); in filter_usb_device()
H A Dusb_osx.cpp355 snprintf(handle->info.device_path, sizeof(handle->info.device_path), in try_device()
H A Dusb_windows.cpp324 info.device_path[0] = 0; in recognized_device()
H A Dfastboot.cpp250 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 Dfs_mgr_overlayfs.cpp831 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 Dfs_mgr.cpp2013 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 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()
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/
H A Dsnapshot.h795 bool GetMappedImageDevicePath(const std::string& device_name, std::string* device_path);
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dsnapshot.cpp4112 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()