Rename setUidForeground to noteUidForeground
This patch addresses API review about the naming of NetworkStatsManager#setUidForeground and it would be more appropriate to rename it to noteUidForeground. Bug: 222291301 Test: atest FrameworksNetTests Change-Id: I952762872850889609c9808aa6e3cdfc04317806
This commit is contained in:
@@ -1194,7 +1194,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public void setUidForeground(int uid, boolean uidForeground) {
|
||||
public void noteUidForeground(int uid, boolean uidForeground) {
|
||||
PermissionUtils.enforceNetworkStackPermission(mContext);
|
||||
synchronized (mStatsLock) {
|
||||
final int set = uidForeground ? SET_FOREGROUND : SET_DEFAULT;
|
||||
|
||||
Reference in New Issue
Block a user