Merge "Rename setUidForeground to noteUidForeground" am: 8b7896b51a am: cf9f545864
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2018880 Change-Id: I8a3ac0a4dcf9201435ad227b36acf4e0f1889f22
This commit is contained in:
commit
f2975db5a4
1 changed files with 4 additions and 4 deletions
|
|
@ -517,10 +517,10 @@ public class NetworkStatsServiceTest extends NetworkStatsBaseTest {
|
|||
.insertEntry(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 512L, 4L, 256L, 2L, 0L)
|
||||
.insertEntry(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 256L, 2L, 128L, 1L, 0L)
|
||||
.insertEntry(TEST_IFACE, UID_BLUE, SET_DEFAULT, TAG_NONE, 128L, 1L, 128L, 1L, 0L));
|
||||
mService.setUidForeground(UID_RED, false);
|
||||
mService.noteUidForeground(UID_RED, false);
|
||||
verify(mUidCounterSetMap, never()).deleteEntry(any());
|
||||
mService.incrementOperationCount(UID_RED, 0xFAAD, 4);
|
||||
mService.setUidForeground(UID_RED, true);
|
||||
mService.noteUidForeground(UID_RED, true);
|
||||
verify(mUidCounterSetMap).updateEntry(
|
||||
eq(new U32(UID_RED)), eq(new U8((short) SET_FOREGROUND)));
|
||||
mService.incrementOperationCount(UID_RED, 0xFAAD, 6);
|
||||
|
|
@ -1118,7 +1118,7 @@ public class NetworkStatsServiceTest extends NetworkStatsBaseTest {
|
|||
.insertEntry(TEST_IFACE, UID_RED, SET_DEFAULT, 0xF00D, 64L, 1L, 64L, 1L, 0L)
|
||||
.insertEntry(TEST_IFACE, UID_RED, SET_FOREGROUND, TAG_NONE, 32L, 2L, 32L, 2L, 0L)
|
||||
.insertEntry(TEST_IFACE, UID_RED, SET_FOREGROUND, 0xFAAD, 1L, 1L, 1L, 1L, 0L));
|
||||
mService.setUidForeground(UID_RED, true);
|
||||
mService.noteUidForeground(UID_RED, true);
|
||||
verify(mUidCounterSetMap).updateEntry(
|
||||
eq(new U32(UID_RED)), eq(new U8((short) SET_FOREGROUND)));
|
||||
mService.incrementOperationCount(UID_RED, 0xFAAD, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue