Searched defs:svc (Results 1 - 7 of 7) sorted by relevance

/system/core/init/
H A Dinit_parser_test.cpp82 Service* svc = sm.MakeExecOneshotService(args); local
83 ASSERT_NE(nullptr, svc);
86 ASSERT_EQ("u:r:su:s0", svc->seclabel());
88 ASSERT_EQ("", svc->seclabel());
91 ASSERT_EQ(decode_uid("log"), svc->uid());
93 ASSERT_EQ(0U, svc->uid());
96 ASSERT_EQ(decode_uid("shell"), svc->gid());
98 ASSERT_EQ(0U, svc->gid());
101 ASSERT_EQ(2U, svc->supp_gids().size());
102 ASSERT_EQ(decode_uid("system"), svc
[all...]
H A Dkeychords.cpp37 void add_service_keycodes(Service* svc) argument
42 if (!svc->keycodes().empty()) {
44 size = sizeof(*keychord) + svc->keycodes().size() * sizeof(keychord->keycodes[0]);
56 keychord->count = svc->keycodes().size();
57 svc->set_keychord_id(keychord->id);
59 for (i = 0; i < svc->keycodes().size(); i++) {
60 keychord->keycodes[i] = svc->keycodes()[i];
78 std::string adb_enabled = android::base::GetProperty("init.svc.adbd", "");
80 Service* svc = ServiceManager::GetInstance().FindServiceByKeychord(id); local
81 if (svc) {
[all...]
H A Dbuiltins.cpp162 Service* svc = ServiceManager::GetInstance().FindServiceByName(args[1]); local
163 if (!svc) {
166 return svc->Enable();
576 Service* svc = ServiceManager::GetInstance().FindServiceByName(args[1]); local
577 if (!svc) {
581 if (!svc->Start())
587 Service* svc = ServiceManager::GetInstance().FindServiceByName(args[1]); local
588 if (!svc) {
592 svc->Stop();
597 Service* svc local
[all...]
H A Dinit.cpp180 Service* svc = ServiceManager::GetInstance().FindServiceByName(name); local
181 if (svc == nullptr) {
187 svc->Start();
189 svc->Stop();
191 svc->Restart();
H A Dservice.cpp202 std::string prop_name = StringPrintf("init.svc.%s", name_.c_str());
887 Service* svc = MakeExecOneshotService(args); local
888 if (!svc) {
892 if (!svc->ExecStart(&exec_waiter_)) {
894 ServiceManager::GetInstance().RemoveService(*svc);
901 Service* svc = FindServiceByName(name); local
902 if (!svc) {
906 if (!svc->ExecStart(&exec_waiter_)) {
962 Service* svc = svc_p.get(); local
965 return svc;
969 auto svc = std::find_if(services_.begin(), services_.end(), local
980 auto svc = std::find_if(services_.begin(), services_.end(), local
991 auto svc = std::find_if(services_.begin(), services_.end(), local
1026 RemoveService(const Service& svc) argument
1054 Service* svc = FindServiceByPid(pid); local
[all...]
/system/bt/service/
H A Dgatt_server.cc79 std::vector<btgatt_db_element_t> svc; local
81 svc.push_back({.type = (service.primary() ? BTGATT_DB_PRIMARY_SERVICE
86 svc.push_back({.type = BTGATT_DB_CHARACTERISTIC,
91 svc.push_back({.type = BTGATT_DB_DESCRIPTOR,
97 svc.push_back({.type = BTGATT_DB_INCLUDED_SERVICE,
104 server_id_, svc);
300 std::vector<btgatt_db_element_t> svc) {
306 << " first handle: " << svc[0].attribute_handle
307 << " service UUID: " << UUID(svc[0].uuid).ToString()
308 << " count: " << svc
298 ServiceAddedCallback(hal::BluetoothGattInterface* gatt_iface, int status, int server_id, std::vector<btgatt_db_element_t> svc) argument
[all...]
/system/bt/btif/src/
H A Dbtif_hf.cc1023 static bt_status_t cind_response(int svc, int num_active, int num_held, argument
1047 svc, /* network service */

Completed in 2037 milliseconds