Lines Matching refs:packet
192 MtpDataPacket& packet);
196 MtpDataPacket& packet);
199 MtpDataPacket& packet);
202 MtpDataPacket& packet);
209 MtpDataPacket& packet);
437 MtpDataPacket& packet) { in getObjectPropertyValue() argument
473 packet.putInt8(longValue); in getObjectPropertyValue()
476 packet.putUInt8(longValue); in getObjectPropertyValue()
479 packet.putInt16(longValue); in getObjectPropertyValue()
482 packet.putUInt16(longValue); in getObjectPropertyValue()
485 packet.putInt32(longValue); in getObjectPropertyValue()
488 packet.putUInt32(longValue); in getObjectPropertyValue()
491 packet.putInt64(longValue); in getObjectPropertyValue()
494 packet.putUInt64(longValue); in getObjectPropertyValue()
497 packet.putInt128(longValue); in getObjectPropertyValue()
500 packet.putUInt128(longValue); in getObjectPropertyValue()
507 packet.putString(str); in getObjectPropertyValue()
510 packet.putEmptyString(); in getObjectPropertyValue()
536 static bool readLongValue(int type, MtpDataPacket& packet, jlong& longValue) { in readLongValue() argument
540 if (!packet.getInt8(temp)) return false; in readLongValue()
546 if (!packet.getUInt8(temp)) return false; in readLongValue()
552 if (!packet.getInt16(temp)) return false; in readLongValue()
558 if (!packet.getUInt16(temp)) return false; in readLongValue()
564 if (!packet.getInt32(temp)) return false; in readLongValue()
570 if (!packet.getUInt32(temp)) return false; in readLongValue()
576 if (!packet.getInt64(temp)) return false; in readLongValue()
582 if (!packet.getUInt64(temp)) return false; in readLongValue()
595 MtpDataPacket& packet) { in setObjectPropertyValue() argument
608 if (!packet.getString(buffer)) goto fail; in setObjectPropertyValue()
611 if (!readLongValue(type, packet, longValue)) goto fail; in setObjectPropertyValue()
625 MtpDataPacket& packet) { in getDevicePropertyValue() argument
645 packet.putInt8(longValue); in getDevicePropertyValue()
648 packet.putUInt8(longValue); in getDevicePropertyValue()
651 packet.putInt16(longValue); in getDevicePropertyValue()
654 packet.putUInt16(longValue); in getDevicePropertyValue()
657 packet.putInt32(longValue); in getDevicePropertyValue()
660 packet.putUInt32(longValue); in getDevicePropertyValue()
663 packet.putInt64(longValue); in getDevicePropertyValue()
666 packet.putUInt64(longValue); in getDevicePropertyValue()
669 packet.putInt128(longValue); in getDevicePropertyValue()
672 packet.putInt128(longValue); in getDevicePropertyValue()
677 packet.putString(str); in getDevicePropertyValue()
691 MtpDataPacket& packet) { in setDevicePropertyValue() argument
704 if (!packet.getString(buffer)) goto fail; in setDevicePropertyValue()
707 if (!readLongValue(type, packet, longValue)) goto fail; in setDevicePropertyValue()
727 MtpDataPacket& packet) { in getObjectPropertyList() argument
745 packet.putUInt32(count); in getObjectPropertyList()
759 packet.putUInt32(objectHandles[i]); in getObjectPropertyList()
760 packet.putUInt16(propertyCodes[i]); in getObjectPropertyList()
762 packet.putUInt16(type); in getObjectPropertyList()
768 packet.putString(valueStr); in getObjectPropertyList()
771 packet.putEmptyString(); in getObjectPropertyList()
784 packet.putInt8(longValues[i]); in getObjectPropertyList()
787 packet.putUInt8(longValues[i]); in getObjectPropertyList()
790 packet.putInt16(longValues[i]); in getObjectPropertyList()
793 packet.putUInt16(longValues[i]); in getObjectPropertyList()
796 packet.putInt32(longValues[i]); in getObjectPropertyList()
799 packet.putUInt32(longValues[i]); in getObjectPropertyList()
802 packet.putInt64(longValues[i]); in getObjectPropertyList()
805 packet.putUInt64(longValues[i]); in getObjectPropertyList()
808 packet.putInt128(longValues[i]); in getObjectPropertyList()
811 packet.putUInt128(longValues[i]); in getObjectPropertyList()