Merge "Remove ConnectivityManager swapActiveStatsMap API"

This commit is contained in:
Treehugger Robot
2022-03-08 06:31:23 +00:00
committed by Gerrit Code Review
7 changed files with 8 additions and 51 deletions

View File

@@ -5818,27 +5818,4 @@ public class ConnectivityManager {
throw e.rethrowFromSystemServer();
}
}
/**
* Request to change the current active network stats map.
* STOPSHIP: Remove this API before T sdk finalized, this API is temporary added for the
* NetworkStatsFactory which is platform code but will be moved into connectivity (tethering)
* mainline module.
*
* @throws IllegalStateException if swapping active stats map failed.
* @hide
*/
@SystemApi(client = MODULE_LIBRARIES)
@RequiresPermission(anyOf = {
android.Manifest.permission.NETWORK_SETTINGS,
android.Manifest.permission.NETWORK_STACK,
NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK
})
public void swapActiveStatsMap() {
try {
mService.swapActiveStatsMap();
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
}
}

View File

@@ -245,6 +245,4 @@ interface IConnectivityManager
void setFirewallChainEnabled(int chain, boolean enable);
void replaceFirewallChain(int chain, in int[] uids);
void swapActiveStatsMap();
}