Home
last modified time | relevance | path

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

/system/apex/apexd/
Dapexd_session.cpp139 [&](const ApexSession &s) { return s.GetState() != state; }), in GetSessionsInState()
149 if (!session.IsFinalized() && session.GetState() != SessionState::UNKNOWN) { in GetActiveSessions()
156 SessionState::State ApexSession::GetState() const { return state_.state(); } in GetState() function in android::apex::ApexSession
165 switch (GetState()) { in IsFinalized()
268 << "; state = " << SessionState::State_Name(session.GetState()) in operator <<()
Dapexd_session_test.cpp118 ASSERT_EQ(SessionState::SUCCESS, migrated_session_1->GetState()); in TEST()
122 ASSERT_EQ(SessionState::ACTIVATION_FAILED, migrated_session_2->GetState()); in TEST()
Dapexd_session.h53 ::apex::proto::SessionState::State GetState() const;
Dapexd.cpp307 auto state = dm.GetState(name); in CreateVerityDevice()
1495 auto session_state = (*session).GetState(); in GetStagedApexFiles()
1730 switch (session->GetState()) { in AbortStagedSession()
3245 auto session_state = (*session).GetState(); in MarkStagedSessionReady()
3263 if (session->GetState() == SessionState::SUCCESS) { in MarkStagedSessionSuccessful()
3265 } else if (session->GetState() == SessionState::ACTIVATED) { in MarkStagedSessionSuccessful()
3333 auto state = dm.GetState(dev.name()); in DeleteUnusedVerityDevices()
Dapexservice.cpp325 switch (session.GetState()) { in ConvertToApexSessionInfo()
851 << " State: " << SessionState_State_Name(session.GetState()) in dump()
Dapexd_test.cpp1800 dm.GetState("com.android.apex.test_package@2")); in TEST_F()
4602 ASSERT_EQ(apex_session->GetState(), SessionState::ACTIVATION_FAILED); in TEST_F()
4626 ASSERT_EQ(apex_session->GetState(), SessionState::REVERTED); in TEST_F()
4643 dm.GetState("com.android.apex.test_package")); in TEST_F()
4645 dm.GetState("com.android.apex.compressed")); in TEST_F()
4962 ASSERT_EQ(session->GetState(), SessionState::ACTIVATED); in TEST_F()
4993 ASSERT_NE(session->GetState(), SessionState::ACTIVATED); in TEST_F()
/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.cc369 EXPECT_CALL(dynamicControl(), GetState(S("system"))) in TEST_P()
378 EXPECT_CALL(dynamicControl(), GetState(T("system"))).Times(0); in TEST_P()
384 EXPECT_CALL(dynamicControl(), GetState(S("bar"))).Times(0); in TEST_P()
390 EXPECT_CALL(dynamicControl(), GetState(T("bar"))).Times(0); in TEST_P()
416 GetState(AnyOf(S("vendor"), T("vendor"), S("system"), T("system")))) in TEST_P()
458 GetState(AnyOf(S("vendor"), T("vendor"), S("system"), T("system")))) in TEST_P()
510 EXPECT_CALL(dynamicControl(), GetState(S("system"))) in TEST_P()
518 EXPECT_CALL(dynamicControl(), GetState(T("system"))) in TEST_P()
535 EXPECT_CALL(dynamicControl(), GetState(S("bar"))).Times(0); in TEST_P()
541 EXPECT_CALL(dynamicControl(), GetState(T("bar"))).Times(0); in TEST_P()
Ddynamic_partition_control_android.cc232 DmDeviceState state = GetState(target_partition_name); in MapPartitionOnDeviceMapper()
253 state = GetState(target_partition_name); in MapPartitionOnDeviceMapper()
273 if (DeviceMapper::Instance().GetState(target_partition_name) != in UnmapPartitionOnDeviceMapper()
332 android::dm::DmDeviceState DynamicPartitionControlAndroid::GetState( in GetState() function in chromeos_update_engine::DynamicPartitionControlAndroid
334 return DeviceMapper::Instance().GetState(name); in GetState()
1227 if (GetState(partition_name_suffix) != DmDeviceState::ACTIVE) { in GetDynamicPartitionDevice()
Dmock_dynamic_partition_control_android.h52 GetState,
Ddynamic_partition_control_android.h170 virtual android::dm::DmDeviceState GetState(const std::string& name);
/system/core/fs_mgr/libdm/
Ddm_test.cpp175 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::ACTIVE); in TEST_F()
178 ASSERT_EQ(dm.GetState(dev.name()), DmDeviceState::SUSPENDED); 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()
Ddm.cpp93 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() function in android::dm::DeviceMapper
/system/core/fs_mgr/libdm/include/libdm/
Ddm.h76 virtual DmDeviceState GetState(const std::string& name) const = 0;
145 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/vold/
DMetadataCrypt.cpp88 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/security/keystore2/src/
Dpermission.rs114 GetState,
503 assert!(check_keystore_permission(&system_server_ctx, KeystorePerm::GetState).is_ok()); in check_keystore_permission_test()
513 assert!(check_keystore_permission(&shell_ctx, KeystorePerm::GetState).is_ok()); in check_keystore_permission_test()
Dmaintenance.rs144 check_keystore_permission(KeystorePerm::GetState).context("In get_state.")?; in get_state()
/system/core/fs_mgr/
Dfs_mgr_overlayfs.cpp901 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()
Dfs_mgr.cpp1305 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/
Dsnapshot.cpp770 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()
4203 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.cpp192 if (dm.GetState("vroot") != android::dm::DmDeviceState::INVALID) { in GetRootEntry()