/frameworks/base/core/java/android/net/metrics/ |
D | NetworkEvent.java | 40 public final int netId; field in NetworkEvent 44 private NetworkEvent(int netId, int eventType, long durationMs) { in NetworkEvent() argument 45 this.netId = netId; in NetworkEvent() 51 netId = in.readInt(); in NetworkEvent() 57 out.writeInt(netId); in writeToParcel() 77 public static void logEvent(int netId, int eventType) { in logEvent() argument 78 logEvent(new NetworkEvent(netId, eventType, 0)); in logEvent() 81 public static void logValidated(int netId, long durationMs) { in logValidated() argument 82 logEvent(new NetworkEvent(netId, NETWORK_VALIDATED, durationMs)); in logValidated() 85 public static void logCaptivePortalFound(int netId, long durationMs) { in logCaptivePortalFound() argument [all …]
|
D | DefaultNetworkEvent.java | 30 public final int netId; field in DefaultNetworkEvent 40 private DefaultNetworkEvent(int netId, int[] transportTypes, in DefaultNetworkEvent() argument 42 this.netId = netId; in DefaultNetworkEvent() 50 this.netId = in.readInt(); in DefaultNetworkEvent() 58 out.writeInt(netId); in writeToParcel() 72 String newNetwork = String.valueOf(netId); in toString() 76 if (netId != 0) { in toString() 107 int netId, int[] transports, int prevNetId, boolean hadIPv4, boolean hadIPv6) { in logEvent() argument 108 logEvent(new DefaultNetworkEvent(netId, transports, prevNetId, hadIPv4, hadIPv6)); in logEvent()
|
D | DnsEvent.java | 28 public final int netId; field in DnsEvent 40 private DnsEvent(int netId, byte[] eventTypes, byte[] returnCodes, int[] latenciesMs) { in DnsEvent() argument 41 this.netId = netId; in DnsEvent() 48 this.netId = in.readInt(); in DnsEvent() 56 out.writeInt(netId); in writeToParcel() 68 return String.format("DnsEvent(%d, %d events)", netId, eventTypes.length); in toString() 84 int netId, byte[] eventTypes, byte[] returnCodes, int[] latenciesMs) { in logEvent() argument 85 logEvent(new DnsEvent(netId, eventTypes, returnCodes, latenciesMs)); in logEvent()
|
D | ValidationProbeEvent.java | 40 public final int netId; field in ValidationProbeEvent 45 private ValidationProbeEvent(int netId, long durationMs, int probeType, int returnCode) { in ValidationProbeEvent() argument 46 this.netId = netId; in ValidationProbeEvent() 53 netId = in.readInt(); in ValidationProbeEvent() 60 out.writeInt(netId); in writeToParcel() 86 public static void logEvent(int netId, long durationMs, int probeType, int returnCode) { in logEvent() argument 87 logEvent(new ValidationProbeEvent(netId, durationMs, probeType, returnCode)); in logEvent() 93 netId, getProbeName(probeType), returnCode, durationMs); in toString()
|
/frameworks/base/core/java/android/net/ |
D | Network.java | 60 public final int netId; field in Network 85 public Network(int netId) { in Network() argument 86 this.netId = netId; in Network() 93 this.netId = that.netId; in Network() 105 return InetAddress.getAllByNameOnNet(host, netId); in getAllByName() 119 return InetAddress.getByNameOnNet(host, netId); in getByName() 128 public NetworkBoundSocketFactory(int netId) { in NetworkBoundSocketFactory() argument 130 mNetId = netId; in NetworkBoundSocketFactory() 198 mNetworkBoundSocketFactory = new NetworkBoundSocketFactory(netId); in getSocketFactory() 348 final int err = NetworkUtils.bindSocketToNetwork(fd.getInt$(), netId); in bindSocket() [all …]
|
D | NetworkUtils.java | 62 public native static boolean bindProcessToNetwork(int netId); in bindProcessToNetwork() argument 77 public native static boolean bindProcessToNetworkForHostResolution(int netId); in bindProcessToNetworkForHostResolution() argument 84 public native static int bindSocketToNetwork(int socketfd, int netId); in bindSocketToNetwork() argument 106 public native static boolean queryUserAccess(int uid, int netId); in queryUserAccess() argument
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 102 void addRoute(int netId, in RouteInfo route); in addRoute() argument 107 void removeRoute(int netId, in RouteInfo route); in removeRoute() argument 329 void setDnsConfigurationForNetwork(int netId, in String[] servers, String domains); in setDnsConfigurationForNetwork() argument 334 void setDnsServersForNetwork(int netId, in String[] servers, String domains); in setDnsServersForNetwork() argument 348 void addVpnUidRanges(int netId, in UidRange[] ranges); in addVpnUidRanges() argument 353 void removeVpnUidRanges(int netId, in UidRange[] ranges); in removeVpnUidRanges() argument 390 void createPhysicalNetwork(int netId, String permission); in createPhysicalNetwork() argument 395 void createVirtualNetwork(int netId, boolean hasDNS, boolean secure); in createVirtualNetwork() argument 400 void removeNetwork(int netId); in removeNetwork() argument 405 void addInterfaceToNetwork(String iface, int netId); in addInterfaceToNetwork() argument [all …]
|
/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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigStore.java | 225 private void readNetworkBitsetVariable(int netId, BitSet variable, String varName, in readNetworkBitsetVariable() argument 227 String value = mWifiNative.getNetworkVariable(netId, varName); in readNetworkBitsetVariable() 251 int netId = config.networkId; in readNetworkVariables() local 252 if (netId < 0) { in readNetworkVariables() 262 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.ssidVarName); in readNetworkVariables() 275 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.bssidVarName); in readNetworkVariables() 282 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.priorityVarName); in readNetworkVariables() 291 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.hiddenSSIDVarName); in readNetworkVariables() 300 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.pmfVarName); in readNetworkVariables() 309 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.wepTxKeyIdxVarName); in readNetworkVariables() [all …]
|
D | NetworkUpdateResult.java | 22 int netId; field in NetworkUpdateResult 28 netId = id; in NetworkUpdateResult() 34 netId = INVALID_NETWORK_ID; in NetworkUpdateResult() 40 netId = id; in setNetworkId() 44 return netId; in getNetworkId()
|
D | WifiConfigManager.java | 523 Integer netId = (Integer) entry.getKey(); in getMatchingConfig() local 525 WifiConfiguration config = getWifiConfiguration(netId); in getMatchingConfig() 623 public WifiConfiguration getWifiConfiguration(int netId) { in getWifiConfiguration() argument 624 return mConfiguredNetworks.getForCurrentUser(netId); in getWifiConfiguration() 788 int netId = result.getNetworkId(); in saveNetwork() local 790 if (sVDBG) localLogNetwork("WifiConfigManager: saveNetwork got it back netId=", netId); in saveNetwork() 792 conf = mConfiguredNetworks.getForCurrentUser(netId); in saveNetwork() 798 updateNetworkSelectionStatus(netId, in saveNetwork() 803 + Integer.toString(netId) in saveNetwork() 833 void updateStatus(int netId, DetailedState state) { in updateStatus() argument [all …]
|
D | WifiNative.java | 409 public boolean setNetworkExtra(int netId, String name, Map<String, String> values) { in setNetworkExtra() argument 420 return setNetworkVariable(netId, name, "\"" + encoded + "\""); in setNetworkExtra() 423 public boolean setNetworkVariable(int netId, String name, String value) { in setNetworkVariable() argument 427 … return doBooleanCommandWithoutLogging("SET_NETWORK " + netId + " " + name + " " + value); in setNetworkVariable() 429 return doBooleanCommand("SET_NETWORK " + netId + " " + name + " " + value); in setNetworkVariable() 433 public Map<String, String> getNetworkExtra(int netId, String name) { in getNetworkExtra() argument 434 final String wrapped = getNetworkVariable(netId, name); in getNetworkExtra() 466 public String getNetworkVariable(int netId, String name) { in getNetworkVariable() argument 470 return doStringCommandWithoutLogging("GET_NETWORK " + netId + " " + name); in getNetworkVariable() 473 public boolean removeNetwork(int netId) { in removeNetwork() argument [all …]
|
D | WifiStateMachine.java | 403 public void autoRoamSetBSSID(int netId, String bssid) { in autoRoamSetBSSID() argument 404 autoRoamSetBSSID(mWifiConfigManager.getWifiConfiguration(netId), bssid); in autoRoamSetBSSID() 506 boolean deferForUserInput(Message message, int netId, boolean allowOverride){ in deferForUserInput() argument 507 final WifiConfiguration config = mWifiConfigManager.getWifiConfiguration(netId); in deferForUserInput() 511 logd("deferForUserInput: configuration for netId=" + netId + " not stored"); in deferForUserInput() 1691 for (Integer netId : hiddenNetworkIds) { in startScanNative() 1692 settings.hiddenNetworkIds[i++] = netId; in startScanNative() 2062 public boolean syncEnableNetwork(AsyncChannel channel, int netId, boolean disableOthers) { in syncEnableNetwork() argument 2063 Message resultMsg = channel.sendMessageSynchronously(CMD_ENABLE_NETWORK, netId, in syncEnableNetwork() 2076 public boolean syncDisableNetwork(AsyncChannel channel, int netId) { in syncDisableNetwork() argument [all …]
|
D | SupplicantStateTracker.java | 112 private void handleNetworkConnectionFailure(int netId, int disableReason) { in handleNetworkConnectionFailure() argument 114 Log.d(TAG, "handleNetworkConnectionFailure netId=" + Integer.toString(netId) in handleNetworkConnectionFailure() 125 mWifiConfigManager.updateNetworkSelectionStatus(netId, disableReason); in handleNetworkConnectionFailure()
|
D | WifiConnectivityManager.java | 747 for (Integer netId : hiddenNetworkIds) { in startSingleScan() 748 settings.hiddenNetworkIds[i++] = netId; in startSingleScan() 996 public void connectToUserSelectNetwork(int netId, boolean persistent) { in connectToUserSelectNetwork() argument 997 Log.i(TAG, "connectToUserSelectNetwork: netId=" + netId in connectToUserSelectNetwork() 1000 mQualifiedNetworkSelector.userSelectNetwork(netId, persistent); in connectToUserSelectNetwork()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DnsEventListenerService.java | 61 public DnsEventBatch(int netId) { in DnsEventBatch() argument 62 mNetId = netId; in DnsEventBatch() 110 DnsEventBatch batch = mEventBatches.remove(network.netId); 129 public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs) { in onDnsEvent() argument 131 netId, eventType, returnCode, latencyMs)); in onDnsEvent() 133 DnsEventBatch batch = mEventBatches.get(netId); in onDnsEvent() 135 batch = new DnsEventBatch(netId); in onDnsEvent() 136 mEventBatches.put(netId, batch); in onDnsEvent()
|
/frameworks/base/core/jni/ |
D | android_net_NetUtils.cpp | 128 static jboolean android_net_utils_bindProcessToNetwork(JNIEnv *env, jobject thiz, jint netId) in android_net_utils_bindProcessToNetwork() argument 130 return (jboolean) !setNetworkForProcess(netId); in android_net_utils_bindProcessToNetwork() 139 jint netId) in android_net_utils_bindProcessToNetworkForHostResolution() argument 141 return (jboolean) !setNetworkForResolv(netId); in android_net_utils_bindProcessToNetworkForHostResolution() 145 jint netId) in android_net_utils_bindSocketToNetwork() argument 147 return setNetworkForSocket(netId, socket); in android_net_utils_bindSocketToNetwork() 155 static jboolean android_net_utils_queryUserAccess(JNIEnv *env, jobject thiz, jint uid, jint netId) in android_net_utils_queryUserAccess() argument 157 return (jboolean) !queryUserAccess(uid, netId); in android_net_utils_queryUserAccess()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pGroupList.java | 42 public void onDeleteGroup(int netId); in onDeleteGroup() argument 55 protected void entryRemoved(boolean evicted, Integer netId, in WifiP2pGroupList() 95 public void remove(int netId) { in remove() argument 96 mGroups.remove(netId); in remove() 178 public String getOwnerAddr(int netId) { in getOwnerAddr() argument 179 WifiP2pGroup grp = mGroups.get(netId); in getOwnerAddr() 195 public boolean contains(int netId) { in contains() argument 198 if (netId == grp.getNetworkId()) { in contains()
|
D | WifiP2pConfig.java | 55 public int netId = WifiP2pGroup.PERSISTENT_NET_ID; field in WifiP2pConfig 113 sbuf.append("\n persist: ").append(netId); in toString() 128 netId = source.netId; in WifiP2pConfig() 137 dest.writeInt(netId); in writeToParcel() 148 config.netId = in.readInt();
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | IWifiManager.aidl | 72 boolean removeNetwork(int netId); in removeNetwork() argument 74 boolean enableNetwork(int netId, boolean disableOthers); in enableNetwork() argument 76 boolean disableNetwork(int netId); in disableNetwork() argument 148 String getWpsNfcConfigurationToken(int netId); in getWpsNfcConfigurationToken() argument
|
D | WifiManager.java | 892 public boolean removeNetwork(int netId) { in removeNetwork() argument 894 return mService.removeNetwork(netId); in removeNetwork() 926 public boolean enableNetwork(int netId, boolean disableOthers) { in enableNetwork() argument 938 success = mService.enableNetwork(netId, disableOthers); in enableNetwork() 957 public boolean disableNetwork(int netId) { 959 return mService.disableNetwork(netId); 1272 public String getWpsNfcConfigurationToken(int netId) { 1274 return mService.getWpsNfcConfigurationToken(netId); 2070 public void forget(int netId, ActionListener listener) { 2071 if (netId < 0) throw new IllegalArgumentException("Network id cannot be negative"); [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImpl.java | 563 public void onDeleteGroup(int netId) { 564 if (DBG) logd("called onDeleteGroup() netId=" + netId); 565 mWifiNative.removeNetwork(netId); 1401 int netId = message.arg1; in processMessage() local 1403 if (netId == WifiP2pGroup.PERSISTENT_NET_ID) { in processMessage() 1405 netId = mGroups.getNetworkId(mThisDevice.deviceAddress); in processMessage() 1406 if (netId != -1) { in processMessage() 1407 ret = mWifiNative.p2pGroupAdd(netId); in processMessage() 1807 int netId = mSavedPeerConfig.netId; in processMessage() local 1808 if (netId >= 0) { in processMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 1123 public void addRoute(int netId, RouteInfo route) { in addRoute() argument 1124 modifyRoute("add", "" + netId, route); in addRoute() 1128 public void removeRoute(int netId, RouteInfo route) { in removeRoute() argument 1129 modifyRoute("remove", "" + netId, route); in removeRoute() 1132 private void modifyRoute(String action, String netId, RouteInfo route) { in modifyRoute() argument 1135 final Command cmd = new Command("network", "route", action, netId); in modifyRoute() 1322 int netId = (network != null) ? network.netId : ConnectivityManager.NETID_UNSET; in setDnsForwarders() local 1323 final Command cmd = new Command("tether", "dns", "set", netId); in setDnsForwarders() 1967 public void setDnsConfigurationForNetwork(int netId, String[] servers, String domains) { in setDnsConfigurationForNetwork() argument 2005 mNetdService.setResolverConfiguration(netId, servers, domainStrs, params); in setDnsConfigurationForNetwork() [all …]
|
D | ConnectivityService.java | 834 int netId = mNextNetId; in reserveNetId() local 837 if (!mNetIdInUse.get(netId)) { in reserveNetId() 838 mNetIdInUse.put(netId, true); in reserveNetId() 839 return netId; in reserveNetId() 873 return mNetworkForNetId.get(network.netId); in getNetworkAgentInfoForNetwork() 1361 int netId; in requestRouteToHostAddress() local 1364 netId = nai.network.netId; in requestRouteToHostAddress() 1366 boolean ok = addLegacyRouteToHost(lp, addr, netId, uid); in requestRouteToHostAddress() 1374 private boolean addLegacyRouteToHost(LinkProperties lp, InetAddress addr, int netId, int uid) { in addLegacyRouteToHost() argument 1392 mNetd.addLegacyRouteForNetId(netId, bestRoute, uid); in addLegacyRouteToHost() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiStateMachineTest.java | 490 public boolean answer(int netId, String name, String value) { in addNetworkAndVerifySuccess() 491 if (netId != 0) { in addNetworkAndVerifySuccess() 492 Log.d(TAG, "Can't set var " + name + " for " + netId); in addNetworkAndVerifySuccess() 496 Log.d(TAG, "Setting var " + name + " to " + value + " for " + netId); in addNetworkAndVerifySuccess() 504 public boolean answer(int netId, String name, Map<String, String> values) { in addNetworkAndVerifySuccess() 505 if (netId != 0) { in addNetworkAndVerifySuccess() 506 Log.d(TAG, "Can't set extra " + name + " for " + netId); in addNetworkAndVerifySuccess() 510 Log.d(TAG, "Setting extra for " + netId); in addNetworkAndVerifySuccess() 517 public String answer(int netId, String name) throws Throwable { in addNetworkAndVerifySuccess() 518 if (netId != 0) { in addNetworkAndVerifySuccess() [all …]
|