/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/ |
H A D | HidlPassthroughSupport.cpp | 28 static sp<IBase> tryWrap(const std::string& descriptor, sp<IBase> iface) { argument 34 return func(static_cast<void*>(iface.get())); 39 sp<IBase> wrapPassthroughInternal(sp<IBase> iface) { argument 40 if (iface == nullptr || iface->isRemote()) { 42 return iface; 55 auto ret = iface->interfaceChain([&](const auto& types) { 57 base = tryWrap(descriptor, iface);
|
/system/tools/hidl/ |
H A D | generateVts.cpp | 34 const Interface* iface = mRootScope.getInterface(); local 35 return iface->emitVtsAttributeDeclaration(out); 53 const Interface *iface = AST::getInterface(); local 59 << (iface ? iface->localName() : "types") 77 const Interface* iface = mRootScope.getInterface(); local 81 std::vector<const Interface *> chain = iface->typeChain();
|
H A D | generateCppImpl.cpp | 77 const Interface* iface = mRootScope.getInterface(); local 78 const std::string baseName = iface->getBaseName(); 85 generateCppPackageInclude(out, mPackage, iface->localName()); 106 << iface->localName() 127 << iface->localName() 129 generateFetchSymbol(out, iface->localName()); 144 const Interface* iface = mRootScope.getInterface(); local 145 const std::string baseName = iface->getBaseName(); 157 out << iface->localName() 159 generateFetchSymbol(out, iface [all...] |
H A D | 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 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...] |
H A D | generateJava.cpp | 117 const Interface* iface = mRootScope.getInterface(); local 118 const std::string ifaceName = iface->localName(); 119 const std::string baseName = iface->getBaseName(); 129 const Interface *superType = iface->superType(); 160 out << "android.os.IHwInterface iface =\n"; 167 out << "if ((iface != null) && (iface instanceof " 172 out << "return (" << ifaceName << ")iface;\n"; 201 << " castFrom(android.os.IHwInterface iface) {\n"; 204 out << "return (iface [all...] |
H A D | Interface.cpp | 268 for (const Interface *iface : chain) { 269 out << iface->fullName() << "::descriptor,\n"; 294 out.join(chain.begin(), chain.end(), ",\n", [&](const auto& iface) { 298 iface->getFileHash()->raw().begin(), iface->getFileHash()->raw().end(), ",", 305 out << iface->getFileHash()->hexString(); 648 const Interface *iface = this; local 649 while (iface != nullptr) { 650 v.push_back(iface); 651 iface 690 const Interface *iface = *it; local [all...] |
/system/libhidl/transport/include/hidl/ |
H A D | HidlPassthroughSupport.h | 36 sp<::android::hidl::base::V1_0::IBase> iface); 44 sp<IType> wrapPassthrough(sp<IType> iface) { argument 45 return static_cast<IType*>(wrapPassthroughInternal(iface).get());
|
/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 | 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 150 const char *iface = evt->findParam("INTERFACE"); local 158 const char *iface = evt->findParam("INTERFACE"); local 214 notifyQuotaLimitReached(const char *name, const char *iface) argument 233 notifyAddressChanged(NetlinkEvent::Action action, const char *addr, const char *iface, const char *flags, const char *scope) argument 242 notifyInterfaceDnsServers(const char *iface, const char *lifetime, const char *servers) argument 249 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 | BandwidthController.cpp | 107 * . adding a new iface to this, E.g.: 156 * Should normally include bw_costly_<iface>, but we rely on the way they are setup 278 /* Flush and remove the bw_costly_<iface> tables */ 372 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { argument 383 if (!isIfaceName(iface)) 387 return removeInterfaceSharedQuota(iface); 390 auto it = mSharedQuotaIfaces.find(iface); 396 StringPrintf("-I bw_INPUT %d -i %s --jump %s", ruleInsertPos, iface.c_str(), chain), 397 StringPrintf("-I bw_OUTPUT %d -o %s --jump %s", ruleInsertPos, iface.c_str(), chain), 398 StringPrintf("-A bw_FORWARD -i %s --jump %s", iface 431 removeInterfaceSharedQuota(const std::string& iface) argument 480 setInterfaceQuota(const std::string& iface, int64_t maxBytes) argument 539 getInterfaceQuota(const std::string& iface, int64_t* bytes) argument 559 removeInterfaceQuota(const std::string& iface) argument 735 setInterfaceAlert(const std::string& iface, int64_t bytes) argument 755 removeInterfaceAlert(const std::string& iface) argument [all...] |
H A D | 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, argument 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) { argument 305 const std::string chain = "bw_costly_" + iface; 307 const char* c_iface = iface.c_str(); 323 const std::string iface local 340 makeInterfaceSharedQuotaCommands(const std::string& iface, int ruleIndex, int64_t quota, bool insertQuota) argument 361 removeInterfaceSharedQuotaCommands(const std::string& iface, int64_t quota, bool deleteQuota) argument 383 const std::string iface = mTun.name(); local 399 const std::string iface = mTun.name(); local [all...] |
H A D | BandwidthController.h | 42 int setInterfaceSharedQuota(const std::string& iface, int64_t bytes); 44 int removeInterfaceSharedQuota(const std::string& iface); 46 int setInterfaceQuota(const std::string& iface, int64_t bytes); 47 int getInterfaceQuota(const std::string& iface, int64_t* bytes); 48 int removeInterfaceQuota(const std::string& iface); 63 int setInterfaceAlert(const std::string& iface, int64_t bytes); 64 int removeInterfaceAlert(const std::string& iface);
|
H A D | FirewallController.cpp | 164 int FirewallController::setInterfaceRule(const char* iface, FirewallRule rule) { argument 170 if (!isIfaceName(iface)) { 179 if (rule == ALLOW && mIfaceRules.find(iface) == mIfaceRules.end()) { 181 mIfaceRules.insert(iface); 182 } else if (rule == DENY && mIfaceRules.find(iface) != mIfaceRules.end()) { 184 mIfaceRules.erase(iface); 191 StringPrintf("%s fw_INPUT -i %s -j RETURN", op, iface), 192 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...] |
/system/netd/libbpf/include/bpf/ |
H A D | BpfNetworkStats.h | 38 char iface[32]; member in struct:android::bpf::stats_line 51 int bpfGetIfaceStatsInternal(const char* iface, Stats* stats, 66 auto iface = ifaceMap.readValue(ifaceIndex); local 67 if (!isOk(iface)) { 71 strlcpy(ifname, iface.value().name, sizeof(IfaceValue)); 104 int bpfGetIfaceStats(const char* iface, struct Stats* stats);
|
/system/tools/aidl/ |
H A D | generate_java.h | 36 AidlInterface* iface, java::JavaTypeNamespace* types, 40 const AidlInterface* iface, java::JavaTypeNamespace* types,
|
H A D | generate_java.cpp | 58 AidlInterface* iface, JavaTypeNamespace* types, 60 Class* cl = generate_binder_interface_class(iface, types, options); 64 iface->GetPackage(), 57 generate_java(const string& filename, const string& originalSrc, AidlInterface* iface, JavaTypeNamespace* types, const IoDelegate& io_delegate, const JavaOptions& options) argument
|
H A D | generate_java_binder.cpp | 345 static void generate_stub_code(const AidlInterface& iface, argument 397 if (iface.ShouldGenerateTraces()) { 405 new StringLiteralExpression(iface.GetName() + "::" 415 if (iface.ShouldGenerateTraces()) { 434 if (iface.ShouldGenerateTraces()) { 478 static void generate_stub_case(const AidlInterface& iface, argument 486 generate_stub_code(iface, 499 static void generate_stub_case_outline(const AidlInterface& iface, argument 520 generate_stub_code(iface, 547 const AidlInterface& iface, 546 generate_proxy_method( const AidlInterface& iface, const AidlMethod& method, const std::string& transactCodeName, bool oneway, ProxyClass* proxyClass, JavaTypeNamespace* types) argument 676 generate_methods(const AidlInterface& iface, const AidlMethod& method, Class* interface, StubClass* stubClass, ProxyClass* proxyClass, int index, JavaTypeNamespace* types) argument 755 compute_outline_methods(const AidlInterface* iface, StubClass* stub, size_t outline_threshold, size_t non_outline_count) argument 783 generate_binder_interface_class(const AidlInterface* iface, JavaTypeNamespace* types, const JavaOptions& options) argument [all...] |
/system/core/adb/client/ |
H A D | 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, [all...] |
/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
|
/system/connectivity/wificond/ |
H A D | server.cpp | 218 for (const auto& iface : interfaces_) { 219 ss << "Interface index: " << iface.index 220 << ", name: " << iface.name 222 << LoggingUtils::GetMacString(iface.mac_address) << endl; 232 for (const auto& iface : client_interfaces_) { 233 iface.second->Dump(&ss); 236 for (const auto& iface : ap_interfaces_) { 237 iface.second->Dump(&ss); 334 for (const auto& iface : interfaces_) { 335 if (iface [all...] |
/system/netd/libbpf/ |
H A D | BpfNetworkStats.cpp | 68 int bpfGetIfaceStatsInternal(const char* iface, Stats* stats, argument 74 const auto processIfaceStats = [iface, stats, &ifaceNameMap, &unknownIfaceBytesTotal] 82 if (!iface || !strcmp(iface, ifname)) { 95 int bpfGetIfaceStats(const char* iface, Stats* stats) { argument 110 return bpfGetIfaceStatsInternal(iface, stats, ifaceStatsMap, ifaceIndexNameMap); 116 strlcpy(newLine.iface, ifname, sizeof(newLine.iface));
|