Home
last modified time | relevance | path

Searched refs:bitSize (Results 1 – 3 of 3) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidParser.h108 size_t bitSize; // bit length per unit member
117 return (bitOffset & 7) == 0 && (bitSize & 7) == 0; in isByteAligned()
151 return (one << bitSize) - 1; in rawMask()
160 return ((one << (bitSize - 1)) & value) != 0; in isNegative()
168 size_t bitSize; member
172 size_t getByteSize() const { return (bitSize + 7) / 8; }; in getByteSize()
DHidParser.cpp236 .bitSize = 0 in convertGroupToPacket()
255 .bitOffset = packet.bitSize, in convertGroupToPacket()
256 .bitSize = r.getSize(), in convertGroupToPacket()
261 packet.bitSize += digest.bitSize * digest.count; in convertGroupToPacket()
290 << " size: " << packet.bitSize in operator <<()
299 os << " " << report.bitOffset << " size: " << report.bitSize in operator <<()
/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawSensor.cpp125 .byteSize = pReportAccuracy->bitSize / 8, in HidRawSensor()
172 || (digest.bitSize != 8 && digest.bitSize != 16 && digest.bitSize != 32)) { in HidRawSensor()
183 .byteSize = digest.bitSize / 8, in HidRawSensor()
201 record.byteOffset += digest.bitSize / 8; in HidRawSensor()
234 if ((quat.bitSize != 16 && quat.bitSize != 32) || !quat.isByteAligned()) { in processQuaternionUsage()
256 .byteSize = quat.bitSize / 8, in processQuaternionUsage()
266 record.byteOffset = (quat.bitOffset + quat.bitSize) / 8; in processQuaternionUsage()
271 record.byteOffset = (quat.bitOffset + 3 * quat.bitSize) / 8; in processQuaternionUsage()
276 record.byteOffset = (quat.bitOffset + 2 * quat.bitSize) / 8; in processQuaternionUsage()
326 || (reportX.bitSize != 16 && reportX.bitSize != 32) in processTriAxisUsage()
[all …]