Home
last modified time | relevance | path

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

12

/aosp12/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
/aosp12/build/make/tools/releasetools/
H A Dcheck_target_files_vintf.py57 for device_path, target_files_rel_paths in DIR_SEARCH_PATHS.items():
61 dirmap[device_path] = target_files_path
63 if device_path not in dirmap:
64 raise ValueError("Can't determine path for device path " + device_path +
135 for device_path, real_path in dirmap.items():
136 common_command += ['--dirmap', '{}:{}'.format(device_path, real_path)]
168 for device_path, target_files_rel_paths in DIR_SEARCH_PATHS.items():
169 if path.startswith(device_path):
170 suffix = path[len(device_path):]
/aosp12/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()
/aosp12/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.cpp211 auto device_path = custom_device_path ? custom_device_path : android_by_name_symlink; in LoadAndVerifyVbmeta() local
215 load_chained_vbmeta, rollback_protection, device_path, false, in LoadAndVerifyVbmeta()
/aosp12/system/extras/simpleperf/scripts/
H A 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 log_warning('failed to pull %s from device' % device_path)
/aosp12/system/update_engine/common/
H A Dfake_boot_control.h133 auto device_path = devices_[slot].find(partition_name);
134 if (device_path == devices_[slot].end()) {
139 device.rw_device_path = device_path->second;
/aosp12/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()
/aosp12/system/update_engine/payload_consumer/
H A Dpostinstall_runner_action_unittest.cc105 void RunPostinstallAction(const string& device_path,
190 const string& device_path, in RunPostinstallAction() argument
197 part.target_path = device_path; in RunPostinstallAction()
198 part.readonly_target_path = device_path; in RunPostinstallAction()
/aosp12/hardware/libhardware/modules/camera/3_4/
H A Dv4l2_wrapper.h40 static V4L2Wrapper* NewV4L2Wrapper(const std::string device_path);
93 V4L2Wrapper(const std::string device_path);
H A Dv4l2_wrapper.cpp53 V4L2Wrapper* V4L2Wrapper::NewV4L2Wrapper(const std::string device_path) { in NewV4L2Wrapper() argument
54 return new V4L2Wrapper(device_path); in NewV4L2Wrapper()
57 V4L2Wrapper::V4L2Wrapper(const std::string device_path) in V4L2Wrapper() argument
58 : device_path_(std::move(device_path)), connection_count_(0) {} in V4L2Wrapper()
/aosp12/system/update_engine/cros/
H A Dboot_control_chromeos.cc323 base::FilePath device_path(device); in SysfsBlockDevice() local
324 if (device_path.DirName().value() != "/dev") { in SysfsBlockDevice()
327 return base::FilePath("/sys/block").Append(device_path.BaseName()).value(); in SysfsBlockDevice()
/aosp12/system/apex/apexd/
H A Dapexd_loop.cpp89 Result<void> ConfigureReadAhead(const std::string& device_path) { in ConfigureReadAhead() argument
90 CHECK(StartsWith(device_path, "/dev/")); in ConfigureReadAhead()
91 std::string device_name = Basename(device_path); in ConfigureReadAhead()
H A Dapexd_loop.h58 android::base::Result<void> ConfigureReadAhead(const std::string& device_path);
/aosp12/system/core/fastboot/
H A Dusb.h52 char device_path[256]; member
H A Dusb_osx.cpp340 snprintf(handle->info.device_path, sizeof(handle->info.device_path), in try_device()
H A Dusb_linux.cpp177 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name); in filter_usb_device()
/aosp12/hardware/libhardware/modules/camera/3_4/arc/
H A Dcommon_types.h17 std::string device_path; member
/aosp12/system/core/fs_mgr/
H A Dfs_mgr_overlayfs.cpp829 bool fs_mgr_overlayfs_mount_scratch(const std::string& device_path, const std::string mnt_type, in fs_mgr_overlayfs_mount_scratch() argument
832 if (!fs_mgr_access(device_path)) return false; in fs_mgr_overlayfs_mount_scratch()
834 if (!fs_mgr_rw_access(device_path)) return false; in fs_mgr_overlayfs_mount_scratch()
837 auto f2fs = fs_mgr_is_f2fs(device_path); in fs_mgr_overlayfs_mount_scratch()
838 auto ext4 = fs_mgr_is_ext4(device_path); in fs_mgr_overlayfs_mount_scratch()
849 entry.blk_device = device_path; in fs_mgr_overlayfs_mount_scratch()
869 fs_mgr_set_blk_ro(device_path, false); in fs_mgr_overlayfs_mount_scratch()
/aosp12/system/gsid/
H A Dgsi_service.cpp682 std::string device_path; in getAvbPublicKey() local
691 device_path = mapped_device->path(); in getAvbPublicKey()
693 if (!impl_->GetMappedImageDevice(name, &device_path)) { in getAvbPublicKey()
699 android::base::unique_fd fd(open(device_path.c_str(), O_RDONLY | O_CLOEXEC)); in getAvbPublicKey()
701 PLOG(ERROR) << "Fail to open mapped device: " << device_path; in getAvbPublicKey()
/aosp12/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()
/aosp12/bionic/libc/kernel/uapi/linux/
H A Dedd.h145 } device_path; member
/aosp12/hardware/qcom/display/msm8909/sdm/libs/core/fb/
H A Dhw_info.cpp377 hw_resource->hw_rot_info.device_path = "/dev/mdss_rotator"; in GetMDSSRotatorInfo()
406 hw_resource->hw_rot_info.device_path = string("/dev/video" + to_string(i)); in GetV4L2RotatorInfo()

12