Loading services/sensorservice/SensorService.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1709,7 +1709,7 @@ int SensorService::SensorEventConnection::handleEvent(int fd, int events, void* #endif #endif } else if (numBytesRead == sizeof(uint32_t)) { } else if (numBytesRead == sizeof(uint32_t)) { uint32_t numAcks = 0; uint32_t numAcks = 0; memcpy(&numAcks, buf, sizeof(numBytesRead)); memcpy(&numAcks, buf, numBytesRead); // Sanity check to ensure there are no read errors in recv, numAcks is always // Sanity check to ensure there are no read errors in recv, numAcks is always // within the range and not zero. If any of the above don't hold reset // within the range and not zero. If any of the above don't hold reset // mWakeLockRefCount to zero. // mWakeLockRefCount to zero. Loading Loading
services/sensorservice/SensorService.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -1709,7 +1709,7 @@ int SensorService::SensorEventConnection::handleEvent(int fd, int events, void* #endif #endif } else if (numBytesRead == sizeof(uint32_t)) { } else if (numBytesRead == sizeof(uint32_t)) { uint32_t numAcks = 0; uint32_t numAcks = 0; memcpy(&numAcks, buf, sizeof(numBytesRead)); memcpy(&numAcks, buf, numBytesRead); // Sanity check to ensure there are no read errors in recv, numAcks is always // Sanity check to ensure there are no read errors in recv, numAcks is always // within the range and not zero. If any of the above don't hold reset // within the range and not zero. If any of the above don't hold reset // mWakeLockRefCount to zero. // mWakeLockRefCount to zero. Loading