Searched refs:DeleteDeviceIfExists (Results 1 – 11 of 11) sorted by relevance
96 bool DeleteDeviceIfExists(const std::string& name);100 bool DeleteDeviceIfExists(const std::string& name, const std::chrono::milliseconds& timeout_ms);
90 bool DeviceMapper::DeleteDeviceIfExists(const std::string& name, in DeleteDeviceIfExists() function in android::dm::DeviceMapper98 bool DeviceMapper::DeleteDeviceIfExists(const std::string& name) { in DeleteDeviceIfExists() function in android::dm::DeviceMapper99 return DeleteDeviceIfExists(name, 0ms); in DeleteDeviceIfExists()
688 android::base::make_scope_guard([&]() { dm.DeleteDeviceIfExists("empty-device", 5s); }); in TEST()
212 if (!dm_.DeleteDeviceIfExists(kSnapshotName)) { in Create()228 if (!dm_.DeleteDeviceIfExists(kSnapshotName)) { in Cleanup()
63 if (!dm_->DeleteDeviceIfExists(name_)) { in ~AutoUnmapDevice()
176 PCHECK(dm.DeleteDeviceIfExists(dev_name)) << dev_name; in CheckDeleteDeviceMapperTree()207 PCHECK(dm.DeleteDeviceIfExists(dev_name)) << dev_name; in CheckDeleteDeviceMapperTree()
596 if (!DeleteDeviceIfExists(name)) { in UnmapSnapshot()1429 if (!DeleteDeviceIfExists(base_name)) { in CollapseSnapshotDevice()1433 if (!DeleteDeviceIfExists(GetSourceDeviceName(name), 4000ms)) { in CollapseSnapshotDevice()2195 if (!DeleteDeviceIfExists(base_name)) { in UnmapPartitionWithSnapshot()2201 if (!DeleteDeviceIfExists(source_name)) { in UnmapPartitionWithSnapshot()2291 if (!DeleteDeviceIfExists(GetCowName(name), 4000ms)) { in UnmapCowDevices()2312 if (!DeleteDeviceIfExists(dm_user_name)) { in UnmapDmUserDevice()2711 if (!DeleteDeviceIfExists(existing_cow_partition->name())) { in UnmapAndDeleteCowPartition()3762 bool SnapshotManager::DeleteDeviceIfExists(const std::string& name, in DeleteDeviceIfExists() function in android::snapshot::SnapshotManager3767 if (dm.DeleteDeviceIfExists(name)) { in DeleteDeviceIfExists()
288 if (!dm_.DeleteDeviceIfExists(device)) { in DeleteDevice()390 if (!dm_.DeleteDeviceIfExists("test_partition_b")) { in SimulateReboot()393 if (!dm_.DeleteDeviceIfExists("test_partition_b-base")) { in SimulateReboot()967 if (!dm_.DeleteDeviceIfExists(name + "_a"s)) { in UnmapAll()
79 ret = dm.DeleteDeviceIfExists(getId()); in doCreate()
614 if (!dm.DeleteDeviceIfExists(name)) { in UnmapImageDevice()
785 bool DeleteDeviceIfExists(const std::string& name,