/system/unwinding/libunwindstack/tests/ |
D | ElfInterfaceArmTest.cpp | 48 ElfInterfaceArmFake interface(memory_); in TEST_F() local 52 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value)); in TEST_F() 56 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value)); in TEST_F() 60 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value)); in TEST_F() 65 ElfInterfaceArmFake interface(memory_); in TEST_F() local 66 interface.FakeSetStartOffset(0); in TEST_F() 67 interface.FakeSetTotalEntries(10); in TEST_F() 70 ASSERT_FALSE(interface.FindEntry(0x1000, &entry_offset)); in TEST_F() 74 ElfInterfaceArmFake interface(memory_); in TEST_F() local 75 interface.FakeSetStartOffset(0x100); in TEST_F() [all …]
|
D | ElfTest.cpp | 131 ASSERT_TRUE(elf.interface() == nullptr); in TEST_F() 200 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 212 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 224 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 236 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 248 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 259 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 261 EXPECT_EQ(0x1acU, elf.interface()->gnu_debugdata_offset()); in TEST_F() 262 EXPECT_EQ(0x8cU, elf.interface()->gnu_debugdata_size()); in TEST_F() 273 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() [all …]
|
/system/netd/server/ |
D | PhysicalNetwork.cpp | 30 [[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() 89 void PhysicalNetwork::invalidateRouteCache(const std::string& interface) { in invalidateRouteCache() argument 100 (void)RouteController::addRoute(interface.c_str(), dst, "throw", RouteController::INTERFACE, in invalidateRouteCache() [all …]
|
D | VirtualNetwork.cpp | 40 for (const std::string& interface : mInterfaces) { in addUsers() local 41 int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addUsers() 45 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId); in addUsers() 56 for (const std::string& interface : mInterfaces) { in removeUsers() local 57 int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), mSecure, in removeUsers() 61 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId); in removeUsers() 69 int VirtualNetwork::addInterface(const std::string& interface) { in addInterface() argument 70 if (hasInterface(interface)) { in addInterface() 74 mNetId, interface.c_str(), mSecure, mUidRangeMap, mExcludeLocalRoutes)) { in addInterface() 75 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId); in addInterface() [all …]
|
D | LocalNetwork.cpp | 34 int LocalNetwork::addInterface(const std::string& interface) { in addInterface() argument 35 if (hasInterface(interface)) { in addInterface() 38 if (int ret = RouteController::addInterfaceToLocalNetwork(mNetId, interface.c_str())) { in addInterface() 39 ALOGE("failed to add interface %s to local netId %u", interface.c_str(), mNetId); in addInterface() 42 mInterfaces.insert(interface); in addInterface() 46 int LocalNetwork::removeInterface(const std::string& interface) { in removeInterface() argument 47 if (!hasInterface(interface)) { in removeInterface() 50 if (int ret = RouteController::removeInterfaceFromLocalNetwork(mNetId, interface.c_str())) { in removeInterface() 51 ALOGE("failed to remove interface %s from local netId %u", interface.c_str(), mNetId); in removeInterface() 54 mInterfaces.erase(interface); in removeInterface()
|
D | RouteController.h | 117 static uint32_t getIfIndex(const char* interface) EXCLUDES(sInterfaceToTableLock); 119 [[nodiscard]] static int addInterfaceToLocalNetwork(unsigned netId, const char* interface); 120 [[nodiscard]] static int removeInterfaceFromLocalNetwork(unsigned netId, const char* interface); 122 [[nodiscard]] static int addInterfaceToPhysicalNetwork(unsigned netId, const char* interface, 127 const char* interface, 132 [[nodiscard]] static int addInterfaceToVirtualNetwork(unsigned netId, const char* interface, 137 const char* interface, bool secure, 141 [[nodiscard]] static int modifyPhysicalNetworkPermission(unsigned netId, const char* interface, 145 [[nodiscard]] static int addUsersToVirtualNetwork(unsigned netId, const char* interface, 148 [[nodiscard]] static int removeUsersFromVirtualNetwork(unsigned netId, const char* interface, [all …]
|
D | RouteController.cpp | 135 static void maybeModifyQdiscClsact(const char* interface, bool add); 146 uint32_t RouteController::getRouteTableForInterfaceLocked(const char* interface, bool local) { in getRouteTableForInterfaceLocked() argument 159 auto iter = sInterfaceToTable.find(interface); in getRouteTableForInterfaceLocked() 164 uint32_t index = RouteController::ifNameToIndexFunction(interface); in getRouteTableForInterfaceLocked() 166 ALOGE("cannot find interface %s: %s", interface, strerror(errno)); in getRouteTableForInterfaceLocked() 170 sInterfaceToTable[interface] = index; in getRouteTableForInterfaceLocked() 174 uint32_t RouteController::getIfIndex(const char* interface) { in getIfIndex() argument 177 auto iter = sInterfaceToTable.find(interface); in getIfIndex() 179 ALOGE("getIfIndex: cannot find interface %s", interface); in getIfIndex() 196 uint32_t RouteController::getRouteTableForInterface(const char* interface, bool local) { in getRouteTableForInterface() argument [all …]
|
D | InterfaceController.cpp | 146 const char *family, const char *which, const char *interface, const char *parameter) { in getParameterPathname() argument 151 !isInterfaceName(interface) || in getParameterPathname() 157 return StringPrintf("%s/%s/%s/%s/%s", proc_net_path, family, which, interface, parameter); in getParameterPathname() 263 int InterfaceController::setEnableIPv6(const char *interface, const int on) { in setEnableIPv6() argument 264 if (!isIfaceName(interface)) { in setEnableIPv6() 271 return writeValueToPath(ipv6_proc_path, interface, "disable_ipv6", disable_ipv6); in setEnableIPv6() 276 Status InterfaceController::setIPv6AddrGenMode(const std::string& interface, int mode) { in setIPv6AddrGenMode() argument 277 if (!isIfaceName(interface)) { in setIPv6AddrGenMode() 278 return statusFromErrno(ENOENT, "invalid iface name: " + interface); in setIPv6AddrGenMode() 285 writeValueToPath(ipv6_proc_path, interface.c_str(), "addr_gen_mode", "0"); in setIPv6AddrGenMode() [all …]
|
/system/core/fastboot/ |
D | usb_osx.cpp | 64 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/libvintf/ |
D | utils.cpp | 25 const std::string& package, const Version& version, const std::string& interface, in convertLegacyInstanceIntoFqInstance() argument 31 ss << toAidlFqnameString(package, interface, instance) << " (@" << version.minorVer << ")"; in convertLegacyInstanceIntoFqInstance() 33 ss << toFQNameString(package, version, interface, instance); in convertLegacyInstanceIntoFqInstance() 49 if (!fqName.setTo(interface) || !fqName.isInterfaceName()) { in convertLegacyInstanceIntoFqInstance() 50 ss << "Interface '" << interface << "' should have the format I[a-zA-Z0-9_]*"; in convertLegacyInstanceIntoFqInstance() 55 if (!interface.empty() && (!fqName.setTo(interface) || !fqName.isInterfaceName())) { in convertLegacyInstanceIntoFqInstance() 56 ss << "Interface '" << interface << "' should have the format I[a-zA-Z0-9_]*"; in convertLegacyInstanceIntoFqInstance() 74 parsed = FqInstance::from(version.majorVer, version.minorVer, interface, instance); in convertLegacyInstanceIntoFqInstance() 78 parsed = FqInstance::from(interface, instance); in convertLegacyInstanceIntoFqInstance() 84 ? toAidlFqnameString(package, interface, instance) in convertLegacyInstanceIntoFqInstance() [all …]
|
D | MatrixHal.cpp | 40 [&](const auto& interface, const auto& instance, bool /*isRegex*/) { in isValid() argument 41 if (!convertLegacyInstanceIntoFqInstance(getName(), v, interface, instance, in isValid() 88 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument 91 if (fqInstance.setTo(getName(), vr.majorVer, vr.minMinor, interface, instance)) { in forEachInstance() 111 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument 112 return func(this->versionRanges, interface, instance, isRegex); in forEachInstance() 176 void MatrixHal::insertInstance(const std::string& interface, const std::string& instance, in insertInstance() argument 178 auto it = interfaces.find(interface); in insertInstance() 180 it = interfaces.emplace(interface, HalInterface{interface, {}}).first; in insertInstance() 193 bool MatrixHal::removeInstance(const std::string& interface, const std::string& instance, in removeInstance() argument [all …]
|
/system/tools/aidl/ |
D | generate_cpp.cpp | 169 const AidlInterface& interface, const AidlMethod& method, in GenerateClientTransaction() argument 171 const string i_name = ClassName(interface, ClassNames::INTERFACE); in GenerateClientTransaction() 172 const string bp_name = GetQualifiedName(interface, ClassNames::CLIENT); in GenerateClientTransaction() 173 const string bn_name = GetQualifiedName(interface, ClassNames::SERVER); in GenerateClientTransaction() 181 if (interface.IsSensitiveData()) { in GenerateClientTransaction() 197 kTraceVarName, interface.GetName().c_str(), method.GetName().c_str()); in GenerateClientTransaction() 240 if (interface.IsSensitiveData()) flags.push_back("::android::IBinder::FLAG_CLEAR_BUF"); in GenerateClientTransaction() 313 out << GenLogAfterExecute(bp_name, interface, method, kStatusVarName, kReturnVarName, in GenerateClientTransaction() 322 void GenerateClientMetaTransaction(CodeWriter& out, const AidlInterface& interface, in GenerateClientMetaTransaction() argument 325 const string bp_name = GetQualifiedName(interface, ClassNames::CLIENT); in GenerateClientMetaTransaction() [all …]
|
D | generate_cpp_unittest.cpp | 89 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local 90 ASSERT_NE(interface, nullptr); in TEST_F() 91 ASSERT_TRUE(GenerateCpp(options_.OutputFile(), options_, typenames_, *interface, io_delegate_)); in TEST_F() 96 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local 97 ASSERT_NE(interface, nullptr); in TEST_F() 104 ASSERT_DEATH(GenerateCpp(options_.OutputFile(), options_, typenames_, *interface, io_delegate_), in TEST_F() 112 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local 113 ASSERT_NE(interface, nullptr); in TEST_F() 117 ASSERT_DEATH(GenerateCpp(options_.OutputFile(), options_, typenames_, *interface, io_delegate_), in TEST_F()
|
D | generate_aidl_mappings.cpp | 31 const AidlInterface* interface = defined_type->AsInterface(); in generate_mappings() local 33 if (interface == nullptr) { in generate_mappings() 36 for (const auto& method : interface->GetMethods()) { in generate_mappings() 39 signature << interface->GetCanonicalName() << "|"; in generate_mappings()
|
/system/unwinding/libunwindstack/tools/ |
D | unwind_info.cpp | 43 void DumpArm(Elf* elf, ElfInterfaceArm* interface) { in DumpArm() argument 44 if (interface == nullptr) { in DumpArm() 51 for (const auto& entry : interface->pt_loads()) { in DumpArm() 54 for (auto pc : *interface) { in DumpArm() 63 if (!interface->FindEntry(pc, &entry)) { in DumpArm() 67 ArmExidx arm(nullptr, interface->memory().get(), 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/libhidl/transport/ |
D | HidlTransportUtils.cpp | 27 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/hwservicemanager/ |
D | TokenManager.cpp | 66 TokenInterface interface = generateToken(store); in createToken() local 68 if (interface.interface == nullptr) { in createToken() 73 uint64_t id = getTokenId(interface.token); in createToken() 75 if (id != interface.id) { in createToken() 86 mMap[id] = interface; in createToken() 89 hidl_cb(interface.token); in createToken() 107 const TokenInterface &interface = it->second; in lookupToken() local 109 if (!constantTimeCompare(token, interface.token)) { in lookupToken() 137 return it->second.interface; in get() 141 TokenManager::TokenInterface TokenManager::generateToken(const sp<IBase> &interface) { in generateToken() argument [all …]
|
/system/tools/hidl/hidl2aidl/ |
D | AidlInterface.cpp | 65 const Interface& interface) { in getUserDefinedMethods() argument 67 for (const Interface* iface : interface.typeChain()) { in getUserDefinedMethods() 68 if (!AidlHelper::shouldBeExpanded(interface.fqName(), iface->fqName()) && in getUserDefinedMethods() 174 const Interface& interface, Formatter& out, in emitAidl() argument 176 interface.emitDocComment(out); in emitAidl() 177 if (interface.superType() && interface.superType()->fqName() != gIBaseFqName) { in emitAidl() 178 out << "// Interface inherits from " << interface.superType()->fqName().string() in emitAidl() 183 out << "interface " << getAidlName(interface.fqName()) << " "; in emitAidl() 189 for (const Interface* iface : interface.typeChain()) { in emitAidl() 190 if (!AidlHelper::shouldBeExpanded(interface.fqName(), iface->fqName())) { in emitAidl() [all …]
|
/system/core/libnetutils/ |
D | dhcptool.c | 32 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/libhidl/transport/base/1.0/ |
D | IBase.hal | 22 * 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/tools/hidl/test/lazy_test/ |
D | hidl_lazy_test_server.rc | 2 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/tools/aidl/tests/golden_output/frozen/aidl-test-versioned-interface-V1-ndk-source/gen/android/aidl/versioned/tests/ |
D | IFooInterface.cpp.d | 1 out/soong/.intermediates/system/tools/aidl/aidl-test-versioned-interface-V1-ndk-source/gen/android/… 2 …system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/IFooInterf… 3 …system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/BazUnion.a… 4 system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/Foo.aidl
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-versioned-interface-V3-java-source/gen/android/aidl/versioned/tests/ |
D | IFooInterface.java.d | 1 out/soong/.intermediates/system/tools/aidl/aidl-test-versioned-interface-V3-java-source/gen/android… 2 …system/tools/aidl/aidl_api/aidl-test-versioned-interface/3/android/aidl/versioned/tests/IFooInterf… 3 …system/tools/aidl/aidl_api/aidl-test-versioned-interface/3/android/aidl/versioned/tests/BazUnion.a… 4 system/tools/aidl/aidl_api/aidl-test-versioned-interface/3/android/aidl/versioned/tests/Foo.aidl
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-versioned-interface-V1-cpp-source/gen/android/aidl/versioned/tests/ |
D | IFooInterface.cpp.d | 1 out/soong/.intermediates/system/tools/aidl/aidl-test-versioned-interface-V1-cpp-source/gen/android/… 2 …system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/IFooInterf… 3 …system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/BazUnion.a… 4 system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/Foo.aidl
|
/system/tools/aidl/tests/golden_output/aidl-test-versioned-interface-V1-rust-source/gen/android/aidl/versioned/tests/ |
D | IFooInterface.rs.d | 1 out/soong/.intermediates/system/tools/aidl/aidl-test-versioned-interface-V1-rust-source/gen/android… 2 …system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/IFooInterf… 3 …system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/BazUnion.a… 4 system/tools/aidl/aidl_api/aidl-test-versioned-interface/1/android/aidl/versioned/tests/Foo.aidl
|