Home
last modified time | relevance | path

Searched refs:service_name (Results 1 – 25 of 38) sorted by relevance

12

/system/core/libbinderwrapper/
Dstub_binder_wrapper.cc31 void StubBinderWrapper::SetBinderForService(const std::string& service_name, in SetBinderForService() argument
33 services_to_return_[service_name] = binder; in SetBinderForService()
37 const std::string& service_name) const { in GetRegisteredService()
38 const auto it = registered_services_.find(service_name); in GetRegisteredService()
48 sp<IBinder> StubBinderWrapper::GetService(const std::string& service_name) { in GetService() argument
49 const auto it = services_to_return_.find(service_name); in GetService()
53 bool StubBinderWrapper::RegisterService(const std::string& service_name, in RegisterService() argument
55 registered_services_[service_name] = binder; in RegisterService()
Dreal_binder_wrapper.cc52 sp<IBinder> RealBinderWrapper::GetService(const std::string& service_name) { in GetService() argument
59 service_manager->checkService(String16(service_name.c_str())); in GetService()
61 LOG(ERROR) << "Unable to get \"" << service_name << "\" service"; in GetService()
65 bool RealBinderWrapper::RegisterService(const std::string& service_name, in RegisterService() argument
73 String16(service_name.c_str()), binder); in RegisterService()
75 LOG(ERROR) << "Failed to register \"" << service_name << "\" with service " in RegisterService()
Dreal_binder_wrapper.h36 sp<IBinder> GetService(const std::string& service_name) override;
37 bool RegisterService(const std::string& service_name,
/system/core/adb/client/
Dtransport_mdns.cpp324 const std::string& service_name);
370 auto service_name = service->serviceName(); in forEachService() local
376 cb(service_name.c_str(), reg_type.c_str(), ip.c_str(), port); in forEachService()
377 } else if (service_name == wanted_service_name) { in forEachService()
378 cb(service_name.c_str(), reg_type.c_str(), ip.c_str(), port); in forEachService()
385 const std::string& service_name) { in connectByServiceName() argument
388 if (service_name == service->serviceName()) { in connectByServiceName()
393 D("No registered serviceNames matched [%s]", service_name.c_str()); in connectByServiceName()
428 void adb_secure_foreach_pairing_service(const char* service_name, in adb_secure_foreach_pairing_service() argument
430 ResolvedService::forEachService(*ResolvedService::sAdbSecurePairingServices, service_name, cb); in adb_secure_foreach_pairing_service()
[all …]
Dmdns_utils_test.cpp30 EXPECT_TRUE(res->service_name.empty()); in TEST()
38 EXPECT_TRUE(res->service_name.empty()); in TEST()
46 EXPECT_TRUE(res->service_name.empty()); in TEST()
82 EXPECT_EQ(res->service_name, "service"); in TEST()
90 EXPECT_EQ(res->service_name, "service"); in TEST()
98 EXPECT_EQ(res->service_name, "service"); in TEST()
106 EXPECT_EQ(res->service_name, "service"); in TEST()
146 EXPECT_EQ(res->service_name, "service"); in TEST()
155 EXPECT_EQ(res->service_name, "service"); in TEST()
Dadb_client.h94 std::function<void(const char* _Nonnull service_name, const char* _Nonnull reg_type,
100 void adb_secure_foreach_pairing_service(const char* _Nullable service_name,
102 void adb_secure_foreach_connect_service(const char* _Nullable service_name,
106 bool adb_secure_connect_by_service_name(const char* _Nonnull service_name);
Dmdns_utils.h28 std::string service_name; // "_adb-tls-connect" member
32 : instance_name(inst), service_name(serv), transport_type(trans) {} in MdnsInstance()
/system/core/libbinderwrapper/include/binderwrapper/
Dstub_binder_wrapper.h85 void SetBinderForService(const std::string& service_name,
90 sp<IBinder> GetRegisteredService(const std::string& service_name) const;
96 sp<IBinder> GetService(const std::string& service_name) override;
97 bool RegisterService(const std::string& service_name,
Dbinder_wrapper.h60 virtual sp<IBinder> GetService(const std::string& service_name) = 0;
63 virtual bool RegisterService(const std::string& service_name,
/system/core/adb/daemon/
Dmdns.cpp65 static void register_mdns_service(int index, int port, const std::string service_name) { in register_mdns_service() argument
97 &mdns_refs[index], 0, 0, service_name.c_str(), kADBDNSServices[index], nullptr, nullptr, in register_mdns_service()
203 auto service_name = ReadDeviceGuid(); in register_adb_secure_connect_service() local
204 if (service_name.empty()) { in register_adb_secure_connect_service()
207 LOG(INFO) << "Registering secure_connect service (" << service_name << ")"; in register_adb_secure_connect_service()
208 register_mdns_service(kADBSecureConnectServiceRefIndex, port, service_name); in register_adb_secure_connect_service()
/system/core/init/test_kill_services/
Dinit_kill_services_test.cpp26 void ExpectKillingServiceRecovers(const std::string& service_name) { in ExpectKillingServiceRecovers() argument
27 const std::string status_prop = "init.svc." + service_name; in ExpectKillingServiceRecovers()
28 const std::string pid_prop = "init.svc_debug_pid." + service_name; in ExpectKillingServiceRecovers()
/system/bt/btif/src/
Dbtif_sdp_server.cc157 if (in_record->hdr.service_name == NULL || in copy_sdp_records()
159 out_record->hdr.service_name = NULL; in copy_sdp_records()
162 out_record->hdr.service_name = free_ptr; // Update service_name pointer in copy_sdp_records()
164 memcpy(free_ptr, in_record->hdr.service_name, in copy_sdp_records()
387 rec->hdr.l2cap_psm, rec->hdr.service_name); in add_maps_sdp()
416 (uint8_t*)rec->hdr.service_name); in add_maps_sdp()
474 rec->hdr.service_name); in add_mapc_sdp()
503 (uint8_t*)rec->hdr.service_name); in add_mapc_sdp()
546 APPL_TRACE_DEBUG("%s(): service name %s", __func__, rec->hdr.service_name); in add_pbapc_sdp()
559 (uint8_t*)rec->hdr.service_name); in add_pbapc_sdp()
[all …]
Dbtif_sock.cc45 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name,
130 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name, in btsock_listen() argument
148 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, in btsock_listen()
153 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen()
170 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen()
/system/memory/libmemunreachable/tests/
DBinder_test.cpp34 static const String16 service_name("test.libmemunreachable_binder"); variable
106 if (sm->addService(service_name, new BinderService()) != OK) { in Service()
141 sp<IBinder> service = sm->getService(service_name); in TEST_F()
/system/bt/bta/sdp/
Dbta_sdp_act.cc58 record->mns.hdr.service_name = NULL; in bta_create_mns_sdp_record()
73 record->mns.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_mns_sdp_record()
99 record->mas.hdr.service_name = NULL; in bta_create_mas_sdp_record()
126 record->mas.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_mas_sdp_record()
152 record->pse.hdr.service_name = NULL; in bta_create_pse_sdp_record()
172 record->pse.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_pse_sdp_record()
198 record->ops.hdr.service_name = NULL; in bta_create_ops_sdp_record()
208 record->ops.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_ops_sdp_record()
283 record->sap.hdr.service_name = NULL; in bta_create_sap_sdp_record()
292 record->sap.hdr.service_name = (char*)p_attr->attr_value.v.array; in bta_create_sap_sdp_record()
[all …]
/system/core/adb/
Dadb_wifi.h35 std::string service_name; member
41 : service_name(name), service_type(type), addr(addr), port(port) {} in MdnsInfo()
Dservices.cpp46 void service_bootstrap_func(std::string service_name, std::function<void(unique_fd)> func, in service_bootstrap_func() argument
48 adb_thread_setname(android::base::StringPrintf("%s svc %d", service_name.c_str(), fd.get())); in service_bootstrap_func()
54 unique_fd create_service_thread(const char* service_name, std::function<void(unique_fd)> func) { in create_service_thread() argument
63 if (strcmp(service_name, "sync") == 0) { in create_service_thread()
71 std::thread(service_bootstrap_func, service_name, func, unique_fd(s[1])).detach(); in create_service_thread()
Dservices.h31 unique_fd create_service_thread(const char* service_name, std::function<void(unique_fd)> func);
/system/bt/include/hardware/
Dbt_sdp.h42 char* service_name; member
56 char* service_name; member
Dbt_sock.h64 bt_status_t (*listen)(btsock_type_t type, const char* service_name,
/system/core/trusty/storage/proxy/
Dipc.h21 int ipc_connect(const char *device, const char *service_name);
/system/connectivity/wificond/tests/integration/
Dprocess_utils.cpp106 bool IsBinderServiceRegistered(const char* service_name) { in IsBinderServiceRegistered() argument
108 defaultServiceManager()->checkService(String16(service_name)); in IsBinderServiceRegistered()
/system/nfc/src/nfa/include/
Dnfa_snep_int.h68 char service_name[LLCP_MAX_SN_LEN + 1]; member
88 char service_name[LLCP_MAX_SN_LEN + 1]; member
Dnfa_p2p_int.h70 char service_name[LLCP_MAX_SN_LEN + 1]; member
112 char service_name[LLCP_MAX_SN_LEN + 1]; member
150 char service_name[LLCP_MAX_SN_LEN + 1]; member
/system/bt/bta/ar/
Dbta_ar.cc220 void bta_ar_reg_avrc(uint16_t service_uuid, const char* service_name, in bta_ar_reg_avrc() argument
233 AVRC_AddRecord(service_uuid, service_name, provider_name, categories, in bta_ar_reg_avrc()
246 AVRC_AddRecord(service_uuid, service_name, provider_name, categories, in bta_ar_reg_avrc()

12