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

Commit 55e0fb2b authored by Jonathan Backer's avatar Jonathan Backer
Browse files

Fix lint errors

WorkSource.WorkChain has setters without getters. We need to read
from the data structure to properly instrument our code for field
metric. We are already violating @VisibleForTesting in BatteryStatsImpl.java
and the autogenerated FrameworkStatsLog.java

Bug: none
Flag: EXEMPT fix lint errors
Test: none
Change-Id: I5ecd5918eff9442ee837c5eafc183bbf1c3074d4
parent c23a55ed
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1011,13 +1011,7 @@ public class WorkSource implements Parcelable {
            return mTags.length > 0 ? mTags[0] : null;
        }

        // TODO: The following three trivial getters are purely for testing and will be removed
        // once we have higher level logic in place, e.g for serializing this WorkChain to a proto,
        // diffing it etc.


        /** @hide */
        @VisibleForTesting
        public int[] getUids() {
            int[] uids = new int[mSize];
            System.arraycopy(mUids, 0, uids, 0, mSize);
@@ -1025,7 +1019,6 @@ public class WorkSource implements Parcelable {
        }

        /** @hide */
        @VisibleForTesting
        public String[] getTags() {
            String[] tags = new String[mSize];
            System.arraycopy(mTags, 0, tags, 0, mSize);
@@ -1033,7 +1026,6 @@ public class WorkSource implements Parcelable {
        }

        /** @hide */
        @VisibleForTesting
        public int getSize() {
            return mSize;
        }