Home
last modified time | relevance | path

Searched refs:service_name (Results 1 – 25 of 29) 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/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/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.cc44 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name,
132 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name, in btsock_listen() argument
150 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, in btsock_listen()
155 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen()
172 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen()
Dbtif_sock_rfc.cc90 char service_name[256]; member
230 strlcpy(slot->service_name, name, sizeof(slot->service_name)); in alloc_rfc_slot()
232 memset(slot->service_name, 0, sizeof(slot->service_name)); in alloc_rfc_slot()
251 addr, srv_rs->service_name, srv_rs->service_uuid, srv_rs->scn, 0, false); in create_srv_accept_rfc_slot()
279 bt_status_t btsock_rfc_listen(const char* service_name, in btsock_rfc_listen() argument
315 alloc_rfc_slot(NULL, service_name, *service_uuid, channel, flags, true); in btsock_rfc_listen()
321 service_name, channel); in btsock_rfc_listen()
404 add_rfc_sdp_rec(slot->service_name, slot->service_uuid, slot->scn); in create_server_sdp_record()
/system/core/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/
Dservices.cpp44 void service_bootstrap_func(std::string service_name, std::function<void(unique_fd)> func, in service_bootstrap_func() argument
46 adb_thread_setname(android::base::StringPrintf("%s svc %d", service_name.c_str(), fd.get())); in service_bootstrap_func()
52 unique_fd create_service_thread(const char* service_name, std::function<void(unique_fd)> func) { in create_service_thread() argument
61 if (strcmp(service_name, "sync") == 0) { in create_service_thread()
69 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()
Dprocess_utils.h80 bool IsBinderServiceRegistered(const char* service_name);
/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
Dnfa_snep_api.h77 char service_name[LLCP_MAX_SN_LEN + 1]; /* only for server */ 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()
/system/nfc/src/nfa/p2p/
Dnfa_p2p_act.cc621 p_msg->api_reg_server.service_name, nfa_p2p_llcp_cback); in nfa_p2p_reg_server()
626 strncpy(evt_data.reg_server.service_name, in nfa_p2p_reg_server()
627 p_msg->api_reg_server.service_name, LLCP_MAX_SN_LEN); in nfa_p2p_reg_server()
628 evt_data.reg_server.service_name[LLCP_MAX_SN_LEN] = 0; in nfa_p2p_reg_server()
647 strncpy(evt_data.reg_server.service_name, p_msg->api_reg_server.service_name, in nfa_p2p_reg_server()
649 evt_data.reg_server.service_name[LLCP_MAX_SN_LEN] = 0; in nfa_p2p_reg_server()
906 strncpy(conn_params.sn, p_msg->api_connect.service_name, LLCP_MAX_SN_LEN); in nfa_p2p_create_data_link_connection()
1087 if (!nfa_p2p_start_sdp(p_msg->api_remote_sap.service_name, local_sap)) { in nfa_p2p_get_remote_sap()
Dnfa_p2p_api.cc92 strncpy(p_msg->service_name, p_service_name, LLCP_MAX_SN_LEN); in NFA_P2pRegisterServer()
93 p_msg->service_name[LLCP_MAX_SN_LEN] = 0; in NFA_P2pRegisterServer()
388 strncpy(p_msg->service_name, p_service_name, LLCP_MAX_SN_LEN); in NFA_P2pConnectByName()
389 p_msg->service_name[LLCP_MAX_SN_LEN] = 0; in NFA_P2pConnectByName()
445 p_msg->service_name[LLCP_MAX_SN_LEN] = 0; in NFA_P2pConnectBySap()
927 strncpy(p_msg->service_name, p_service_name, LLCP_MAX_SN_LEN); in NFA_P2pGetRemoteSap()
928 p_msg->service_name[LLCP_MAX_SN_LEN] = 0; in NFA_P2pGetRemoteSap()
/system/libhwbinder/vts/performance/
DLatency.cpp160 static Pipe makeServiceProces(string service_name) { in makeServiceProces() argument
169 serviceFx(service_name, move(get<1>(pipe_pair))); in makeServiceProces()
DBenchmark_throughput.cpp258 Pipe make_service(string service_name) { in make_service() argument
266 service_fx(service_name, move(get<1>(pipe_pair))); in make_service()

12