Searched defs:netId (Results 1 - 25 of 28) sorted by relevance

12

/frameworks/base/core/java/android/net/metrics/
H A DDnsEvent.java29 public final int netId; field in class:DnsEvent
42 public DnsEvent(int netId, byte[] eventTypes, byte[] returnCodes, int[] latenciesMs) { argument
43 this.netId = netId;
50 this.netId = in.readInt();
58 out.writeInt(netId);
71 return String.format("DnsEvent(%d, %d events)", netId, eventTypes.length);
87 int netId, byte[] eventTypes, byte[] returnCodes, int[] latenciesMs) {
86 logEvent( int netId, byte[] eventTypes, byte[] returnCodes, int[] latenciesMs) argument
H A DDefaultNetworkEvent.java31 public final int netId; field in class:DefaultNetworkEvent
42 public DefaultNetworkEvent(int netId, int[] transportTypes, argument
44 this.netId = netId;
52 this.netId = in.readInt();
61 out.writeInt(netId);
76 String newNetwork = String.valueOf(netId);
80 if (netId != 0) {
111 int netId, int[] transports, int prevNetId, boolean hadIPv4, boolean hadIPv6) {
110 logEvent( int netId, int[] transports, int prevNetId, boolean hadIPv4, boolean hadIPv6) argument
H A DNetworkEvent.java57 public final int netId; field in class:NetworkEvent
62 public NetworkEvent(int netId, @EventType int eventType, long durationMs) { argument
63 this.netId = netId;
69 public NetworkEvent(int netId, @EventType int eventType) { argument
70 this(netId, eventType, 0);
74 netId = in.readInt();
81 out.writeInt(netId);
102 public static void logEvent(int netId, int eventType) { argument
105 public static void logValidated(int netId, lon argument
108 logCaptivePortalFound(int netId, long durationMs) argument
[all...]
H A DValidationProbeEvent.java57 public final int netId; field in class:ValidationProbeEvent
64 int netId, long durationMs, @ProbeType int probeType, @ReturnCode int returnCode) {
65 this.netId = netId;
72 netId = in.readInt();
80 out.writeInt(netId);
107 public static void logEvent(int netId, long durationMs, int probeType, int returnCode) { argument
113 netId, getProbeName(probeType), returnCode, durationMs);
63 ValidationProbeEvent( int netId, long durationMs, @ProbeType int probeType, @ReturnCode int returnCode) argument
/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...]
H A DWifiP2pGroup.java260 public void setNetworkId(int netId) { argument
261 this.mNetId = netId;
H A DWifiP2pManager.java1334 * @param netId he network id of the p2p group.
1338 public void deletePersistentGroup(Channel c, int netId, ActionListener listener) { argument
1340 c.mAsyncChannel.sendMessage(DELETE_PERSISTENT_GROUP, netId, c.putListener(listener));
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DNetworkUpdateResult.java22 int netId; field in class:NetworkUpdateResult
28 netId = id;
34 netId = INVALID_NETWORK_ID;
40 netId = id;
44 return netId;
H A DSupplicantStateTracker.java112 private void handleNetworkConnectionFailure(int netId, int disableReason) { argument
114 Log.d(TAG, "handleNetworkConnectionFailure netId=" + Integer.toString(netId)
125 mWifiConfigManager.updateNetworkSelectionStatus(netId, disableReason);
H A DWifiConfigStore.java229 private void readNetworkBitsetVariable(int netId, BitSet variable, String varName, argument
231 String value = mWifiNative.getNetworkVariable(netId, varName);
255 int netId = config.networkId;
256 if (netId < 0) {
266 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.ssidVarName);
279 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.bssidVarName);
286 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.priorityVarName);
295 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.hiddenSSIDVarName);
304 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.pmfVarName);
313 value = mWifiNative.getNetworkVariable(netId, WifiConfiguratio
611 saveNetwork(WifiConfiguration config, int netId) argument
1156 markAllNetworksDisabledExcept(int netId, Collection<WifiConfiguration> configs) argument
1274 SupplicantSaver(int netId, String setterSSID) argument
1307 SupplicantLoader(int netId) argument
[all...]
H A DWifiConnectivityManager.java802 for (Integer netId : hiddenNetworkIds) {
803 settings.hiddenNetworkIds[i++] = netId;
1079 public void connectToUserSelectNetwork(int netId, boolean persistent) { argument
1080 Log.i(TAG, "connectToUserSelectNetwork: netId=" + netId
1083 mQualifiedNetworkSelector.userSelectNetwork(netId, persistent);
H A DWifiQualifiedNetworkSelector.java456 * @param netId new network ID for either the network the user choose or add
461 public boolean userSelectNetwork(int netId, boolean persist) { argument
462 WifiConfiguration selected = mWifiConfigManager.getWifiConfiguration(netId);
463 localLog("userSelectNetwork:" + netId + " persist:" + persist);
465 localLoge("userSelectNetwork: Bad configuration with nid=" + netId);
471 mWifiConfigManager.updateNetworkSelectionStatus(netId,
H A DWifiServiceImpl.java478 public String getWpsNfcConfigurationToken(int netId) { argument
480 return mWifiStateMachine.syncGetWpsNfcConfigurationToken(netId);
898 * @param netId the integer that identifies the network configuration
902 public boolean removeNetwork(int netId) { argument
906 return mWifiStateMachine.syncRemoveNetwork(mWifiStateMachineChannel, netId);
915 * @param netId the integer that identifies the network configuration
920 public boolean enableNetwork(int netId, boolean disableOthers) { argument
923 return mWifiStateMachine.syncEnableNetwork(mWifiStateMachineChannel, netId,
933 * @param netId the integer that identifies the network configuration
937 public boolean disableNetwork(int netId) { argument
[all...]
H A DWifiConfigManager.java518 Integer netId = (Integer) entry.getKey();
520 WifiConfiguration config = getWifiConfiguration(netId);
614 * get the Wificonfiguration for this netId
618 public WifiConfiguration getWifiConfiguration(int netId) { argument
619 return mConfiguredNetworks.getForCurrentUser(netId);
757 if (sVDBG) localLogNetwork("WifiConfigManager: saveNetwork netId", config.networkId);
777 int netId = result.getNetworkId();
779 if (sVDBG) localLogNetwork("WifiConfigManager: saveNetwork got it back netId=", netId);
781 conf = mConfiguredNetworks.getForCurrentUser(netId);
822 updateStatus(int netId, DetailedState state) argument
882 forgetNetwork(int netId) argument
1146 removeNetwork(int netId) argument
1302 selectNetworkWithoutBroadcast(int netId) argument
1327 disableNetwork(int netId) argument
1338 updateNetworkSelectionStatus(int netId, int reason) argument
1549 getStaticIpConfiguration(int netId) argument
1560 setStaticIpConfiguration(int netId, StaticIpConfiguration staticIpConfiguration) argument
1570 setDefaultGwMacAddress(int netId, String macAddress) argument
1584 getProxyProperties(int netId) argument
1597 isUsingStaticIp(int netId) argument
1605 isEphemeral(int netId) argument
1610 getMeteredHint(int netId) argument
1836 setAndEnableLastSelectedConfiguration(int netId) argument
3019 localLogNetwork(String s, int netId) argument
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DDnsEventListenerService.java64 public DnsEventBatch(int netId) { argument
65 mNetId = netId;
89 maybeLog(String.format("Logging %d results for netId %d", mEventCount, mNetId));
114 DnsEventBatch batch = mEventBatches.remove(network.netId);
137 public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs) { argument
139 netId, eventType, returnCode, latencyMs));
141 DnsEventBatch batch = mEventBatches.get(netId);
143 batch = new DnsEventBatch(netId);
144 mEventBatches.put(netId, batch);
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
H A DDnsEventListenerServiceTest.java159 void log(int netId, int[] latencies) { argument
161 mDnsService.onDnsEvent(netId, EVENT_TYPE, RETURN_CODE, l);
165 void logAsync(int netId, int[] latencies) { argument
168 log(netId, latencies);
192 && (expected.netId == got.netId)
H A DLingerMonitorTest.java316 verify(mNotifier, times(1)).showNotification(eq(from.network.netId),
320 NetworkAgentInfo nai(int netId, int transport, int networkType, String networkTypeName) { argument
325 NetworkAgentInfo nai = new NetworkAgentInfo(null, null, new Network(netId), info, null,
331 NetworkAgentInfo wifiNai(int netId) { argument
332 return nai(netId, NetworkCapabilities.TRANSPORT_WIFI,
336 NetworkAgentInfo cellNai(int netId) { argument
337 return nai(netId, NetworkCapabilities.TRANSPORT_CELLULAR,
/frameworks/base/core/java/android/net/
H A DNetwork.java60 public final int netId; field in class:Network
85 public Network(int netId) { argument
86 this.netId = netId;
93 this.netId = that.netId;
105 return InetAddress.getAllByNameOnNet(host, netId);
119 return InetAddress.getByNameOnNet(host, netId);
128 public NetworkBoundSocketFactory(int netId) { argument
130 mNetId = netId;
[all...]
H A DNetworkUtils.java62 * Binds the current process to the network designated by {@code netId}. All sockets created
69 public native static boolean bindProcessToNetwork(int netId); argument
72 * Return the netId last passed to {@link #bindProcessToNetwork}, or NETID_UNSET if
78 * Binds host resolutions performed by this process to the network designated by {@code netId}.
84 public native static boolean bindProcessToNetworkForHostResolution(int netId); argument
87 * Explicitly binds {@code socketfd} to the network designated by {@code netId}. This
91 public native static int bindSocketToNetwork(int socketfd, int netId); argument
110 * Determine if {@code uid} can access network designated by {@code netId}.
113 public native static boolean queryUserAccess(int uid, int netId); argument
H A DNetworkAgent.java47 public final int netId; field in class:NetworkAgent
225 netId = cm.registerNetworkAgent(new Messenger(this), new NetworkInfo(ni),
/frameworks/base/core/jni/
H A Dandroid_net_NetUtils.cpp221 static jboolean android_net_utils_bindProcessToNetwork(JNIEnv *env, jobject thiz, jint netId) argument
223 return (jboolean) !setNetworkForProcess(netId);
232 jint netId)
234 return (jboolean) !setNetworkForResolv(netId);
238 jint netId)
240 return setNetworkForSocket(netId, socket);
248 static jboolean android_net_utils_queryUserAccess(JNIEnv *env, jobject thiz, jint uid, jint netId) argument
250 return (jboolean) !queryUserAccess(uid, netId);
231 android_net_utils_bindProcessToNetworkForHostResolution(JNIEnv *env, jobject thiz, jint netId) argument
237 android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, jint netId) argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
H A DWifiP2pServiceImpl.java563 public void onDeleteGroup(int netId) {
564 if (DBG) logd("called onDeleteGroup() netId=" + netId);
565 mWifiNative.removeNetwork(netId);
1413 int netId = message.arg1;
1415 if (netId == WifiP2pGroup.PERSISTENT_NET_ID) {
1417 netId = mGroups.getNetworkId(mThisDevice.deviceAddress);
1418 if (netId != -1) {
1419 ret = mWifiNative.p2pGroupAdd(netId);
1819 int netId
2700 getClientList(int netId) argument
2715 removeClientFromList(int netId, String addr, boolean isRemovable) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DNetworkManagementService.java1134 public void addRoute(int netId, RouteInfo route) { argument
1135 modifyRoute("add", "" + netId, route);
1139 public void removeRoute(int netId, RouteInfo route) { argument
1140 modifyRoute("remove", "" + netId, route);
1143 private void modifyRoute(String action, String netId, RouteInfo route) { argument
1146 final Command cmd = new Command("network", "route", action, netId);
1334 int netId = (network != null) ? network.netId : ConnectivityManager.NETID_UNSET;
1335 final Command cmd = new Command("tether", "dns", "set", netId);
1979 public void setDnsConfigurationForNetwork(int netId, Strin argument
2024 setDnsServersForNetwork(int netId, String[] servers, String domains) argument
2049 addVpnUidRanges(int netId, UidRange[] ranges) argument
2071 removeVpnUidRanges(int netId, UidRange[] ranges) argument
2579 createPhysicalNetwork(int netId, String permission) argument
2594 createVirtualNetwork(int netId, boolean hasDNS, boolean secure) argument
2606 removeNetwork(int netId) argument
2617 addInterfaceToNetwork(String iface, int netId) argument
2622 removeInterfaceFromNetwork(String iface, int netId) argument
2626 modifyInterfaceInNetwork(String action, String netId, String iface) argument
2636 addLegacyRouteForNetId(int netId, RouteInfo routeInfo, int uid) argument
2657 setDefaultNetId(int netId) argument
2679 setNetworkPermission(int netId, String permission) argument
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiManager.java896 * @param netId the integer that identifies the network configuration
900 public boolean removeNetwork(int netId) { argument
902 return mService.removeNetwork(netId);
928 * @param netId the ID of the network in the list of configured networks
934 public boolean enableNetwork(int netId, boolean disableOthers) { argument
946 success = mService.enableNetwork(netId, disableOthers);
962 * @param netId the ID of the network as returned by {@link #addNetwork}.
965 public boolean disableNetwork(int netId) { argument
967 return mService.disableNetwork(netId);
1274 * Creates a configuration token describing the network referenced by {@code netId}
1280 getWpsNfcConfigurationToken(int netId) argument
2078 forget(int netId, ActionListener listener) argument
2092 disable(int netId, ActionListener listener) argument
[all...]

Completed in 201 milliseconds

12