/system/core/fs_mgr/libdm/ |
D | dm.cpp | 93 if (GetState(name) == DmDeviceState::INVALID) { in DeleteDeviceIfExists() 154 if (GetState(name) == DmDeviceState::INVALID) { in DeleteDeviceIfExistsDeferred() 274 DmDeviceState DeviceMapper::GetState(const std::string& name) const { in GetState() 278 return DmDeviceState::INVALID; in GetState() 281 return DmDeviceState::ACTIVE; in GetState() 283 return DmDeviceState::SUSPENDED; in GetState() 286 bool DeviceMapper::ChangeState(const std::string& name, DmDeviceState state) { in ChangeState() 287 if (state != DmDeviceState::SUSPENDED && state != DmDeviceState::ACTIVE) { in ChangeState() 294 if (state == DmDeviceState::SUSPENDED) io.flags = DM_SUSPEND_FLAG; in ChangeState() 298 << (state == DmDeviceState::SUSPENDED ? "suspend" : "resume") << " failed"; in ChangeState()
|
D | dm_test.cpp | 175 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::ACTIVE); in TEST_F() 177 ASSERT_TRUE(dm.ChangeState(dev.name(), DmDeviceState::SUSPENDED)); in TEST_F() 178 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::SUSPENDED); in TEST_F() 180 ASSERT_TRUE(dm.ChangeState(dev.name(), DmDeviceState::ACTIVE)); in TEST_F() 181 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::ACTIVE); in TEST_F() 584 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST_F() 670 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST_F() 705 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST_F() 717 ASSERT_EQ(DmDeviceState::SUSPENDED, dm.GetState("empty-device")); in TEST_F()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 51 enum class DmDeviceState { INVALID, SUSPENDED, ACTIVE }; enum 76 virtual DmDeviceState GetState(const std::string& name) const = 0; 145 DmDeviceState GetState(const std::string& name) const override; 150 bool ChangeState(const std::string& name, DmDeviceState state);
|
/system/update_engine/aosp/ |
D | dynamic_partition_control_android.cc | 60 using android::dm::DmDeviceState; 232 DmDeviceState state = GetState(target_partition_name); in MapPartitionOnDeviceMapper() 233 if (state == DmDeviceState::ACTIVE) { in MapPartitionOnDeviceMapper() 254 if (state != DmDeviceState::INVALID) { in MapPartitionOnDeviceMapper() 256 << static_cast<std::underlying_type_t<DmDeviceState>>(state); in MapPartitionOnDeviceMapper() 260 if (state == DmDeviceState::INVALID) { in MapPartitionOnDeviceMapper() 267 << static_cast<std::underlying_type_t<DmDeviceState>>(state); in MapPartitionOnDeviceMapper() 274 DmDeviceState::INVALID) { in UnmapPartitionOnDeviceMapper() 332 android::dm::DmDeviceState DynamicPartitionControlAndroid::GetState( in GetState() 1227 if (GetState(partition_name_suffix) != DmDeviceState::ACTIVE) { in GetDynamicPartitionDevice()
|
D | dynamic_partition_control_android_unittest.cc | 35 using android::dm::DmDeviceState; 371 .WillOnce(Return(DmDeviceState::ACTIVE)); in TEST_P() 417 .WillRepeatedly(Return(DmDeviceState::ACTIVE)); in TEST_P() 459 .WillRepeatedly(Return(DmDeviceState::ACTIVE)); in TEST_P() 512 .WillOnce(Return(DmDeviceState::ACTIVE)); in TEST_P() 520 .WillOnce(Return(DmDeviceState::ACTIVE)); in TEST_P()
|
D | mock_dynamic_partition_control_android.h | 51 MOCK_METHOD(::android::dm::DmDeviceState,
|
D | dynamic_partition_control_android.h | 170 virtual android::dm::DmDeviceState GetState(const std::string& name);
|
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/ |
D | test_helpers.h | 132 using DmDeviceState = android::dm::DmDeviceState; variable 143 virtual DmDeviceState GetState(const std::string& name) const override { in GetState()
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 274 if (!table_args->suspended && !dm.ChangeState(name, DmDeviceState::ACTIVE)) { in DmCreateCmdHandler() 313 if (!table_args->suspended && !dm.ChangeState(name, DmDeviceState::ACTIVE)) { in DmReplaceCmdHandler() 525 if (!dm.ChangeState(argv[0], DmDeviceState::ACTIVE)) { in ResumeCmdHandler() 539 if (!dm.ChangeState(argv[0], DmDeviceState::SUSPENDED)) { in SuspendCmdHandler()
|
/system/vold/ |
D | MetadataCrypt.cpp | 88 if (dm.GetState(kDmNameUserdata) != DmDeviceState::INVALID) { in defaultkey_precreate_dm_device() 191 if (dm_name == kDmNameUserdata && dm.GetState(dm_name) == DmDeviceState::SUSPENDED) { in create_crypto_blk_dev()
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 43 using android::dm::DmDeviceState; 123 return dm.GetState(image_name) != DmDeviceState::INVALID; in IsImageMapped() 718 if (dm.GetState(name) == DmDeviceState::INVALID) { in GetMappedImageDevice()
|
/system/core/fs_mgr/ |
D | fs_mgr_overlayfs.cpp | 901 if (dm.GetState(android::gsi::kDsuScratch) != DmDeviceState::INVALID && in GetDsuScratchDevice() 927 if (dm.GetState(partition_name) != DmDeviceState::INVALID && in GetBootScratchDevice() 971 if (dm.GetState(name) != DmDeviceState::INVALID && !DestroyLogicalPartition(name)) { in TruncatePartitionsWithSuffix() 984 *partition_exists = dm.GetState(partition_name) != DmDeviceState::INVALID; in CreateDynamicScratch()
|
D | fs_mgr.cpp | 107 using android::dm::DmDeviceState; 1305 if (dm.GetState(kUserdataWrapperName) != DmDeviceState::INVALID) { in WrapUserdata() 2179 if (dm.GetState(mount_point) == DmDeviceState::INVALID) { in fs_mgr_is_verity_enabled() 2204 if (dm.GetState(device) == DmDeviceState::INVALID || !dm.GetTableInfo(device, &table)) { in fs_mgr_get_hashtree_info()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot.cpp | 59 using android::dm::DmDeviceState; 770 if (dm_.GetState(snapshot) == DmDeviceState::INVALID) { in InitiateMerge() 953 if (dm_.GetState(dm_name) == DmDeviceState::INVALID) { in GetSingleTarget() 1731 if (dm_.GetState(user_cow_name) == DmDeviceState::INVALID) { in PerformInitTransition() 1956 if (dm_.GetState(name) == DmDeviceState::ACTIVE && !IsSnapshotDevice(name)) { in RemoveInvalidSnapshots() 2000 if (dm_.GetState(name) == DmDeviceState::INVALID || !IsSnapshotDevice(name)) { in RemoveAllSnapshots() 2657 if (dm_.GetState(dm_user_name) == DmDeviceState::INVALID) { in UnmapDmUserDevice() 2685 if (dm_.GetState(dm_user_name) == DmDeviceState::INVALID) { in UnmapUserspaceSnapshotDevice() 4114 if (dm_.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDevicePath() 4125 if (dm_.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDeviceStringOrPath() [all …]
|
D | snapshot_test.cpp | 75 using android::dm::DmDeviceState;
|
/system/core/init/ |
D | first_stage_mount.cpp | 192 if (dm.GetState("vroot") != android::dm::DmDeviceState::INVALID) { in GetRootEntry()
|
/system/apex/apexd/ |
D | apexd.cpp | 103 using android::dm::DmDeviceState; 308 if (state == DmDeviceState::INVALID) { in CreateVerityDevice() 313 if (state == DmDeviceState::ACTIVE) { in CreateVerityDevice() 331 if (state != DmDeviceState::INVALID) { in CreateVerityDevice() 3334 if (state == DmDeviceState::SUSPENDED && IsApexDevice(dev.name())) { in DeleteUnusedVerityDevices()
|
D | apexd_test.cpp | 1799 ASSERT_EQ(dm::DmDeviceState::INVALID, in TEST_F() 4642 ASSERT_EQ(dm::DmDeviceState::SUSPENDED, in TEST_F() 4644 ASSERT_EQ(dm::DmDeviceState::SUSPENDED, in TEST_F()
|