|
21 | 21 | import android.os.SystemClock; |
22 | 22 | import android.util.SparseBooleanArray; |
23 | 23 |
|
| 24 | +import com.android.internal.annotations.VisibleForTesting; |
24 | 25 | import com.android.internal.util.ArrayUtils; |
25 | 26 | import com.android.internal.util.Objects; |
26 | 27 |
|
@@ -190,14 +191,14 @@ public NetworkStats clone() { |
190 | 191 | return clone; |
191 | 192 | } |
192 | 193 |
|
193 | | - // @VisibleForTesting |
| 194 | + @VisibleForTesting |
194 | 195 | public NetworkStats addIfaceValues( |
195 | 196 | String iface, long rxBytes, long rxPackets, long txBytes, long txPackets) { |
196 | 197 | return addValues( |
197 | 198 | iface, UID_ALL, SET_DEFAULT, TAG_NONE, rxBytes, rxPackets, txBytes, txPackets, 0L); |
198 | 199 | } |
199 | 200 |
|
200 | | - // @VisibleForTesting |
| 201 | + @VisibleForTesting |
201 | 202 | public NetworkStats addValues(String iface, int uid, int set, int tag, long rxBytes, |
202 | 203 | long rxPackets, long txBytes, long txPackets, long operations) { |
203 | 204 | return addValues(new Entry( |
@@ -269,7 +270,7 @@ public int size() { |
269 | 270 | return size; |
270 | 271 | } |
271 | 272 |
|
272 | | - // @VisibleForTesting |
| 273 | + @VisibleForTesting |
273 | 274 | public int internalSize() { |
274 | 275 | return iface.length; |
275 | 276 | } |
@@ -335,7 +336,7 @@ public int findIndex(String iface, int uid, int set, int tag) { |
335 | 336 | * Find first stats index that matches the requested parameters, starting |
336 | 337 | * search around the hinted index as an optimization. |
337 | 338 | */ |
338 | | - // @VisibleForTesting |
| 339 | + @VisibleForTesting |
339 | 340 | public int findIndexHinted(String iface, int uid, int set, int tag, int hintIndex) { |
340 | 341 | for (int offset = 0; offset < size; offset++) { |
341 | 342 | final int halfOffset = offset / 2; |
|
0 commit comments