From 5417280f17f02a4bf1ccd6d7ac17e5a5b4e74d78 Mon Sep 17 00:00:00 2001 From: Aaron Huang Date: Thu, 10 Mar 2022 17:57:12 +0800 Subject: Rename setUidForeground to noteUidForeground Addresses API review feedback. Both setUidForeground in NetworkStatsManager and NetworkStatsService are renamed to noteUidForeground. Thus, the caller in test should be also modified. Bug: 222291301 Test: atest FrameworksNetTests Change-Id: Ifa1e1af3d9fd8b1dc75a8f37947a5958f60ed415 --- framework-t/api/module-lib-current.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework-t/api') diff --git a/framework-t/api/module-lib-current.txt b/framework-t/api/module-lib-current.txt index 59ca730a2e..e2b2eb143a 100644 --- a/framework-t/api/module-lib-current.txt +++ b/framework-t/api/module-lib-current.txt @@ -4,6 +4,7 @@ package android.app.usage { public class NetworkStatsManager { method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void forceUpdate(); method public static int getCollapsedRatType(int); + method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void noteUidForeground(int, boolean); method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void notifyNetworkStatus(@NonNull java.util.List, @NonNull java.util.List, @Nullable String, @NonNull java.util.List); method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForDevice(@NonNull android.net.NetworkTemplate, long, long); method @NonNull @WorkerThread public android.app.usage.NetworkStats queryDetailsForUidTagState(@NonNull android.net.NetworkTemplate, long, long, int, int, int) throws java.lang.SecurityException; @@ -15,7 +16,6 @@ package android.app.usage { method public void setPollForce(boolean); method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setPollOnOpen(boolean); method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setStatsProviderWarningAndLimitAsync(@NonNull String, long, long); - method @RequiresPermission(anyOf={android.net.NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, android.Manifest.permission.NETWORK_STACK}) public void setUidForeground(int, boolean); field public static final int NETWORK_TYPE_5G_NSA = -2; // 0xfffffffe } -- cgit v1.2.3