/frameworks/base/tests/UsbHostExternalManagmentTest/AoapTestHost/src/com/android/hardware/usb/aoaphosttest/ |
UsbAoapHostTestActivity.java | 111 UsbInterface iface = mDevice.getInterface(0); local 115 for (int i = 0; i < iface.getEndpointCount(); i++) { 116 UsbEndpoint ep = iface.getEndpoint(i);
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
NetdEventListenerServiceTest.java | 88 final String iface = "wlan0"; local 107 wakeupEvent(iface, uids[0], v4, tcp, mac, srcIp, dstIp, sport, dport, now); 108 wakeupEvent(iface, uids[1], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); 109 wakeupEvent(iface, uids[2], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); 110 wakeupEvent(iface, uids[3], v4, icmp6, mac, srcIp, dstIp, sport, dport, now); 111 wakeupEvent(iface, uids[4], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); 112 wakeupEvent(iface, uids[5], v4, tcp, mac, srcIp, dstIp, sport, dport, now); 113 wakeupEvent(iface, uids[6], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); 114 wakeupEvent(iface, uids[7], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); 115 wakeupEvent(iface, uids[8], v6, udp, mac, srcIp6, dstIp6, sport, dport, now) [all...] |
/frameworks/opt/net/lowpan/service/java/com/android/server/lowpan/ |
LowpanServiceImpl.java | 131 ILowpanInterface iface = null; local 138 iface = tracker.mILowpanInterface; 142 return iface;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/ |
WifiAwareNativeManager.java | 68 public android.hardware.wifi.V1_2.IWifiNanIface mockableCastTo_1_2(IWifiNanIface iface) { 69 return android.hardware.wifi.V1_2.IWifiNanIface.castFrom(iface); 135 IWifiNanIface iface = mHalDeviceManager.createNanIface(mInterfaceDestroyedListener, local 137 if (iface == null) { 144 android.hardware.wifi.V1_2.IWifiNanIface iface12 = mockableCastTo_1_2(iface); 148 status = iface.registerEventCallback(mWifiAwareNativeCallback); 156 mHalDeviceManager.removeIface(iface); 165 mWifiNanIface = iface;
|
/hardware/interfaces/wifi/1.0/vts/functional/ |
wifi_chip_hidl_test.cpp | 98 std::string getIfaceName(const sp<IWifiIface>& iface) { 99 const auto& status_and_name = HIDL_INVOKE(iface, getName); 351 * Configures the chip in AP mode and ensures that only 1 iface creation 352 * succeeds. The 2nd iface creation should be rejected. 357 sp<IWifiApIface> iface; local 358 EXPECT_EQ(WifiStatusCode::SUCCESS, createApIface(&iface)); 359 EXPECT_NE(nullptr, iface.get()); 361 EXPECT_EQ(WifiStatusCode::ERROR_NOT_AVAILABLE, createApIface(&iface)); 366 * Configures the chip in AP mode and ensures that the iface list is empty 367 * before creating the iface. Then, create the iface and ensure tha 378 sp<IWifiApIface> iface; local 453 sp<IWifiNanIface> iface; local 475 sp<IWifiNanIface> iface; local 552 sp<IWifiP2pIface> iface; local 573 sp<IWifiP2pIface> iface; local 647 sp<IWifiStaIface> iface; local 668 sp<IWifiStaIface> iface; local 740 sp<IWifiApIface> iface; local [all...] |
/hardware/interfaces/wifi/1.2/default/ |
wifi_legacy_hal.h | 40 // APF capabilities supported by the iface. 60 wifi_iface_stat iface; member in struct:android::hardware::wifi::V1_2::implementation::legacy_hal::LinkLayerStats
|
/system/netd/libbpf/ |
BpfNetworkStatsTest.cpp | 68 // A iface name that the size is bigger then IFNAMSIZ 130 IfaceValue iface; local 131 strlcpy(iface.name, ifaceName, IFNAMSIZ); 132 EXPECT_TRUE(isOk(mFakeIfaceIndexNameMap.writeValue(ifaceIndex, iface, BPF_ANY))); 142 void expectStatsLineEqual(const StatsValue target, const char* iface, uint32_t uid, 144 EXPECT_EQ(0, strcmp(iface, result.iface)); 396 // TODO: find a way to test the total of unknown Iface Bytes go above limit. 435 return strcmp(line1.iface, line2.iface) < 0 [all...] |
/system/netd/server/ |
BandwidthControllerTest.cpp | 141 // Pretend some bw_costly_shared_<iface> rules already exist... 173 // Pretend no bw_costly_shared_<iface> rules already exist... 229 // Pretend some bw_costly_shared_<iface> rules already exist... 284 const std::vector<std::string> makeInterfaceQuotaCommands(const std::string& iface, int ruleIndex, 286 const std::string chain = "bw_costly_" + iface; 288 const char* c_iface = iface.c_str(); 304 const std::vector<std::string> removeInterfaceQuotaCommands(const std::string& iface) { 305 const std::string chain = "bw_costly_" + iface; 307 const char* c_iface = iface.c_str(); 323 const std::string iface = mTun.name() local 383 const std::string iface = mTun.name(); local 399 const std::string iface = mTun.name(); local [all...] |
NetlinkHandler.cpp | 79 const char *iface = evt->findParam("INTERFACE"); local 86 gCtls->trafficCtrl.addInterface(iface, ifaceIndex); 88 ALOGE("invalid interface index: %s(%s)", iface, ifIndex); 93 notifyInterfaceAdded(iface); 95 notifyInterfaceRemoved(iface); 100 notifyInterfaceLinkChanged(iface, true); 102 notifyInterfaceLinkChanged(iface, false); 118 ALOGE("invalid interface index: %s(%s)", iface, ifIndex); 136 // Note: if this interface was deleted, iface is "" and we don't notify. 137 if (iface && iface[0] && address && flags && scope) 150 const char *iface = evt->findParam("INTERFACE"); local 158 const char *iface = evt->findParam("INTERFACE"); local [all...] |
NetdNativeService.cpp | 205 binder::Status NetdNativeService::networkAddInterface(int32_t netId, const std::string& iface) { 207 int ret = gCtls->netCtrl.addInterfaceToNetwork(netId, iface.c_str()); 211 binder::Status NetdNativeService::networkRemoveInterface(int32_t netId, const std::string& iface) { 213 int ret = gCtls->netCtrl.removeInterfaceFromNetwork(netId, iface.c_str()); 350 String16 iface = String16(stats.extIface.c_str()); local 353 bundle->getLongVector(iface, &statsVector); 363 bundle->putLongVector(iface, statsVector);
|
/external/dnsmasq/src/ |
network.c | 69 if (strncmp(name, alias->iface, IF_NAMESIZE) == 0) 73 if (!(newindex = if_nametoindex(bridge->iface))) 81 strncpy(name, bridge->iface, IF_NAMESIZE); 125 struct irec *iface; local 133 for (iface = *irecp; iface; iface = iface->next) 134 if (sockaddr_isequal(&iface->addr, addr)) 196 if ((iface = whine_malloc(sizeof(struct irec))) 578 struct irec *iface; local 850 struct irec *iface; local [all...] |
/external/iptables/iptables/ |
nft-shared.c | 134 void add_iniface(struct nftnl_rule *r, char *iface, uint32_t op) 138 iface_len = strlen(iface); 141 if (iface[iface_len - 1] == '+') 142 add_cmp_ptr(r, op, iface, iface_len - 1); 144 add_cmp_ptr(r, op, iface, iface_len + 1); 147 void add_outiface(struct nftnl_rule *r, char *iface, uint32_t op) 151 iface_len = strlen(iface); 154 if (iface[iface_len - 1] == '+') 155 add_cmp_ptr(r, op, iface, iface_len - 1); 157 add_cmp_ptr(r, op, iface, iface_len + 1) 636 char iface[IFNAMSIZ+2]; local [all...] |
/external/toybox/toys/net/ |
netstat.c | 281 char iface[64]={0}; local 287 "Destination\tGateway \tGenmask \tFlags %s Iface\n", 293 if (11 != sscanf(toybuf, "%63s%lx%lx%X%d%d%d%lx%d%d%d", iface, &dest, 328 printf("%5d %-5d %6d %s\n", mss, win, irtt, iface); 329 else printf("%-6d %-2d %7d %s\n", metric, ref, use, iface);
|
/external/toybox/toys/pending/ |
route.c | 134 char iface[64] = {0,}, flag_val[10]; //there are 9 flags "UGHRDMDAC" for route. local 139 "Destination Gateway Genmask Flags %s Iface\n", 143 while ((items = fscanf(fp, "%63s%lx%lx%X%d%d%d%lx%d%d%d\n", iface, &dest, 162 if (toys.optflags & FLAG_e) xprintf("%5d %-5d %6d %s\n", mss, win, irtt, iface); 163 else xprintf("%-6d %-2d %7d %s\n", metric, ref, use, iface); 407 char iface[16] = {0,}, ipv6_dest_addr[41]; local 415 "%-43s%-40s Flags Metric Ref Use Iface\n", "Destination", "Next Hop"); 419 iface)) == 8) 435 toybuf, buf2, flag_val, metric, refcount, use, iface);
|
/external/wpa_supplicant_8/hostapd/ |
main.c | 97 hapd->conf->iface, MAC2STR(addr), 102 hapd->conf->iface, module_str ? " " : "", 155 static int hostapd_driver_init(struct hostapd_iface *iface) 159 struct hostapd_data *hapd = iface->bss[0]; 181 wpa_drivers[i]->global_init(iface->interfaces); 194 params.ifname = hapd->conf->iface; 198 params.num_bridge = hapd->iface->num_bss; 199 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); 202 for (i = 0; i < hapd->iface->num_bss; i++) { 203 struct hostapd_data *bss = hapd->iface->bss[i] 263 struct hostapd_iface *iface; local 832 struct hostapd_iface *iface; local [all...] |
/external/wpa_supplicant_8/src/ap/ |
drv_callbacks.c | 190 if (hapd->iface->drv_max_acl_mac_addrs == 0 && 211 (hapd->iface->conf->ht_capab & 219 ht40_intolerant_add(hapd->iface, sta); 242 if (hapd->iface->fst) 642 hapd->iface->freq = freq; 670 switch (hapd->iface->current_mode->mode) { 701 } else if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) { 738 if (!hapd->iface->current_mode) { 739 for (i = 0; i < hapd->iface->num_hw_features; i++) { 741 &hapd->iface->hw_features[i] 1056 struct hostapd_iface *iface = hapd->iface; local 1179 struct hostapd_iface *iface = hapd->iface; local [all...] |
sta_info.c | 176 if (!hapd->iface->driver_ap_teardown && 192 hapd->iface->num_sta_non_erp--; 193 if (hapd->iface->num_sta_non_erp == 0) 199 hapd->iface->num_sta_no_short_slot_time--; 200 if (hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G 201 && hapd->iface->num_sta_no_short_slot_time == 0) 207 hapd->iface->num_sta_no_short_preamble--; 208 if (hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G 209 && hapd->iface->num_sta_no_short_preamble == 0) 215 hapd->iface->num_sta_ht_no_gf-- 724 struct hostapd_iface *iface = hapd->iface; local 990 const char *iface; local [all...] |
/external/wpa_supplicant_8/src/wps/ |
wps_upnp_ssdp.c | 126 struct upnp_wps_device_interface *iface; local 129 iface = dl_list_first(&sm->interfaces, 131 if (!iface) 133 uuid_bin2str(iface->wps->uuid, uuid_string, sizeof(uuid_string)); 578 struct upnp_wps_device_interface *iface; local 579 iface = dl_list_first( 583 if (!iface) 586 uuid_bin2str(iface->wps->uuid, uuid_string,
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
dbus_old_handlers.c | 150 * Try to get the wpa_supplicant record for this iface, return 159 struct wpa_interface iface; local 161 os_memset(&iface, 0, sizeof(iface)); 162 iface.ifname = ifname; 163 iface.driver = driver; 164 iface.driver_param = driver_param; 165 iface.confname = confname; 166 iface.bridge_ifname = bridge_ifname; 168 wpa_s = wpa_supplicant_add_iface(global, &iface, NULL) 756 char *iface = NULL, *net_id = NULL; local [all...] |
/frameworks/base/services/core/java/com/android/server/utils/ |
ManagedApplicationService.java | 258 IInterface iface; local 260 iface = mBoundInterface; 261 if (iface == null) { 266 if (iface != null) { 268 event.runEvent(iface); 333 IInterface iface = null; 357 iface = mBoundInterface; 362 if (iface != null && pendingEvent != null) { 364 pendingEvent.runEvent(iface);
|
/hardware/interfaces/gnss/1.0/default/ |
Gnss.cpp | 740 IGnss* iface = nullptr; local 747 iface = new Gnss(reinterpret_cast<gps_device_t*>(device)); 754 return iface;
|
/system/core/adb/client/ |
usb_osx.cpp | 109 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface550** iface, UInt16 vendor, 139 IOUSBInterfaceInterface220 **iface = NULL; local 166 CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID), (LPVOID*)&iface); 169 if (result || !iface) { 174 kr = (*iface)->GetInterfaceClass(iface, &if_class); 175 kr = (*iface)->GetInterfaceSubClass(iface, &subclass); 176 kr = (*iface)->GetInterfaceProtocol(iface, &protocol) [all...] |
/system/tools/hidl/ |
Coordinator.cpp | 712 const Interface *iface = nullptr; local 715 iface = currentAST->getInterface(); 717 if (iface == nullptr) { 731 if (iface->superType() == nullptr) { 732 CHECK(iface->isIBase()); 756 if (iface->superType()->fqName() != lastFQName) { 758 << currentPackage.string() << ": " << iface->fqName().string() << " extends " 759 << iface->superType()->fqName().string()
|
generateCpp.cpp | 208 const Interface *iface = getInterface(); local 209 std::string ifaceName = iface ? iface->localName() : "types"; 223 if (iface) { 234 if (iface) { 244 if (iface) { 248 const Interface *superType = iface->superType(); 266 if (iface) { 273 for (const auto& tuple : iface->allMethodsFromRoot()) { 315 std::string childTypeResult = iface->getCppResultType() 352 const Interface *iface = getInterface(); local 402 const Interface &iface = static_cast<const Interface &>(arg->type()); local 549 const Interface* iface = mRootScope.getInterface(); local 586 const Interface* iface = mRootScope.getInterface(); local 695 const Interface* iface = mRootScope.getInterface(); local 774 const Interface *iface = getInterface(); local 813 const Interface* iface = mRootScope.getInterface(); local 1624 const Interface* iface = mRootScope.getInterface(); local 1699 const Interface* iface = mRootScope.getInterface(); local 1755 const Interface* iface = mRootScope.getInterface(); local 1806 const Interface* iface = mRootScope.getInterface(); local 1922 const Interface* iface = mRootScope.getInterface(); local [all...] |
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
HalDeviceManagerTest.java | 709 IWifiApIface iface = (IWifiApIface) validateInterfaceSequence(chipMock, local 720 collector.checkThat("allocated interface", iface, IsNull.notNullValue()); 729 verify(idl).onDestroyed(getName(iface)); 736 * Validate creation of AP interface when in STA mode with a single STA iface created. 768 // Create STA Iface first. 781 // Now Create AP Iface. 827 IWifiApIface iface = (IWifiApIface) validateInterfaceSequence(chipMock, local 2273 IWifiIface iface = validateInterfaceSequence(chipMock, local 2452 IWifiIface iface = null; local 2722 IWifiIface iface = mChipMockBase.interfacesByName.get(IfaceType.STA).get(name); local 2727 IWifiIface iface = mChipMockBase.interfacesByName.get(IfaceType.AP).get(name); local 2732 IWifiIface iface = mChipMockBase.interfacesByName.get(IfaceType.P2P).get(name); local 2737 IWifiIface iface = mChipMockBase.interfacesByName.get(IfaceType.NAN).get(name); local [all...] |