/aosp14/system/core/init/ |
H A 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() 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 D | devices.cpp | 425 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 D | uevent.h | 31 std::string device_name; member
|
H A D | uevent_listener.cpp | 41 uevent->device_name.clear(); in ParseEvent() 71 uevent->device_name = msg; in ParseEvent()
|
H A D | devices.h | 96 ? uevent.device_name in ParseDevPath()
|
/aosp14/system/core/fs_mgr/ |
H A 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()
|
H A D | fs_mgr.cpp | 1107 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 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()
|
/aosp14/system/core/init/fuzzer/ |
H A D | README.md | 66 10. DeviceName (parameter name: `device_name`) 82 | `device_name` | `String` | Value obtained from FuzzedDataProvider|
|
H A D | init_ueventHandler_fuzzer.cpp | 71 uevent.device_name = fdp->ConsumeBool() ? fdp->ConsumeRandomLengthString(kMaxBytes) : ""; in CreateUevent()
|
/aosp14/system/core/fs_mgr/include/ |
H A D | fs_mgr_dm_linear.h | 75 std::string device_name; member
|
/aosp14/system/core/fs_mgr/libfs_avb/ |
H A D | fs_avb.cpp | 507 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 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()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
H A D | InputControllerTest.java | 233 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 D | snapshot.cpp | 671 .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 D | snapshot.h | 791 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 D | usb.proto | 412 optional string device_name = 1; field
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_media_AudioSystem.cpp | 656 …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 D | AudioSystem.java | 1712 String device_name, in handleDeviceConfigChange() argument
|
/aosp14/frameworks/base/core/api/ |
H A D | current.txt | 37228 field public static final String DEVICE_NAME = "device_name";
|