Home
last modified time | relevance | path

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

12345

/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.cpp351 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument
362 if (!isIfaceName(iface)) in setInterfaceSharedQuota()
366 return removeInterfaceSharedQuota(iface); in setInterfaceSharedQuota()
369 auto it = mSharedQuotaIfaces.find(iface); in setInterfaceSharedQuota()
375 StringPrintf("-I bw_INPUT %d -i %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
376 StringPrintf("-I bw_OUTPUT %d -o %s -j %s", ruleInsertPos, iface.c_str(), chain), in setInterfaceSharedQuota()
377 StringPrintf("-A bw_FORWARD -i %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota()
378 StringPrintf("-A bw_FORWARD -o %s -j %s", iface.c_str(), chain), in setInterfaceSharedQuota()
389 removeInterfaceSharedQuota(iface); in setInterfaceSharedQuota()
393 mSharedQuotaIfaces.insert(iface); in setInterfaceSharedQuota()
[all …]
DBandwidthControllerTest.cpp263 const std::vector<std::string> makeInterfaceQuotaCommands(const std::string& iface, int ruleIndex, in makeInterfaceQuotaCommands() argument
265 const std::string chain = "bw_costly_" + iface; in makeInterfaceQuotaCommands()
267 const char* c_iface = iface.c_str(); in makeInterfaceQuotaCommands()
283 const std::vector<std::string> removeInterfaceQuotaCommands(const std::string& iface) { in removeInterfaceQuotaCommands() argument
284 const std::string chain = "bw_costly_" + iface; in removeInterfaceQuotaCommands()
286 const char* c_iface = iface.c_str(); in removeInterfaceQuotaCommands()
302 const std::string iface = mTun.name(); in TEST_F() local
303 std::vector<std::string> expected = makeInterfaceQuotaCommands(iface, 1, kOldQuota); in TEST_F()
305 EXPECT_EQ(0, mBw.setInterfaceQuota(iface, kOldQuota)); in TEST_F()
311 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()
172 if (iface && iface[0] && address && flags && scope) { in onEvent()
174 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);
62 int setInterfaceAlert(const std::string& iface, int64_t bytes);
63 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.cpp169 int ClatdController::generateIpv6Address(const char* iface, const in_addr v4, in generateIpv6Address() argument
174 if (setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE, iface, strlen(iface) + 1) == -1) { in generateIpv6Address()
201 auto isEthernet = android::net::isEthernet(tracker.iface); in maybeStartBpf()
203 ALOGE("isEthernet(%s[%d]) failure: %s", tracker.iface, tracker.ifIndex, in maybeStartBpf()
301 tracker.iface, isEthernet.value(), strerror(-rv)); in maybeStartBpf()
323 void ClatdController::setIptablesDropRule(bool add, const char* iface, const char* pfx96Str, in setIptablesDropRule() argument
329 (add ? "-A" : "-D"), LOCAL_RAW_PREROUTING, iface, pfx96Str, v6Str); in setIptablesDropRule()
337 ALOGE("tcFilterDelDevIngressClatIpv6(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStopBpf()
385 strlcpy(iface, interface.c_str(), sizeof(iface)); in init()
386 ifIndex = if_nametoindex(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/
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()
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 …]
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.cpp38 for (const Interface* iface : mRootScope.getInterface()->superTypeChain()) { in generateInheritanceHierarchy() local
39 if (iface->isIBase()) break; in generateInheritanceHierarchy()
40 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/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()
67 for (const Interface* iface : interface.typeChain()) { in getUserDefinedMethods() local
68 if (!AidlHelper::shouldBeExpanded(interface.fqName(), iface->fqName()) && in getUserDefinedMethods()
69 iface->fqName() != gIBaseFqName) { in getUserDefinedMethods()
70 out << "// Types from " << iface->fqName().string() in getUserDefinedMethods()
76 const std::vector<Method*> userDefined = iface->userDefinedMethods(); in getUserDefinedMethods()
191 for (const Interface* iface : interface.typeChain()) { in emitAidl() local
192 if (!AidlHelper::shouldBeExpanded(interface.fqName(), iface->fqName())) { in emitAidl()
196 for (const Method* method : iface->userDefinedMethods()) { 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/tools/aidl/
Dgenerate_rust.cpp79 void GenerateClientMethod(CodeWriter& out, const AidlInterface& iface, const AidlMethod& method, in GenerateClientMethod() argument
107 if (iface.IsSensitiveData()) flags.push_back("binder::FLAG_CLEAR_BUF"); in GenerateClientMethod()
115 if (iface.IsSensitiveData()) { in GenerateClientMethod()
275 void GenerateServerItems(CodeWriter& out, const AidlInterface* iface, in GenerateServerItems() argument
277 auto trait_name = ClassName(*iface, cpp::ClassNames::INTERFACE); in GenerateServerItems()
278 auto server_name = ClassName(*iface, cpp::ClassNames::SERVER); in GenerateServerItems()
283 for (const auto& method : iface->GetMethods()) { in GenerateServerItems()
308 for (const auto& method : iface->GetMethods()) { in GenerateServerItems()
351 bool GenerateRustInterface(const string& filename, const AidlInterface* iface, in GenerateRustInterface() argument
361 auto trait_name = ClassName(*iface, cpp::ClassNames::INTERFACE); in GenerateRustInterface()
[all …]
/system/tools/aidl/build/
Daidl_test.go1010 name: "foo-iface",
1020 "bar-iface",
1025 name: "bar-iface",
1034 "foo/aidl_api/foo-iface/current/foo/Foo.aidl": nil,
1035 "foo/aidl_api/foo-iface/1/foo/Foo.aidl": nil,
1036 "foo/aidl_api/foo-iface/1/.hash": nil,
1037 "foo/aidl_api/foo-iface/2/foo/Foo.aidl": nil,
1038 "foo/aidl_api/foo-iface/2/.hash": nil,
1044 rule := ctx.ModuleForTests("foo-iface-V1-cpp-source", "").Output("foo/Foo.cpp")
1047 "-Ifoo/aidl_api/foo-iface/1",
[all …]
/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()

12345