Searched refs:DmDeviceState (Results 1 – 16 of 16) sorted by relevance
/system/core/fs_mgr/libdm/ |
D | dm.cpp | 92 if (GetState(name) == DmDeviceState::INVALID) { in DeleteDeviceIfExists() 153 if (GetState(name) == DmDeviceState::INVALID) { in DeleteDeviceIfExistsDeferred() 236 DmDeviceState DeviceMapper::GetState(const std::string& name) const { in GetState() 240 return DmDeviceState::INVALID; in GetState() 243 return DmDeviceState::ACTIVE; in GetState() 245 return DmDeviceState::SUSPENDED; in GetState() 248 bool DeviceMapper::ChangeState(const std::string& name, DmDeviceState state) { in ChangeState() 249 if (state != DmDeviceState::SUSPENDED && state != DmDeviceState::ACTIVE) { in ChangeState() 256 if (state == DmDeviceState::SUSPENDED) io.flags = DM_SUSPEND_FLAG; in ChangeState() 260 << (state == DmDeviceState::SUSPENDED ? "suspend" : "resume") << " failed"; in ChangeState()
|
D | dm_test.cpp | 148 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::ACTIVE); in TEST() 150 ASSERT_TRUE(dm.ChangeState(dev.name(), DmDeviceState::SUSPENDED)); in TEST() 151 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::SUSPENDED); in TEST() 153 ASSERT_TRUE(dm.ChangeState(dev.name(), DmDeviceState::ACTIVE)); in TEST() 154 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::ACTIVE); in TEST() 557 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST() 643 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST() 678 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | dm.h | 48 enum class DmDeviceState { INVALID, SUSPENDED, ACTIVE }; enum 111 DmDeviceState GetState(const std::string& name) const; 116 bool ChangeState(const std::string& name, DmDeviceState state);
|
/system/update_engine/aosp/ |
D | dynamic_partition_control_android.cc | 60 using android::dm::DmDeviceState; 218 DmDeviceState state = GetState(target_partition_name); in MapPartitionOnDeviceMapper() 219 if (state == DmDeviceState::ACTIVE) { in MapPartitionOnDeviceMapper() 240 if (state != DmDeviceState::INVALID) { in MapPartitionOnDeviceMapper() 242 << static_cast<std::underlying_type_t<DmDeviceState>>(state); in MapPartitionOnDeviceMapper() 246 if (state == DmDeviceState::INVALID) { in MapPartitionOnDeviceMapper() 253 << static_cast<std::underlying_type_t<DmDeviceState>>(state); in MapPartitionOnDeviceMapper() 260 DmDeviceState::INVALID) { in UnmapPartitionOnDeviceMapper() 312 android::dm::DmDeviceState DynamicPartitionControlAndroid::GetState( in GetState() 1204 if (GetState(partition_name_suffix) != DmDeviceState::ACTIVE) { in GetDynamicPartitionDevice()
|
D | mock_dynamic_partition_control_android.h | 51 MOCK_METHOD(::android::dm::DmDeviceState,
|
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 | dynamic_partition_control_android.h | 164 virtual android::dm::DmDeviceState GetState(const std::string& name);
|
/system/core/fs_mgr/libfiemap/ |
D | image_manager.cpp | 43 using android::dm::DmDeviceState; 123 return dm.GetState(image_name) != DmDeviceState::INVALID; in IsImageMapped() 713 if (dm.GetState(name) == DmDeviceState::INVALID) { in GetMappedImageDevice()
|
/system/core/fs_mgr/libsnapshot/ |
D | power_test.cpp | 44 using android::dm::DmDeviceState; 408 if (dm_.GetState(kSnapshotName) == DmDeviceState::INVALID) { in Merge()
|
D | snapshot.cpp | 58 using android::dm::DmDeviceState; 667 if (dm.GetState(snapshot) == DmDeviceState::INVALID) { in InitiateMerge() 837 if (dm.GetState(dm_name) == DmDeviceState::INVALID) { in GetSingleTarget() 1484 if (dm.GetState(user_cow_name) == DmDeviceState::INVALID) { in PerformInitTransition() 1701 if (dm.GetState(name) == DmDeviceState::INVALID || !IsSnapshotDevice(name)) { in RemoveAllSnapshots() 2277 if (dm.GetState(dm_user_name) == DmDeviceState::INVALID) { in UnmapDmUserDevice() 3603 if (dm.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDevicePath() 3615 if (dm.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDeviceStringOrPath()
|
D | snapshot_test.cpp | 58 using android::dm::DmDeviceState;
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 502 if (!dm.ChangeState(argv[0], DmDeviceState::ACTIVE)) { in ResumeCmdHandler() 516 if (!dm.ChangeState(argv[0], DmDeviceState::SUSPENDED)) { in SuspendCmdHandler()
|
/system/core/fs_mgr/ |
D | fs_mgr_overlayfs.cpp | 931 if (dm.GetState(android::gsi::kDsuScratch) != DmDeviceState::INVALID && in GetDsuScratchDevice() 957 if (dm.GetState(partition_name) != DmDeviceState::INVALID && in GetBootScratchDevice() 999 if (dm.GetState(name) != DmDeviceState::INVALID && !DestroyLogicalPartition(name)) { in TruncatePartitionsWithSuffix() 1013 *partition_exists = dm.GetState(partition_name) != DmDeviceState::INVALID; in CreateDynamicScratch()
|
D | fs_mgr.cpp | 107 using android::dm::DmDeviceState; 1282 if (dm.GetState(kUserdataWrapperName) != DmDeviceState::INVALID) { in WrapUserdata() 2169 if (dm.GetState(mount_point) == DmDeviceState::INVALID) { in fs_mgr_is_verity_enabled() 2199 if (dm.GetState(device) == DmDeviceState::INVALID || !dm.GetTableInfo(device, &table)) { in fs_mgr_get_hashtree_algorithm() 2235 if (dm.GetState(device) == DmDeviceState::INVALID || !dm.GetTableInfo(device, &table)) { in fs_mgr_verity_is_check_at_most_once()
|
/system/core/init/ |
D | first_stage_mount.cpp | 203 if (dm.GetState("vroot") != android::dm::DmDeviceState::INVALID) { in GetRootEntry()
|
/system/apex/apexd/ |
D | apexd.cpp | 102 using android::dm::DmDeviceState; 311 if (dm.GetState(name) != DmDeviceState::INVALID) { in CreateVerityDevice()
|