/frameworks/base/core/java/android/net/metrics/ |
H A D | DnsEvent.java | 29 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 D | DefaultNetworkEvent.java | 31 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 D | NetworkEvent.java | 70 public final int netId; field in class:NetworkEvent 75 public NetworkEvent(int netId, @EventType int eventType, long durationMs) { argument 76 this.netId = netId; 82 public NetworkEvent(int netId, @EventType int eventType) { argument 83 this(netId, eventType, 0); 87 netId = in.readInt(); 94 out.writeInt(netId); 115 public static void logEvent(int netId, int eventType) { argument 118 public static void logValidated(int netId, lon argument 121 logCaptivePortalFound(int netId, long durationMs) argument [all...] |
H A D | ValidationProbeEvent.java | 55 public final int netId; field in class:ValidationProbeEvent 67 int netId, long durationMs, int probeType, @ReturnCode int returnCode) { 68 this.netId = netId; 75 netId = in.readInt(); 83 out.writeInt(netId); 120 public static void logEvent(int netId, long durationMs, int probeType, int returnCode) { argument 125 return String.format("ValidationProbeEvent(%d, %s:%d %s, %dms)", netId, 66 ValidationProbeEvent( int netId, long durationMs, int probeType, @ReturnCode int returnCode) argument
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
H A D | WifiP2pConfig.java | 55 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 D | WifiP2pGroupList.java | 42 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 D | WifiP2pGroup.java | 260 public void setNetworkId(int netId) { argument 261 this.mNetId = netId;
|
H A D | WifiP2pManager.java | 1334 * @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 D | NetworkUpdateResult.java | 22 int netId; field in class:NetworkUpdateResult 28 netId = id; 34 netId = INVALID_NETWORK_ID; 40 netId = id; 44 return netId;
|
H A D | SupplicantStateTracker.java | 112 private void handleNetworkConnectionFailure(int netId, int disableReason) { argument 114 Log.d(TAG, "handleNetworkConnectionFailure netId=" + Integer.toString(netId) 125 mWifiConfigManager.updateNetworkSelectionStatus(netId, disableReason);
|
H A D | WifiConfigStore.java | 229 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 625 saveNetwork(WifiConfiguration config, int netId, boolean addFastTransitionFlags) argument 1177 markAllNetworksDisabledExcept(int netId, Collection<WifiConfiguration> configs) argument 1295 SupplicantSaver(int netId, String setterSSID) argument 1328 SupplicantLoader(int netId) argument [all...] |
H A D | WifiConnectivityManager.java | 802 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 D | WifiQualifiedNetworkSelector.java | 543 * @param netId new network ID for either the network the user choose or add 548 public boolean userSelectNetwork(int netId, boolean persist) { argument 549 WifiConfiguration selected = mWifiConfigManager.getWifiConfiguration(netId); 550 localLog("userSelectNetwork:" + netId + " persist:" + persist); 552 localLoge("userSelectNetwork: Bad configuration with nid=" + netId); 558 mWifiConfigManager.updateNetworkSelectionStatus(netId,
|
H A D | WifiServiceImpl.java | 492 public String getWpsNfcConfigurationToken(int netId) { argument 494 return mWifiStateMachine.syncGetWpsNfcConfigurationToken(netId); 947 * @param netId the integer that identifies the network configuration 951 public boolean removeNetwork(int netId) { argument 955 return mWifiStateMachine.syncRemoveNetwork(mWifiStateMachineChannel, netId); 964 * @param netId the integer that identifies the network configuration 969 public boolean enableNetwork(int netId, boolean disableOthers) { argument 972 return mWifiStateMachine.syncEnableNetwork(mWifiStateMachineChannel, netId, 982 * @param netId the integer that identifies the network configuration 986 public boolean disableNetwork(int netId) { argument [all...] |
H A D | WifiConfigManager.java | 547 Integer netId = (Integer) entry.getKey(); 549 WifiConfiguration config = getWifiConfiguration(netId); 643 * get the Wificonfiguration for this netId 647 public WifiConfiguration getWifiConfiguration(int netId) { argument 648 return mConfiguredNetworks.getForCurrentUser(netId); 786 if (sVDBG) localLogNetwork("WifiConfigManager: saveNetwork netId", config.networkId); 806 int netId = result.getNetworkId(); 808 if (sVDBG) localLogNetwork("WifiConfigManager: saveNetwork got it back netId=", netId); 810 conf = mConfiguredNetworks.getForCurrentUser(netId); 851 updateStatus(int netId, DetailedState state) argument 911 forgetNetwork(int netId) argument 1183 removeNetwork(int netId) argument 1343 selectNetworkWithoutBroadcast(int netId) argument 1368 disableNetwork(int netId) argument 1379 updateNetworkSelectionStatus(int netId, int reason) argument 1590 getStaticIpConfiguration(int netId) argument 1601 setStaticIpConfiguration(int netId, StaticIpConfiguration staticIpConfiguration) argument 1611 setDefaultGwMacAddress(int netId, String macAddress) argument 1625 getProxyProperties(int netId) argument 1638 isUsingStaticIp(int netId) argument 1646 isEphemeral(int netId) argument 1651 getMeteredHint(int netId) argument 1877 setAndEnableLastSelectedConfiguration(int netId) argument 3062 localLogNetwork(String s, int netId) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | Network.java | 60 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 D | NetworkUtils.java | 73 * Binds the current process to the network designated by {@code netId}. All sockets created 80 public native static boolean bindProcessToNetwork(int netId); argument 83 * Return the netId last passed to {@link #bindProcessToNetwork}, or NETID_UNSET if 89 * Binds host resolutions performed by this process to the network designated by {@code netId}. 95 public native static boolean bindProcessToNetworkForHostResolution(int netId); argument 98 * Explicitly binds {@code socketfd} to the network designated by {@code netId}. This 102 public native static int bindSocketToNetwork(int socketfd, int netId); argument 121 * Determine if {@code uid} can access network designated by {@code netId}. 124 public native static boolean queryUserAccess(int uid, int netId); argument
|
H A D | NetworkAgent.java | 47 public final int netId; field in class:NetworkAgent 225 netId = cm.registerNetworkAgent(new Messenger(this), new NetworkInfo(ni),
|
/frameworks/base/core/jni/ |
H A D | android_net_NetUtils.cpp | 297 static jboolean android_net_utils_bindProcessToNetwork(JNIEnv *env, jobject thiz, jint netId) argument 299 return (jboolean) !setNetworkForProcess(netId); 308 jint netId) 310 return (jboolean) !setNetworkForResolv(netId); 314 jint netId) 316 return setNetworkForSocket(netId, socket); 324 static jboolean android_net_utils_queryUserAccess(JNIEnv *env, jobject thiz, jint uid, jint netId) argument 326 return (jboolean) !queryUserAccess(uid, netId); 307 android_net_utils_bindProcessToNetworkForHostResolution(JNIEnv *env, jobject thiz, jint netId) argument 313 android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, jint netId) argument
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | NetdEventListenerService.java | 74 public DnsEventBatch(int netId) { argument 75 mNetId = netId; 99 maybeLog("Logging %d results for netId %d", mEventCount, mNetId); 124 DnsEventBatch batch = mEventBatches.remove(network.netId); 169 public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, argument 172 maybeVerboseLog("onDnsEvent(%d, %d, %d, %dms)", netId, eventType, returnCode, latencyMs); 174 DnsEventBatch batch = mEventBatches.get(netId); 176 batch = new DnsEventBatch(netId); 177 mEventBatches.put(netId, batch); 190 public synchronized void onConnectEvent(int netId, in argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/ |
H A D | LingerMonitorTest.java | 316 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,
|
H A D | NetdEventListenerServiceTest.java | 264 void log(int netId, int[] latencies) { argument 267 mNetdEventListenerService.onDnsEvent(netId, EVENT_TYPE, RETURN_CODE, l, null, null, 275 void logDnsAsync(int netId, int[] latencies) { argument 278 log(netId, latencies); 302 && (expected.netId == got.netId)
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
H A D | WifiP2pServiceImpl.java | 563 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 D | NetworkManagementService.java | 1134 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 D | WifiManager.java | 928 * @param netId the integer that identifies the network configuration 932 public boolean removeNetwork(int netId) { argument 934 return mService.removeNetwork(netId); 960 * @param netId the ID of the network in the list of configured networks 966 public boolean enableNetwork(int netId, boolean disableOthers) { argument 978 success = mService.enableNetwork(netId, disableOthers); 994 * @param netId the ID of the network as returned by {@link #addNetwork}. 997 public boolean disableNetwork(int netId) { argument 999 return mService.disableNetwork(netId); 1306 * Creates a configuration token describing the network referenced by {@code netId} 1312 getWpsNfcConfigurationToken(int netId) argument 2110 forget(int netId, ActionListener listener) argument 2124 disable(int netId, ActionListener listener) argument [all...] |