Lines Matching defs:index
135 uint32_t MtpPacket::getParameter(int index) const {
136 if (index < 1 || index > 5) {
137 ALOGE("index %d out of range in MtpPacket::getParameter", index);
140 return getUInt32(MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t));
143 void MtpPacket::setParameter(int index, uint32_t value) {
144 if (index < 1 || index > 5) {
145 ALOGE("index %d out of range in MtpPacket::setParameter", index);
148 int offset = MTP_CONTAINER_PARAMETER_OFFSET + (index - 1) * sizeof(uint32_t);