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.h109 size_t bitSize; // bit length per unit member
118 return (bitOffset & 7) == 0 && (bitSize & 7) == 0; in isByteAligned()
152 return (one << bitSize) - 1; in rawMask()
161 return ((one << (bitSize - 1)) & value) != 0; in isNegative()
169 size_t bitSize; member
173 size_t getByteSize() const { return (bitSize + 7) / 8; }; in getByteSize()
DHidParser.cpp234 .bitSize = 0, in convertGroupToPacket()
257 .bitOffset = packet.bitSize, in convertGroupToPacket()
258 .bitSize = r.getSize(), in convertGroupToPacket()
262 packet.bitSize += digest.bitSize * digest.count; in convertGroupToPacket()
291 << " size: " << packet.bitSize in operator <<()
300 os << " " << report.bitOffset << " size: " << report.bitSize in operator <<()
/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawSensor.cpp127 .byteSize = pReportAccuracy->bitSize / 8, in HidRawSensor()
174 || (digest.bitSize != 8 && digest.bitSize != 16 && digest.bitSize != 32)) { in HidRawSensor()
186 .byteSize = digest.bitSize / 8, in HidRawSensor()
203 record.byteOffset += digest.bitSize / 8; in HidRawSensor()
236 if ((quat.bitSize != 16 && quat.bitSize != 32) || !quat.isByteAligned()) { in processQuaternionUsage()
259 .byteSize = quat.bitSize / 8, in processQuaternionUsage()
268 record.byteOffset = (quat.bitOffset + quat.bitSize) / 8; in processQuaternionUsage()
273 record.byteOffset = (quat.bitOffset + 3 * quat.bitSize) / 8; in processQuaternionUsage()
278 record.byteOffset = (quat.bitOffset + 2 * quat.bitSize) / 8; in processQuaternionUsage()
328 || (reportX.bitSize != 16 && reportX.bitSize != 32) in processTriAxisUsage()
[all …]