Lines Matching refs:storage
138 void MtpServer::addStorage(MtpStorage* storage) {
141 mStorages.push(storage);
142 sendStoreAdded(storage->getStorageID());
145 void MtpServer::removeStorage(MtpStorage* storage) {
149 if (mStorages[i] == storage) {
151 sendStoreRemoved(storage->getStorageID());
161 MtpStorage* storage = mStorages[i];
162 if (storage->getStorageID() == id)
163 return storage;
552 MtpStorage* storage = getStorage(id);
553 if (!storage)
556 mData.putUInt16(storage->getType());
557 mData.putUInt16(storage->getFileSystemType());
558 mData.putUInt16(storage->getAccessCapability());
559 mData.putUInt64(storage->getMaxCapacity());
560 mData.putUInt64(storage->getFreeSpace());
562 string.set(storage->getDescription());
586 MtpStorageID storageID = mRequest.getParameter(1); // 0xFFFFFFFF for all storage
605 MtpStorageID storageID = mRequest.getParameter(1); // 0xFFFFFFFF for all storage
912 MtpStorage* storage = getStorage(storageID);
914 if (!storage)
919 path = storage->getPath();
932 if (!mData.getUInt32(temp32)) return MTP_RESPONSE_INVALID_PARAMETER; // storage ID
969 if (mSendObjectFileSize > storage->getFreeSpace())
971 uint64_t maxFileSize = storage->getMaxFileSize();
972 // check storage max file size