/frameworks/base/core/java/android/net/metrics/ |
D | NetworkMetrics.java | 41 public final int netId; field in NetworkMetrics 55 public NetworkMetrics(int netId, long transports, TokenBucket tb) { in NetworkMetrics() argument 56 this.netId = netId; in NetworkMetrics() 59 new ConnectStats(netId, transports, tb, CONNECT_LATENCY_MAXIMUM_RECORDS); in NetworkMetrics() 60 this.dnsMetrics = new DnsEvent(netId, transports, INITIAL_DNS_BATCH_SIZE); in NetworkMetrics() 61 this.summary = new Summary(netId, transports); in NetworkMetrics() 80 pendingSummary = new Summary(netId, transports); in addDnsResult() 90 pendingSummary = new Summary(netId, transports); in addConnectResult() 102 pendingSummary = new Summary(netId, transports); in addTcpStatsResult() 112 public final int netId; field in NetworkMetrics.Summary [all …]
|
D | DnsEvent.java | 34 public final int netId; field in DnsEvent 53 public DnsEvent(int netId, long transports, int initialCapacity) { in DnsEvent() argument 54 this.netId = netId; in DnsEvent() 89 new StringBuilder("DnsEvent(").append("netId=").append(netId).append(", "); in toString()
|
D | ConnectStats.java | 36 public final int netId; field in ConnectStats 56 public ConnectStats(int netId, long transports, TokenBucket tb, int maxLatencyRecords) { in ConnectStats() argument 57 this.netId = netId; in ConnectStats() 123 new StringBuilder("ConnectStats(").append("netId=").append(netId).append(", "); in toString()
|
D | DefaultNetworkEvent.java | 36 public int netId = NETID_UNSET; field in DefaultNetworkEvent 65 j.add("netId=" + netId); in toString()
|
/frameworks/base/core/java/android/net/ |
D | Network.java | 67 public final int netId; field in Network 112 public Network(int netId) { in Network() argument 113 this(netId, false); in Network() 119 public Network(int netId, boolean privateDnsBypass) { in Network() argument 120 this.netId = netId; in Network() 130 this(that.netId, that.mPrivateDnsBypass); in Network() 168 return new Network(netId, true); in getPrivateDnsBypassingCopy() 181 ? (int) (0x80000000L | (long) netId) // Non-portable DNS resolution flag. in getNetIdForResolv() 182 : netId; in getNetIdForResolv() 411 final int err = NetworkUtils.bindSocketToNetwork(fd.getInt$(), netId); in bindSocket() [all …]
|
D | ConnectivityMetricsEvent.java | 36 public int netId; field in ConnectivityMetricsEvent 48 netId = in.readInt(); in ConnectivityMetricsEvent() 74 dest.writeInt(netId); in writeToParcel() 83 if (netId != 0) { in toString() 84 buffer.append(", ").append("netId=").append(netId); in toString()
|
D | INetdEventCallback.aidl | 44 void onDnsEvent(int netId, int eventType, int returnCode, String hostname, in onDnsEvent() argument 58 void onNat64PrefixEvent(int netId, boolean added, @utf8InCpp String prefixString, in onNat64PrefixEvent() argument 70 void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname, in onPrivateDnsValidationEvent() argument
|
D | NetworkUtils.java | 78 public native static boolean bindProcessToNetwork(int netId); in bindProcessToNetwork() argument 94 public native static boolean bindProcessToNetworkForHostResolution(int netId); in bindProcessToNetworkForHostResolution() argument 101 public native static int bindSocketToNetwork(int socketfd, int netId); in bindSocketToNetwork() argument 124 public native static boolean queryUserAccess(int uid, int netId); in queryUserAccess() argument 133 int netId, byte[] msg, int msglen, int flags) throws ErrnoException; in resNetworkSend() argument 143 int netId, String dname, int nsClass, int nsType, int flags) throws ErrnoException; in resNetworkQuery() argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | NetworkUpdateResult.java | 22 int netId; field in NetworkUpdateResult 29 netId = id; in NetworkUpdateResult() 36 netId = INVALID_NETWORK_ID; in NetworkUpdateResult() 43 netId = id; in setNetworkId() 47 return netId; in getNetworkId() 71 return netId != INVALID_NETWORK_ID; in isSuccess()
|
D | WifiScoreReport.java | 103 int netId = 0; in calculateAndReportScore() local 106 netId = networkAgent.netId; in calculateAndReportScore() 159 logLinkMetrics(wifiInfo, millis, netId, s1, s2, score); in calculateAndReportScore() 245 private void logLinkMetrics(WifiInfo wifiInfo, long now, int netId, in logLinkMetrics() argument 262 timestamp, mSessionNumber, netId, in logLinkMetrics()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/ |
D | WifiClientTest.java | 121 int netId = mWifiManager.addNetwork(config); in testAddRemoveNetwork() local 122 assertTrue(netId != -1); in testAddRemoveNetwork() 128 if (c.networkId == netId && c.SSID.equals(config.SSID)) { in testAddRemoveNetwork() 135 boolean ret = mWifiManager.removeNetwork(netId); in testAddRemoveNetwork() 142 if (c.networkId == netId) { in testAddRemoveNetwork() 158 int netId = mWifiManager.addNetwork(config); in testEnableDisableNetwork() local 159 assertTrue(netId != -1); in testEnableDisableNetwork() 162 boolean ret = mWifiManager.enableNetwork(netId, true); in testEnableDisableNetwork() 168 if (c.networkId == netId) { in testEnableDisableNetwork() 176 ret = mWifiManager.disableNetwork(netId); in testEnableDisableNetwork() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DnsManager.java | 146 final public int netId; field in DnsManager.PrivateDnsValidationUpdate 151 public PrivateDnsValidationUpdate(int netId, InetAddress ipAddress, in PrivateDnsValidationUpdate() argument 153 this.netId = netId; in PrivateDnsValidationUpdate() 266 mPrivateDnsMap.remove(network.netId); in removeNetwork() 267 mPrivateDnsValidationMap.remove(network.netId); in removeNetwork() 273 ? mPrivateDnsMap.put(network.netId, cfg) in updatePrivateDns() 274 : mPrivateDnsMap.remove(network.netId); in updatePrivateDns() 277 public void updatePrivateDnsStatus(int netId, LinkProperties lp) { in updatePrivateDnsStatus() argument 280 final PrivateDnsConfig privateDnsCfg = mPrivateDnsMap.getOrDefault(netId, in updatePrivateDnsStatus() 285 useTls ? mPrivateDnsValidationMap.get(netId) : null; in updatePrivateDnsStatus() [all …]
|
D | NetdEventListenerService.java | 167 private NetworkMetrics getMetricsForNetwork(long timeMs, int netId) { in getMetricsForNetwork() argument 169 NetworkMetrics metrics = mNetworkMetrics.get(netId); in getMetricsForNetwork() 172 metrics = new NetworkMetrics(netId, getTransports(netId), mConnectTb); in getMetricsForNetwork() 173 mNetworkMetrics.put(netId, metrics); in getMetricsForNetwork() 201 public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, in onDnsEvent() argument 205 getMetricsForNetwork(timestamp, netId).addDnsResult(eventType, returnCode, latencyMs); in onDnsEvent() 209 callback.onDnsEvent(netId, eventType, returnCode, hostname, ipAddresses, in onDnsEvent() 218 public synchronized void onNat64PrefixEvent(int netId, in onNat64PrefixEvent() argument 223 callback.onNat64PrefixEvent(netId, added, prefixString, prefixLength); in onNat64PrefixEvent() 231 public synchronized void onPrivateDnsValidationEvent(int netId, in onPrivateDnsValidationEvent() argument [all …]
|
D | LingerMonitor.java | 115 if (mNotifications.valueAt(i) == toNai.network.netId) { in getNotificationSource() 123 return mEverNotified.get(nai.network.netId, false); in everNotified() 154 mNotifier.showNotification(fromNai.network.netId, NotificationType.NETWORK_SWITCH, in showNotification() 205 mNotifications.put(fromNai.network.netId, toNai.network.netId); in notify() 206 mEverNotified.put(fromNai.network.netId, true); in notify() 276 mNotifications.delete(nai.network.netId); in noteDisconnect() 277 mEverNotified.delete(nai.network.netId); in noteDisconnect()
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 112 void addRoute(int netId, in RouteInfo route); in addRoute() argument 117 void removeRoute(int netId, in RouteInfo route); in removeRoute() argument 343 void addVpnUidRanges(int netId, in UidRange[] ranges); in addVpnUidRanges() argument 348 void removeVpnUidRanges(int netId, in UidRange[] ranges); in removeVpnUidRanges() argument 368 void addInterfaceToNetwork(String iface, int netId); in addInterfaceToNetwork() argument 373 void removeInterfaceFromNetwork(String iface, int netId); in removeInterfaceFromNetwork() argument 375 void addLegacyRouteForNetId(int netId, in RouteInfo routeInfo, int uid); in addLegacyRouteForNetId() argument 377 void setDefaultNetId(int netId); in setDefaultNetId() argument 385 void setNetworkPermission(int netId, int permission); in setNetworkPermission() argument
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pGroupList.java | 44 public void onDeleteGroup(int netId); in onDeleteGroup() argument 58 protected void entryRemoved(boolean evicted, Integer netId, in WifiP2pGroupList() 99 public void remove(int netId) { in remove() argument 100 mGroups.remove(netId); in remove() 182 public String getOwnerAddr(int netId) { in getOwnerAddr() argument 183 WifiP2pGroup grp = mGroups.get(netId); in getOwnerAddr() 199 public boolean contains(int netId) { in contains() argument 202 if (netId == grp.getNetworkId()) { in contains()
|
D | WifiP2pConfig.java | 107 public int netId = WifiP2pGroup.PERSISTENT_NET_ID; field in WifiP2pConfig 166 sbuf.append("\n persist: ").append(netId); in toString() 185 netId = source.netId; in WifiP2pConfig() 197 dest.writeInt(netId); in writeToParcel() 211 config.netId = in.readInt(); 449 config.netId = mNetId; in build()
|
/frameworks/base/core/jni/ |
D | android_net_NetUtils.cpp | 198 static jboolean android_net_utils_bindProcessToNetwork(JNIEnv *env, jobject thiz, jint netId) in android_net_utils_bindProcessToNetwork() argument 200 return (jboolean) !setNetworkForProcess(netId); in android_net_utils_bindProcessToNetwork() 209 jint netId) in android_net_utils_bindProcessToNetworkForHostResolution() argument 211 return (jboolean) !setNetworkForResolv(netId); in android_net_utils_bindProcessToNetworkForHostResolution() 215 jint netId) in android_net_utils_bindSocketToNetwork() argument 217 return setNetworkForSocket(netId, socket); in android_net_utils_bindSocketToNetwork() 225 static jboolean android_net_utils_queryUserAccess(JNIEnv *env, jobject thiz, jint uid, jint netId) in android_net_utils_queryUserAccess() argument 227 return (jboolean) !queryUserAccess(uid, netId); in android_net_utils_queryUserAccess() 239 static jobject android_net_utils_resNetworkQuery(JNIEnv *env, jobject thiz, jint netId, in android_net_utils_resNetworkQuery() argument 249 int fd = resNetworkQuery(netId, queryname.data(), ns_class, ns_type, flags); in android_net_utils_resNetworkQuery() [all …]
|
/frameworks/base/core/java/com/android/server/net/ |
D | BaseNetdEventCallback.java | 29 public void onDnsEvent(int netId, int eventType, int returnCode, String hostname, in onDnsEvent() argument 35 public void onNat64PrefixEvent(int netId, boolean added, String prefixString, in onNat64PrefixEvent() argument 41 public void onPrivateDnsValidationEvent(int netId, String ipAddress, in onPrivateDnsValidationEvent() argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pNative.java | 338 public boolean removeP2pNetwork(int netId) { in removeP2pNetwork() argument 339 return mSupplicantP2pIfaceHal.removeNetwork(netId); in removeP2pNetwork() 576 public boolean p2pGroupAdd(int netId) { in p2pGroupAdd() argument 577 return mSupplicantP2pIfaceHal.groupAdd(netId, true); in p2pGroupAdd() 603 (config.netId == WifiP2pGroup.PERSISTENT_NET_ID), in p2pGroupAdd() 658 public boolean p2pReinvoke(int netId, String deviceAddress) { in p2pReinvoke() argument 659 return mSupplicantP2pIfaceHal.reinvoke(netId, deviceAddress); in p2pReinvoke() 805 public String getP2pClientList(int netId) { in getP2pClientList() argument 806 return mSupplicantP2pIfaceHal.getClientList(netId); in getP2pClientList() 816 public boolean setP2pClientList(int netId, String list) { in setP2pClientList() argument [all …]
|
/frameworks/base/tests/net/common/java/android/net/metrics/ |
D | IpConnectivityLogTest.java | 138 private ConnectivityMetricsEvent makeExpectedEvent(long timestamp, int netId, long transports, in makeExpectedEvent() argument 143 ev.netId = netId; in makeExpectedEvent() 154 assertEquals(expected.netId, got.netId); in assertEventsEqual()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 1157 int netId = mNextNetId; in reserveNetId() local 1160 if (!mNetIdInUse.get(netId)) { in reserveNetId() 1161 mNetIdInUse.put(netId, true); in reserveNetId() 1162 return netId; in reserveNetId() 1199 return getNetworkAgentInfoForNetId(network.netId); in getNetworkAgentInfoForNetwork() 1202 private NetworkAgentInfo getNetworkAgentInfoForNetId(int netId) { in getNetworkAgentInfoForNetId() argument 1204 return mNetworkForNetId.get(netId); in getNetworkAgentInfoForNetId() 1290 nri.mUid, nri.request.requestId, net.netId)); in maybeLogBlockedStatusChanged() 1721 int netId; in requestRouteToHostAddress() local 1724 netId = nai.network.netId; in requestRouteToHostAddress() [all …]
|
D | NetworkManagementService.java | 896 public void addRoute(int netId, RouteInfo route) { in addRoute() argument 897 modifyRoute(MODIFY_OPERATION_ADD, netId, route); in addRoute() 901 public void removeRoute(int netId, RouteInfo route) { in removeRoute() argument 902 modifyRoute(MODIFY_OPERATION_REMOVE, netId, route); in removeRoute() 905 private void modifyRoute(boolean add, int netId, RouteInfo route) { in modifyRoute() argument 932 mNetdService.networkAddRoute(netId, ifName, dst, nextHop); in modifyRoute() 934 mNetdService.networkRemoveRoute(netId, ifName, dst, nextHop); in modifyRoute() 1089 int netId = (network != null) ? network.netId : ConnectivityManager.NETID_UNSET; in setDnsForwarders() local 1092 mNetdService.tetherDnsSet(netId, dns); in setDnsForwarders() 1618 public void addVpnUidRanges(int netId, UidRange[] ranges) { in addVpnUidRanges() argument [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | LingerMonitorTest.java | 348 verify(mNotifier, times(1)).showNotification(eq(from.network.netId), in verifyNotification() 352 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { in nai() argument 357 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null, in nai() 364 NetworkAgentInfo wifiNai(int netId) { in wifiNai() argument 365 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI, in wifiNai() 369 NetworkAgentInfo cellNai(int netId) { in cellNai() argument 370 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR, in cellNai()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkTest.java | 164 assertEquals(mNetwork.netId, copy.netId); in testGetPrivateDnsBypassingCopy() 165 assertNotEqual(copy.netId, copy.getNetIdForResolv()); in testGetPrivateDnsBypassingCopy()
|