Home
last modified time | relevance | path

Searched refs:device_name (Results 1 – 25 of 35) sorted by relevance

12

/system/apex/apexd/
Dapex_database.h41 std::string device_name; // Name of the dm verity device. member
53 const std::string& device_name,
59 device_name(device_name), in loop_name()
82 compare_val = device_name.compare(rhs.device_name);
262 if (pair.first.device_name != "") { in CheckUniqueLoopDm()
263 CHECK(dm_devices.insert(pair.first.device_name).second) in CheckUniqueLoopDm()
264 << "Duplicate dm device: " << pair.first.device_name; in CheckUniqueLoopDm()
Dapex_database_test.cpp106 const std::string& mount_point, const std::string& device_name, in Contains() argument
112 mount_point == d.mount_point && device_name == d.device_name && in Contains()
128 dm == d.device_name && hashtree_loop_name == d.hashtree_loop_name) { in ContainsPackage()
225 ASSERT_EQ(ret->device_name, std::string(kDeviceName)); in TEST()
Dapexd_test.cpp991 ASSERT_EQ(data.device_name, "test.apex.rebootless@2_1"); in TEST_F()
1032 ASSERT_EQ(data.device_name, "test.apex.rebootless@1_1"); in TEST_F()
1080 ASSERT_EQ(data.device_name, "test.apex.rebootless@2_1"); in TEST_F()
1133 ASSERT_EQ(data.device_name, "test.apex.rebootless@1_2"); in TEST_F()
1181 ASSERT_EQ(data.device_name, "test.apex.rebootless@2_1"); in TEST_F()
1269 ASSERT_EQ(data.device_name, "test.apex.rebootless@1"); in TEST_F()
1915 ASSERT_EQ(data.device_name, in TEST_F()
1994 ASSERT_EQ(data.device_name, in TEST_F()
2042 ASSERT_EQ(data.device_name, in TEST_F()
2090 ASSERT_EQ(data.device_name, in TEST_F()
[all …]
Dapexd_loop.cpp91 std::string device_name = Basename(device_path); in ConfigureReadAhead() local
94 StringPrintf("/sys/block/%s/queue/read_ahead_kb", device_name.c_str()); in ConfigureReadAhead()
Dapexd.cpp425 const std::string& device_name, in MountPackageImpl() argument
527 CreateVerityDevice(device_name, *verity_table); in MountPackageImpl()
533 apex_data.device_name = device_name; in MountPackageImpl()
636 if (!data.device_name.empty()) { in Unmount()
637 const auto& result = DeleteVerityDevice(data.device_name, deferred); in Unmount()
1045 const std::string& device_name) { in MountPackage() argument
1046 auto ret = MountPackageImpl(apex, mount_point, device_name, in MountPackage()
1237 const std::string& device_name) { in ActivatePackageImpl() argument
1296 auto mount_status = MountPackage(apex_file, mount_point, device_name); in ActivatePackageImpl()
1582 std::string device_name = GetPackageId(apex->GetManifest()); in ActivateApexWorker() local
[all …]
/system/core/init/
Dblock_dev_initializer.cpp127 const std::string device_name(basename(device.c_str())); in InitDmDevice() local
128 const std::string syspath = "/sys/block/" + device_name; in InitDmDevice()
131 auto uevent_callback = [&device_name, &device, this, &found](const Uevent& uevent) { in InitDmDevice()
132 if (uevent.device_name == device_name) { in InitDmDevice()
Duevent.h31 std::string device_name; member
Ddevices.cpp378 links.emplace_back("/dev/block/by-name/" + uevent.device_name); in GetBlockDeviceSymlinks()
454 if (uevent.device_name == "ashmem") { in HandleAshmemUevent()
464 dup_ashmem_uevent.device_name += boot_id; in HandleAshmemUevent()
495 if (!uevent.device_name.empty()) { in HandleUevent()
496 devpath = "/dev/" + uevent.device_name; in HandleUevent()
508 } else if (uevent.subsystem == "misc" && StartsWith(uevent.device_name, "dm-user/")) { in HandleUevent()
509 devpath = "/dev/dm-user/" + uevent.device_name.substr(8); in HandleUevent()
Duevent_listener.cpp41 uevent->device_name.clear(); in ParseEvent()
71 uevent->device_name = msg; in ParseEvent()
Ddevices.h96 ? uevent.device_name in ParseDevPath()
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp227 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()
/system/bt/service/common/android/bluetooth/
DIBluetoothCallback.aidl29 String device_name, in OnSspRequest() argument
/system/bt/service/common/bluetooth/
Dscan_filter.h37 const std::string& device_name() const { return device_name_; } in device_name() function
/system/core/fastboot/
Dusb_windows.cpp356 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/
Dfs_mgr_dm_linear.h75 std::string device_name; member
/system/bt/gd/security/pairing/
Dclassic_pairing_handler.h45 std::string device_name, in ClassicPairingHandler() argument
58 device_name_(std::move(device_name)) {} in ClassicPairingHandler()
/system/extras/partition_tools/
Dlpdump.cc302 std::string device_name = GetBlockDevicePartitionName(block_device); in ParseLinearExtentData() local
303 return std::make_tuple(std::move(device_name), extent.target_data); in ParseLinearExtentData()
333 std::string device_name = GetBlockDevicePartitionName(block_device); in PrintMetadata() local
334 cout << "linear " << device_name.c_str() << " " << extent.target_data; in PrintMetadata()
/system/core/fs_mgr/libfs_avb/
Dfs_avb.cpp506 const std::string device_name(GetVerityDeviceName(*fstab_entry)); in TearDownAvbHashtree() local
512 dm.GetDmDevicePathByName(device_name, &path); in TearDownAvbHashtree()
514 if (!dm.DeleteDevice(device_name)) { in TearDownAvbHashtree()
/system/extras/simpleperf/
Devent_type.cpp210 for (const auto& device_name : GetSubDirs(evtsrc_dirname)) { in LoadTypes() local
211 std::string evtdev_path = evtsrc_dirname + device_name; in LoadTypes()
216 LOG(DEBUG) << "cannot read event type: " << device_name; in LoadTypes()
237 types_.emplace(device_name + "/" + event_name + "/", type_id, config, "", ""); in LoadTypes()
/system/bt/service/
Dadapter.h78 const std::string& device_name, int cod,
/system/bt/service/ipc/binder/
Dbluetooth_binder_server.cc416 const std::string& device_name, in OnSspRequest() argument
421 << ", device_name: " << device_name << ", cod: " << cod in OnSspRequest()
426 android::String16 name_s16(device_name.c_str()); in OnSspRequest()
Dbluetooth_binder_server.h136 const std::string& device_name, int cod,
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz.cpp164 params.device_name = params_proto.device_name(); in SNAPSHOT_FUZZ_FUNCTION()
Dsnapshot.cpp573 .device_name = GetSourceDeviceName(name), in MapSourceDevice()
2030 params.device_name = GetBaseDeviceName(params.GetPartitionName()); in MapPartitionWithSnapshot()
2223 cow_partition_params.device_name.clear(); in MapCowDevices()
3598 bool SnapshotManager::GetMappedImageDevicePath(const std::string& device_name, in GetMappedImageDevicePath() argument
3603 if (dm.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDevicePath()
3604 return dm.GetDmDevicePathByName(device_name, device_path); in GetMappedImageDevicePath()
3608 return images_->GetMappedImageDevice(device_name, device_path); in GetMappedImageDevicePath()
3611 bool SnapshotManager::GetMappedImageDeviceStringOrPath(const std::string& device_name, in GetMappedImageDeviceStringOrPath() argument
3615 if (dm.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDeviceStringOrPath()
3616 return dm.GetDeviceString(device_name, device_string_or_mapped_path); in GetMappedImageDeviceStringOrPath()
[all …]
/system/core/fs_mgr/libsnapshot/android/snapshot/
Dsnapshot_fuzz.proto46 string device_name = 8; field

12