Searched refs:VolumeBase (Results 1 - 17 of 17) sorted by path

/system/vold/
H A DAndroid.mk22 VolumeBase.cpp \
H A DCommandListener.cpp46 #include "VolumeBase.h"
223 if (mountFlags & android::vold::VolumeBase::MountFlags::kPrimary) {
H A DDisk.cpp21 #include "VolumeBase.h"
124 std::shared_ptr<VolumeBase> Disk::findVolume(const std::string& id) {
137 void Disk::listVolumes(VolumeBase::Type type, std::list<std::string>& list) {
164 auto vol = std::shared_ptr<VolumeBase>(new PublicVolume(device));
194 auto vol = std::shared_ptr<VolumeBase>(new PrivateVolume(device, keyRaw));
H A DDisk.h21 #include "VolumeBase.h"
30 class VolumeBase;
66 std::shared_ptr<VolumeBase> findVolume(const std::string& id);
68 void listVolumes(VolumeBase::Type type, std::list<std::string>& list);
101 std::vector<std::shared_ptr<VolumeBase>> mVolumes;
H A DEmulatedVolume.cpp40 VolumeBase(Type::kEmulated), mFusePid(0) {
47 const std::string& fsUuid) : VolumeBase(Type::kEmulated), mFusePid(0) {
H A DEmulatedVolume.h20 #include "VolumeBase.h"
38 class EmulatedVolume : public VolumeBase {
H A DMoveTask.cpp46 MoveTask::MoveTask(const std::shared_ptr<VolumeBase>& from,
47 const std::shared_ptr<VolumeBase>& to) :
159 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) {
167 static void bringOnline(const std::shared_ptr<VolumeBase>& vol) {
180 if (mFrom->getType() != VolumeBase::Type::kEmulated) goto fail;
181 if (mTo->getType() != VolumeBase::Type::kEmulated) goto fail;
H A DMoveTask.h21 #include "VolumeBase.h"
30 MoveTask(const std::shared_ptr<VolumeBase>& from, const std::shared_ptr<VolumeBase>& to);
36 std::shared_ptr<VolumeBase> mFrom;
37 std::shared_ptr<VolumeBase> mTo;
H A DPrivateVolume.cpp47 VolumeBase(Type::kPrivate), mRawDevice(device), mKeyRaw(keyRaw) {
173 auto vol = std::shared_ptr<VolumeBase>(
H A DPrivateVolume.h20 #include "VolumeBase.h"
38 class PrivateVolume : public VolumeBase {
H A DPublicVolume.cpp45 VolumeBase(Type::kPublic), mDevice(device), mFusePid(0) {
H A DPublicVolume.h20 #include "VolumeBase.h"
40 class PublicVolume : public VolumeBase {
H A DTrimTask.cpp55 vm->listVolumes(VolumeBase::Type::kPrivate, privateIds);
58 if (vol != nullptr && vol->getState() == VolumeBase::State::kMounted) {
H A DVolumeBase.cpp18 #include "VolumeBase.h"
38 VolumeBase::VolumeBase(Type type) : function in class:android::vold::VolumeBase
43 VolumeBase::~VolumeBase() {
47 void VolumeBase::setState(State state) {
52 status_t VolumeBase::setDiskId(const std::string& diskId) {
62 status_t VolumeBase::setPartGuid(const std::string& partGuid) {
72 status_t VolumeBase::setMountFlags(int mountFlags) {
82 status_t VolumeBase
[all...]
H A DVolumeBase.h46 class VolumeBase { class in namespace:android::vold
48 virtual ~VolumeBase();
93 void addVolume(const std::shared_ptr<VolumeBase>& volume);
94 void removeVolume(const std::shared_ptr<VolumeBase>& volume);
96 std::shared_ptr<VolumeBase> findVolume(const std::string& id);
105 explicit VolumeBase(Type type);
145 std::list<std::shared_ptr<VolumeBase>> mVolumes;
149 DISALLOW_COPY_AND_ASSIGN(VolumeBase);
H A DVolumeManager.cpp265 mInternalEmulated = std::shared_ptr<android::vold::VolumeBase>(
365 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) {
378 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type,
392 if (vol != nullptr && vol->getState() == android::vold::VolumeBase::State::kMounted) {
423 if (mPrimary->getType() == android::vold::VolumeBase::Type::kEmulated) {
472 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) {
H A DVolumeManager.h39 #include "VolumeBase.h"
119 std::shared_ptr<android::vold::VolumeBase> findVolume(const std::string& id);
121 void listVolumes(android::vold::VolumeBase::Type type, std::list<std::string>& list);
132 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);
214 std::shared_ptr<android::vold::VolumeBase> mInternalEmulated;
215 std::shared_ptr<android::vold::VolumeBase> mPrimary;

Completed in 71 milliseconds