/system/unwinding/libunwindstack/tests/ |
D | ElfInterfaceArmTest.cpp | 45 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 …]
|
D | ElfTest.cpp | 130 ASSERT_TRUE(elf.interface() == nullptr); in TEST_F() 201 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 213 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 225 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 237 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 249 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 261 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 272 ASSERT_TRUE(elf.interface() != nullptr); in TEST_F() 274 EXPECT_EQ(0x1acU, elf.interface()->gnu_debugdata_offset()); in TEST_F() 275 EXPECT_EQ(0x8cU, elf.interface()->gnu_debugdata_size()); 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() 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 …]
|
D | VirtualNetwork.cpp | 39 for (const std::string& interface : mInterfaces) { in addUsers() local 40 int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addUsers() 43 ALOGE("failed to add users on interface %s of netId %u", interface.c_str(), mNetId); in addUsers() 54 for (const std::string& interface : mInterfaces) { in removeUsers() local 55 int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), mSecure, in removeUsers() 58 ALOGE("failed to remove users on interface %s of netId %u", interface.c_str(), mNetId); in removeUsers() 66 int VirtualNetwork::addInterface(const std::string& interface) { in addInterface() argument 67 if (hasInterface(interface)) { in addInterface() 70 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, in addInterface() 72 ALOGE("failed to add interface %s to VPN netId %u", interface.c_str(), mNetId); in addInterface() [all …]
|
D | RouteController.h | 104 static uint32_t getIfIndex(const char* interface) EXCLUDES(sInterfaceToTableLock); 106 [[nodiscard]] static int addInterfaceToLocalNetwork(unsigned netId, const char* interface); 107 [[nodiscard]] static int removeInterfaceFromLocalNetwork(unsigned netId, const char* interface); 109 [[nodiscard]] static int addInterfaceToPhysicalNetwork(unsigned netId, const char* interface, 113 const char* interface, 117 [[nodiscard]] static int addInterfaceToVirtualNetwork(unsigned netId, const char* interface, 121 const char* interface, bool secure, 124 [[nodiscard]] static int modifyPhysicalNetworkPermission(unsigned netId, const char* interface, 128 [[nodiscard]] static int addUsersToVirtualNetwork(unsigned netId, const char* interface, 130 [[nodiscard]] static int removeUsersFromVirtualNetwork(unsigned netId, const char* interface, [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.cpp | 132 static void maybeModifyQdiscClsact(const char* interface, bool add); 135 uint32_t RouteController::getRouteTableForInterfaceLocked(const char* interface) { in getRouteTableForInterfaceLocked() argument 145 auto iter = sInterfaceToTable.find(interface); in getRouteTableForInterfaceLocked() 150 uint32_t index = if_nametoindex(interface); in getRouteTableForInterfaceLocked() 152 ALOGE("cannot find interface %s: %s", interface, strerror(errno)); in getRouteTableForInterfaceLocked() 156 sInterfaceToTable[interface] = index; in getRouteTableForInterfaceLocked() 160 uint32_t RouteController::getIfIndex(const char* interface) { in getIfIndex() argument 163 auto iter = sInterfaceToTable.find(interface); in getIfIndex() 165 ALOGE("getIfIndex: cannot find interface %s", interface); in getIfIndex() 182 uint32_t RouteController::getRouteTableForInterface(const char* interface) { in getRouteTableForInterface() argument [all …]
|
D | InterfaceController.cpp | 148 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 …]
|
D | NetworkController.h | 105 unsigned getNetworkForInterface(const char* interface) const; 113 [[nodiscard]] int addInterfaceToNetwork(unsigned netId, const char* interface); 114 [[nodiscard]] int removeInterfaceFromNetwork(unsigned netId, const char* interface); 132 [[nodiscard]] int addRoute(unsigned netId, const char* interface, const char* destination, 134 [[nodiscard]] int updateRoute(unsigned netId, const char* interface, const char* destination, 136 [[nodiscard]] int removeRoute(unsigned netId, const char* interface, const char* destination, 160 unsigned getNetworkForInterfaceLocked(const char* interface) const; 169 [[nodiscard]] int modifyRoute(unsigned netId, const char* interface, const char* destination,
|
/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/bt/profile/avrcp/tests/ |
D | avrcp_device_test.cc | 52 const stack_config_t interface = { variable 123 MockMediaInterface interface; in TEST_F() local 126 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr); in TEST_F() 140 EXPECT_CALL(interface, GetNowPlayingList(_)) in TEST_F() 168 MockMediaInterface interface; in TEST_F() local 171 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr); in TEST_F() 176 EXPECT_CALL(interface, GetPlayStatus(_)) in TEST_F() 210 MockMediaInterface interface; in TEST_F() local 213 test_device->RegisterInterfaces(&interface, &a2dp_interface, nullptr); in TEST_F() 220 EXPECT_CALL(interface, GetPlayStatus(_)) in TEST_F() [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/unwinding/libunwindstack/tools/ |
D | unwind_info.cpp | 41 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/libvintf/ |
D | utils.cpp | 25 const std::string& interface, const std::string& instance, in canConvertToFqInstance() argument 27 if (FqInstance::from(package, version.majorVer, version.minorVer, interface, instance) in canConvertToFqInstance() 39 ss << toAidlFqnameString(package, interface, instance) << " (@" << version.minorVer << ")"; in canConvertToFqInstance() 41 ss << toFQNameString(package, version, interface, instance); in canConvertToFqInstance() 53 std::optional<FqInstance> convertedInterface = FqInstance::from(interface); in canConvertToFqInstance() 55 ss << "Interface '" << interface << "' should have the format I[a-zA-Z0-9_]*"; in canConvertToFqInstance()
|
D | MatrixHal.cpp | 39 intf.forEachInstance([&](const auto& interface, const auto& instance, in isValid() 41 if (!canConvertToFqInstance(getName(), v, interface, instance, format, error)) { in isValid() 86 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument 89 if (fqInstance.setTo(getName(), vr.majorVer, vr.minMinor, interface, instance)) { in forEachInstance() 109 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument 110 return func(this->versionRanges, interface, instance, isRegex); in forEachInstance() 174 void MatrixHal::insertInstance(const std::string& interface, const std::string& instance, in insertInstance() argument 176 auto it = interfaces.find(interface); in insertInstance() 178 it = interfaces.emplace(interface, HalInterface{interface, {}}).first; in insertInstance() 191 bool MatrixHal::removeInstance(const std::string& interface, const std::string& instance, in removeInstance() argument [all …]
|
/system/hwservicemanager/ |
D | TokenManager.cpp | 58 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/bt/btcore/src/ |
D | hal_util.cc | 35 int hal_util_load_bt_library(const bt_interface_t** interface) { in hal_util_load_bt_library() argument 60 *interface = itf; in hal_util_load_bt_library() 64 *interface = NULL; in hal_util_load_bt_library() 72 int hal_util_load_bt_library(const bt_interface_t** interface) { in hal_util_load_bt_library() argument 73 *interface = &bluetoothInterface; in hal_util_load_bt_library()
|
/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/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, const Coordinator& coordinator, in emitAidl() argument 176 Formatter out = getFileWithHeader(interface, coordinator, processedTypes); in emitAidl() 178 interface.emitDocComment(out); in emitAidl() 179 if (interface.superType() && interface.superType()->fqName() != gIBaseFqName) { in emitAidl() 180 out << "// Interface inherits from " << interface.superType()->fqName().string() in emitAidl() 185 out << "interface " << getAidlName(interface.fqName()) << " "; in emitAidl() 191 for (const Interface* iface : interface.typeChain()) { in emitAidl() [all …]
|
/system/tools/aidl/ |
D | generate_cpp.cpp | 231 const AidlInterface& interface, in DefineClientTransaction() argument 233 const string i_name = ClassName(interface, ClassNames::INTERFACE); in DefineClientTransaction() 234 const string bp_name = ClassName(interface, ClassNames::CLIENT); in DefineClientTransaction() 245 if (interface.IsSensitiveData()) { in DefineClientTransaction() 263 kTraceVarName, interface.GetName().c_str(), method.GetName().c_str())); in DefineClientTransaction() 304 string transaction_code = GetTransactionIdFor(interface, method); in DefineClientTransaction() 311 if (interface.IsSensitiveData()) flags.push_back("::android::IBinder::FLAG_CLEAR_BUF"); in DefineClientTransaction() 396 b->AddLiteral(GenLogAfterExecute(bp_name, interface, method, kStatusVarName, kReturnVarName, in DefineClientTransaction() 407 const AidlInterface& interface, in DefineClientMetaTransaction() argument 412 const string iface = ClassName(interface, ClassNames::INTERFACE); in DefineClientMetaTransaction() [all …]
|
D | generate_cpp_unittest.cpp | 119 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local 120 ASSERT_NE(interface, nullptr); in TEST_F() 121 ASSERT_TRUE(GenerateCpp(options_.OutputFile(), options_, typenames_, *interface, io_delegate_)); in TEST_F() 126 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local 127 ASSERT_NE(interface, nullptr); in TEST_F() 134 ASSERT_FALSE(GenerateCpp(options_.OutputFile(), options_, typenames_, *interface, io_delegate_)); in TEST_F() 143 AidlInterface* interface = ParseSingleInterface(); in TEST_F() local 144 ASSERT_NE(interface, nullptr); in TEST_F() 148 ASSERT_FALSE(GenerateCpp(options_.OutputFile(), options_, typenames_, *interface, io_delegate_)); in TEST_F()
|
D | generate_aidl_mappings.cpp | 32 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/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/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/chre/host/hal_generic/V1_2/ |
D | android.hardware.contexthub@1.2-service-small_fragments.rc | 2 interface android.hardware.contexthub@1.0::IContexthub default 3 interface android.hardware.contexthub@1.1::IContexthub default 4 interface android.hardware.contexthub@1.2::IContexthub default
|