Remove references of NetworkAgentConfig constructor

This is hidden, use public Builder instead.

Test: TH
Bug: 182963397
Change-Id: Ib8ea2a17276cfd000e7003fc86d15458e1f82b39
This commit is contained in:
junyulai
2021-03-19 14:58:46 +08:00
parent 4f33258550
commit 549dfb9536
2 changed files with 2 additions and 2 deletions

View File

@@ -1241,7 +1241,7 @@ public class Vpn {
mLegacyState = LegacyVpnInfo.STATE_CONNECTING; mLegacyState = LegacyVpnInfo.STATE_CONNECTING;
updateState(DetailedState.CONNECTING, "agentConnect"); updateState(DetailedState.CONNECTING, "agentConnect");
NetworkAgentConfig networkAgentConfig = new NetworkAgentConfig(); NetworkAgentConfig networkAgentConfig = new NetworkAgentConfig.Builder().build();
networkAgentConfig.allowBypass = mConfig.allowBypass && !mLockdown; networkAgentConfig.allowBypass = mConfig.allowBypass && !mLockdown;
mNetworkCapabilities.setOwnerUid(mOwnerUID); mNetworkCapabilities.setOwnerUid(mOwnerUID);

View File

@@ -1441,7 +1441,7 @@ public class VcnGatewayConnection extends StateMachine {
caps, caps,
lp, lp,
Vcn.getNetworkScore(), Vcn.getNetworkScore(),
new NetworkAgentConfig(), new NetworkAgentConfig.Builder().build(),
mVcnContext.getVcnNetworkProvider()) { mVcnContext.getVcnNetworkProvider()) {
@Override @Override
public void unwanted() { public void unwanted() {