/system/core/init/ |
D | block_dev_initializer.cpp | 90 auto partition_name = DeviceHandler::GetPartitionNameForDevice(uevent.device_name); in HandleUevent() 133 const std::string device_name(basename(device.c_str())); in InitDmDevice() local 134 const std::string syspath = "/sys/block/" + device_name; in InitDmDevice() 135 return InitDevice(syspath, device_name); in InitDmDevice() 142 bool BlockDevInitializer::InitDevice(const std::string& syspath, const std::string& device_name) { in InitDevice() argument 145 auto uevent_callback = [&device_name, this, &found](const Uevent& uevent) { in InitDevice() 146 if (uevent.device_name == device_name) { in InitDevice() 147 LOG(VERBOSE) << "Creating device : " << device_name; in InitDevice() 157 LOG(INFO) << "device '" << device_name << "' not found in /sys, waiting for its uevent"; in InitDevice() 160 LOG(INFO) << "wait for device '" << device_name << "' returned after " << t; in InitDevice() [all …]
|
D | devices.cpp | 427 links.emplace_back("/dev/block/by-name/" + uevent.device_name); in GetBlockDeviceSymlinks() 428 auto partition_name = GetPartitionNameForDevice(uevent.device_name); in GetBlockDeviceSymlinks() 435 if (ReadFileToString("/sys/class/block/" + uevent.device_name + "/queue/zoned", &model) && in GetBlockDeviceSymlinks() 528 if (uevent.device_name == "ashmem") { in HandleAshmemUevent() 538 dup_ashmem_uevent.device_name += boot_id; in HandleAshmemUevent() 569 if (!uevent.device_name.empty()) { in HandleUevent() 570 devpath = "/dev/" + uevent.device_name; in HandleUevent() 582 } else if (uevent.subsystem == "misc" && StartsWith(uevent.device_name, "dm-user/")) { in HandleUevent() 583 devpath = "/dev/dm-user/" + uevent.device_name.substr(8); in HandleUevent() 584 } else if (uevent.subsystem == "misc" && uevent.device_name == "vfio/vfio") { in HandleUevent() [all …]
|
D | uevent.h | 31 std::string device_name; member
|
D | devices.h | 98 devname = uevent.device_name; in ParseDevPath() 105 devname = uevent.device_name; in ParseDevPath()
|
D | uevent_listener.cpp | 41 uevent->device_name.clear(); in ParseEvent() 71 uevent->device_name = msg; in ParseEvent()
|
/system/apex/apexd/ |
D | apex_database.h | 43 std::string device_name; // Name of the dm verity device. member 56 const std::string& device_name, 63 device_name(device_name), in version() 90 compare_val = device_name.compare(rhs.device_name); 245 if (mount.device_name != "") { in CheckUniqueLoopDm() 246 CHECK(dm_devices.insert(mount.device_name).second) in CheckUniqueLoopDm() 247 << "Duplicate dm device: " << mount.device_name; in CheckUniqueLoopDm()
|
D | apex_database_test.cpp | 114 const std::string& mount_point, const std::string& device_name, in Contains() argument 120 mount_point == d.mount_point && device_name == d.device_name && in Contains() 136 dm == d.device_name && hashtree_loop_name == d.hashtree_loop_name) { in ContainsPackage() 252 ASSERT_EQ(ret->device_name, std::string(kDeviceName)); in TEST()
|
D | apexd_loop.cpp | 84 const std::string device_name = Basename(device_path); in ConfigureScheduler() local 87 StringPrintf("/sys/block/%s/queue/scheduler", device_name.c_str()); in ConfigureScheduler() 253 std::string device_name = Basename(device_path); in ConfigureReadAhead() local 256 StringPrintf("/sys/block/%s/queue/read_ahead_kb", device_name.c_str()); in ConfigureReadAhead()
|
D | apexd_test.cpp | 1196 ASSERT_EQ(data.device_name, "test.apex.rebootless@2_1"); in TEST_F() 1238 ASSERT_EQ(data.device_name, "test.apex.rebootless@1_1"); in TEST_F() 1328 ASSERT_EQ(data.device_name, "test.apex.rebootless@2_1"); in TEST_F() 1382 ASSERT_EQ(data.device_name, "test.apex.rebootless@1_2"); in TEST_F() 1431 ASSERT_EQ(data.device_name, "test.apex.rebootless@2_1"); in TEST_F() 1521 ASSERT_EQ(data.device_name, "test.apex.rebootless@1"); in TEST_F() 1720 ASSERT_EQ("com.android.apex.test_package@1", mounted_apex->device_name); in TEST_F() 2461 ASSERT_EQ(data.device_name, in TEST_F() 2541 ASSERT_EQ(data.device_name, in TEST_F() 2590 ASSERT_EQ(data.device_name, in TEST_F() [all …]
|
D | apexd.cpp | 459 const std::string& device_name, in MountPackageImpl() argument 583 CreateVerityDevice(device_name, *verity_table, reuse_device); in MountPackageImpl() 589 apex_data.device_name = device_name; in MountPackageImpl() 693 if (!data.device_name.empty()) { in Unmount() 694 const auto& result = DeleteVerityDevice(data.device_name, deferred); in Unmount() 1150 const std::string& device_name, bool reuse_device, in MountPackage() argument 1153 MountPackageImpl(apex, mount_point, device_name, in MountPackage() 1360 const std::string& device_name, in ActivatePackageImpl() argument 1416 auto mount_status = MountPackage(apex_file, mount_point, device_name, in ActivatePackageImpl() 1712 std::string device_name; in ActivateApexWorker() local [all …]
|
D | apex_database.cpp | 226 result.device_name = *name; in ResolveMountInfo()
|
/system/core/fs_mgr/ |
D | fs_mgr_dm_linear.cpp | 227 if (device_name.empty()) { in InitDefaults() 228 device_name = partition_name; in InitDefaults() 244 if (!dm.CreateDevice(params.device_name, table, path, params.timeout_ms)) { in CreateLogicalPartition() 247 LINFO << "Created logical partition " << params.device_name << " on device " << *path; in CreateLogicalPartition() 252 if (!device_name.empty()) return device_name; in GetDeviceName()
|
D | fs_mgr.cpp | 1125 std::string device_name; in fs_mgr_update_logical_partition() local 1126 if (!dm.GetDmDevicePathByName(entry->blk_device, &device_name)) { in fs_mgr_update_logical_partition() 1130 entry->blk_device = device_name; in fs_mgr_update_logical_partition()
|
/system/core/fastboot/ |
D | usb_windows.cpp | 356 const wchar_t* wchar_name = next_interface->device_name; in find_usb_device() 364 DBG("attempting to open interface %S\n", next_interface->device_name); in find_usb_device() 365 handle = do_usb_open(next_interface->device_name); in find_usb_device()
|
/system/core/fs_mgr/include/ |
D | fs_mgr_dm_linear.h | 75 std::string device_name; member
|
/system/core/init/fuzzer/ |
D | README.md | 66 10. DeviceName (parameter name: `device_name`) 82 | `device_name` | `String` | Value obtained from FuzzedDataProvider|
|
D | init_ueventHandler_fuzzer.cpp | 71 uevent.device_name = fdp->ConsumeBool() ? fdp->ConsumeRandomLengthString(kMaxBytes) : ""; in CreateUevent()
|
/system/extras/partition_tools/ |
D | lpdump.cc | 315 std::string device_name = GetBlockDevicePartitionName(block_device); in ParseLinearExtentData() local 316 return std::make_tuple(std::move(device_name), extent.target_data); in ParseLinearExtentData() 346 std::string device_name = GetBlockDevicePartitionName(block_device); in PrintMetadata() local 347 cout << "linear " << device_name.c_str() << " " << extent.target_data; in PrintMetadata()
|
/system/extras/simpleperf/ |
D | event_type.cpp | 209 for (const auto& device_name : GetSubDirs(evtsrc_dirname)) { in LoadTypes() local 210 std::string evtdev_path = evtsrc_dirname + device_name; in LoadTypes() 215 LOG(DEBUG) << "cannot read event type: " << device_name; in LoadTypes() 236 types_.emplace(device_name + "/" + event_name + "/", type_id, config, "", ""); in LoadTypes()
|
/system/core/fs_mgr/libfs_avb/ |
D | fs_avb.cpp | 572 const std::string device_name(GetVerityDeviceName(*fstab_entry)); in TearDownAvbHashtree() local 578 dm.GetDmDevicePathByName(device_name, &path); in TearDownAvbHashtree() 580 if (!dm.DeleteDevice(device_name)) { in TearDownAvbHashtree()
|
D | avb_util.cpp | 104 const std::string device_name(GetVerityDeviceName(*fstab_entry)); in HashtreeDmVeritySetup() local 106 if (!dm.CreateDevice(device_name, table, &dev_path, timeout)) { in HashtreeDmVeritySetup()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot.cpp | 718 .device_name = GetSourceDeviceName(name), in MapSourceDevice() 2436 params.device_name = GetBaseDeviceName(params.GetPartitionName()); in MapPartitionWithSnapshot() 2656 cow_partition_params.device_name.clear(); in MapCowDevices() 4175 bool SnapshotManager::GetMappedImageDevicePath(const std::string& device_name, in GetMappedImageDevicePath() argument 4178 if (dm_.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDevicePath() 4179 return dm_.GetDmDevicePathByName(device_name, device_path); in GetMappedImageDevicePath() 4183 return images_->GetMappedImageDevice(device_name, device_path); in GetMappedImageDevicePath() 4186 bool SnapshotManager::GetMappedImageDeviceStringOrPath(const std::string& device_name, in GetMappedImageDeviceStringOrPath() argument 4189 if (dm_.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDeviceStringOrPath() 4190 return dm_.GetDeviceString(device_name, device_string_or_mapped_path); in GetMappedImageDeviceStringOrPath() [all …]
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapshot.h | 791 bool GetMappedImageDeviceStringOrPath(const std::string& device_name, 795 bool GetMappedImageDevicePath(const std::string& device_name, std::string* device_path);
|
/system/update_engine/common/ |
D | utils.cc | 668 std::array<char, PATH_MAX> device_name; in SetBlockDeviceReadOnly() local 669 char* pdevice = realpath(device.c_str(), device_name.data()); in SetBlockDeviceReadOnly()
|