ArrayMap for mIpToNetworksMap
Use ArrayMap for mIpToNetworksMap instead of HashMap for better memory efficiency and performance. Bug: 429496715 Flag: EXEMPT trivial chage Test: atest ConnectivityCoverageTests Change-Id: I7a988ce16ef5d6c8fbd6b88ea0a2e932de07ad98
This commit is contained in:
parent
28fc2eb8aa
commit
4a56e548dd
1 changed files with 1 additions and 1 deletions
|
|
@ -2142,7 +2142,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
}
|
||||
|
||||
if (mDeps.flagConnectivityServiceDestroySocket()) {
|
||||
mIpToNetworksMap = new HashMap<>();
|
||||
mIpToNetworksMap = new ArrayMap<>();
|
||||
mAddressUpdateMonitor = mDeps.makeAddressUpdateMonitor(
|
||||
mHandler, new SharedLog(20, TAG), TAG,
|
||||
this::processNetlinkAddressUpdateMessage);
|
||||
|
|
|
|||
Loading…
Reference in a new issue