Home
last modified time | relevance | path

Searched refs:iface (Results 1 – 25 of 88) sorted by relevance

1234

/system/tools/hidl/lint/lints/
Doneway.cpp39 static InterfaceMethodType getInterfaceOnewayType(const Interface& iface, in getInterfaceOnewayType() argument
43 const std::vector<Method*>& methods = iface.userDefinedMethods(); in getInterfaceOnewayType()
45 return (iface.superType() != nullptr && includeParentMethods) in getInterfaceOnewayType()
46 ? getInterfaceOnewayType(*iface.superType(), true) in getInterfaceOnewayType()
63 onewayType = onewayType | getInterfaceOnewayType(*iface.superType(), true); in getInterfaceOnewayType()
67 << iface.location(); in getInterfaceOnewayType()
73 const Interface* iface = ast.getInterface(); in onewayLint() local
74 if (iface == nullptr) { in onewayLint()
79 InterfaceMethodType ifaceType = getInterfaceOnewayType(*iface, false); in onewayLint()
92 errors->push_back(Lint(WARNING, iface->location()) in onewayLint()
[all …]
/system/netd/server/
DBandwidthController.cpp414 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument
425 if (!isIfaceName(iface)) in setInterfaceSharedQuota()
429 return removeInterfaceSharedQuota(iface); in setInterfaceSharedQuota()
432 auto it = mSharedQuotaIfaces.find(iface); in setInterfaceSharedQuota()
438 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
439 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
440 StringPrintf("-A bw_FORWARD -i %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota()
441 StringPrintf("-A bw_FORWARD -o %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota()
452 removeInterfaceSharedQuota(iface); in setInterfaceSharedQuota()
456 mSharedQuotaIfaces.insert(iface); in setInterfaceSharedQuota()
[all …]
DBandwidthControllerTest.cpp313 const std::vector<std::string> makeInterfaceQuotaCommands(const std::string& iface, int ruleIndex, in makeInterfaceQuotaCommands() argument
315 const std::string chain = "bw_costly_" + iface; in makeInterfaceQuotaCommands()
317 const char* c_iface = iface.c_str(); in makeInterfaceQuotaCommands()
333 const std::vector<std::string> removeInterfaceQuotaCommands(const std::string& iface) { in removeInterfaceQuotaCommands() argument
334 const std::string chain = "bw_costly_" + iface; in removeInterfaceQuotaCommands()
336 const char* c_iface = iface.c_str(); in removeInterfaceQuotaCommands()
352 const std::string iface = mTun.name(); in TEST_F() local
353 std::vector<std::string> expected = makeInterfaceQuotaCommands(iface, 1, kOldQuota); in TEST_F()
355 EXPECT_EQ(0, mBw.setInterfaceQuota(iface, kOldQuota)); in TEST_F()
361 EXPECT_EQ(0, mBw.setInterfaceQuota(iface, kNewQuota)); in TEST_F()
[all …]
DIdletimerController.cpp140 int IdletimerController::modifyInterfaceIdletimer(IptOp op, const char *iface, in modifyInterfaceIdletimer() argument
143 if (!isIfaceName(iface)) { in modifyInterfaceIdletimer()
152 addRemove, LOCAL_RAW_PREROUTING, iface, timeout, classLabel), in modifyInterfaceIdletimer()
156 addRemove, LOCAL_MANGLE_POSTROUTING, iface, timeout, classLabel), in modifyInterfaceIdletimer()
163 int IdletimerController::addInterfaceIdletimer(const char *iface, in addInterfaceIdletimer() argument
166 return modifyInterfaceIdletimer(IptOpAdd, iface, timeout, classLabel); in addInterfaceIdletimer()
169 int IdletimerController::removeInterfaceIdletimer(const char *iface, in removeInterfaceIdletimer() argument
172 return modifyInterfaceIdletimer(IptOpDelete, iface, timeout, classLabel); in removeInterfaceIdletimer()
DNetlinkHandler.cpp109 const char *iface = evt->findParam("INTERFACE"); in onEvent() local
116 gCtls->trafficCtrl.addInterface(iface, ifaceIndex); in onEvent()
118 ALOGE("invalid interface index: %s(%s)", iface, ifIndex); in onEvent()
123 notifyInterfaceAdded(iface); in onEvent()
125 notifyInterfaceRemoved(iface); in onEvent()
130 notifyInterfaceLinkChanged(iface, true); in onEvent()
132 notifyInterfaceLinkChanged(iface, false); in onEvent()
148 ALOGE("invalid interface index: %s(%s)", iface, ifIndex); in onEvent()
168 if (iface && iface[0] && address && flags && scope) { in onEvent()
170 notifyAddressUpdated(address, iface, std::stoi(flags), std::stoi(scope)); in onEvent()
[all …]
DBandwidthController.h41 int setInterfaceSharedQuota(const std::string& iface, int64_t bytes);
43 int removeInterfaceSharedQuota(const std::string& iface);
45 int setInterfaceQuota(const std::string& iface, int64_t bytes);
46 int getInterfaceQuota(const std::string& iface, int64_t* bytes);
47 int removeInterfaceQuota(const std::string& iface);
68 int setInterfaceAlert(const std::string& iface, int64_t bytes);
69 int removeInterfaceAlert(const std::string& iface);
DIdletimerController.h29 int addInterfaceIdletimer(const char *iface, uint32_t timeout,
31 int removeInterfaceIdletimer(const char *iface, uint32_t timeout,
42 int modifyInterfaceIdletimer(IptOp op, const char *iface, uint32_t timeout,
DClatdController.cpp197 int ClatdController::generateIpv6Address(const char* iface, const in_addr v4, in generateIpv6Address() argument
202 if (setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE, iface, strlen(iface) + 1) == -1) { in generateIpv6Address()
231 auto isEthernet = android::net::isEthernet(tracker.iface); in maybeStartBpf()
233 ALOGE("isEthernet(%s[%d]) failure: %s", tracker.iface, tracker.ifIndex, in maybeStartBpf()
336 ALOGI("tcFilterAddDevIngressClatIpv6(%d[%s], %d): %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
340 tracker.iface, isEthernet.value(), strerror(-rv)); in maybeStartBpf()
363 void ClatdController::setIptablesDropRule(bool add, const char* iface, const char* pfx96Str, in setIptablesDropRule() argument
369 (add ? "-A" : "-D"), LOCAL_RAW_PREROUTING, iface, pfx96Str, v6Str); in setIptablesDropRule()
379 ALOGE("tcFilterDelDevIngressClatIpv6(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStopBpf()
427 strlcpy(iface, interface.c_str(), sizeof(iface)); in init()
[all …]
/system/libhidl/transport/
DHidlPassthroughSupport.cpp30 static sp<IBase> tryWrap(const std::string& descriptor, sp<IBase> iface) { in tryWrap() argument
37 return func(static_cast<void*>(iface.get())); in tryWrap()
42 sp<IBase> wrapPassthroughInternal(sp<IBase> iface) { in wrapPassthroughInternal() argument
43 if (iface == nullptr || iface->isRemote()) { in wrapPassthroughInternal()
45 return iface; in wrapPassthroughInternal()
58 auto ret = iface->interfaceChain([&](const auto& types) { in wrapPassthroughInternal()
60 base = tryWrap(descriptor, iface); in wrapPassthroughInternal()
/system/libhwbinder/
DIInterface.cpp34 sp<IBinder> IInterface::asBinder(const IInterface* iface) in asBinder() argument
36 if (iface == nullptr) return nullptr; in asBinder()
37 return const_cast<IInterface*>(iface)->onAsBinder(); in asBinder()
41 sp<IBinder> IInterface::asBinder(const sp<IInterface>& iface) in asBinder() argument
43 if (iface == nullptr) return nullptr; in asBinder()
44 return iface->onAsBinder(); in asBinder()
/system/tools/hidl/
DgenerateCpp.cpp219 const Interface *iface = getInterface(); in generateInterfaceHeader() local
220 std::string ifaceName = iface ? iface->definedName() : "types"; in generateInterfaceHeader()
234 if (iface) { in generateInterfaceHeader()
245 if (iface) { in generateInterfaceHeader()
255 if (iface) { in generateInterfaceHeader()
256 iface->emitDocComment(out); in generateInterfaceHeader()
261 const Interface *superType = iface->superType(); in generateInterfaceHeader()
279 DocComment("Fully qualified interface name: \"" + iface->fqName().string() + "\"", in generateInterfaceHeader()
284 iface->emitTypeDeclarations(out); in generateInterfaceHeader()
289 if (iface) { in generateInterfaceHeader()
[all …]
DgenerateVts.cpp34 const Interface* iface = mRootScope.getInterface(); in emitVtsTypeDeclarations() local
35 return iface->emitVtsAttributeDeclaration(out); in emitVtsTypeDeclarations()
53 const Interface *iface = AST::getInterface(); in generateVts() local
56 out << "component_name: \"" << (iface ? iface->definedName() : "types") << "\"\n\n"; in generateVts()
75 const Interface* iface = mRootScope.getInterface(); in generateVts() local
83 for (const Interface* superInterface : iface->superTypeChain()) { in generateVts()
87 iface->emitVtsMethodDeclaration(out, false /*isInhereted*/); in generateVts()
DgenerateCppImpl.cpp84 const Interface* iface = mRootScope.getInterface(); in generateCppImplHeader() local
85 const std::string baseName = iface->getBaseName(); in generateCppImplHeader()
90 generateCppPackageInclude(out, mPackage, iface->definedName()); in generateCppImplHeader()
108 out << "struct " << baseName << " : public " << iface->fqName().sanitizedVersion() in generateCppImplHeader()
109 << "::" << iface->definedName() << " {\n"; in generateCppImplHeader()
128 << "// extern \"C\" " << iface->definedName() << "* "; in generateCppImplHeader()
129 generateFetchSymbol(out, iface->definedName()); in generateCppImplHeader()
141 const Interface* iface = mRootScope.getInterface(); in generateCppImplSource() local
142 const std::string baseName = iface->getBaseName(); in generateCppImplSource()
155 out << iface->definedName() << "* "; in generateCppImplSource()
[all …]
DgenerateJavaImpl.cpp28 const Interface* iface = mRootScope.getInterface(); in generateJavaImpl() local
29 const std::string baseName = iface->getBaseName(); in generateJavaImpl()
34 out << "import " << mPackage.javaPackage() << "." << iface->definedName() << ";\n\n"; in generateJavaImpl()
36 out << "class " << baseName << " extends " << iface->definedName() << ".Stub" in generateJavaImpl()
41 for (const auto& tuple : iface->allMethodsFromRoot()) { in generateJavaImpl()
DgenerateInheritanceHierarchy.cpp37 for (const Interface* iface : mRootScope.getInterface()->superTypeChain()) { in generateInheritanceHierarchy() local
38 if (iface->isIBase()) break; in generateInheritanceHierarchy()
39 inheritedInterfaces.append(iface->fqName().string()); in generateInheritanceHierarchy()
DgenerateJava.cpp142 const Interface* iface = mRootScope.getInterface(); in generateJava() local
143 const std::string ifaceName = iface->definedName(); in generateJava()
144 const std::string baseName = iface->getBaseName(); in generateJava()
148 const Interface *superType = iface->superType(); in generateJava()
150 iface->emitDocComment(out); in generateJava()
239 emitGetService(out, ifaceName, iface->fqName().string(), true /* isRetry */); in generateJava()
240 emitGetService(out, ifaceName, iface->fqName().string(), false /* isRetry */); in generateJava()
242 iface->emitJavaTypeDeclarations(out, false /* atTopLevel */); in generateJava()
244 for (const auto &method : iface->methods()) { in generateJava()
315 for (const auto &tuple : iface->allMethodsFromRoot()) { in generateJava()
[all …]
/system/core/adb/client/
Dusb_osx.cpp111 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface550** iface, UInt16 vendor,
141 IOUSBInterfaceInterface500 **iface = NULL; in AndroidInterfaceAdded() local
168 CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID500), (LPVOID*)&iface); in AndroidInterfaceAdded()
171 if (result || !iface) { in AndroidInterfaceAdded()
176 kr = (*iface)->GetInterfaceClass(iface, &if_class); in AndroidInterfaceAdded()
177 kr = (*iface)->GetInterfaceSubClass(iface, &subclass); in AndroidInterfaceAdded()
178 kr = (*iface)->GetInterfaceProtocol(iface, &protocol); in AndroidInterfaceAdded()
183 (*iface)->Release(iface); in AndroidInterfaceAdded()
191 kr = (*iface)->GetDevice(iface, &usbDevice); in AndroidInterfaceAdded()
194 (*iface)->Release(iface); in AndroidInterfaceAdded()
[all …]
/system/bt/service/hal/
Dbluetooth_av_interface.h32 virtual void ConnectionStateCallback(BluetoothAvInterface* iface,
35 virtual void AudioStateCallback(BluetoothAvInterface* iface,
39 BluetoothAvInterface* iface, const RawAddress& bd_addr,
44 virtual bool MandatoryCodecPreferredCallback(BluetoothAvInterface* iface,
53 virtual void ConnectionStateCallback(BluetoothAvInterface* iface,
56 virtual void AudioStateCallback(BluetoothAvInterface* iface,
59 virtual void AudioConfigCallback(BluetoothAvInterface* iface,
/system/tools/hidl/hidl2aidl/
DAidlInterface.cpp42 const Interface& iface) { in emitAidlMethodParams() argument
51 prefix + AidlHelper::getAidlType(*arg->get(), iface.fqName()) + " " + arg->name(); in emitAidlMethodParams()
66 for (const Interface* iface : interface.typeChain()) { in getUserDefinedMethods() local
67 const std::vector<Method*> userDefined = iface->userDefinedMethods(); in getUserDefinedMethods()
161 for (auto iface = typeChain.rbegin(); iface != typeChain.rend(); ++iface) { in emitAidl() local
162 for (const Method* method : (*iface)->userDefinedMethods()) { in emitAidl()
163 pushVersionedNodeOntoMap({(*iface)->fqName().getPackageMajorVersion(), in emitAidl()
164 (*iface)->fqName().getPackageMinorVersion(), method, in emitAidl()
170 if ((*iface)->getBaseName() != interface.getBaseName()) { in emitAidl()
173 for (const NamedType* type : (*iface)->getSubTypes()) { in emitAidl()
[all …]
/system/netd/libnetdbpf/
DBpfNetworkStats.cpp71 int bpfGetIfaceStatsInternal(const char* iface, Stats* stats, in bpfGetIfaceStatsInternal() argument
78 [iface, stats, &ifaceNameMap, &unknownIfaceBytesTotal]( in bpfGetIfaceStatsInternal()
86 if (!iface || !strcmp(iface, ifname)) { in bpfGetIfaceStatsInternal()
102 int bpfGetIfaceStats(const char* iface, Stats* stats) { in bpfGetIfaceStats() argument
116 return bpfGetIfaceStatsInternal(iface, stats, ifaceStatsMap, ifaceIndexNameMap); in bpfGetIfaceStats()
122 strlcpy(newLine.iface, ifname, sizeof(newLine.iface)); in populateStatsEntry()
311 !strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface))); in operator ==()
316 int ret = strncmp(lhs.iface, rhs.iface, sizeof(lhs.iface)); in operator <()
330 strlcpy(iface, rhs.iface, sizeof(iface)); in operator =()
/system/libhidl/transport/include/hidl/
DHidlPassthroughSupport.h36 sp<::android::hidl::base::V1_0::IBase> iface);
44 sp<IType> wrapPassthrough(sp<IType> iface) { in wrapPassthrough() argument
45 return static_cast<IType*>(wrapPassthroughInternal(iface).get()); in wrapPassthrough()
/system/tools/hidl/metadata/
Dtest.cpp40 for (const std::string& iface : {"hidl.metadata.test@1.0::IBar", "hidl.metadata.test@1.0::IBaz", in TEST()
42 const auto& info = metadataForModule(iface); in TEST()
43 ASSERT_NE(info, std::nullopt) << iface; in TEST()
/system/netd/libnetdbpf/include/netdbpf/
DBpfNetworkStats.h42 char iface[32]; member
62 int bpfGetIfaceStatsInternal(const char* iface, Stats* stats,
77 auto iface = ifaceMap.readValue(ifaceIndex); in getIfaceNameFromMap() local
78 if (!iface.ok()) { in getIfaceNameFromMap()
82 strlcpy(ifname, iface.value().name, sizeof(IfaceValue)); in getIfaceNameFromMap()
115 int bpfGetIfaceStats(const char* iface, Stats* stats);
/system/libvintf/libaidlvintf_test_helper/
DVintf.cpp28 const std::string iface = descriptor.substr(lastDot + 1); in getAidlHalInstanceNames() local
33 for (const std::string& instance : deviceManifest->getAidlInstances(package, iface)) { in getAidlHalInstanceNames()
38 for (const std::string& instance : frameworkManifest->getAidlInstances(package, iface)) { in getAidlHalInstanceNames()
/system/bt/service/
Da2dp_source.h73 void ConnectionStateCallback(hal::BluetoothAvInterface* iface,
76 void AudioStateCallback(hal::BluetoothAvInterface* iface,
80 hal::BluetoothAvInterface* iface, const RawAddress& bd_addr,
85 bool MandatoryCodecPreferredCallback(hal::BluetoothAvInterface* iface,

1234