Lines Matching refs:storage

141 void MtpServer::addStorage(MtpStorage* storage) {  in addStorage()  argument
144 mStorages.push_back(storage); in addStorage()
145 sendStoreAdded(storage->getStorageID()); in addStorage()
148 void MtpServer::removeStorage(MtpStorage* storage) { in removeStorage() argument
150 auto iter = std::find(mStorages.begin(), mStorages.end(), storage); in removeStorage()
152 sendStoreRemoved(storage->getStorageID()); in removeStorage()
160 for (MtpStorage *storage : mStorages) { in getStorage()
161 if (storage->getStorageID() == id) in getStorage()
162 return storage; in getStorage()
554 MtpStorage* storage = getStorage(id); in doGetStorageInfo() local
555 if (!storage) in doGetStorageInfo()
558 mData.putUInt16(storage->getType()); in doGetStorageInfo()
559 mData.putUInt16(storage->getFileSystemType()); in doGetStorageInfo()
560 mData.putUInt16(storage->getAccessCapability()); in doGetStorageInfo()
561 mData.putUInt64(storage->getMaxCapacity()); in doGetStorageInfo()
562 mData.putUInt64(storage->getFreeSpace()); in doGetStorageInfo()
564 string.set(storage->getDescription()); in doGetStorageInfo()
943 MtpStorage* storage = getStorage(storageID); in doSendObjectInfo() local
945 if (!storage) in doSendObjectInfo()
950 path.set(storage->getPath()); in doSendObjectInfo()
990 int type = storage->getType(); in doSendObjectInfo()
1017 if (mSendObjectFileSize > storage->getFreeSpace()) in doSendObjectInfo()
1019 uint64_t maxFileSize = storage->getMaxFileSize(); in doSendObjectInfo()
1064 MtpStorage* storage = getStorage(storageID); in doMoveObject() local
1066 if (!storage) in doMoveObject()
1084 path.set(storage->getPath()); in doMoveObject()
1143 MtpStorage* storage = getStorage(storageID); in doCopyObject() local
1145 if (!storage) in doCopyObject()
1162 path.set(storage->getPath()); in doCopyObject()
1174 if ((uint64_t) fileLength > storage->getFreeSpace()) in doCopyObject()