/system/libhwbinder/ |
H A D | IInterface.cpp | 34 sp<IBinder> IInterface::asBinder(const IInterface* iface) argument 36 if (iface == NULL) return NULL; 37 return const_cast<IInterface*>(iface)->onAsBinder(); 41 sp<IBinder> IInterface::asBinder(const sp<IInterface>& iface) argument 43 if (iface == NULL) return NULL; 44 return iface->onAsBinder();
|
/system/libhidl/transport/include/hidl/ |
H A D | HidlPassthroughSupport.h | 32 sp<IType> iface) { 33 if (iface.get() == nullptr || iface->isRemote()) { 35 return iface; 37 std::string myDescriptor = getDescriptor(iface.get()); 46 return func(static_cast<void *>(iface.get())); 31 wrapPassthrough( sp<IType> iface) argument
|
/system/netd/server/ |
H A D | IdletimerController.h | 31 int addInterfaceIdletimer(const char *iface, uint32_t timeout, 33 int removeInterfaceIdletimer(const char *iface, uint32_t timeout, 44 int modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout,
|
H A D | NetlinkHandler.cpp | 66 const char *iface = evt->findParam("INTERFACE"); local 69 notifyInterfaceAdded(iface); 71 notifyInterfaceRemoved(iface); 76 notifyInterfaceLinkChanged(iface, true); 78 notifyInterfaceLinkChanged(iface, false); 84 if (action == NetlinkEvent::Action::kAddressRemoved && iface && address) { 85 // Note: if this interface was deleted, iface is "" and we don't notify. 103 if (iface && iface[0] && address && flags && scope) { 104 notifyAddressChanged(action, address, iface, flag 116 const char *iface = evt->findParam("INTERFACE"); local 124 const char *iface = evt->findParam("INTERFACE"); local 180 notifyQuotaLimitReached(const char *name, const char *iface) argument 199 notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, const char *flags, const char *scope) argument 208 notifyInterfaceDnsServers(const char *iface, const char *lifetime, const char *servers) argument 215 notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface) argument [all...] |
H A D | NetlinkHandler.h | 45 void notifyQuotaLimitReached(const char *name, const char *iface); 48 void notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, 50 void notifyInterfaceDnsServers(const char *iface, const char *lifetime, 52 void notifyRouteChange(NetlinkEvent::Action action, const char *route, const char *gateway, const char *iface);
|
H A D | IdletimerController.cpp | 53 * ndc idletimer add <iface> <timeout> <class label> 54 * ndc idletimer remove <iface> <timeout> <class label> 84 * Note that currently if the name of the iface is incorrect, iptables 164 int IdletimerController::modifyInterfaceIdletimer(IptOp op, const char *iface, argument 167 if (!isIfaceName(iface)) { 176 addRemove, LOCAL_RAW_PREROUTING, iface, timeout, classLabel), 180 addRemove, LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabel), 187 int IdletimerController::addInterfaceIdletimer(const char *iface, argument 190 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); 193 int IdletimerController::removeInterfaceIdletimer(const char *iface, argument [all...] |
H A D | BandwidthControllerTest.cpp | 150 // Pretend some bw_costly_shared_<iface> rules already exist... 172 // Pretend no bw_costly_shared_<iface> rules already exist... 203 // Pretend some bw_costly_shared_<iface> rules already exist... 407 const std::vector<std::string> makeInterfaceQuotaCommands(const std::string& iface, int ruleIndex, argument 409 const std::string chain = "bw_costly_" + iface; 411 const char* c_iface = iface.c_str(); 426 const std::vector<std::string> removeInterfaceQuotaCommands(const std::string& iface) { argument 427 const std::string chain = "bw_costly_" + iface; 429 const char* c_iface = iface.c_str(); 444 const std::string iface local 461 makeInterfaceSharedQuotaCommands(const std::string& iface, int ruleIndex, int64_t quota, bool insertQuota) argument 481 removeInterfaceSharedQuotaCommands(const std::string& iface, int64_t quota, bool deleteQuota) argument 502 const std::string iface = mTun.name(); local 518 const std::string iface = mTun.name(); local [all...] |
H A D | BandwidthController.cpp | 109 * . adding a new iface to this, E.g.: 158 * Should normally include bw_costly_<iface>, but we rely on the way they are setup 212 /* Flush and remove the bw_costly_<iface> tables */ 305 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { argument 316 if (!isIfaceName(iface)) 320 return removeInterfaceSharedQuota(iface); 323 auto it = mSharedQuotaIfaces.find(iface); 329 StringPrintf("-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, iface.c_str(), chain), 330 StringPrintf("-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, iface.c_str(), chain), 331 StringPrintf("-A bw_FORWARD -o %s --jump %s", iface 363 removeInterfaceSharedQuota(const std::string& iface) argument 411 setInterfaceQuota(const std::string& iface, int64_t maxBytes) argument 469 getInterfaceQuota(const std::string& iface, int64_t* bytes) argument 489 removeInterfaceQuota(const std::string& iface) argument 664 setInterfaceAlert(const std::string& iface, int64_t bytes) argument 684 removeInterfaceAlert(const std::string& iface) argument [all...] |
H A D | BandwidthController.h | 78 int setInterfaceSharedQuota(const std::string& iface, int64_t bytes); 80 int removeInterfaceSharedQuota(const std::string& iface); 82 int setInterfaceQuota(const std::string& iface, int64_t bytes); 83 int getInterfaceQuota(const std::string& iface, int64_t* bytes); 84 int removeInterfaceQuota(const std::string& iface); 99 int setInterfaceAlert(const std::string& iface, int64_t bytes); 100 int removeInterfaceAlert(const std::string& iface);
|
H A D | FirewallController.cpp | 145 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { argument 151 if (!isIfaceName(iface)) { 160 if (rule == ALLOW && mIfaceRules.find(iface) == mIfaceRules.end()) { 162 mIfaceRules.insert(iface); 163 } else if (rule == DENY && mIfaceRules.find(iface) != mIfaceRules.end()) { 165 mIfaceRules.erase(iface); 172 StringPrintf("%s fw_INPUT -i %s -j RETURN", op, iface), 173 StringPrintf("%s fw_OUTPUT -o %s -j RETURN", op, iface),
|
H A D | InterfaceController.cpp | 111 std::function<void(const std::string& path, const std::string& iface)> fn) { 133 auto fn = [basename, value](const std::string& path, const std::string& iface) { 134 writeValueToPath(path.c_str(), iface.c_str(), basename, value); 159 auto fn = [min, max](const std::string& prefix, const std::string& iface) { 160 int rv = writeValueToPath(prefix.c_str(), iface.c_str(), "accept_ra_rt_info_min_plen", 167 writeValueToPath(prefix.c_str(), iface.c_str(), "accept_ra_rt_info_max_plen", 193 const std::string& iface, GetPropertyFn getProperty, SetPropertyFn setProperty) { 195 const std::string procTarget = std::string(ipv6_proc_path) + "/" + iface + "/stable_secret"; 217 // Ask the OS to generate SLAAC addresses on iface using secret. 268 return statusFromErrno(ENOENT, "invalid iface nam 192 enableStablePrivacyAddresses( const std::string& iface, GetPropertyFn getProperty, SetPropertyFn setProperty) argument [all...] |
H A D | InterfaceController.h | 65 static android::netdutils::Status enableStablePrivacyAddresses(const std::string& iface,
|
/system/tools/aidl/ |
H A D | generate_java.cpp | 58 AidlInterface* iface, JavaTypeNamespace* types, 60 Class* cl = generate_binder_interface_class(iface, types); 64 (!iface->GetPackage().empty()) ? iface->GetPackage() : "", 57 generate_java(const string& filename, const string& originalSrc, AidlInterface* iface, JavaTypeNamespace* types, const IoDelegate& io_delegate) argument
|
H A D | generate_java.h | 34 AidlInterface* iface, java::JavaTypeNamespace* types, 38 const AidlInterface* iface, java::JavaTypeNamespace* types);
|
/system/tools/hidl/ |
H A D | generateVts.cpp | 34 const Interface* iface = mRootScope.getInterface(); local 35 return iface->emitVtsAttributeDeclaration(out); 58 const Interface *iface = AST::getInterface(); local 79 << (iface ? iface->localName() : "types") 97 const Interface* iface = mRootScope.getInterface(); local 101 std::vector<const Interface *> chain = iface->typeChain();
|
H A D | generateCppImpl.cpp | 88 const Interface* iface = mRootScope.getInterface(); local 89 const std::string baseName = iface->getBaseName(); 109 generateCppPackageInclude(out, mPackage, iface->localName()); 130 << iface->localName() 156 << iface->localName() 158 generateFetchSymbol(out, iface->localName()); 175 const Interface* iface = mRootScope.getInterface(); local 176 const std::string baseName = iface->getBaseName(); 205 out << iface->localName() 207 generateFetchSymbol(out, iface [all...] |
H A D | generateCpp.cpp | 185 out << "sp<" << interfaceName << "> iface = nullptr;\n"; 310 out << "iface = castRet;\n"; 311 out.sIf("iface == nullptr", [&] { 319 out << "return iface;\n"; 335 out << "iface = " << interfaceName << "::castFrom(baseInterface);\n"; 337 out << "iface = new " << fqName.getInterfacePassthroughName() << "(iface);\n"; 344 out << "return iface;\n"; 401 const Interface *iface = getInterface(); local 402 std::string ifaceName = iface 566 const Interface *iface = getInterface(); local 635 const Interface &iface = static_cast<const Interface &>(arg->type()); local 787 const Interface* iface = mRootScope.getInterface(); local 829 const Interface* iface = mRootScope.getInterface(); local 960 const Interface* iface = mRootScope.getInterface(); local 1065 const Interface *iface = getInterface(); local 1122 const Interface* iface = mRootScope.getInterface(); local 1193 const Interface* iface = mRootScope.getInterface(); local 1985 const Interface* iface = mRootScope.getInterface(); local 2080 const Interface* iface = mRootScope.getInterface(); local 2141 const Interface* iface = mRootScope.getInterface(); local 2194 const Interface* iface = mRootScope.getInterface(); local 2310 const Interface* iface = mRootScope.getInterface(); local [all...] |
H A D | generateJava.cpp | 115 const Interface* iface = mRootScope.getInterface(); local 116 std::string ifaceName = iface->localName(); 118 const std::string baseName = iface->getBaseName(); 144 const Interface *superType = iface->superType(); 175 out << "android.os.IHwInterface iface =\n"; 182 out << "if ((iface != null) && (iface instanceof " 187 out << "return (" << ifaceName << ")iface;\n"; 216 << " castFrom(android.os.IHwInterface iface) {\n"; 219 out << "return (iface [all...] |
H A D | Interface.cpp | 264 for (const Interface *iface : chain) { 265 out << iface->fullName() << "::descriptor,\n"; 292 out.join(chain.begin(), chain.end(), ",\n", [&] (const auto &iface) { 293 const Hash &hash = Hash::getHash(iface->location().begin().filename()); 519 const Interface *iface = this; local 520 while (iface != nullptr) { 521 v.push_back(iface); 522 iface = iface->mSuperType; 561 const Interface *iface local [all...] |
H A D | AST.cpp | 512 const Interface* iface = mRootScope.getInterface(); local 513 return iface->isJavaCompatible(); 522 Interface* iface = mRootScope.getInterface(); local 523 return iface != nullptr && iface->isIBase(); 531 const Interface* iface = mRootScope.getInterface(); local 533 return iface ? iface->getBaseName() : "types";
|
H A D | Interface.h | 133 InterfaceAndMethod(const Interface *iface, Method *method) argument 134 : mInterface(iface),
|
/system/core/adb/client/ |
H A D | usb_osx.cpp | 109 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface190 **iface, 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, [all...] |
/system/connectivity/wificond/ |
H A D | server.cpp | 183 for (const auto& iface : interfaces_) { 184 ss << "Interface index: " << iface.index 185 << ", name: " << iface.name 187 << LoggingUtils::GetMacString(iface.mac_address) << endl; 190 for (const auto& iface : client_interfaces_) { 191 iface->Dump(&ss); 194 for (const auto& iface : ap_interfaces_) { 195 iface->Dump(&ss); 247 for (const auto& iface : interfaces_) { 253 if (iface [all...] |
H A D | Android.mk | 43 libwifi-system-iface 85 libwifi-system-iface 196 libwifi-system-iface-test \ 210 libwifi-system-iface 234 libwifi-system-iface
|
/system/hwservicemanager/ |
H A D | HidlService.cpp | 94 hidl_string iface = mInterfaceName; local 98 auto ret = (*it)->onRegistration(iface, name, false /* preexisting */); 102 LOG(ERROR) << "Dropping registration callback for " << iface << "/" << name
|