Home
last modified time | relevance | path

Searched refs:svc (Results 1 – 18 of 18) sorted by relevance

/system/core/init/
Dservice_test.cpp125 auto svc = Service::MakeTemporaryOneshotService(args); in Test_make_temporary_oneshot_service() local
126 ASSERT_NE(nullptr, svc); in Test_make_temporary_oneshot_service()
129 ASSERT_EQ("u:r:su:s0", svc->seclabel()); in Test_make_temporary_oneshot_service()
131 ASSERT_EQ("", svc->seclabel()); in Test_make_temporary_oneshot_service()
136 ASSERT_EQ(*decoded_uid, svc->uid()); in Test_make_temporary_oneshot_service()
138 ASSERT_EQ(0U, svc->uid()); in Test_make_temporary_oneshot_service()
143 ASSERT_EQ(*decoded_uid, svc->gid()); in Test_make_temporary_oneshot_service()
145 ASSERT_EQ(0U, svc->gid()); in Test_make_temporary_oneshot_service()
148 ASSERT_EQ(2U, svc->supp_gids().size()); in Test_make_temporary_oneshot_service()
152 ASSERT_EQ(*decoded_uid, svc->supp_gids()[0]); in Test_make_temporary_oneshot_service()
[all …]
Dbuiltins.cpp173 Service* svc = ServiceList::GetInstance().FindService(args[1]); in do_enable() local
174 if (!svc) return Error() << "Could not find service"; in do_enable()
176 if (auto result = svc->Enable(); !result) { in do_enable()
279 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_restart() local
280 if (!svc) return Error() << "interface " << args[1] << " not found"; in do_interface_restart()
281 svc->Restart(); in do_interface_restart()
286 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_start() local
287 if (!svc) return Error() << "interface " << args[1] << " not found"; in do_interface_start()
288 if (auto result = svc->Start(); !result) { in do_interface_start()
295 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_stop() local
[all …]
Dinit.cpp303 Service* svc = nullptr; in HandleControlMessage() local
307 svc = ServiceList::GetInstance().FindService(name); in HandleControlMessage()
310 svc = ServiceList::GetInstance().FindInterface(name); in HandleControlMessage()
318 if (svc == nullptr) { in HandleControlMessage()
323 if (auto result = function.action(svc); !result) { in HandleControlMessage()
587 auto svc = service.get(); in HandleKeychord() local
588 if (svc->keycodes() == keycodes) { in HandleKeychord()
590 LOG(INFO) << "Starting service '" << svc->name() << "' from keychord " in HandleKeychord()
592 if (auto result = svc->Start(); !result) { in HandleKeychord()
593 LOG(ERROR) << "Could not start service '" << svc->name() << "' from keychord " in HandleKeychord()
[all …]
Dservice.h264 void RemoveService(const Service& svc);
268 auto svc = std::find_if(services_.begin(), services_.end(), variable
272 if (svc != services_.end()) {
273 return svc->get();
279 for (const auto& svc : services_) { in FindInterface() local
280 if (svc->interfaces().count(interface_name) > 0) { in FindInterface()
281 return svc.get(); in FindInterface()
Dservice.cpp529 for (const auto& svc : ServiceList::GetInstance()) { in ParseInterface() local
530 if (svc->interfaces().count(fullname) > 0) { in ParseInterface()
532 << " but is already defined by " << svc->name(); in ParseInterface()
1349 void ServiceList::RemoveService(const Service& svc) { in RemoveService() argument
1351 [&svc] (const std::unique_ptr<Service>& s) { in RemoveService()
1352 return svc.name() == s->name(); in RemoveService()
DREADME.md678 `init.svc.<name>`
/system/bt/service/
Dgatt_server.cc70 std::vector<btgatt_db_element_t> svc; in AddService() local
72 svc.push_back({.type = (service.primary() ? BTGATT_DB_PRIMARY_SERVICE in AddService()
77 svc.push_back({.type = BTGATT_DB_CHARACTERISTIC, in AddService()
82 svc.push_back({.type = BTGATT_DB_DESCRIPTOR, in AddService()
88 svc.push_back({.type = BTGATT_DB_INCLUDED_SERVICE, in AddService()
95 server_id_, svc); in AddService()
297 std::vector<btgatt_db_element_t> svc) { in ServiceAddedCallback() argument
303 << " first handle: " << svc[0].attribute_handle in ServiceAddedCallback()
304 << " service Uuid: " << Uuid(svc[0].uuid).ToString() in ServiceAddedCallback()
305 << " count: " << svc.size(); in ServiceAddedCallback()
[all …]
/system/bt/bta/gatt/
Ddatabase.cc38 bool HandleInRange(const Service& svc, uint16_t handle) { in HandleInRange() argument
39 return handle >= svc.handle && handle <= svc.end_handle; in HandleInRange()
/system/core/bootstat/
Dbootstat.rc48 # property:init.svc.bootanim=running: The boot animation is running
50 on post-fs-data && property:init.svc.bootanim=running && property:ro.crypto.type=block
68 on property:init.svc.zygote=stopping
/system/bt/include/hardware/
Dbluetooth_headset_interface.h139 virtual bt_status_t CindResponse(int svc, int num_active, int num_held,
/system/sepolicy/prebuilts/api/28.0/private/
Dproperty_contexts139 init.svc.odm. u:object_r:vendor_default_prop:s0
140 init.svc.vendor. u:object_r:vendor_default_prop:s0
/system/sepolicy/prebuilts/api/29.0/public/
Dproperty_contexts188 init.svc.bugreport u:object_r:exported2_default_prop:s0 exact string
189 init.svc.console u:object_r:exported2_default_prop:s0 exact string
190 init.svc.dumpstatez u:object_r:exported2_default_prop:s0 exact string
191 init.svc.mediadrm u:object_r:exported2_default_prop:s0 exact string
192 init.svc.surfaceflinger u:object_r:exported2_default_prop:s0 exact string
193 init.svc.tombstoned u:object_r:exported2_default_prop:s0 exact string
194 init.svc.zygote u:object_r:exported2_default_prop:s0 exact string
/system/sepolicy/public/
Dproperty_contexts188 init.svc.bugreport u:object_r:exported2_default_prop:s0 exact string
189 init.svc.console u:object_r:exported2_default_prop:s0 exact string
190 init.svc.dumpstatez u:object_r:exported2_default_prop:s0 exact string
191 init.svc.mediadrm u:object_r:exported2_default_prop:s0 exact string
192 init.svc.surfaceflinger u:object_r:exported2_default_prop:s0 exact string
193 init.svc.tombstoned u:object_r:exported2_default_prop:s0 exact string
194 init.svc.zygote u:object_r:exported2_default_prop:s0 exact string
/system/sepolicy/prebuilts/api/29.0/private/
Dproperty_contexts164 init.svc.odm. u:object_r:vendor_default_prop:s0
165 init.svc.vendor. u:object_r:vendor_default_prop:s0
/system/sepolicy/private/
Dproperty_contexts164 init.svc.odm. u:object_r:vendor_default_prop:s0
165 init.svc.vendor. u:object_r:vendor_default_prop:s0
/system/bt/btif/src/
Dbtif_hf.cc687 bt_status_t CindResponse(int svc, int num_active, int num_held,
920 bt_status_t HeadsetInterface::CindResponse(int svc, int num_active, in CindResponse() argument
943 svc, /* network service */ in CindResponse()
/system/core/rootdir/
Dinit.usb.configfs.rc14 on property:init.svc.adbd=stopped
/system/sepolicy/prebuilts/api/28.0/public/
Dproperty_contexts153 init.svc.tombstoned u:object_r:exported2_default_prop:s0 exact string