Home
last modified time | relevance | path

Searched refs:VolumeBase (Results 1 – 21 of 21) sorted by relevance

/aosp12/system/vold/model/
H A DVolumeBase.cpp35 VolumeBase::VolumeBase(Type type) in VolumeBase() function in android::vold::VolumeBase
43 VolumeBase::~VolumeBase() { in ~VolumeBase()
164 void VolumeBase::addVolume(const std::shared_ptr<VolumeBase>& volume) { in addVolume()
168 void VolumeBase::removeVolume(const std::shared_ptr<VolumeBase>& volume) { in removeVolume()
172 std::shared_ptr<VolumeBase> VolumeBase::findVolume(const std::string& id) { in findVolume()
181 status_t VolumeBase::create() { in create()
197 status_t VolumeBase::doCreate() { in doCreate()
201 status_t VolumeBase::destroy() { in destroy()
225 status_t VolumeBase::mount() { in mount()
241 void VolumeBase::doPostMount() {} in doPostMount()
[all …]
H A DVolumeBase.h50 class VolumeBase {
52 virtual ~VolumeBase();
91 const std::list<std::shared_ptr<VolumeBase>>& getVolumes() const { return mVolumes; } in getVolumes()
100 void addVolume(const std::shared_ptr<VolumeBase>& volume);
101 void removeVolume(const std::shared_ptr<VolumeBase>& volume);
103 std::shared_ptr<VolumeBase> findVolume(const std::string& id);
118 explicit VolumeBase(Type type);
160 std::list<std::shared_ptr<VolumeBase>> mVolumes;
164 DISALLOW_COPY_AND_ASSIGN(VolumeBase);
H A DDisk.h31 class VolumeBase; variable
73 std::shared_ptr<VolumeBase> findVolume(const std::string& id);
75 void listVolumes(VolumeBase::Type type, std::list<std::string>& list) const;
77 std::vector<std::shared_ptr<VolumeBase>> getVolumes() const;
108 std::vector<std::shared_ptr<VolumeBase>> mVolumes;
H A DDisk.cpp113 std::shared_ptr<VolumeBase> Disk::findVolume(const std::string& id) { in findVolume()
126 void Disk::listVolumes(VolumeBase::Type type, std::list<std::string>& list) const { in listVolumes()
135 std::vector<std::shared_ptr<VolumeBase>> Disk::getVolumes() const { in getVolumes()
136 std::vector<std::shared_ptr<VolumeBase>> vols; in getVolumes()
174 auto vol = std::shared_ptr<VolumeBase>(new PublicVolume(device)); in createPublicVolume()
205 auto vol = std::shared_ptr<VolumeBase>(new PrivateVolume(device, keyBuffer)); in createPrivateVolume()
H A DPrivateVolume.cpp51 : VolumeBase(Type::kPrivate), mRawDevice(device), mKeyRaw(keyRaw) { in PrivateVolume()
194 auto vol = std::shared_ptr<VolumeBase>( in doPostMount()
H A DObbVolume.h30 class ObbVolume : public VolumeBase {
H A DStubVolume.h32 class StubVolume : public VolumeBase {
H A DEmulatedVolume.h38 class EmulatedVolume : public VolumeBase {
H A DPublicVolume.h40 class PublicVolume : public VolumeBase {
H A DStubVolume.cpp32 : VolumeBase(Type::kStub), in StubVolume()
H A DPrivateVolume.h38 class PrivateVolume : public VolumeBase {
H A DObbVolume.cpp44 : VolumeBase(Type::kObb) { in ObbVolume()
H A DEmulatedVolume.cpp47 : VolumeBase(Type::kEmulated) { in EmulatedVolume()
58 : VolumeBase(Type::kEmulated) { in EmulatedVolume()
H A DPublicVolume.cpp50 PublicVolume::PublicVolume(dev_t device) : VolumeBase(Type::kPublic), mDevice(device) { in PublicVolume()
/aosp12/system/vold/
H A DMoveStorage.cpp178 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline()
186 static void bringOnline(const std::shared_ptr<VolumeBase>& vol) { in bringOnline()
192 static status_t moveStorageInternal(const std::shared_ptr<VolumeBase>& from, in moveStorageInternal()
193 const std::shared_ptr<VolumeBase>& to, in moveStorageInternal()
199 if (from->getType() != VolumeBase::Type::kEmulated) goto fail; in moveStorageInternal()
200 if (to->getType() != VolumeBase::Type::kEmulated) goto fail; in moveStorageInternal()
257 void MoveStorage(const std::shared_ptr<VolumeBase>& from, const std::shared_ptr<VolumeBase>& to, in MoveStorage()
H A DVolumeManager.h83 std::shared_ptr<android::vold::VolumeBase> findVolume(const std::string& id);
86 std::shared_ptr<android::vold::VolumeBase> findVolumeWithFilter(Fn fn) { in findVolumeWithFilter()
103 void listVolumes(android::vold::VolumeBase::Type type, std::list<std::string>& list) const;
225 std::list<std::shared_ptr<android::vold::VolumeBase>> mObbVolumes;
226 std::list<std::shared_ptr<android::vold::VolumeBase>> mInternalEmulatedVolumes;
235 std::shared_ptr<android::vold::VolumeBase> mPrimary;
H A DVolumeManager.cpp95 using android::vold::VolumeBase;
189 auto vol = std::shared_ptr<android::vold::VolumeBase>( in start()
387 listVolumes(VolumeBase::Type::kPrivate, private_vols); in destroyEmulatedVolumesForUser()
390 std::list<std::shared_ptr<VolumeBase>> vols_to_remove; in destroyEmulatedVolumesForUser()
407 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createEmulatedVolumesForUser()
415 listVolumes(VolumeBase::Type::kPrivate, private_vols); in createEmulatedVolumesForUser()
1000 auto filter_fn = [&](const VolumeBase& vol) { in setupAppDir()
1001 if (vol.getState() != VolumeBase::State::kMounted) { in setupAppDir()
1049 if (volume->getType() == VolumeBase::Type::kPublic) { in setupAppDir()
1075 auto filter_fn = [&](const VolumeBase& vol) { in createObb()
[all …]
H A DMoveStorage.h26 void MoveStorage(const std::shared_ptr<VolumeBase>& from, const std::shared_ptr<VolumeBase>& to,
H A DIdleMaint.cpp96 vm->listVolumes(VolumeBase::Type::kPrivate, privateIds); in addFromVolumeManager()
99 if (vol != nullptr && vol->getState() == VolumeBase::State::kMounted) { in addFromVolumeManager()
H A DAndroid.bp150 "model/VolumeBase.cpp",
H A DVoldNativeService.cpp325 if (vol->getType() != VolumeBase::Type::kPrivate) { in pathForVolId()
328 if (vol->getState() != VolumeBase::State::kMounted) { in pathForVolId()