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

Commit 8c4f5b3f authored by Shai Barack's avatar Shai Barack
Browse files

Lower visibility of Message.mSendingThread

Also rename to sendingThread for consistency with other Message fields.

Flag: EXEMPT refactor

Change-Id: I1aeca2a16d5c1bf72f4c7813a97915087a9a19f1
parent 4db80507
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ public final class MessageQueue {
    private void incAndTraceMessageCount(Message msg, long when) {
        mMessageCount.incrementAndGet();
        if (PerfettoTrace.MQ_CATEGORY.isEnabled()) {
            msg.mSendingThreadName = Thread.currentThread().getName();
            msg.sendingThreadName = Thread.currentThread().getName();
            msg.mEventId.set(PerfettoTrace.getFlowId());

            traceMessageCount();
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ public final class Looper {
            PerfettoTrace.begin(PerfettoTrace.MQ_CATEGORY, "message_queue_receive")
                    .beginProto()
                    .beginNested(2004 /* message_queue */)
                    .addField(1 /* sending_thread_name */, msg.mSendingThreadName)
                    .addField(1 /* sending_thread_name */, msg.sendingThreadName)
                    .endNested()
                    .endProto()
                    .setTerminatingFlow(msg.mEventId.get())
+2 −4
Original line number Diff line number Diff line
@@ -111,11 +111,9 @@ public final class Message implements Parcelable {
    public int workSourceUid = UID_NONE;

    /**
     * Sending thread
     *
     * @hide
     * Name of the thread that sent the message.
     */
    public String mSendingThreadName;
    /*package*/ String sendingThreadName;

    /** If set message is in use.
     * This flag is set when the message is enqueued and remains set while it