Searched refs:mNai (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | Nat464XlatTest.java | 85 @Mock NetworkAgentInfo mNai; field in Nat464XlatTest 104 doReturn(handler).when(mNai).handler(); in makeNat464Xlat() 106 return new Nat464Xlat(mNai, mNetd, mDnsResolver, deps) { in makeNat464Xlat() 118 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.CONNECTED, "", ""); 122 mNai.networkInfo.setDetailedState(NetworkInfo.DetailedState.DISCONNECTED, "", ""); 129 mNai.linkProperties = new LinkProperties(); 130 mNai.linkProperties.setInterfaceName(BASE_IFACE); 131 mNai.networkInfo = new NetworkInfo(ConnectivityManager.TYPE_WIFI, 0 /* subtype */, 133 mNai.networkCapabilities = new NetworkCapabilities(); 135 when(mNai.connService()).thenReturn(mConnectivity); [all …]
|
D | AutomaticOnOffKeepaliveTrackerTest.java | 123 @Mock NetworkAgentInfo mNai; field in AutomaticOnOffKeepaliveTrackerTest 319 mNai.networkCapabilities = in setup() 321 mNai.networkInfo = new NetworkInfo(TYPE_MOBILE, 0 /* subtype */, "LTE", "LTE"); in setup() 322 mNai.networkInfo.setDetailedState( in setup() 324 doReturn(new Network(TEST_NETID)).when(mNai).network(); in setup() 325 mNai.linkProperties = new LinkProperties(); in setup() 326 doReturn(null).when(mNai).translateV4toClatV6(any()); in setup() 327 doReturn(null).when(mNai).getClatv6SrcAddress(); in setup() 432 () -> mAOOKeepaliveTracker.handleEventSocketKeepalive(mNai, slot, reason)); in triggerEventKeepalive() 441 mNai.linkProperties.addLinkAddress(new LinkAddress(srcAddress, 24)); in doStartNattKeepalive() [all …]
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | KeepaliveTracker.java | 151 public final NetworkAgentInfo mNai; field in KeepaliveTracker.KeepaliveInfo 203 mNai = nai; in KeepaliveInfo() 242 return mNai; in getNai() 258 + " network=" + mNai.network in toString() 296 if (!mNai.networkInfo.isConnectedOrConnecting()) { in checkNetworkConnected() 304 for (InetAddress address : mNai.linkProperties.getAllAddresses()) { in checkSourceAddress() 310 if (mPacket.getSrcAddress().equals(mNai.getClatv6SrcAddress())) { in checkSourceAddress() 324 final HashMap<Integer, KeepaliveInfo> networkKeepalives = mKeepalives.get(mNai); in checkPermission() 332 mSupportedKeepalives, mNai.networkCapabilities); in checkPermission() 358 final HashMap<Integer, KeepaliveInfo> networkKeepalives = mKeepalives.get(mNai); in checkLimit() [all …]
|
D | AutomaticOnOffKeepaliveTracker.java | 547 + startedKi.mNai + " with error " + error); in handleResumeKeepalive() 553 + " on " + startedKi.mNai); in handleResumeKeepalive() 559 mEventLog.log("Suspend keepalive " + ki.mCallback + " on " + ki.mNai); in handlePauseKeepalive() 729 if (!nai.equals(autoKi.mKi.mNai)) continue; in handleCheckKeepalivesStillValid()
|
/packages/modules/Connectivity/service/src/com/android/server/ |
D | ConnectivityService.java | 4996 private final AutodestructReference<NetworkAgentInfo> mNai; 5000 mNai = new AutodestructReference<>(nai); 5006 new Pair<>(mNai.getAndDestroy(), networkMonitor))); 12159 @NonNull private final NetworkAgentInfo mNai; 12165 mNai = nai; 12288 final NetworkAgentInfo nai = reportEvent.mNai; 12293 reportEvent.mNai.network,
|