Home
last modified time | relevance | path

Searched refs:interface (Results 1 – 25 of 472) sorted by relevance

12345678910>>...19

/system/core/libunwindstack/tests/
DElfInterfaceArmTest.cpp45 ElfInterfaceArmFake interface(&memory_); in TEST_F() local
49 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value)); in TEST_F()
53 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value)); in TEST_F()
57 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value)); in TEST_F()
62 ElfInterfaceArmFake interface(&memory_); in TEST_F() local
63 interface.FakeSetStartOffset(0); in TEST_F()
64 interface.FakeSetTotalEntries(10); in TEST_F()
67 ASSERT_FALSE(interface.FindEntry(0x1000, &entry_offset)); in TEST_F()
71 ElfInterfaceArmFake interface(&memory_); in TEST_F() local
72 interface.FakeSetStartOffset(0x100); in TEST_F()
[all …]
DElfTest.cpp129 ASSERT_TRUE(elf.interface() == nullptr); in TEST_F()
180 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F()
192 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F()
204 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F()
216 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F()
228 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F()
240 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F()
251 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F()
253 EXPECT_EQ(0x1acU, elf.interface()->gnu_debugdata_offset()); in TEST_F()
254 EXPECT_EQ(0x8cU, elf.interface()->gnu_debugdata_size()); in TEST_F()
[all …]
/system/netd/server/
DPhysicalNetwork.cpp30 [[nodiscard]] int addToDefault(unsigned netId, const std::string& interface, Permission permission, in addToDefault() argument
32 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) { in addToDefault()
33 ALOGE("failed to add interface %s to default netId %u", interface.c_str(), netId); in addToDefault()
36 if (int ret = delegate->addFallthrough(interface, permission)) { in addToDefault()
42 [[nodiscard]] int removeFromDefault(unsigned netId, const std::string& interface, in removeFromDefault() argument
44 if (int ret = RouteController::removeInterfaceFromDefaultNetwork(interface.c_str(), in removeFromDefault()
46 ALOGE("failed to remove interface %s from default netId %u", interface.c_str(), netId); in removeFromDefault()
49 if (int ret = delegate->removeFallthrough(interface, permission)) { in removeFromDefault()
86 void PhysicalNetwork::invalidateRouteCache(const std::string& interface) { in invalidateRouteCache() argument
91 (void)RouteController::addRoute(interface.c_str(), dst, "throw", RouteController::INTERFACE, in invalidateRouteCache()
[all …]
DRouteController.h56 static uint32_t getIfIndex(const char* interface) EXCLUDES(sInterfaceToTableLock);
58 [[nodiscard]] static int addInterfaceToLocalNetwork(unsigned netId, const char* interface);
59 [[nodiscard]] static int removeInterfaceFromLocalNetwork(unsigned netId, const char* interface);
61 [[nodiscard]] static int addInterfaceToPhysicalNetwork(unsigned netId, const char* interface,
64 const char* interface,
67 [[nodiscard]] static int addInterfaceToVirtualNetwork(unsigned netId, const char* interface,
70 const char* interface, bool secure,
73 [[nodiscard]] static int modifyPhysicalNetworkPermission(unsigned netId, const char* interface,
77 [[nodiscard]] static int addUsersToVirtualNetwork(unsigned netId, const char* interface,
79 [[nodiscard]] static int removeUsersFromVirtualNetwork(unsigned netId, const char* interface,
[all …]
DVirtualNetwork.cpp67 for (const std::string& interface : mInterfaces) { in addUsers() local
68 if (int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addUsers()
70 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId); in addUsers()
82 for (const std::string& interface : mInterfaces) { in removeUsers() local
83 if (int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), in removeUsers()
85 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId); in removeUsers()
97 int VirtualNetwork::addInterface(const std::string& interface) { in addInterface() argument
98 if (hasInterface(interface)) { in addInterface()
101 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addInterface()
103 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId); in addInterface()
[all …]
DLocalNetwork.cpp37 int LocalNetwork::addInterface(const std::string& interface) { in addInterface() argument
38 if (hasInterface(interface)) { in addInterface()
41 if (int ret = RouteController::addInterfaceToLocalNetwork(mNetId, interface.c_str())) { in addInterface()
42 ALOGE("failed to add interface %s to local netId %u", interface.c_str(), mNetId); in addInterface()
45 mInterfaces.insert(interface); in addInterface()
49 int LocalNetwork::removeInterface(const std::string& interface) { in removeInterface() argument
50 if (!hasInterface(interface)) { in removeInterface()
53 if (int ret = RouteController::removeInterfaceFromLocalNetwork(mNetId, interface.c_str())) { in removeInterface()
54 ALOGE("failed to remove interface %s from local netId %u", interface.c_str(), mNetId); in removeInterface()
57 mInterfaces.erase(interface); in removeInterface()
DRouteController.cpp150 uint32_t RouteController::getRouteTableForInterfaceLocked(const char* interface) { in getRouteTableForInterfaceLocked() argument
160 auto iter = sInterfaceToTable.find(interface); in getRouteTableForInterfaceLocked()
165 uint32_t index = if_nametoindex(interface); in getRouteTableForInterfaceLocked()
167 ALOGE("cannot find interface %s: %s", interface, strerror(errno)); in getRouteTableForInterfaceLocked()
171 sInterfaceToTable[interface] = index; in getRouteTableForInterfaceLocked()
175 uint32_t RouteController::getIfIndex(const char* interface) { in getIfIndex() argument
178 auto iter = sInterfaceToTable.find(interface); in getIfIndex()
180 ALOGE("getIfIndex: cannot find interface %s", interface); in getIfIndex()
197 uint32_t RouteController::getRouteTableForInterface(const char* interface) { in getRouteTableForInterface() argument
199 return getRouteTableForInterfaceLocked(interface); in getRouteTableForInterface()
[all …]
DInterfaceController.cpp148 const char *family, const char *which, const char *interface, const char *parameter) { in getParameterPathname() argument
153 !isInterfaceName(interface) || in getParameterPathname()
159 return StringPrintf("%s/%s/%s/%s/%s", proc_net_path, family, which, interface, parameter); in getParameterPathname()
265 int InterfaceController::setEnableIPv6(const char *interface, const int on) { in setEnableIPv6() argument
266 if (!isIfaceName(interface)) { in setEnableIPv6()
273 return writeValueToPath(ipv6_proc_path, interface, "disable_ipv6", disable_ipv6); in setEnableIPv6()
278 Status InterfaceController::setIPv6AddrGenMode(const std::string& interface, int mode) { in setIPv6AddrGenMode() argument
279 if (!isIfaceName(interface)) { in setIPv6AddrGenMode()
280 return statusFromErrno(ENOENT, "invalid iface name: " + interface); in setIPv6AddrGenMode()
287 writeValueToPath(ipv6_proc_path, interface.c_str(), "addr_gen_mode", "0"); in setIPv6AddrGenMode()
[all …]
DNetwork.cpp38 bool Network::hasInterface(const std::string& interface) const { in hasInterface()
39 return mInterfaces.find(interface) != mInterfaces.end(); in hasInterface()
50 std::string interface = *mInterfaces.begin(); in clearInterfaces() local
51 if (int ret = removeInterface(interface)) { in clearInterfaces()
DNetworkController.h102 unsigned getNetworkForInterface(const char* interface) const;
110 [[nodiscard]] int addInterfaceToNetwork(unsigned netId, const char* interface);
111 [[nodiscard]] int removeInterfaceFromNetwork(unsigned netId, const char* interface);
127 [[nodiscard]] int addRoute(unsigned netId, const char* interface, const char* destination,
129 [[nodiscard]] int updateRoute(unsigned netId, const char* interface, const char* destination,
131 [[nodiscard]] int removeRoute(unsigned netId, const char* interface, const char* destination,
157 unsigned getNetworkForInterfaceLocked(const char* interface) const;
165 [[nodiscard]] int modifyRoute(unsigned netId, const char* interface, const char* destination,
/system/core/fastboot/
Dusb_osx.cpp64 IOUSBInterfaceInterface500** interface; member
95 IOUSBInterfaceInterface500** interface = NULL; in try_interfaces() local
134 (LPVOID*)&interface); in try_interfaces()
139 if (result || !interface) { in try_interfaces()
163 kr = (*interface)->USBInterfaceOpen(interface); in try_interfaces()
167 (void) (*interface)->Release(interface); in try_interfaces()
173 kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints); in try_interfaces()
181 if ((*interface)->GetInterfaceClass(interface, &handle->info.ifc_class) != 0 || in try_interfaces()
182 (*interface)->GetInterfaceSubClass(interface, &handle->info.ifc_subclass) != 0 || in try_interfaces()
183 (*interface)->GetInterfaceProtocol(interface, &handle->info.ifc_protocol) != 0) in try_interfaces()
[all …]
/system/tools/aidl/
Dgenerate_cpp_unittest.cpp1587 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local
1588 ASSERT_NE(interface, nullptr); in TEST_F()
1589 unique_ptr<Document> doc = internals::BuildClientHeader(typenames_, *interface, options_); in TEST_F()
1594 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local
1595 ASSERT_NE(interface, nullptr); in TEST_F()
1596 unique_ptr<Document> doc = internals::BuildClientSource(typenames_, *interface, options_); in TEST_F()
1601 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local
1602 ASSERT_NE(interface, nullptr); in TEST_F()
1603 unique_ptr<Document> doc = internals::BuildServerHeader(typenames_, *interface, options_); in TEST_F()
1608 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local
[all …]
Dgenerate_cpp.cpp252 const AidlInterface& interface, in DefineClientTransaction() argument
254 const string i_name = ClassName(interface, ClassNames::INTERFACE); in DefineClientTransaction()
255 const string bp_name = ClassName(interface, ClassNames::CLIENT); in DefineClientTransaction()
276 kTraceVarName, interface.GetName().c_str(), method.GetName().c_str())); in DefineClientTransaction()
407 b->AddLiteral(GenLogAfterExecute(bp_name, interface, method, kStatusVarName, kReturnVarName, in DefineClientTransaction()
418 const AidlInterface& interface, in DefineClientMetaTransaction() argument
423 const string iface = ClassName(interface, ClassNames::INTERFACE); in DefineClientMetaTransaction()
424 const string proxy = ClassName(interface, ClassNames::CLIENT); in DefineClientMetaTransaction()
450 const string iface = ClassName(interface, ClassNames::INTERFACE); in DefineClientMetaTransaction()
451 const string proxy = ClassName(interface, ClassNames::CLIENT); in DefineClientMetaTransaction()
[all …]
Dgenerate_aidl_mappings.cpp32 const AidlInterface* interface = defined_type->AsInterface(); in generate_mappings() local
34 if (interface == nullptr) { in generate_mappings()
37 for (const auto& method : interface->GetMethods()) { in generate_mappings()
40 signature << interface->GetCanonicalName() << "|"; in generate_mappings()
/system/core/adb/client/
Dusb_osx.cpp55 IOUSBInterfaceInterface550** interface; member
67 interface(nullptr), in usb_handle()
320 static bool ClearPipeStallBothEnds(IOUSBInterfaceInterface550** interface, UInt8 bulkEp) { in ClearPipeStallBothEnds() argument
321 IOReturn rc = (*interface)->ClearPipeStallBothEnds(interface, bulkEp); in ClearPipeStallBothEnds()
331 static std::unique_ptr<usb_handle> CheckInterface(IOUSBInterfaceInterface550** interface, in CheckInterface() argument
340 kr = (*interface)->USBInterfaceOpen(interface); in CheckInterface()
347 kr = (*interface)->GetNumEndpoints(interface, &interfaceNumEndpoints); in CheckInterface()
354 if ((*interface)->GetInterfaceClass(interface, &interfaceClass) != kIOReturnSuccess || in CheckInterface()
355 (*interface)->GetInterfaceSubClass(interface, &interfaceSubClass) != kIOReturnSuccess || in CheckInterface()
356 (*interface)->GetInterfaceProtocol(interface, &interfaceProtocol) != kIOReturnSuccess) { in CheckInterface()
[all …]
/system/bt/profile/avrcp/tests/
Davrcp_device_test.cc52 const stack_config_t interface = { variable
102 MockMediaInterface interface; in TEST_F() local
105 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr); in TEST_F()
118 EXPECT_CALL(interface, GetNowPlayingList(_)) in TEST_F()
146 MockMediaInterface interface; in TEST_F() local
149 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr); in TEST_F()
154 EXPECT_CALL(interface, GetPlayStatus(_)) in TEST_F()
188 MockMediaInterface interface; in TEST_F() local
191 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr); in TEST_F()
198 EXPECT_CALL(interface, GetPlayStatus(_)) in TEST_F()
[all …]
/system/libhidl/transport/
DHidlTransportUtils.cpp27 Return<bool> canCastInterface(IBase* interface, const char* castTo, bool emitError) { in canCastInterface() argument
28 if (interface == nullptr) { in canCastInterface()
39 auto chainRet = interface->interfaceChain([&](const hidl_vec<hidl_string> &types) { in canCastInterface()
58 std::string getDescriptor(IBase* interface) { in getDescriptor() argument
59 if (interface == nullptr) { in getDescriptor()
64 auto ret = interface->interfaceDescriptor([&](const hidl_string &types) { in getDescriptor()
/system/core/libunwindstack/tools/
Dunwind_info.cpp41 void DumpArm(Elf* elf, ElfInterfaceArm* interface) { in DumpArm() argument
42 if (interface == nullptr) { in DumpArm()
49 for (const auto& entry : interface->pt_loads()) { in DumpArm()
52 for (auto pc : *interface) { in DumpArm()
61 if (!interface->FindEntry(pc, &entry)) { in DumpArm()
65 ArmExidx arm(nullptr, interface->memory(), nullptr); in DumpArm()
129 ElfInterface* interface = elf.interface(); in GetElfInfo() local
131 DumpArm(&elf, reinterpret_cast<ElfInterfaceArm*>(interface)); in GetElfInfo()
135 if (interface->eh_frame() != nullptr) { in GetElfInfo()
137 DumpDwarfSection(&elf, interface->eh_frame(), elf.GetLoadBias()); in GetElfInfo()
[all …]
/system/hwservicemanager/
DTokenManager.cpp58 TokenInterface interface = generateToken(store); in createToken() local
60 if (interface.interface == nullptr) { in createToken()
65 uint64_t id = getTokenId(interface.token); in createToken()
67 if (id != interface.id) { in createToken()
78 mMap[id] = interface; in createToken()
80 hidl_cb(interface.token); in createToken()
98 const TokenInterface &interface = it->second; in lookupToken() local
100 if (!constantTimeCompare(token, interface.token)) { in lookupToken()
126 return it->second.interface; in get()
130 TokenManager::TokenInterface TokenManager::generateToken(const sp<IBase> &interface) { in generateToken() argument
[all …]
/system/core/libnetutils/
Ddhcptool.c32 char* interface = argv[1]; in main() local
34 err(errno, "dhcptool %s: ifc_init failed", interface); in main()
39 int rc = do_dhcp(interface); in main()
41 err(errno, "dhcptool %s: do_dhcp failed", interface); in main()
/system/tools/hidl/hidl2aidl/
DAidlInterface.cpp64 std::vector<const Method*> AidlHelper::getUserDefinedMethods(const Interface& interface) { in getUserDefinedMethods() argument
66 for (const Interface* iface : interface.typeChain()) { in getUserDefinedMethods()
145 void AidlHelper::emitAidl(const Interface& interface, const Coordinator& coordinator) { in emitAidl() argument
146 Formatter out = getFileWithHeader(interface, coordinator); in emitAidl()
148 interface.emitDocComment(out); in emitAidl()
149 if (interface.superType() && interface.superType()->fqName() != gIBaseFqName) { in emitAidl()
150 out << "// Interface inherits from " << interface.superType()->fqName().string() in emitAidl()
154 out << "interface " << getAidlName(interface.fqName()) << " "; in emitAidl()
160 std::vector<const Interface*> typeChain = interface.typeChain(); in emitAidl()
170 if ((*iface)->getBaseName() != interface.getBaseName()) { in emitAidl()
[all …]
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test_server.rc2 interface android.hardware.tests.lazy@1.0::ILazy default1
3 interface android.hardware.tests.lazy@1.0::ILazy default2
4 interface android.hardware.tests.lazy@1.1::ILazy default1
5 interface android.hardware.tests.lazy@1.1::ILazy default2
/system/libvintf/
DMatrixHal.cpp59 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
62 if (fqInstance.setTo(getName(), vr.majorVer, vr.minMinor, interface, instance)) { in forEachInstance()
82 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
83 return func(this->versionRanges, interface, instance, isRegex); in forEachInstance()
147 void MatrixHal::insertInstance(const std::string& interface, const std::string& instance, in insertInstance() argument
149 auto it = interfaces.find(interface); in insertInstance()
151 it = interfaces.emplace(interface, HalInterface{interface, {}}).first; in insertInstance()
164 bool MatrixHal::removeInstance(const std::string& interface, const std::string& instance, in removeInstance() argument
166 auto it = interfaces.find(interface); in removeInstance()
/system/libhidl/transport/base/1.0/
DIBase.hal22 * All HAL files will have this interface implicitly imported. If an interface
23 * does not explicitly extend from another interface, it will implicitly extend
30 interface IBase {
33 * Provides way to determine if interface is running without requesting
40 * For example, for the following interface definition:
42 * interface IParent {};
43 * interface IChild extends IParent {};
56 * For example, for the following interface definition:
58 * interface IParent {};
59 * interface IChild extends IParent {};
[all …]
/system/libvintf/include/vintf/
DHalGroup.h122 const Version& expectVersion, const std::string& interface, in forEachInstanceOfInterface()
125 [&func, &interface](const InstanceType& e) { in forEachInstanceOfInterface()
126 if (e.interface() == interface) { in forEachInstanceOfInterface()
147 const std::string& package, const Version& expectVersion, const std::string& interface, in forEachHidlInstanceOfInterface()
149 return forEachInstanceOfInterface(HalFormat::HIDL, package, expectVersion, interface, func); in forEachHidlInstanceOfInterface()
157 const std::string& interface = "") const {
163 if (interface.empty()) {
166 (void)forEachHidlInstanceOfInterface(package, expectVersion, interface, mapToVector);

12345678910>>...19