HomeSort by relevance Sort by last modified time
    Searched refs:netId (Results 1 - 25 of 175) sorted by null

1 2 3 4 5 6 7

  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowNetwork.java 12 private int netId;
17 * @param netId The netId.
20 public static Network newInstance(int netId) {
21 Network network = Shadow.newInstance(Network.class, new Class[]{int.class}, new Object[]{netId});
26 public void __constructor__(int netId) {
27 this.netId = netId;
31 * Allows to get the stored netId.
33 * @return The netId
    [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
NetworkUpdateResult.java 22 int netId;
29 netId = id;
36 netId = INVALID_NETWORK_ID;
43 netId = id;
47 return netId;
71 return netId != INVALID_NETWORK_ID;
  /system/netd/include/
NetdClient.h 30 int getNetworkForSocket(unsigned* netId, int socketFd);
31 int setNetworkForSocket(unsigned netId, int socketFd);
34 int setNetworkForProcess(unsigned netId);
36 int setNetworkForResolv(unsigned netId);
42 int queryUserAccess(uid_t uid, unsigned netId);
Fwmark.h 27 unsigned netId : 16;
  /system/netd/server/
NetdHwService.cpp 68 unsigned netId;
71 int ret = gCtls->netCtrl.createPhysicalOemNetwork(permission, &netId);
74 fwmark.netId = netId;
78 _hidl_cb(netIdToNetHandle(netId), fwmark.intValue, toHalStatus(ret));
84 #define RETURN_IF_NOT_OEM_NETWORK(netId) \
85 if (((netId) < NetworkController::MIN_OEM_ID) || \
86 ((netId) > NetworkController::MAX_OEM_ID)) { \
91 unsigned netId = netHandleToNetId(netHandle);
92 RETURN_IF_NOT_OEM_NETWORK(netId);
    [all...]
NetworkController.h 41 // Utility to convert from netId to net_handle_t. Doing this here as opposed to exporting
43 // obtaining handle given netId.
59 // Utility to convert from nethandle to netid, keep in sync with getNetworkHandle
76 * by netid. In all set* commands netid == 0 means "unspecified" and is
89 int setDefaultNetwork(unsigned netId) WARN_UNUSED_RESULT;
91 // Sets |*netId| to an appropriate NetId to use for DNS for the given user. Call with |*netId|
94 uint32_t getNetworkForDns(unsigned* netId, uid_t uid) const
    [all...]
DummyNetwork.cpp 30 DummyNetwork::DummyNetwork(unsigned netId) : Network(netId) {
NetworkController.cpp 106 ALOGE("failed to add fallthrough to %s for VPN netId %u", physicalInterface.c_str(),
114 ALOGE("failed to remove fallthrough to %s for VPN netId %u", physicalInterface.c_str(),
156 int NetworkController::setDefaultNetwork(unsigned netId) {
159 if (netId == mDefaultNetId) {
163 if (netId != NETID_UNSET) {
164 Network* network = getNetworkLocked(netId);
166 ALOGE("no such netId %u", netId);
170 ALOGE("cannot set default to non-physical network with netId %u", netId);
    [all...]
ResolverController.cpp 114 int set(int32_t netId, const std::vector<std::string>& servers, const std::string& name,
118 netId, servers.size(), name.c_str(), fingerprints.size());
138 mPrivateDnsModes[netId] = PrivateDnsMode::STRICT;
140 mPrivateDnsModes[netId] = PrivateDnsMode::OPPORTUNISTIC;
142 mPrivateDnsModes[netId] = PrivateDnsMode::OFF;
143 mPrivateDnsTransports.erase(netId);
148 auto netPair = mPrivateDnsTransports.find(netId);
150 // No TLS tracker yet for this netId.
152 std::tie(netPair, added) = mPrivateDnsTransports.emplace(netId, PrivateDnsTracker());
154 ALOGE("Memory error while recording private DNS for netId %d", netId)
    [all...]
ResolverController.h 47 int setDnsServers(unsigned netId, const char* searchDomains, const char** servers,
50 // Validation status of a DNS over TLS server (on a specific netId).
58 // Retrieve the Private DNS status for the given |netid|.
60 // If the requested |netid| is not known, the PrivateDnsStatus's mode has a
62 PrivateDnsStatus getPrivateDnsStatus(unsigned netid) const;
64 int clearDnsServers(unsigned netid);
66 int flushDnsCache(unsigned netid);
68 int getDnsInfo(unsigned netId, std::vector<std::string>* servers,
74 int setResolverConfiguration(int32_t netId, const std::vector<std::string>& servers,
79 int getResolverInfo(int32_t netId, std::vector<std::string>* servers
    [all...]
RouteController.h 57 static int addInterfaceToLocalNetwork(unsigned netId, const char* interface) WARN_UNUSED_RESULT;
58 static int removeInterfaceFromLocalNetwork(unsigned netId,
61 static int addInterfaceToPhysicalNetwork(unsigned netId, const char* interface,
63 static int removeInterfaceFromPhysicalNetwork(unsigned netId, const char* interface,
66 static int addInterfaceToVirtualNetwork(unsigned netId, const char* interface, bool secure,
68 static int removeInterfaceFromVirtualNetwork(unsigned netId, const char* interface, bool secure,
71 static int modifyPhysicalNetworkPermission(unsigned netId, const char* interface,
75 static int addUsersToVirtualNetwork(unsigned netId, const char* interface, bool secure,
77 static int removeUsersFromVirtualNetwork(unsigned netId, const char* interface, bool secure,
124 static int modifyPhysicalNetwork(unsigned netId, const char* interface, Permission permission
    [all...]
DummyNetwork.h 28 explicit DummyNetwork(unsigned netId);
LocalNetwork.h 27 explicit LocalNetwork(unsigned netId);
  /bionic/libc/bionic/
NetdClientDispatch.cpp 29 static unsigned fallBackNetIdForResolv(unsigned netId) {
30 return netId;
  /libcore/luni/src/main/java/java/net/
AddressCache.java 47 AddressCacheKey(String hostname, int netId) {
49 mNetId = netId;
98 * Returns the cached InetAddress[] for 'hostname' on network 'netId'. Returns null
102 public Object get(String hostname, int netId) {
103 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId));
117 public void put(String hostname, int netId, InetAddress[] addresses) {
118 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses));
125 public void putUnknownHost(String hostname, int netId, String detailMessage) {
126 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage));
  /system/netd/client/
NetdClient.cpp 97 // TODO: get the netId from the socket mark once we have continuous benchmark runs
98 FwmarkCommand command = {FwmarkCommand::ON_CONNECT_COMPLETE, /* netId (ignored) */ 0,
112 unsigned netId = netIdForProcess;
113 if (netId != NETID_UNSET && FwmarkClient::shouldSetFwmark(domain)) {
114 if (int error = setNetworkForSocket(netId, socketFd)) {
121 unsigned getNetworkForResolv(unsigned netId) {
122 if (netId != NETID_UNSET) {
123 return netId;
129 netId = netIdForProcess;
130 if (netId != NETID_UNSET)
    [all...]
  /libcore/ojluni/src/main/java/sun/net/spi/nameservice/
NameService.java 31 public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException;
  /system/netd/server/binder/android/net/metrics/
INetdEventListener.aidl 38 * @param netId the ID of the network the lookup was performed on.
49 void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, String hostname,
55 * @param netId the ID of the network the validation was performed on.
60 void onPrivateDnsValidationEvent(int netId, String ipAddress, String hostname,
66 * @param netId the ID of the network the connect was performed on.
73 void onConnectEvent(int netId, int error, int latencyMs, String ipAddr, int port, int uid);
  /frameworks/base/core/java/android/net/metrics/
NetworkMetrics.java 41 public final int netId;
55 public NetworkMetrics(int netId, long transports, TokenBucket tb) {
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, transports)
    [all...]
DnsEvent.java 34 public final int netId;
53 public DnsEvent(int netId, long transports, int initialCapacity) {
54 this.netId = netId;
89 new StringBuilder("DnsEvent(").append("netId=").append(netId).append(", ");
  /frameworks/base/core/java/android/net/
ConnectivityMetricsEvent.java 36 public int netId;
48 netId = in.readInt();
74 dest.writeInt(netId);
83 if (netId != 0) {
84 buffer.append(", ").append("netId=").append(netId);
Network.java 62 public final int netId;
106 public Network(int netId) {
107 this.netId = netId;
114 this.netId = that.netId;
155 * Returns a netid marked with the Private DNS bypass flag.
164 ? (int) (0x80000000L | (long) netId) // Non-portable DNS resolution flag.
165 : netId;
174 public NetworkBoundSocketFactory(int netId) {
    [all...]
  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
WifiNetworkSelectorTestUtil.java 151 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...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowNetworkTest.java 18 final int netId = 123;
20 Network network = ShadowNetwork.newInstance(netId);
22 assertThat(shadowNetwork.getNetId()).isEqualTo(netId);
  /libcore/ojluni/src/main/java/java/net/
InetAddressImpl.java 46 * Lookup all addresses for {@code hostname} on the given {@code netId}.
48 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException;

Completed in 1606 milliseconds

1 2 3 4 5 6 7