Home
last modified time | relevance | path

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

/system/vold/model/
DVolumeBase.cpp35 VolumeBase::VolumeBase(Type type) in VolumeBase() function in android::vold::VolumeBase
43 VolumeBase::~VolumeBase() { in ~VolumeBase()
47 void VolumeBase::setState(State state) { in setState()
56 status_t VolumeBase::setDiskId(const std::string& diskId) { in setDiskId()
66 status_t VolumeBase::setPartGuid(const std::string& partGuid) { in setPartGuid()
76 status_t VolumeBase::setMountFlags(int mountFlags) { in setMountFlags()
86 status_t VolumeBase::setMountUserId(userid_t mountUserId) { in setMountUserId()
96 status_t VolumeBase::setSilent(bool silent) { in setSilent()
106 status_t VolumeBase::setId(const std::string& id) { in setId()
116 status_t VolumeBase::setPath(const std::string& path) { in setPath()
[all …]
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);
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;
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()
DObbVolume.h30 class ObbVolume : public VolumeBase {
DStubVolume.h32 class StubVolume : public VolumeBase {
DPublicVolume.h40 class PublicVolume : public VolumeBase {
DEmulatedVolume.h38 class EmulatedVolume : public VolumeBase {
DStubVolume.cpp32 : VolumeBase(Type::kStub), in StubVolume()
DPrivateVolume.h38 class PrivateVolume : public VolumeBase {
DPrivateVolume.cpp51 : VolumeBase(Type::kPrivate), mRawDevice(device), mKeyRaw(keyRaw) { in PrivateVolume()
194 auto vol = std::shared_ptr<VolumeBase>( in doPostMount()
DObbVolume.cpp44 : VolumeBase(Type::kObb) { in ObbVolume()
DEmulatedVolume.cpp47 : VolumeBase(Type::kEmulated) { in EmulatedVolume()
58 : VolumeBase(Type::kEmulated) { in EmulatedVolume()
DPublicVolume.cpp50 PublicVolume::PublicVolume(dev_t device) : VolumeBase(Type::kPublic), mDevice(device) { in PublicVolume()
/system/vold/
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()
DMoveStorage.h26 void MoveStorage(const std::shared_ptr<VolumeBase>& from, const std::shared_ptr<VolumeBase>& to,
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;
DVolumeManager.cpp95 using android::vold::VolumeBase;
189 auto vol = std::shared_ptr<android::vold::VolumeBase>( in start()
323 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) { in findVolume()
343 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type, in listVolumes()
387 listVolumes(VolumeBase::Type::kPrivate, private_vols); in destroyEmulatedVolumesForUser()
390 std::list<std::shared_ptr<VolumeBase>> vols_to_remove; in destroyEmulatedVolumesForUser()
391 if (pvol->getState() == VolumeBase::State::kMounted) { in destroyEmulatedVolumesForUser()
407 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createEmulatedVolumesForUser()
415 listVolumes(VolumeBase::Type::kPrivate, private_vols); in createEmulatedVolumesForUser()
418 if (pvol->getState() == VolumeBase::State::kMounted) { in createEmulatedVolumesForUser()
[all …]
DIdleMaint.cpp96 vm->listVolumes(VolumeBase::Type::kPrivate, privateIds); in addFromVolumeManager()
99 if (vol != nullptr && vol->getState() == VolumeBase::State::kMounted) { in addFromVolumeManager()
DAndroid.bp150 "model/VolumeBase.cpp",
DVoldNativeService.cpp325 if (vol->getType() != VolumeBase::Type::kPrivate) { in pathForVolId()
328 if (vol->getState() != VolumeBase::State::kMounted) { in pathForVolId()