Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8294c8b authored by Jonglin Lee's avatar Jonglin Lee Committed by Automerger Merge Worker
Browse files

Merge changes from topic "revert-1926977-NUIGVFOGKB" am: 8aa3bf90 am: bde7cc1b

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1927603

Change-Id: I8c21ce2bd7480154482aef09482566081f603c52
parents 828c382f bde7cc1b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -19,8 +19,6 @@
#include <fs_mgr_overlayfs.h>
#include <libfiemap/image_manager.h>

#include "utility.h"

namespace android {
namespace snapshot {

@@ -145,9 +143,5 @@ android::dm::IDeviceMapper& DeviceInfo::GetDeviceMapper() {
    return android::dm::DeviceMapper::Instance();
}

bool DeviceInfo::UseUserspaceSnapshots() const {
    return IsUserspaceSnapshotsEnabled();
}

}  // namespace snapshot
}  // namespace android
+0 −1
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ class DeviceInfo final : public SnapshotManager::IDeviceInfo {
    std::unique_ptr<IImageManager> OpenImageManager() const override;
    bool IsFirstStageInit() const override;
    android::dm::IDeviceMapper& GetDeviceMapper() override;
    bool UseUserspaceSnapshots() const override;

    void set_first_stage_init(bool value) { first_stage_init_ = value; }

+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ class MockDeviceInfo : public SnapshotManager::IDeviceInfo {
    MOCK_METHOD(bool, IsFirstStageInit, (), (const, override));
    MOCK_METHOD(std::unique_ptr<android::fiemap::IImageManager>, OpenImageManager, (),
                (const, override));
    MOCK_METHOD(bool, UseUserspaceSnapshots, (), (const, override));
};

}  // namespace android::snapshot
+0 −1
Original line number Diff line number Diff line
@@ -111,7 +111,6 @@ class ISnapshotManager {
        virtual bool IsFirstStageInit() const = 0;
        virtual std::unique_ptr<IImageManager> OpenImageManager() const = 0;
        virtual android::dm::IDeviceMapper& GetDeviceMapper() = 0;
        virtual bool UseUserspaceSnapshots() const = 0;

        // Helper method for implementing OpenImageManager.
        std::unique_ptr<IImageManager> OpenImageManager(const std::string& gsid_dir) const;
+0 −1
Original line number Diff line number Diff line
@@ -107,7 +107,6 @@ class TestDeviceInfo : public SnapshotManager::IDeviceInfo {
    }

    bool IsSlotUnbootable(uint32_t slot) { return unbootable_slots_.count(slot) != 0; }
    bool UseUserspaceSnapshots() const override;

    void set_slot_suffix(const std::string& suffix) { slot_suffix_ = suffix; }
    void set_fake_super(const std::string& path) {
Loading