Searched refs:netId (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DNetworkUpdateResult.java22 int netId; field in class:NetworkUpdateResult
29 netId = id;
36 netId = INVALID_NETWORK_ID;
43 netId = id;
47 return netId;
71 return netId != INVALID_NETWORK_ID;
H A DWifiScoreReport.java99 int netId = 0;
102 netId = networkAgent.netId;
142 logLinkMetrics(wifiInfo, millis, netId, s1, s2, score);
228 private void logLinkMetrics(WifiInfo wifiInfo, long now, int netId, argument
245 timestamp, mSessionNumber, netId,
/frameworks/base/core/java/android/net/metrics/
H A DNetworkMetrics.java41 public final int netId; field in class:NetworkMetrics
55 public NetworkMetrics(int netId, long transports, TokenBucket tb) { argument
56 this.netId = netId;
59 new ConnectStats(netId, transports, tb, CONNECT_LATENCY_MAXIMUM_RECORDS);
60 this.dnsMetrics = new DnsEvent(netId, transports, INITIAL_DNS_BATCH_SIZE);
61 this.summary = new Summary(netId, transports);
80 pendingSummary = new Summary(netId, transports);
90 pendingSummary = new Summary(netId, transports);
102 pendingSummary = new Summary(netId, transport
112 public final int netId; field in class:NetworkMetrics.Summary
130 Summary(int netId, long transports) argument
[all...]
H A DDnsEvent.java34 public final int netId; field in class:DnsEvent
53 public DnsEvent(int netId, long transports, int initialCapacity) { argument
54 this.netId = netId;
89 new StringBuilder("DnsEvent(").append("netId=").append(netId).append(", ");
H A DConnectStats.java36 public final int netId; field in class:ConnectStats
56 public ConnectStats(int netId, long transports, TokenBucket tb, int maxLatencyRecords) { argument
57 this.netId = netId;
123 new StringBuilder("ConnectStats(").append("netId=").append(netId).append(", ");
H A DDefaultNetworkEvent.java36 public int netId = NETID_UNSET; field in class:DefaultNetworkEvent
65 j.add("netId=" + netId);
/frameworks/base/core/java/android/net/
H A DConnectivityMetricsEvent.java36 public int netId; field in class:ConnectivityMetricsEvent
48 netId = in.readInt();
74 dest.writeInt(netId);
83 if (netId != 0) {
84 buffer.append(", ").append("netId=").append(netId);
H A DNetwork.java62 public final int netId; field in class:Network
106 public Network(int netId) { argument
107 this.netId = netId;
114 this.netId = that.netId;
164 ? (int) (0x80000000L | (long) netId) // Non-portable DNS resolution flag.
165 : netId;
174 public NetworkBoundSocketFactory(int netId) { argument
176 mNetId = netId;
[all...]
H A DINetdEventCallback.aidl46 * @param netId the ID of the network the validation was performed on.
51 void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname,
H A DNetworkUtils.java74 * Binds the current process to the network designated by {@code netId}. All sockets created
81 public native static boolean bindProcessToNetwork(int netId); argument
84 * Return the netId last passed to {@link #bindProcessToNetwork}, or NETID_UNSET if
90 * Binds host resolutions performed by this process to the network designated by {@code netId}.
97 public native static boolean bindProcessToNetworkForHostResolution(int netId); argument
100 * Explicitly binds {@code socketfd} to the network designated by {@code netId}. This
104 public native static int bindSocketToNetwork(int socketfd, int netId); argument
123 * Determine if {@code uid} can access network designated by {@code netId}.
126 public native static boolean queryUserAccess(int uid, int netId); argument
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiNetworkSelectorTestUtil.java151 int netId = 0;
160 id = new Integer(netId);
162 netId++;
184 public WifiConfiguration answer(int netId) {
186 if (netId == config.networkId) {
208 for (int netId = 0; netId < configs.length; netId++) {
209 savedNetworks.add(new WifiConfiguration(configs[netId]));
216 public boolean answer(int netId) {
[all...]
/frameworks/base/core/java/android/os/
H A DINetworkManagementService.aidl109 void addRoute(int netId, in RouteInfo route);
114 void removeRoute(int netId, in RouteInfo route);
344 void setDnsConfigurationForNetwork(int netId, in String[] servers, in String[] domains,
355 * Set all packets from users in ranges to go through VPN specified by netId.
357 void addVpnUidRanges(int netId, in UidRange[] ranges);
360 * Clears the special VPN rules for users in ranges and VPN specified by netId.
362 void removeVpnUidRanges(int netId, in UidRange[] ranges);
399 void createPhysicalNetwork(int netId, String permission);
404 void createVirtualNetwork(int netId, boolean hasDNS, boolean secure);
409 void removeNetwork(int netId);
[all...]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
H A DWifiClientTest.java121 int netId = mWifiManager.addNetwork(config);
122 assertTrue(netId != -1);
128 if (c.networkId == netId && c.SSID.equals(config.SSID)) {
135 boolean ret = mWifiManager.removeNetwork(netId);
142 if (c.networkId == netId) {
158 int netId = mWifiManager.addNetwork(config);
159 assertTrue(netId != -1);
162 boolean ret = mWifiManager.enableNetwork(netId, true);
168 if (c.networkId == netId) {
176 ret = mWifiManager.disableNetwork(netId);
[all...]
/frameworks/base/wifi/java/android/net/wifi/p2p/
H A DWifiP2pConfig.java55 public int netId = WifiP2pGroup.PERSISTENT_NET_ID; field in class:WifiP2pConfig
113 sbuf.append("\n persist: ").append(netId);
128 netId = source.netId;
137 dest.writeInt(netId);
148 config.netId = in.readInt();
H A DWifiP2pGroupList.java42 public void onDeleteGroup(int netId); argument
55 protected void entryRemoved(boolean evicted, Integer netId,
92 * @param netId
95 public void remove(int netId) { argument
96 mGroups.remove(netId);
174 * @param netId network id.
178 public String getOwnerAddr(int netId) { argument
179 WifiP2pGroup grp = mGroups.get(netId);
191 * @param netId network id.
195 public boolean contains(int netId) { argument
[all...]
/frameworks/base/core/java/com/android/server/net/
H A DBaseNetdEventCallback.java35 public void onPrivateDnsValidationEvent(int netId, String ipAddress, argument
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DDnsManager.java195 final public int netId; field in class:DnsManager.PrivateDnsValidationUpdate
200 public PrivateDnsValidationUpdate(int netId, InetAddress ipAddress, argument
202 this.netId = netId;
216 // Validation statuses of <hostname, ipAddress> pairs for a single netId
315 mPrivateDnsMap.remove(network.netId);
316 mPrivateDnsValidationMap.remove(network.netId);
322 ? mPrivateDnsMap.put(network.netId, cfg)
323 : mPrivateDnsMap.remove(network.netId);
326 public void updatePrivateDnsStatus(int netId, LinkPropertie argument
356 setDnsConfigurationForNetwork( int netId, LinkProperties lp, boolean isDefaultNetwork) argument
[all...]
H A DNetdEventListenerService.java169 private NetworkMetrics getMetricsForNetwork(long timeMs, int netId) { argument
171 NetworkMetrics metrics = mNetworkMetrics.get(netId);
174 metrics = new NetworkMetrics(netId, getTransports(netId), mConnectTb);
175 mNetworkMetrics.put(netId, metrics);
203 public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, argument
207 getMetricsForNetwork(timestamp, netId).addDnsResult(eventType, returnCode, latencyMs);
219 public synchronized void onPrivateDnsValidationEvent(int netId, argument
224 callback.onPrivateDnsValidationEvent(netId, ipAddress, hostname, validated);
232 public synchronized void onConnectEvent(int netId, in argument
364 getTransports(int netId) argument
[all...]
H A DLingerMonitor.java81 /** Current notifications. Maps the netId we switched away from to the netId we switched to. */
113 if (mNotifications.valueAt(i) == toNai.network.netId) {
121 return mEverNotified.get(nai.network.netId, false);
152 mNotifier.showNotification(fromNai.network.netId, NotificationType.NETWORK_SWITCH,
203 mNotifications.put(fromNai.network.netId, toNai.network.netId);
204 mEverNotified.put(fromNai.network.netId, true);
274 mNotifications.delete(nai.network.netId);
275 mEverNotified.delete(nai.network.netId);
[all...]
/frameworks/base/services/net/java/android/net/dns/
H A DResolvUtil.java61 return Libcore.os.android_getaddrinfo(name, hints, (int) networkForResolv.netId);
69 final long netidForResolv = NETID_USE_LOCAL_NAMESERVERS | (long) network.netId;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
H A DWifiP2pNative.java280 * @param netId Id of the network to lookup.
283 public boolean removeP2pNetwork(int netId) { argument
284 return mSupplicantP2pIfaceHal.removeNetwork(netId);
517 * @param netId Used to specify the restart of a persistent group.
521 public boolean p2pGroupAdd(int netId) { argument
522 return mSupplicantP2pIfaceHal.groupAdd(netId, true);
571 * @param netId Used to specify the persistent group.
576 public boolean p2pReinvoke(int netId, String deviceAddress) { argument
577 return mSupplicantP2pIfaceHal.reinvoke(netId, deviceAddress);
720 * @param netId I
723 getP2pClientList(int netId) argument
734 setP2pClientList(int netId, String list) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_net_NetUtils.cpp294 static jboolean android_net_utils_bindProcessToNetwork(JNIEnv *env, jobject thiz, jint netId) argument
296 return (jboolean) !setNetworkForProcess(netId);
305 jint netId)
307 return (jboolean) !setNetworkForResolv(netId);
311 jint netId)
313 return setNetworkForSocket(netId, socket);
321 static jboolean android_net_utils_queryUserAccess(JNIEnv *env, jobject thiz, jint uid, jint netId) argument
323 return (jboolean) !queryUserAccess(uid, netId);
304 android_net_utils_bindProcessToNetworkForHostResolution(JNIEnv *env, jobject thiz, jint netId) argument
310 android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, jint netId) argument
/frameworks/base/wifi/java/android/net/wifi/
H A DIWifiManager.aidl82 boolean removeNetwork(int netId, String packageName);
84 boolean enableNetwork(int netId, boolean disableOthers, String packageName);
86 boolean disableNetwork(int netId, String packageName);
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DLingerMonitorTest.java342 verify(mNotifier, times(1)).showNotification(eq(from.network.netId),
346 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { argument
351 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null,
357 NetworkAgentInfo wifiNai(int netId) { argument
358 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI,
362 NetworkAgentInfo cellNai(int netId) { argument
363 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR,
/frameworks/base/services/core/java/com/android/server/
H A DNetworkManagementService.java1139 public void addRoute(int netId, RouteInfo route) { argument
1140 modifyRoute("add", "" + netId, route);
1144 public void removeRoute(int netId, RouteInfo route) { argument
1145 modifyRoute("remove", "" + netId, route);
1148 private void modifyRoute(String action, String netId, RouteInfo route) { argument
1151 final Command cmd = new Command("network", "route", action, netId);
1339 int netId = (network != null) ? network.netId : ConnectivityManager.NETID_UNSET;
1340 final Command cmd = new Command("tether", "dns", "set", netId);
1946 public void setDnsConfigurationForNetwork(int netId, Strin argument
1960 addVpnUidRanges(int netId, UidRange[] ranges) argument
1982 removeVpnUidRanges(int netId, UidRange[] ranges) argument
2473 createPhysicalNetwork(int netId, String permission) argument
2488 createVirtualNetwork(int netId, boolean hasDNS, boolean secure) argument
2500 removeNetwork(int netId) argument
2515 addInterfaceToNetwork(String iface, int netId) argument
2520 removeInterfaceFromNetwork(String iface, int netId) argument
2524 modifyInterfaceInNetwork(String action, String netId, String iface) argument
2534 addLegacyRouteForNetId(int netId, RouteInfo routeInfo, int uid) argument
2555 setDefaultNetId(int netId) argument
2577 setNetworkPermission(int netId, String permission) argument
[all...]

Completed in 194 milliseconds

123