Home
last modified time | relevance | path

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

/aosp14/system/core/init/
H A Dblock_dev_initializer.cpp90 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()
137 auto uevent_callback = [&device_name, &device, this, &found](const Uevent& uevent) { in InitDmDevice()
138 if (uevent.device_name == device_name) { in InitDmDevice()
H A Ddevices.cpp425 links.emplace_back("/dev/block/by-name/" + uevent.device_name); in GetBlockDeviceSymlinks()
426 auto partition_name = GetPartitionNameForDevice(uevent.device_name); in GetBlockDeviceSymlinks()
433 if (ReadFileToString("/sys/class/block/" + uevent.device_name + "/queue/zoned", &model) && in GetBlockDeviceSymlinks()
515 if (uevent.device_name == "ashmem") { in HandleAshmemUevent()
525 dup_ashmem_uevent.device_name += boot_id; in HandleAshmemUevent()
556 if (!uevent.device_name.empty()) { in HandleUevent()
557 devpath = "/dev/" + uevent.device_name; in HandleUevent()
569 } else if (uevent.subsystem == "misc" && StartsWith(uevent.device_name, "dm-user/")) { in HandleUevent()
570 devpath = "/dev/dm-user/" + uevent.device_name.substr(8); in HandleUevent()
H A Duevent.h31 std::string device_name; member
H A Duevent_listener.cpp41 uevent->device_name.clear(); in ParseEvent()
71 uevent->device_name = msg; in ParseEvent()
H A Ddevices.h96 ? uevent.device_name in ParseDevPath()
/aosp14/system/core/fs_mgr/
H A 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()
H A Dfs_mgr.cpp1107 std::string device_name; in fs_mgr_update_logical_partition() local
1108 if (!dm.GetDmDevicePathByName(entry->blk_device, &device_name)) { in fs_mgr_update_logical_partition()
1112 entry->blk_device = device_name; in fs_mgr_update_logical_partition()
/aosp14/system/core/fastboot/
H A 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()
/aosp14/system/core/init/fuzzer/
H A DREADME.md66 10. DeviceName (parameter name: `device_name`)
82 | `device_name` | `String` | Value obtained from FuzzedDataProvider|
H A Dinit_ueventHandler_fuzzer.cpp71 uevent.device_name = fdp->ConsumeBool() ? fdp->ConsumeRandomLengthString(kMaxBytes) : ""; in CreateUevent()
/aosp14/system/core/fs_mgr/include/
H A Dfs_mgr_dm_linear.h75 std::string device_name; member
/aosp14/system/core/fs_mgr/libfs_avb/
H A Dfs_avb.cpp507 const std::string device_name(GetVerityDeviceName(*fstab_entry)); in TearDownAvbHashtree() local
513 dm.GetDmDevicePathByName(device_name, &path); in TearDownAvbHashtree()
515 if (!dm.DeleteDevice(device_name)) { in TearDownAvbHashtree()
H A Davb_util.cpp104 const std::string device_name(GetVerityDeviceName(*fstab_entry)); in HashtreeDmVeritySetup() local
106 if (!dm.CreateDevice(device_name, table, &dev_path, timeout)) { in HashtreeDmVeritySetup()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
H A DInputControllerTest.java233 String device_name = in createInputDevice_stringWithLessThanMaxCharsButMoreThanMaxBytesRaisesException() local
241 mInputController.createDpad(device_name, /*vendorId= */5, /*productId=*/5, in createInputDevice_stringWithLessThanMaxCharsButMoreThanMaxBytesRaisesException()
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dsnapshot.cpp671 .device_name = GetSourceDeviceName(name), in MapSourceDevice()
2383 params.device_name = GetBaseDeviceName(params.GetPartitionName()); in MapPartitionWithSnapshot()
2603 cow_partition_params.device_name.clear(); in MapCowDevices()
4111 bool SnapshotManager::GetMappedImageDevicePath(const std::string& device_name, in GetMappedImageDevicePath() argument
4114 if (dm_.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDevicePath()
4115 return dm_.GetDmDevicePathByName(device_name, device_path); in GetMappedImageDevicePath()
4119 return images_->GetMappedImageDevice(device_name, device_path); in GetMappedImageDevicePath()
4122 bool SnapshotManager::GetMappedImageDeviceStringOrPath(const std::string& device_name, in GetMappedImageDeviceStringOrPath() argument
4125 if (dm_.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDeviceStringOrPath()
4126 return dm_.GetDeviceString(device_name, device_string_or_mapped_path); in GetMappedImageDeviceStringOrPath()
[all …]
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/
H A Dsnapshot.h791 bool GetMappedImageDeviceStringOrPath(const std::string& device_name,
795 bool GetMappedImageDevicePath(const std::string& device_name, std::string* device_path);
/aosp14/frameworks/base/core/proto/android/service/
H A Dusb.proto412 optional string device_name = 1; field
/aosp14/frameworks/base/core/jni/
H A Dandroid_media_AudioSystem.cpp656 …ceConfigChange(JNIEnv *env, jobject thiz, jint device, jstring device_address, jstring device_name, in android_media_AudioSystem_handleDeviceConfigChange() argument
660 const char *c_name = env->GetStringUTFChars(device_name, NULL); in android_media_AudioSystem_handleDeviceConfigChange()
664 env->ReleaseStringUTFChars(device_name, c_name); in android_media_AudioSystem_handleDeviceConfigChange()
/aosp14/frameworks/base/media/java/android/media/
H A DAudioSystem.java1712 String device_name, in handleDeviceConfigChange() argument
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt37228 field public static final String DEVICE_NAME = "device_name";