Searched defs:svc (Results 1 - 8 of 8) sorted by relevance
/system/core/init/ |
H A D | keychords.cpp | 39 void add_service_keycodes(Service* svc) argument 44 if (!svc->keycodes().empty()) { 46 size = sizeof(*keychord) + svc->keycodes().size() * sizeof(keychord->keycodes[0]); 58 keychord->count = svc->keycodes().size(); 59 svc->set_keychord_id(keychord->id); 61 for (i = 0; i < svc->keycodes().size(); i++) { 62 keychord->keycodes[i] = svc->keycodes()[i]; 80 std::string adb_enabled = android::base::GetProperty("init.svc.adbd", ""); 82 Service* svc = ServiceList::GetInstance().FindService(id, &Service::keychord_id); local 83 if (svc) { [all...] |
H A D | service_test.cpp | 127 auto svc = Service::MakeTemporaryOneshotService(args); local 128 ASSERT_NE(nullptr, svc); 131 ASSERT_EQ("u:r:su:s0", svc->seclabel()); 133 ASSERT_EQ("", svc->seclabel()); 138 ASSERT_EQ(*decoded_uid, svc->uid()); 140 ASSERT_EQ(0U, svc->uid()); 145 ASSERT_EQ(*decoded_uid, svc->gid()); 147 ASSERT_EQ(0U, svc->gid()); 150 ASSERT_EQ(2U, svc->supp_gids().size()); 154 ASSERT_EQ(*decoded_uid, svc [all...] |
H A D | init.cpp | 277 Service* svc = ServiceList::GetInstance().FindService(name); local 278 if (svc == nullptr) { 282 if (auto result = function.action(svc); !result) { 291 for (const auto& svc : ServiceList::GetInstance()) { 292 if (svc->interfaces().count(name) == 0) { 296 if (auto result = function.action(svc.get()); !result) { 297 LOG(ERROR) << "Could not handle ctl." << msg << " for service " << svc->name()
|
H A D | service.h | 235 void RemoveService(const Service& svc); 239 auto svc = std::find_if(services_.begin(), services_.end(), local 243 if (svc != services_.end()) { 244 return svc->get();
|
H A D | builtins.cpp | 138 Service* svc = ServiceList::GetInstance().FindService(args[1]); local 139 if (!svc) return Error() << "Could not find service"; 141 if (auto result = svc->Enable(); !result) { 618 Service* svc = ServiceList::GetInstance().FindService(args[1]); local 619 if (!svc) return Error() << "service " << args[1] << " not found"; 620 if (auto result = svc->Start(); !result) { 627 Service* svc = ServiceList::GetInstance().FindService(args[1]); local 628 if (!svc) return Error() << "service " << args[1] << " not found"; 629 svc->Stop(); 634 Service* svc local [all...] |
H A D | service.cpp | 244 std::string prop_name = "init.svc." + name_; 510 for (const auto& svc : ServiceList::GetInstance()) { 511 if (svc->interfaces().count(fullname) > 0) { 513 << " but is already defined by " << svc->name(); 1162 void ServiceList::RemoveService(const Service& svc) { argument 1164 [&svc] (const std::unique_ptr<Service>& s) { 1165 return svc.name() == s->name(); 1234 return IsLegalPropertyName("init.svc." + name) && name.size() <= PROP_VALUE_MAX;
|
/system/bt/service/ |
H A D | gatt_server.cc | 69 std::vector<btgatt_db_element_t> svc; local 71 svc.push_back({.type = (service.primary() ? BTGATT_DB_PRIMARY_SERVICE 76 svc.push_back({.type = BTGATT_DB_CHARACTERISTIC, 81 svc.push_back({.type = BTGATT_DB_DESCRIPTOR, 87 svc.push_back({.type = BTGATT_DB_INCLUDED_SERVICE, 94 server_id_, svc); 290 std::vector<btgatt_db_element_t> svc) { 296 << " first handle: " << svc[0].attribute_handle 297 << " service Uuid: " << Uuid(svc[0].uuid).ToString() 298 << " count: " << svc 288 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 D | btif_hf.cc | 696 bt_status_t CindResponse(int svc, int num_active, int num_held, 931 bt_status_t HeadsetInterface::CindResponse(int svc, int num_active, argument 954 svc, /* network service */
|
Completed in 111 milliseconds