Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eefced11 authored by Patrick Tjin's avatar Patrick Tjin
Browse files

Add uid to sensorservice's dump of active connections

Change-Id: I1c365157bcd28a93635dbde4a8d91c79750e03ae
parent 86e7690e
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -750,11 +750,12 @@ void SensorService::SensorEventConnection::dump(String8& result) {
    Mutex::Autolock _l(mConnectionLock);
    Mutex::Autolock _l(mConnectionLock);
    for (size_t i = 0; i < mSensorInfo.size(); ++i) {
    for (size_t i = 0; i < mSensorInfo.size(); ++i) {
        const FlushInfo& flushInfo = mSensorInfo.valueAt(i);
        const FlushInfo& flushInfo = mSensorInfo.valueAt(i);
        result.appendFormat("\t %s | status: %s | pending flush events %d\n",
        result.appendFormat("\t %s | status: %s | pending flush events %d | uid %d\n",
                            mService->getSensorName(mSensorInfo.keyAt(i)).string(),
                            mService->getSensorName(mSensorInfo.keyAt(i)).string(),
                            flushInfo.mFirstFlushPending ? "First flush pending" :
                            flushInfo.mFirstFlushPending ? "First flush pending" :
                                                           "active",
                                                           "active",
                            flushInfo.mPendingFlushEventsToSend);
                            flushInfo.mPendingFlushEventsToSend,
                            mUid);
    }
    }
}
}