[SP25] Rename functions that add Entry conditionally
Currently, in NetworkStats, there are many methods to manipulate the records. However, some methods are similar and ambiguous, such as addEntry, addValues, setValues, addIfaceValues, combineValues and combineAllValues. Thus, properly grouping and renaming methods are necessary. In this change, for methods that add one record conditionally, name them addEntry. addValues -> addEntry Test: atest FrameworksNetTests ImsPhoneCallTrackerTest TetheringTests Fix: 148895143 Change-Id: I9495a198cf247e6c79100f7ac1edcea370b071de
This commit is contained in:
@@ -1034,10 +1034,10 @@ public class NetworkStatsServiceTest extends NetworkStatsBaseTest {
|
|||||||
// Create some initial traffic and report to the service.
|
// Create some initial traffic and report to the service.
|
||||||
incrementCurrentTime(HOUR_IN_MILLIS);
|
incrementCurrentTime(HOUR_IN_MILLIS);
|
||||||
final NetworkStats expectedStats = new NetworkStats(0L, 1)
|
final NetworkStats expectedStats = new NetworkStats(0L, 1)
|
||||||
.addValues(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT,
|
.addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT,
|
||||||
TAG_NONE, METERED_YES, ROAMING_NO, DEFAULT_NETWORK_YES,
|
TAG_NONE, METERED_YES, ROAMING_NO, DEFAULT_NETWORK_YES,
|
||||||
128L, 2L, 128L, 2L, 1L))
|
128L, 2L, 128L, 2L, 1L))
|
||||||
.addValues(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT,
|
.addEntry(new NetworkStats.Entry(TEST_IFACE, UID_RED, SET_DEFAULT,
|
||||||
0xF00D, METERED_YES, ROAMING_NO, DEFAULT_NETWORK_YES,
|
0xF00D, METERED_YES, ROAMING_NO, DEFAULT_NETWORK_YES,
|
||||||
64L, 1L, 64L, 1L, 1L));
|
64L, 1L, 64L, 1L, 1L));
|
||||||
cb.notifyStatsUpdated(0 /* unused */, expectedStats, expectedStats);
|
cb.notifyStatsUpdated(0 /* unused */, expectedStats, expectedStats);
|
||||||
|
|||||||
Reference in New Issue
Block a user