Home
last modified time | relevance | path

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

/system/core/init/
Dservice_test.cpp128 auto svc = std::move(*service_ret); in Test_make_temporary_oneshot_service() local
131 ASSERT_EQ("u:r:su:s0", svc->seclabel()); in Test_make_temporary_oneshot_service()
133 ASSERT_EQ("", svc->seclabel()); in Test_make_temporary_oneshot_service()
138 ASSERT_EQ(*decoded_uid, svc->uid()); in Test_make_temporary_oneshot_service()
140 ASSERT_EQ(0U, svc->uid()); in Test_make_temporary_oneshot_service()
145 ASSERT_EQ(*decoded_uid, svc->gid()); in Test_make_temporary_oneshot_service()
147 ASSERT_EQ(0U, svc->gid()); in Test_make_temporary_oneshot_service()
150 ASSERT_EQ(2U, svc->supp_gids().size()); in Test_make_temporary_oneshot_service()
154 ASSERT_EQ(*decoded_uid, svc->supp_gids()[0]); in Test_make_temporary_oneshot_service()
158 ASSERT_EQ(*decoded_uid, svc->supp_gids()[1]); in Test_make_temporary_oneshot_service()
[all …]
Dlmkd_service.cpp83 auto svc = service.get(); in RegisterServices() local
84 if (svc->oom_score_adjust() != DEFAULT_OOM_SCORE_ADJUST) { in RegisterServices()
86 if (svc->pid() == exclude_pid || svc->pid() == 0) { in RegisterServices()
89 if (RegisterProcess(svc->uid(), svc->pid(), svc->oom_score_adjust()) != in RegisterServices()
Dservice_list.h36 void RemoveService(const Service& svc);
45 auto svc = std::find_if(services_.begin(), services_.end(), variable
49 if (svc != services_.end()) {
50 return svc->get();
56 for (const auto& svc : services_) { in FindInterface() local
57 if (svc->interfaces().count(interface_name) > 0) { in FindInterface()
58 return svc.get(); in FindInterface()
Dservice_list.cpp54 void ServiceList::RemoveService(const Service& svc) { in RemoveService() argument
57 [&svc](const std::unique_ptr<Service>& s) { return svc.name() == s->name(); }); in RemoveService()
Dbuiltins.cpp238 Service* svc = ServiceList::GetInstance().FindService(args[1]); in do_enable() local
239 if (!svc) return Error() << "Could not find service"; in do_enable()
241 if (auto result = svc->Enable(); !result.ok()) { in do_enable()
344 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_restart() local
345 if (!svc) return Error() << "interface " << args[1] << " not found"; in do_interface_restart()
346 svc->Restart(); in do_interface_restart()
351 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_start() local
352 if (!svc) return Error() << "interface " << args[1] << " not found"; in do_interface_start()
353 if (auto result = svc->Start(); !result.ok()) { in do_interface_start()
360 Service* svc = ServiceList::GetInstance().FindInterface(args[1]); in do_interface_stop() local
[all …]
Dinit.cpp649 auto svc = service.get(); in HandleKeychord() local
650 if (svc->keycodes() == keycodes) { in HandleKeychord()
652 LOG(INFO) << "Starting service '" << svc->name() << "' from keychord " in HandleKeychord()
654 if (auto result = svc->Start(); !result.ok()) { in HandleKeychord()
655 LOG(ERROR) << "Could not start service '" << svc->name() << "' from keychord " in HandleKeychord()
852 for (const auto& svc : ServiceList::GetInstance()) { in SecondStageMain() local
853 keychords.Register(svc->keycodes()); in SecondStageMain()
Dservice_parser.cpp171 for (const auto& svc : *service_list_) { in ParseInterface()
172 if (svc->interfaces().count(fullname) > 0) { in ParseInterface()
174 << " but is already defined by " << svc->name(); in ParseInterface()
DREADME.md735 `init.svc.<name>`
/system/extras/profcollectd/libprofcollectd/
Dinterface.cpp56 auto svc = sp<ProfcollectdBinder>(new ProfcollectdBinder()); in InitService() local
57 sm->addService(String16(ProfcollectdBinder::getServiceName()), svc); in InitService()
59 svc->ScheduleCollection(); in InitService()
/system/bt/service/
Dgatt_server.cc70 std::vector<btgatt_db_element_t> svc; in AddService() local
72 svc.push_back({ in AddService()
79 svc.push_back({.uuid = characteristic.uuid(), in AddService()
84 svc.push_back({.uuid = descriptor.uuid(), in AddService()
90 svc.push_back({.type = BTGATT_DB_INCLUDED_SERVICE, in AddService()
97 server_id_, svc); in AddService()
299 std::vector<btgatt_db_element_t> svc) { in ServiceAddedCallback() argument
305 << " first handle: " << svc[0].attribute_handle in ServiceAddedCallback()
306 << " service Uuid: " << Uuid(svc[0].uuid).ToString() in ServiceAddedCallback()
307 << " 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/bt/include/hardware/
Dbluetooth_headset_interface.h139 virtual bt_status_t CindResponse(int svc, int num_active, int num_held,
/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
/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/private/
Dproperty_contexts186 init.svc.odm. u:object_r:vendor_default_prop:s0
187 init.svc.vendor. u:object_r:vendor_default_prop:s0
523 init.svc. u:object_r:init_service_status_private_prop:s0 prefix string
526 init.svc.bugreport u:object_r:init_service_status_prop:s0 exact string
527 init.svc.bugreportd u:object_r:init_service_status_prop:s0 exact string
528 init.svc.console u:object_r:init_service_status_prop:s0 exact string
529 init.svc.dumpstatez u:object_r:init_service_status_prop:s0 exact string
530 init.svc.mediadrm u:object_r:init_service_status_prop:s0 exact string
531 init.svc.statsd u:object_r:init_service_status_prop:s0 exact string
532 init.svc.surfaceflinger u:object_r:init_service_status_prop:s0 exact string
[all …]
/system/sepolicy/prebuilts/api/29.0/public/
Dproperty_contexts199 init.svc.bugreport u:object_r:exported2_default_prop:s0 exact string
200 init.svc.console u:object_r:exported2_default_prop:s0 exact string
201 init.svc.dumpstatez u:object_r:exported2_default_prop:s0 exact string
202 init.svc.mediadrm u:object_r:exported2_default_prop:s0 exact string
203 init.svc.surfaceflinger u:object_r:exported2_default_prop:s0 exact string
204 init.svc.tombstoned u:object_r:exported2_default_prop:s0 exact string
205 init.svc.zygote u:object_r:exported2_default_prop:s0 exact string
/system/sepolicy/prebuilts/api/29.0/private/
Dproperty_contexts166 init.svc.odm. u:object_r:vendor_default_prop:s0
167 init.svc.vendor. u:object_r:vendor_default_prop:s0
/system/sepolicy/prebuilts/api/30.0/public/
Dproperty_contexts223 init.svc.bugreport u:object_r:exported2_default_prop:s0 exact string
224 init.svc.console u:object_r:exported2_default_prop:s0 exact string
225 init.svc.dumpstatez u:object_r:exported2_default_prop:s0 exact string
226 init.svc.mediadrm u:object_r:exported2_default_prop:s0 exact string
227 init.svc.surfaceflinger u:object_r:exported2_default_prop:s0 exact string
228 init.svc.tombstoned u:object_r:exported2_default_prop:s0 exact string
229 init.svc.zygote u:object_r:exported2_default_prop:s0 exact string
/system/bt/btif/src/
Dbtif_hf.cc723 bt_status_t CindResponse(int svc, int num_active, int num_held,
956 bt_status_t HeadsetInterface::CindResponse(int svc, int num_active, in CindResponse() argument
979 svc, /* network service */ in CindResponse()
/system/sepolicy/prebuilts/api/30.0/private/
Dproperty_contexts186 init.svc.odm. u:object_r:vendor_default_prop:s0
187 init.svc.vendor. u:object_r:vendor_default_prop:s0
/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