Home
last modified time | relevance | path

Searched refs:service (Results 1 – 25 of 715) sorted by relevance

12345678910>>...29

/system/bt/bta/test/gatt/
Ddatabase_builder_test.cc63 auto service = result.Services().begin(); in TEST() local
64 EXPECT_EQ(service->handle, 0x0001); in TEST()
65 EXPECT_EQ(service->end_handle, 0x0001); in TEST()
66 EXPECT_EQ(service->is_primary, true); in TEST()
67 EXPECT_EQ(service->uuid, SERVICE_1_UUID); in TEST()
84 auto service = result.Services().begin(); in TEST() local
85 EXPECT_EQ(service->handle, 0x0001); in TEST()
86 EXPECT_EQ(service->end_handle, 0x000f); in TEST()
87 EXPECT_EQ(service->is_primary, true); in TEST()
88 EXPECT_EQ(service->uuid, SERVICE_1_UUID); in TEST()
[all …]
Ddatabase_builder_sample_device_test.cc227 auto service = result.Services().begin(); in TEST() local
228 EXPECT_EQ(service->handle, 0x0001); in TEST()
229 EXPECT_EQ(service->uuid, SERVICE_1_UUID); in TEST()
231 EXPECT_EQ(service->characteristics[0].uuid, SERVICE_1_CHAR_1_UUID); in TEST()
232 EXPECT_EQ(service->characteristics[1].uuid, SERVICE_1_CHAR_2_UUID); in TEST()
233 EXPECT_EQ(service->characteristics[2].uuid, SERVICE_1_CHAR_3_UUID); in TEST()
235 service++; in TEST()
236 EXPECT_EQ(service->uuid, SERVICE_2_UUID); in TEST()
238 service++; in TEST()
239 EXPECT_EQ(service->uuid, SERVICE_3_UUID); in TEST()
[all …]
/system/hwservicemanager/
Dtest_lazy.cpp63 auto service = std::make_unique<NiceMock<MockHidlService>>(); in makeService() local
64 ON_CALL(*service, getNodeStrongRefCount()).WillByDefault(Invoke([&]() { in makeService()
68 return service; in makeService()
85 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
86 service->addClientCallback(cb, 1 /*knownClients*/); in TEST_F()
91 service->handleClientCallbacks(true /*onInterval*/, 1 /*knownClients*/); in TEST_F()
100 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
101 service->addClientCallback(cb, 2 /*knownClients*/); in TEST_F()
106 service->handleClientCallbacks(true /*onInterval*/, 2 /*knownClients*/); in TEST_F()
115 std::unique_ptr<HidlService> service = makeService(); in TEST_F() local
[all …]
DServiceManager.cpp71 forEachServiceEntry([&] (const HidlService *service) { in forEachExistingService() argument
72 if (service->getService() == nullptr) { in forEachExistingService()
75 return f(service); in forEachExistingService()
80 forEachServiceEntry([&] (HidlService *service) { in forEachExistingService() argument
81 if (service->getService() == nullptr) { in forEachExistingService()
84 return f(service); in forEachExistingService()
178 std::unique_ptr<HidlService> &&service) { in insertService() argument
179 mInstanceMap.insert({service->getInstanceName(), std::move(service)}); in insertService()
200 const std::unique_ptr<HidlService> &service = instanceMapping.second; in addPackageListener() local
202 if (service->getService() == nullptr) { in addPackageListener()
[all …]
/system/libhidl/transport/
DHidlLazyUtils.cpp37 bool addRegisteredService(const sp<IBase>& service, const std::string& name);
40 Return<void> onClients(const sp<IBase>& service, bool clients) override;
44 sp<IBase> service; member
53 Service& assertRegisteredService(const sp<IBase>& service);
58 bool registerService(const sp<IBase>& service, const std::string& name);
76 status_t registerService(const sp<::android::hidl::base::V1_0::IBase>& service,
83 bool ClientCounterCallback::addRegisteredService(const sp<IBase>& service, in addRegisteredService() argument
85 bool success = registerService(service, name); in addRegisteredService()
88 mRegisteredServices.push_back({service, name}); in addRegisteredService()
95 const sp<IBase>& service) { in assertRegisteredService() argument
[all …]
DHidlTransportSupport.cpp62 bool setMinSchedulerPolicy(const sp<IBase>& service, int policy, int priority) { in setMinSchedulerPolicy() argument
63 if (service->isRemote()) { in setMinSchedulerPolicy()
93 details::gServicePrioMap->setLocked(service, {policy, priority}); in setMinSchedulerPolicy()
98 SchedPrio getMinSchedulerPolicy(const sp<IBase>& service) { in getMinSchedulerPolicy() argument
99 return details::gServicePrioMap->get(service, {SCHED_NORMAL, 0}); in getMinSchedulerPolicy()
102 bool setRequestingSid(const sp<IBase>& service, bool requesting) { in setRequestingSid() argument
103 if (service->isRemote()) { in setRequestingSid()
113 details::gServiceSidMap->setLocked(service, requesting); in setRequestingSid()
118 bool getRequestingSid(const sp<IBase>& service) { in getRequestingSid() argument
119 return details::gServiceSidMap->get(service.get(), false); in getRequestingSid()
DLegacySupport.cpp34 sp<IBase> service = in registerPassthroughServiceImplementation() local
37 if (service == nullptr) { in registerPassthroughServiceImplementation()
42 if (service->isRemote()) { in registerPassthroughServiceImplementation()
48 Return<void> result = service->interfaceDescriptor( in registerPassthroughServiceImplementation()
61 status_t status = registerServiceCb(service, serviceName); in registerPassthroughServiceImplementation()
79 [](const sp<IBase>& service, const std::string& name) { in registerPassthroughServiceImplementation() argument
80 return details::registerAsServiceInternal(service, name); in registerPassthroughServiceImplementation()
/system/sepolicy/vendor/
Dfile_contexts4 /(vendor|system/vendor)/bin/hw/android\.hardware\.atrace@1\.0-service u:object_r:hal_atrace…
5 /(vendor|system/vendor)/bin/hw/android\.hardware\.audio(@2\.0-|\.)service u:object_r:hal_audio_…
6 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.audiocontrol@1\.0-service u:object_r…
7 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.audiocontrol@2\.0-service u:object_r…
8 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.can@1\.0-service u:object_r:hal_can_…
9 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.evs@1\.[0-9]-service u:object_r:hal_…
10 …tem/vendor)/bin/hw/android\.hardware\.automotive\.vehicle@2\.0-(service|protocan-service) u:objec…
11 /(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.[0-9]+-service u:object_r:hal_b…
12 /(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.[0-9]+-service\.btlinux u:object_…
13 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service u:object_r:h…
[all …]
/system/bt/bta/sys/
Dutl.cc161 uint16_t service; in utl_set_device_class() local
166 BTM_COD_SERVICE_CLASS(service, dev); in utl_set_device_class()
178 p_cod->service &= BTM_COD_SERVICE_CLASS_MASK; in utl_set_device_class()
179 service = service | p_cod->service; in utl_set_device_class()
183 p_cod->service &= BTM_COD_SERVICE_CLASS_MASK; in utl_set_device_class()
184 service = service & (~p_cod->service); in utl_set_device_class()
190 p_cod->service &= BTM_COD_SERVICE_CLASS_MASK; in utl_set_device_class()
191 service = service | p_cod->service; in utl_set_device_class()
197 service = p_cod->service & BTM_COD_SERVICE_CLASS_MASK; in utl_set_device_class()
205 FIELDS_TO_COD(dev_class, minor, major, service); in utl_set_device_class()
/system/bt/bta/gatt/
Ddatabase_builder.cc64 Service* service = FindService(database.services, handle); in AddIncludedService() local
65 if (!service) { in AddIncludedService()
76 service->included_services.push_back(IncludedService{ in AddIncludedService()
86 Service* service = FindService(database.services, handle); in AddCharacteristic() local
87 if (!service) { in AddCharacteristic()
92 if (service->end_handle < value_handle) in AddCharacteristic()
95 << loghex(service->end_handle); in AddCharacteristic()
97 service->characteristics.emplace_back(Characteristic{ in AddCharacteristic()
107 Service* service = FindService(database.services, handle); in AddDescriptor() local
108 if (!service) { in AddDescriptor()
[all …]
Ddatabase.cc44 for (Service& service : services) { in FindService()
45 if (handle >= service.handle && handle <= service.end_handle) in FindService()
46 return &service; in FindService()
55 for (const Service& service : services) { in ToString() local
56 tmp << "Service: handle=" << loghex(service.handle) in ToString()
57 << ", end_handle=" << loghex(service.end_handle) in ToString()
58 << ", uuid=" << service.uuid << "\n"; in ToString()
60 for (const auto& is : service.included_services) { in ToString()
67 for (const Characteristic& c : service.characteristics) { in ToString()
87 for (const Service& service : services) { in Serialize() local
[all …]
Dbta_gattc_cache.cc124 for (const Service& service : services) { in bta_gattc_find_matching_service() local
125 if (handle >= service.handle && handle <= service.end_handle) in bta_gattc_find_matching_service()
126 return &service; in bta_gattc_find_matching_service()
162 const auto& service = p_srvc_cb->pending_discovery.CurrentlyExploredService(); in bta_gattc_explore_next_service() local
166 GATTC_Discover(conn_id, GATT_DISC_INC_SRVC, service.first, service.second); in bta_gattc_explore_next_service()
380 auto& service = p_srvc_cb->pending_discovery.CurrentlyExploredService(); in bta_gattc_disc_cmpl_cback() local
382 GATTC_Discover(conn_id, GATT_DISC_CHAR, service.first, service.second); in bta_gattc_disc_cmpl_cback()
403 for (const Service& service : p_clcb->p_srcb->gatt_database.Services()) { in bta_gattc_search_service() local
404 if (p_uuid && *p_uuid != service.uuid) continue; in bta_gattc_search_service()
407 VLOG(1) << __func__ << "found service " << service.uuid in bta_gattc_search_service()
[all …]
/system/core/init/
Dservice_list.cpp33 for (const auto& service : services_) { in CheckAllCommands() local
34 failures += service->CheckAllCommands(); in CheckAllCommands()
39 void ServiceList::AddService(std::unique_ptr<Service> service) { in AddService() argument
40 services_.emplace_back(std::move(service)); in AddService()
46 for (const auto& service : services_) { in services_in_shutdown_order() local
47 if (service->start_order() > 0) shutdown_services.emplace_back(service.get()); in services_in_shutdown_order()
84 Service* service = FindService(name); in MarkServicesUpdate() local
85 if (service == nullptr) { in MarkServicesUpdate()
89 if (auto result = service->Start(); !result.ok()) { in MarkServicesUpdate()
96 void ServiceList::DelayService(const Service& service) { in DelayService() argument
[all …]
Dsigchld_handler.cpp65 Service* service = nullptr; in ReapOneProcess() local
70 service = ServiceList::GetInstance().FindService(pid, &Service::pid); in ReapOneProcess()
72 if (service) { in ReapOneProcess()
73 name = StringPrintf("Service '%s' (pid %d)", service->name().c_str(), pid); in ReapOneProcess()
74 if (service->flags() & SVC_EXEC) { in ReapOneProcess()
75 auto exec_duration = boot_clock::now() - service->time_started(); in ReapOneProcess()
79 } else if (service->flags() & SVC_ONESHOT) { in ReapOneProcess()
80 auto exec_duration = boot_clock::now() - service->time_started(); in ReapOneProcess()
98 if (!service) return pid; in ReapOneProcess()
100 service->Reap(siginfo); in ReapOneProcess()
[all …]
/system/tools/aidl/tests/lazy_test/
DREADME9 This will run tests on the test service (described below), the goal being to test the dynamic
10 service infrastructure.
13 With a service: aidl_lazy_test serviceName...
15 This will run tests on the input service, verifying whether it successfully displays lazy behavior.
16 If the service has multiple interfaces, each can be entered as a separate argument to be tested
18 Infrastructure tests that rely on specific features of the dedicated test service will be skipped.
23 aidl_lazy_test_server is a simple test service.
25 Because it represents the bare minimum requirements for implementing a service, it also serves as
26 an example of how to add a new service. The required files are as follows:
34 The implementation of the server. The only required function is main(), wherein the service must be
[all …]
/system/libhwbinder/vts/performance/
DBenchmark.cpp59 sp<IBenchmark> service = IBenchmark::getService(gServiceName, true); in startServer() local
60 status_t status = service->registerAsService(gServiceName); in startServer()
70 static void BM_sendVec(benchmark::State& state, sp<IBenchmark> service) { in BM_sendVec() argument
79 service->sendVec(data_vec, [&] (const auto &/*res*/) { in BM_sendVec()
86 sp<IBenchmark> service = IBenchmark::getService(gServiceName, true /* getStub */); in BM_sendVec_passthrough() local
87 if (service == nullptr) { in BM_sendVec_passthrough()
90 if (service->isRemote()) { in BM_sendVec_passthrough()
93 BM_sendVec(state, service); in BM_sendVec_passthrough()
98 sp<IBenchmark> service = IBenchmark::getService(gServiceName); in BM_sendVec_binderize() local
99 if (service == nullptr) { in BM_sendVec_binderize()
[all …]
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp63 sp<IBase> service; member
77 pid_t GetServiceDebugPid(const std::string& service) { in GetServiceDebugPid() argument
78 return android::base::GetIntProperty("init.svc_debug_pid." + service, 0); in GetServiceDebugPid()
84 void GetHal(const std::string& service, const FqInstance& instance) { in GetHal() argument
96 gDeclaredServiceHalMap[service].push_back(Hal{.service = hal, .fq_instance = instance}); in GetHal()
118 sp<IBase> service = default_manager_->get(fqName, instance); in SetUp() local
119 if (service == nullptr) { in SetUp()
125 sp<IBinder> binder = toBinder(service); in SetUp()
136 all_hals_.insert(iter, {binder, Hal{.service = service, .name = strName}}); in SetUp()
182 [&](const Hal& base) { EXPECT_OK(base.service->ping()) << "Cannot ping " << base.name; }); in TEST_F()
[all …]
/system/core/adb/client/
Dadb_client.cpp80 std::string service; in switch_socket_transport() local
83 service += "host:transport-id:"; in switch_socket_transport()
84 service += std::to_string(__adb_transport_id); in switch_socket_transport()
87 service += "host:tport:serial:"; in switch_socket_transport()
88 service += __adb_serial; in switch_socket_transport()
105 service += "host:tport:"; in switch_socket_transport()
106 service += transport_type; in switch_socket_transport()
109 if (!SendProtocolString(fd, service)) { in switch_socket_transport()
114 LOG(DEBUG) << "Switch transport in progress: " << service; in switch_socket_transport()
153 static int _adb_connect(std::string_view service, TransportId* transport, std::string* error, in _adb_connect() argument
[all …]
/system/libhidl/transport/manager/1.0/
DIServiceManager.hal25 * All examples in this file assume that there is one service registered with
26 * the service manager, "android.hidl.manager@1.0::IServiceManager/manager"
41 * Retrieve an existing service that supports the requested version.
49 * @return service Handle to requested service, same as provided in
52 get(string fqName, string name) generates (interface service);
55 * Register a service. The service manager must retrieve the (inherited)
56 * interfaces that this service implements, and register them along with
57 * the service.
68 * @param name Instance name. Must also be used to retrieve service.
69 * @param service Handle to registering service.
[all …]
/system/tools/aidl/tests/
Daidl_test_client_versioned_interface.cpp30 ASSERT_EQ(OK, android::getService(IFooInterface::descriptor, &service)); in SetUp()
31 ASSERT_NE(nullptr, service); in SetUp()
34 sp<IFooInterface> service; member in VersionedInterfaceTest
38 EXPECT_EQ(1, service->getInterfaceVersion()); in TEST_F()
42 EXPECT_EQ("fcd4f9c806cbc8af3694d569fd1de1ecc8cf7d22", service->getInterfaceHash()); in TEST_F()
/system/libhidl/transport/manager/1.2/
DIServiceManager.hal27 * If the service has clients at the time of registration, the callback is called with
31 * @param name Instance name (of the registered service)
32 * @param server non-null service waiting to have no clients (previously registered)
51 * @param server service registered with registerClientCallback
60 * Exactly the same as @1.0::IServiceManager.add, but the interfaceChain of the service is
63 * @param name Instance name. Must also be used to retrieve service.
64 * @param service Handle to registering service.
65 * @param chain service->interfaceChain
67 * @return success Whether or not the service was registered.
69 addWithChain(string name, interface service, vec<string> chain) generates (bool success);
[all …]
/system/connectivity/wificond/tests/integration/
Dclient_interface_test.cpp44 sp<IWificond> service = dev_mode.EnterDevModeOrDie(); in TEST() local
48 EXPECT_TRUE(service->createClientInterface( in TEST()
65 EXPECT_TRUE(service->createClientInterface( in TEST()
71 EXPECT_TRUE(service->tearDownClientInterface(kInterfaceName, &succes).isOk()); in TEST()
76 EXPECT_TRUE(service->tearDownInterfaces().isOk()); in TEST()
81 sp<IWificond> service = dev_mode.EnterDevModeOrDie(); in TEST() local
83 EXPECT_TRUE(service->createClientInterface( in TEST()
/system/security/keystore/
Dkeystore_cli.cpp58 service->cmd(String16(argv[2]), &ret); \
77 service->cmd(atoi(argv[2]), &ret); \
101 service->cmd(String16(argv[2]), uid, &ret); \
125 ::android::binder::Status ret = service->cmd(String16(argv[2]), uid, &data); \
148 service->cmd(String16(argv[2]), data, dataSize, &ret); \
167 ::android::binder::Status ret = service->cmd(String16(argv[2]), &data); \
179 static int list(const sp<IKeystoreService>& service, const String16& name, int uid) { in list() argument
181 ::android::binder::Status ret = service->list(name, uid, &matches); in list()
204 sp<IKeystoreService> service = interface_cast<IKeystoreService>(binder); in main() local
206 if (service == nullptr) { in main()
[all …]
/system/core/init/test_service/
DREADME.md1 # Sample service for testing
2 This is a sample service that can be used for testing init.
5 The service includes a `.rc` file that allows starting it from init.
7 service test_service /system/bin/test_service CapAmb 0000000000003000
15 The service accepts any even number of arguments on the command line
22 In the above case, the service will look for lines containing `CapAmb`:
30 If they match, the service exits successfully. If not, the service will exit
/system/core/healthd/
Dcharger_utils.cpp32 sp<V2_1::IHealth> service = V2_1::IHealth::getService(); in GetHealthServiceOrDefault() local
33 if (service != nullptr) { in GetHealthServiceOrDefault()
39 service = new V2_1::implementation::Health(std::move(config)); in GetHealthServiceOrDefault()
41 return service; in GetHealthServiceOrDefault()

12345678910>>...29