Home
last modified time | relevance | path

Searched refs:GetState (Results 1 – 23 of 23) sorted by relevance

/system/apex/apexd/
Dapexd_session_test.cpp123 ASSERT_EQ(SessionState::SUCCESS, migrated_session_1->GetState()); in TEST()
127 ASSERT_EQ(SessionState::ACTIVATION_FAILED, migrated_session_2->GetState()); in TEST()
170 ASSERT_EQ(SessionState::STAGED, same_session->GetState()); in TEST()
206 ASSERT_EQ(SessionState::SUCCESS, sessions[0].GetState()); in TEST()
209 ASSERT_EQ(SessionState::ACTIVATED, sessions[1].GetState()); in TEST()
236 ASSERT_EQ(SessionState::SUCCESS, sessions[0].GetState()); in TEST()
239 ASSERT_EQ(SessionState::SUCCESS, sessions[1].GetState()); in TEST()
272 ASSERT_EQ(SessionState::SUCCESS, sessions[0].GetState()); in TEST()
275 ASSERT_EQ(SessionState::ACTIVATED, sessions[1].GetState()); in TEST()
278 ASSERT_EQ(SessionState::STAGED, sessions[2].GetState()); in TEST()
[all …]
Dapexd_session.cpp143 [&](const ApexSession &s) { return s.GetState() != state; }), in GetSessionsInState()
149 SessionState::State ApexSession::GetState() const { return state_.state(); } in GetState() function in android::apex::ApexSession
158 switch (GetState()) { in IsFinalized()
262 << "; state = " << SessionState::State_Name(session.GetState()) in operator <<()
364 return s.GetState() != state; in GetSessionsInState()
Dapexd_session.h60 ::apex::proto::SessionState::State GetState() const;
Dapexd_test.cpp1862 dm.GetState("com.android.apex.test_package@2")); in TEST_F()
4672 ASSERT_EQ(apex_session->GetState(), SessionState::ACTIVATION_FAILED); in TEST_F()
4698 ASSERT_EQ(apex_session->GetState(), SessionState::REVERTED); in TEST_F()
4715 dm.GetState("com.android.apex.test_package")); in TEST_F()
4717 dm.GetState("com.android.apex.compressed")); in TEST_F()
5034 ASSERT_EQ(session->GetState(), SessionState::ACTIVATED); in TEST_F()
5065 ASSERT_NE(session->GetState(), SessionState::ACTIVATED); in TEST_F()
5135 ASSERT_EQ(SessionState::VERIFIED, sessions[0].GetState()); in TEST_F()
5138 ASSERT_EQ(SessionState::STAGED, sessions[1].GetState()); in TEST_F()
5141 ASSERT_EQ(SessionState::SUCCESS, sessions[2].GetState()); in TEST_F()
[all …]
Dapexd.cpp328 auto state = dm.GetState(name); in CreateVerityDevice()
1476 auto session_state = (*session).GetState(); in GetStagedApexFiles()
1683 switch (session->GetState()) { in AbortStagedSession()
2407 s.GetState() == SessionState::UNKNOWN; in RevertActiveSessions()
3197 auto session_state = (*session).GetState(); in MarkStagedSessionReady()
3215 if (session->GetState() == SessionState::SUCCESS) { in MarkStagedSessionSuccessful()
3217 } else if (session->GetState() == SessionState::ACTIVATED) { in MarkStagedSessionSuccessful()
3285 auto state = dm.GetState(dev.name()); in DeleteUnusedVerityDevices()
Dapexservice.cpp326 switch (session.GetState()) { in ConvertToApexSessionInfo()
859 << " State: " << SessionState_State_Name(session.GetState()) in dump()
/system/update_engine/
Dlibcurl_http_fetcher_unittest.cc188 EXPECT_EQ(state_machine_.GetState(), in TEST_F()
195 EXPECT_EQ(state_machine_.GetState(), in TEST_F()
202 EXPECT_EQ(state_machine_.GetState(), in TEST_F()
Dlibcurl_http_fetcher.h53 State GetState() { return state_; } in GetState() function
Dlibcurl_http_fetcher.cc492 if (unresolved_host_state_machine_.GetState() == in CurlPerformOnce()
501 } else if (unresolved_host_state_machine_.GetState() == in CurlPerformOnce()
/system/update_engine/aosp/
Ddynamic_partition_control_android_unittest.cc370 EXPECT_CALL(dynamicControl(), GetState(S("system"))) in TEST_P()
379 EXPECT_CALL(dynamicControl(), GetState(T("system"))).Times(0); in TEST_P()
385 EXPECT_CALL(dynamicControl(), GetState(S("bar"))).Times(0); in TEST_P()
391 EXPECT_CALL(dynamicControl(), GetState(T("bar"))).Times(0); in TEST_P()
417 GetState(AnyOf(S("vendor"), T("vendor"), S("system"), T("system")))) in TEST_P()
459 GetState(AnyOf(S("vendor"), T("vendor"), S("system"), T("system")))) in TEST_P()
512 EXPECT_CALL(dynamicControl(), GetState(S("system"))) in TEST_P()
520 EXPECT_CALL(dynamicControl(), GetState(T("system"))) in TEST_P()
537 EXPECT_CALL(dynamicControl(), GetState(S("bar"))).Times(0); in TEST_P()
543 EXPECT_CALL(dynamicControl(), GetState(T("bar"))).Times(0); in TEST_P()
Ddynamic_partition_control_android.cc233 DmDeviceState state = GetState(target_partition_name); in MapPartitionOnDeviceMapper()
254 state = GetState(target_partition_name); in MapPartitionOnDeviceMapper()
274 if (DeviceMapper::Instance().GetState(target_partition_name) != in UnmapPartitionOnDeviceMapper()
333 android::dm::DmDeviceState DynamicPartitionControlAndroid::GetState( in GetState() function in chromeos_update_engine::DynamicPartitionControlAndroid
335 return DeviceMapper::Instance().GetState(name); in GetState()
1234 if (GetState(partition_name_suffix) != DmDeviceState::ACTIVE) { in GetDynamicPartitionDevice()
Dmock_dynamic_partition_control_android.h52 GetState,
Ddynamic_partition_control_android.h171 virtual android::dm::DmDeviceState GetState(const std::string& name);
/system/core/fs_mgr/libdm/
Ddm_test.cpp177 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::ACTIVE); in TEST_F()
180 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::SUSPENDED); in TEST_F()
183 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::ACTIVE); in TEST_F()
597 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST_F()
688 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST_F()
723 ASSERT_EQ(DmDeviceState::INVALID, dm.GetState("libdm-test-dm-linear")); in TEST_F()
735 ASSERT_EQ(DmDeviceState::SUSPENDED, dm.GetState("empty-device")); in TEST_F()
Ddm.cpp96 if (GetState(name) == DmDeviceState::INVALID) { in DeleteDeviceIfExists()
161 if (GetState(name) == DmDeviceState::INVALID) { in DeleteDeviceIfExistsDeferred()
281 DmDeviceState DeviceMapper::GetState(const std::string& name) const { in GetState() function in android::dm::DeviceMapper
/system/core/fs_mgr/libdm/include/libdm/
Ddm.h76 virtual DmDeviceState GetState(const std::string& name) const = 0;
146 DmDeviceState GetState(const std::string& name) const override;
/system/core/fs_mgr/libsnapshot/include_test/libsnapshot/
Dtest_helpers.h143 virtual DmDeviceState GetState(const std::string& name) const override { in GetState() function
144 return impl_.GetState(name); in GetState()
/system/core/fs_mgr/
Dfs_mgr_overlayfs_control.cpp376 if (dm.GetState(android::gsi::kDsuScratch) != DmDeviceState::INVALID && in GetDsuScratchDevice()
423 if (dm.GetState(name) != DmDeviceState::INVALID && !DestroyLogicalPartition(name)) { in TruncatePartitionsWithSuffix()
436 *partition_exists = dm.GetState(partition_name) != DmDeviceState::INVALID; in CreateDynamicScratch()
950 if (dm.GetState(partition_name) != DmDeviceState::INVALID && in GetBootScratchDevice()
Dfs_mgr.cpp1337 if (dm.GetState(kUserdataWrapperName) != DmDeviceState::INVALID) { in WrapUserdata()
2198 if (dm.GetState(mount_point) == DmDeviceState::INVALID) { in fs_mgr_is_verity_enabled()
2223 if (dm.GetState(device) == DmDeviceState::INVALID || !dm.GetTableInfo(device, &table)) { in fs_mgr_get_hashtree_info()
/system/vold/
DMetadataCrypt.cpp88 if (dm.GetState(kDmNameUserdata) != DmDeviceState::INVALID) { in defaultkey_precreate_dm_device()
189 if (dm_name == kDmNameUserdata && dm.GetState(dm_name) == DmDeviceState::SUSPENDED) { in create_crypto_blk_dev()
/system/core/fs_mgr/libsnapshot/
Dsnapshot.cpp825 if (dm_.GetState(snapshot) == DmDeviceState::INVALID) { in InitiateMerge()
1008 if (dm_.GetState(dm_name) == DmDeviceState::INVALID) { in GetSingleTarget()
1710 if (dm_.GetState(user_cow_name) == DmDeviceState::INVALID) { in PerformInitTransition()
1937 if (dm_.GetState(name) == DmDeviceState::ACTIVE && !IsSnapshotDevice(name)) { in RemoveInvalidSnapshots()
1981 if (dm_.GetState(name) == DmDeviceState::INVALID || !IsSnapshotDevice(name)) { in RemoveAllSnapshots()
2710 if (dm_.GetState(dm_user_name) == DmDeviceState::INVALID) { in UnmapDmUserDevice()
2738 if (dm_.GetState(dm_user_name) == DmDeviceState::INVALID) { in UnmapUserspaceSnapshotDevice()
4178 if (dm_.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDevicePath()
4189 if (dm_.GetState(device_name) != DmDeviceState::INVALID) { in GetMappedImageDeviceStringOrPath()
4267 if (dm_.GetState(user_cow_name) == DmDeviceState::INVALID) { in DetachFirstStageSnapuserdForSelinux()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp123 return dm.GetState(image_name) != DmDeviceState::INVALID; in IsImageMapped()
718 if (dm.GetState(name) == DmDeviceState::INVALID) { in GetMappedImageDevice()
/system/core/init/
Dfirst_stage_mount.cpp200 if (dm.GetState("vroot") != android::dm::DmDeviceState::INVALID) { in GetRootEntry()