Home
last modified time | relevance | path

Searched refs:netId (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/java/android/net/metrics/
DNetworkMetrics.java39 public final int netId; field in NetworkMetrics
53 public NetworkMetrics(int netId, long transports, TokenBucket tb) { in NetworkMetrics() argument
54 this.netId = netId; in NetworkMetrics()
57 new ConnectStats(netId, transports, tb, CONNECT_LATENCY_MAXIMUM_RECORDS); in NetworkMetrics()
58 this.dnsMetrics = new DnsEvent(netId, transports, INITIAL_DNS_BATCH_SIZE); in NetworkMetrics()
59 this.summary = new Summary(netId, transports); in NetworkMetrics()
78 pendingSummary = new Summary(netId, transports); in addDnsResult()
88 pendingSummary = new Summary(netId, transports); in addConnectResult()
100 pendingSummary = new Summary(netId, transports); in addTcpStatsResult()
110 public final int netId; field in NetworkMetrics.Summary
[all …]
DDnsEvent.java31 public final int netId; field in DnsEvent
50 public DnsEvent(int netId, long transports, int initialCapacity) { in DnsEvent() argument
51 this.netId = netId; in DnsEvent()
86 new StringBuilder("DnsEvent(").append("netId=").append(netId) in toString()
DConnectStats.java36 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) in toString()
DDefaultNetworkEvent.java31 public int netId = 0; field in DefaultNetworkEvent
60 j.add("netId=" + netId); in toString()
DIpConnectivityLog.java157 ev.netId = netid; in log()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java121 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/
DNetdEventListenerService.java173 private NetworkMetrics getMetricsForNetwork(long timeMs, int netId) { in getMetricsForNetwork() argument
175 NetworkMetrics metrics = mNetworkMetrics.get(netId); in getMetricsForNetwork()
178 metrics = new NetworkMetrics(netId, getTransports(netId), mConnectTb); in getMetricsForNetwork()
179 mNetworkMetrics.put(netId, metrics); in getMetricsForNetwork()
207 public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, in onDnsEvent() argument
211 getMetricsForNetwork(timestamp, netId).addDnsResult(eventType, returnCode, latencyMs); in onDnsEvent()
215 callback.onDnsEvent(netId, eventType, returnCode, hostname, ipAddresses, in onDnsEvent()
224 public synchronized void onNat64PrefixEvent(int netId, in onNat64PrefixEvent() argument
229 callback.onNat64PrefixEvent(netId, added, prefixString, prefixLength); in onNat64PrefixEvent()
237 public synchronized void onPrivateDnsValidationEvent(int netId, in onPrivateDnsValidationEvent() argument
[all …]
DIpConnectivityEventBuilder.java84 final IpConnectivityEvent out = buildEvent(ev.netId, ev.transports, ev.ifname); in toProto()
100 final IpConnectivityEvent out = buildEvent(in.netId, in.transports, null); in toProto()
113 final IpConnectivityEvent out = buildEvent(in.netId, in.transports, null); in toProto()
148 final IpConnectivityEvent out = buildEvent(in.netId, in.transports, null); in toProto()
157 private static IpConnectivityEvent buildEvent(int netId, long transports, String ifname) { in buildEvent() argument
159 ev.networkId = netId; in buildEvent()
DDefaultNetworkMetrics.java180 ev.netId = network.getNetId(); in fillLinkInfo()
/frameworks/base/core/java/android/net/
DConnectivityMetricsEvent.java36 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()
DINetdEventCallback.aidl44 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
/frameworks/base/core/java/com/android/server/net/
DBaseNetdEventCallback.java29 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/base/services/core/java/com/android/server/net/
DNetworkPolicyLogger.java131 void meterednessChanged(int netId, boolean newMetered) { in meterednessChanged() argument
135 getMeterednessChangedLog(netId, newMetered)); in meterednessChanged()
137 mEventsBuffer.meterednessChanged(netId, newMetered); in meterednessChanged()
301 private static String getMeterednessChangedLog(int netId, boolean newMetered) { in getMeterednessChangedLog() argument
302 return "Meteredness of netId=" + netId + " changed to " + newMetered; in getMeterednessChangedLog()
428 public void meterednessChanged(int netId, boolean newMetered) { in meterednessChanged() argument
434 data.ifield1 = netId; in meterednessChanged()
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl110 void addRoute(int netId, in RouteInfo route); in addRoute() argument
115 void removeRoute(int netId, in RouteInfo route); in removeRoute() argument
/frameworks/base/core/proto/android/net/
Dnetwork.proto28 // The netId is an implementation detail which might be changed in the
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DConnectivityManagerTestBase.java376 int netId = wifiConfig.networkId; in disconnectAP() local
377 mWifiManager.forget(netId, new WifiManager.ActionListener() { in disconnectAP()
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java779 final int netId = mNextTunnelNetId; in reserveNetId() local
783 if (!mTunnelNetIds.get(netId)) { in reserveNetId()
784 mTunnelNetIds.put(netId, true); in reserveNetId()
785 return netId; in reserveNetId()
793 void releaseNetId(int netId) { in releaseNetId() argument
795 mTunnelNetIds.delete(netId); in releaseNetId()
DNetworkManagementService.java832 public void addRoute(int netId, RouteInfo route) { in addRoute() argument
834 RouteUtils.modifyRoute(mNetdService, ModifyOperation.ADD, netId, route); in addRoute()
838 public void removeRoute(int netId, RouteInfo route) { in removeRoute() argument
840 RouteUtils.modifyRoute(mNetdService, ModifyOperation.REMOVE, netId, route); in removeRoute()
1749 private void modifyInterfaceInNetwork(boolean add, int netId, String iface) { in modifyInterfaceInNetwork() argument
1753 mNetdService.networkAddInterface(netId, iface); in modifyInterfaceInNetwork()
1755 mNetdService.networkRemoveInterface(netId, iface); in modifyInterfaceInNetwork()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNetworkLogger.java61 public void onDnsEvent(int netId, int eventType, int returnCode, String hostname,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcNetworkAgent.java138 private void checkDuplicateInterface(int netId, @Nullable String interfaceName) { in checkDuplicateInterface() argument
152 sInterfaceNames.put(netId, interfaceName); in checkDuplicateInterface()
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DNetworkWatchlistService.java145 public void onDnsEvent(int netId, int eventType, int returnCode, String hostname,
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java630 int netId = wifiConfig.networkId; in disconnectAP() local
631 mWifiManager.forget(netId, new WifiManager.ActionListener() { in disconnectAP()
/frameworks/proto_logging/stats/
Datoms.proto8154 // The DNS over TLS mode on a specific netId.
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt35335 Landroid/net/ConnectivityMetricsEvent;->netId:I
36223 Landroid/net/metrics/ConnectStats;->netId:I
36233 Landroid/net/metrics/DefaultNetworkEvent;->netId:I
36260 Landroid/net/metrics/DnsEvent;->netId:I
36333 Landroid/net/metrics/NetworkMetrics$Summary;->netId:I
36347 Landroid/net/metrics/NetworkMetrics;->netId:I