Home
last modified time | relevance | path

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

12345678910>>...28

/base/startup/init/services/init/
Dinit_common_service.c74 static int SetSystemSeccompPolicy(const Service *service) in SetSystemSeccompPolicy() argument
77 if (strncmp(APPSPAWN_NAME, service->name, strlen(APPSPAWN_NAME)) in SetSystemSeccompPolicy()
78 && strncmp(NWEBSPAWN_NAME, service->name, strlen(NWEBSPAWN_NAME))) { in SetSystemSeccompPolicy()
81 int rc = snprintf_s(cmdContent, MAX_CMD_CONTENT_LEN + 1, strlen(service->name) + 1, in SetSystemSeccompPolicy()
82 "%s ", service->name); in SetSystemSeccompPolicy()
87 rc = strcat_s(cmdContent, MAX_CMD_CONTENT_LEN + 1, service->pathArgs.argv[0]); in SetSystemSeccompPolicy()
137 static int ServiceCheck(const Service *service) in ServiceCheck() argument
139 if (service->servPerm.gIDCnt == 0) { in ServiceCheck()
141 INIT_ERROR_CHECK(setgid(service->servPerm.uID) == 0, return SERVICE_FAILURE, in ServiceCheck()
142 "SetPerms, setgid for %s failed. %d", service->name, errno); in ServiceCheck()
[all …]
Dinit_service_manager.c92 if (node->data.service != NULL) { in AddService()
93 ReleaseService(node->data.service); in AddService()
94 node->data.service = NULL; in AddService()
96 Service *service = (Service *)calloc(1, sizeof(Service)); in AddService() local
97 INIT_ERROR_CHECK(service != NULL, return NULL, "Failed to malloc for service"); in AddService()
98 node->data.service = service; in AddService()
99 service->name = node->name; in AddService()
100 service->status = SERVICE_IDLE; in AddService()
101 service->cpuSet = NULL; in AddService()
102 service->pid = -1; in AddService()
[all …]
/base/startup/init/test/unittest/init/
Dservice_unittest.cpp70 Service *service = AddService("test_service"); variable
71 int ret = ParseOneService(serviceItem, service);
74 ret = ServiceStart(service);
77 ret = ServiceStop(service);
80 ReleaseService(service);
93 Service *service = AddService("test_service8"); variable
94 ASSERT_NE(nullptr, service);
95 int ret = ParseOneService(serviceItem, service);
99 UpdaterServiceFds(service, fds, 1);
100 service->attribute = SERVICE_ATTR_ONDEMAND;
[all …]
Dservice_socket_unittest.cpp39 Service *service = (Service *)AddService("TestCreateSocket"); variable
40 ASSERT_NE(service, nullptr);
41 service->socketCfg = nullptr;
42 service->attribute = SERVICE_ATTR_ONDEMAND;
56 if (service->socketCfg == nullptr) {
57 service->socketCfg = sockopt;
59 sockopt->next = service->socketCfg->next;
60 service->socketCfg->next = sockopt;
62 int ret1 = CreateServiceSocket(service);
63 if (((ServiceSocket *)service->socketCfg)->watcher != nullptr) {
[all …]
/base/startup/init/services/init/standard/
Dinit_service.c41 void NotifyServiceChange(Service *service, int status) in NotifyServiceChange() argument
43 INIT_LOGV("Notify service %s change from %d to %d", service->name, service->status, status); in NotifyServiceChange()
44 service->status = status; in NotifyServiceChange()
48 "%s.%s", STARTUP_SERVICE_CTL, service->name); in NotifyServiceChange()
49 INIT_ERROR_CHECK(ret > 0, return, "Failed to format service name %s.", service->name); in NotifyServiceChange()
52 INIT_ERROR_CHECK(ret > 0, return, "Failed to format service status %s.", service->name); in NotifyServiceChange()
57 "%s.%s.pid", STARTUP_SERVICE_CTL, service->name); in NotifyServiceChange()
58 INIT_ERROR_CHECK(ret > 0, return, "Failed to format service pid name %s.", service->name); in NotifyServiceChange()
60 "%d", (service->pid == -1) ? 0 : service->pid); in NotifyServiceChange()
61 INIT_ERROR_CHECK(ret > 0, return, "Failed to format service pid %s.", service->name); in NotifyServiceChange()
[all …]
Dinit_control_fd_service.c42 static void DumpServiceJobs(const Service *service) in DumpServiceJobs() argument
45 if (service->serviceJobs.jobsName[JOB_ON_BOOT] != NULL) { in DumpServiceJobs()
46 printf("\t\tservice boot job %s \n", service->serviceJobs.jobsName[JOB_ON_BOOT]); in DumpServiceJobs()
48 if (service->serviceJobs.jobsName[JOB_ON_START] != NULL) { in DumpServiceJobs()
49 printf("\t\tservice start job %s \n", service->serviceJobs.jobsName[JOB_ON_START]); in DumpServiceJobs()
51 if (service->serviceJobs.jobsName[JOB_ON_STOP] != NULL) { in DumpServiceJobs()
52 printf("\t\tservice stop job %s \n", service->serviceJobs.jobsName[JOB_ON_STOP]); in DumpServiceJobs()
54 if (service->serviceJobs.jobsName[JOB_ON_RESTART] != NULL) { in DumpServiceJobs()
55 printf("\t\tservice restart job %s \n", service->serviceJobs.jobsName[JOB_ON_RESTART]); in DumpServiceJobs()
59 static void DumpServiceSocket(const Service *service) in DumpServiceSocket() argument
[all …]
Dinit_signal_handler.c40 Service* service = GetServiceByPid(sigPID); in ProcessSignal() local
44 service == NULL ? "Unknown" : service->name, sigPID, WTERMSIG(procStat)); in ProcessSignal()
47 service == NULL ? "Unknown" : service->name, sigPID, WEXITSTATUS(procStat)); in ProcessSignal()
50 service == NULL ? "Unknown" : service->name, sigPID, procStat); in ProcessSignal()
55 service == NULL ? "Unknown" : service->name, in ProcessSignal()
58 ServiceReap(service); in ProcessSignal()
/base/msdp/device_status/rust/services/binding/src/
Dfusion_services_binding.cpp34 struct NativeService *service = new NativeService; in NativeService_New() local
35 service->refCnt = 1; in NativeService_New()
36 return service; in NativeService_New()
39 struct NativeService* NativeService_Ref(struct NativeService *service) in NativeService_Ref() argument
41 CHKPP(service); in NativeService_Ref()
42 service->refCnt++; in NativeService_Ref()
43 return service; in NativeService_Ref()
46 struct NativeService* NativeService_Unref(struct NativeService *service) in NativeService_Unref() argument
48 CHKPP(service); in NativeService_Unref()
49 if (service->refCnt > 0) { in NativeService_Unref()
[all …]
/base/print/print_fwk/test/unittest/service_test/
Dprint_service_ability_test.cpp311 auto service = std::make_shared<PrintServiceAbility>(PRINT_SERVICE_ID, true); in CreateServiceWithoutEvent() local
312 EXPECT_NE(service, nullptr); in CreateServiceWithoutEvent()
313 service->SetHelper(CreatePrintServiceHelper(true, true, true, true)); in CreateServiceWithoutEvent()
320 EXPECT_EQ(service->StartPrint(fileList, fdList, taskId), E_PRINT_NONE); in CreateServiceWithoutEvent()
323 EXPECT_EQ(service->QueryAllExtension(infoList), E_PRINT_NONE); in CreateServiceWithoutEvent()
327 EXPECT_EQ(service->StartDiscoverPrinter(extensionIds), E_PRINT_NONE); in CreateServiceWithoutEvent()
336 EXPECT_EQ(service->RegisterExtCallback(extensionCid, listener), E_PRINT_NONE); in CreateServiceWithoutEvent()
342 EXPECT_EQ(service->On(taskId, taskEvent[index], listener), E_PRINT_NONE); in CreateServiceWithoutEvent()
348 EXPECT_EQ(service->On("", spoolerEvent[index], listener), E_PRINT_NONE); in CreateServiceWithoutEvent()
350 EXPECT_EQ(service->LoadExtSuccess(GetExtensionId(TYPE_DEFAULT)), E_PRINT_NONE); in CreateServiceWithoutEvent()
[all …]
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/
Dsys_event_service_adapter.cpp24 void SysEventServiceAdapter::StartService(SysEventServiceBase* service, OHOS::HiviewDFX::NotifySysE… in StartService() argument
26 if (service == nullptr) { in StartService()
30 OHOS::HiviewDFX::SysEventServiceOhos::StartService(service, notify); in StartService()
39 auto service = OHOS::HiviewDFX::SysEventServiceOhos::GetInstance(); in OnSysEvent() local
40 if (service == nullptr) { in OnSysEvent()
44 service->OnSysEvent(event); in OnSysEvent()
49 auto service = OHOS::HiviewDFX::SysEventServiceOhos::GetInstance(); in UpdateEventSeq() local
50 if (service == nullptr) { in UpdateEventSeq()
54 service->UpdateEventSeq(seq); in UpdateEventSeq()
59 auto service = OHOS::HiviewDFX::SysEventServiceOhos::GetInstance(); in BindGetTagFunc() local
[all …]
/base/startup/init/services/init/include/
Dinit_service.h70 #define IsOnDemandService(service) \ argument
71 (((service)->attribute & SERVICE_ATTR_ONDEMAND) == SERVICE_ATTR_ONDEMAND)
73 #define MarkServiceAsOndemand(service) \ argument
74 ((service)->attribute |= SERVICE_ATTR_ONDEMAND)
76 #define UnMarkServiceAsOndemand(service) \ argument
77 ((service)->attribute &= ~SERVICE_ATTR_ONDEMAND)
79 #define IsServiceWithTimerEnabled(service) \ argument
80 (((service)->attribute & SERVICE_ATTR_TIMERSTART) == SERVICE_ATTR_TIMERSTART)
82 #define DisableServiceTimer(service) \ argument
83 ((service)->attribute &= ~SERVICE_ATTR_TIMERSTART)
[all …]
/base/powermgr/powermgr_lite/services/src/
Dpower_manage_service.c34 static const char *GetName(Service *service);
35 static BOOL Initialize(Service *service, Identity identity);
36 static BOOL MessageHandle(Service *service, Request *request);
37 static TaskConfig GetTaskConfig(Service *service);
47 static const char *GetName(Service *service) in GetName() argument
49 (void)service; in GetName()
53 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
55 if (service == NULL) { in Initialize()
59 PowerMgrService *pms = (PowerMgrService *)(service); in Initialize()
64 static BOOL MessageHandle(Service *service, Request *request) in MessageHandle() argument
[all …]
/base/security/permission_lite/services/pms_base/src/
Dpermission_service.c28 static const char *GetName(Service *service);
29 static BOOL Initialize(Service *service, Identity identity);
30 static TaskConfig GetTaskConfig(Service *service);
31 static BOOL MessageHandle(const Service *service, const Request *request);
48 static const char *GetName(Service *service) in GetName() argument
50 (void)service; in GetName()
54 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
56 if (service == NULL) { in Initialize()
59 PermissionService *pms = (PermissionService *)service; in Initialize()
64 static BOOL MessageHandle(const Service *service, const Request *request) in MessageHandle() argument
[all …]
/base/startup/init/services/init/lite/
Dinit_service.c26 void NotifyServiceChange(Service *service, int status) in NotifyServiceChange() argument
28 UNUSED(service); in NotifyServiceChange()
54 int SetImportantValue(Service *service, const char *attrName, int value, int flag) in SetImportantValue() argument
58 INIT_ERROR_CHECK(service != NULL, return SERVICE_FAILURE, "Set service attr failed! null ptr."); in SetImportantValue()
60 service->attribute |= SERVICE_ATTR_IMPORTANT; in SetImportantValue()
65 int ServiceExec(const Service *service) in ServiceExec() argument
67 INIT_ERROR_CHECK(service != NULL && service->pathArgs.count > 0, in ServiceExec()
69 if (execv(service->pathArgs.argv[0], service->pathArgs.argv) != 0) { in ServiceExec()
70 INIT_LOGE("Service %s execv failed! err=%d.", service->name, errno); in ServiceExec()
76 int SetAccessToken(const Service *service) in SetAccessToken() argument
/base/msdp/device_status/rust/services/sys/src/
Dbinding.rs43 fn NativeService_Ref(service: *mut NativeService) -> *mut NativeService; in NativeService_Ref()
45 fn NativeService_Unref(service: *mut NativeService) -> *mut NativeService; in NativeService_Unref()
47 fn NativeService_OnDump(service: *mut NativeService); in NativeService_OnDump()
49 fn NativeService_OnStart(service: *mut NativeService); in NativeService_OnStart()
51 fn NativeService_OnStop(service: *mut NativeService); in NativeService_OnStop()
53 fn NativeService_AllocSocketFd(service: *mut NativeService, in NativeService_AllocSocketFd()
59 service: *mut NativeService, field
65 !self.service.is_null() in is_valid()
71 unsafe { NativeService_OnStart(self.service) }; in on_start()
77 unsafe { NativeService_OnStop(self.service) }; in on_stop()
[all …]
/base/security/device_auth/frameworks/src/lite/
Dipc_service_init.c28 static const char *GetName(Service *service) in GetName() argument
30 (void)service; in GetName()
34 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
36 if (service == NULL) { in Initialize()
41 DevAuthService *mgrService = (DevAuthService *)service; in Initialize()
46 static BOOL MessageHandle(Service *service, Request *request) in MessageHandle() argument
48 if ((service == NULL) || (request == NULL)) { in MessageHandle()
55 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
59 (void)service; in GetTaskConfig()
66 static DevAuthService service = { in ServiceInit() local
[all …]
/base/update/updateservice/services/engine/include/
Dupdate_service_stub.h36 using RequestFuncType = int32_t (UpdateServiceStub::*)(UpdateServiceStubPtr service,
40 int32_t GetNewVersionStub(UpdateServiceStubPtr service,
42 int32_t GetNewVersionDescriptionStub(UpdateServiceStubPtr service,
44 int32_t GetCurrentVersionStub(UpdateServiceStubPtr service,
46 int32_t GetCurrentVersionDescriptionStub(UpdateServiceStubPtr service,
48 int32_t GetTaskInfoStub(UpdateServiceStubPtr service,
50 int32_t CheckNewVersionStub(UpdateServiceStubPtr service,
52 int32_t DownloadVersionStub(UpdateServiceStubPtr service,
54 int32_t PauseDownloadStub(UpdateServiceStubPtr service,
56 int32_t ResumeDownloadStub(UpdateServiceStubPtr service,
[all …]
/base/startup/bootstrap_lite/services/source/
Dbootstrap_service.c25 static const char *GetName(Service *service);
26 static BOOL Initialize(Service *service, Identity identity);
27 static TaskConfig GetTaskConfig(Service *service);
28 static BOOL MessageHandle(Service *service, Request *request);
42 static const char *GetName(Service *service) in GetName() argument
44 (void)service; in GetName()
48 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
50 Bootstrap *bootstrap = (Bootstrap *)service; in Initialize()
55 static BOOL MessageHandle(Service *service, Request *request) in MessageHandle() argument
57 Bootstrap *bootstrap = (Bootstrap *)service; in MessageHandle()
[all …]
/base/powermgr/battery_manager/services/native/src/
Dbattery_dump.cpp58 bool BatteryDump::GetBatteryInfo(int32_t fd, sptr<BatteryService> &service, const std::vector<std::… in GetBatteryInfo() argument
65 int32_t capacity = service->GetCapacity(); in GetBatteryInfo()
67 BatteryCapacityLevel batteryLevel = service->GetCapacityLevel(); in GetBatteryInfo()
69 BatteryChargeState chargingStatus = service->GetChargingStatus(); in GetBatteryInfo()
71 BatteryHealthState healthState = service->GetHealthStatus(); in GetBatteryInfo()
73 BatteryPluggedType pluggedType = service->GetPluggedType(); in GetBatteryInfo()
75 int32_t voltage = service->GetVoltage(); in GetBatteryInfo()
77 bool present = service->GetPresent(); in GetBatteryInfo()
79 std::string technology = service->GetTechnology(); in GetBatteryInfo()
81 int32_t nowCurrent = service->GetNowCurrent(); in GetBatteryInfo()
[all …]
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
Dcallback_manager_impl_test.cpp54 auto service = Common::MakeShared<WidgetCallbackService>(widgetCallback); variable
56 EXPECT_NE(service, nullptr);
63 auto service = Common::MakeShared<IdmCallbackService>(idmClientCallback); variable
65 EXPECT_NE(service, nullptr);
72 auto service = Common::MakeShared<IdmGetCredInfoCallbackService>(getCredInfoCallback); variable
74 EXPECT_NE(service, nullptr);
81 auto service = Common::MakeShared<IdmGetSecureUserInfoCallbackService>(getSecInfoCallback); variable
83 EXPECT_NE(service, nullptr);
90 auto service = Common::MakeShared<UserAuthCallbackService>(authCallback); variable
92 EXPECT_NE(service, nullptr);
[all …]
Duser_idm_callback_stub_test.cpp59 auto service = Common::MakeShared<MockIdmCallbackService>(); variable
60 EXPECT_NE(service, nullptr);
61 EXPECT_CALL(*service, OnResult(_, _)).Times(1);
63 EXPECT_EQ(service->OnRemoteRequest(code, data, reply, option), SUCCESS);
82 auto service = Common::MakeShared<MockIdmCallbackService>(); variable
83 EXPECT_NE(service, nullptr);
84 EXPECT_CALL(*service, OnAcquireInfo(_, _, _)).Times(1);
86 EXPECT_EQ(service->OnRemoteRequest(code, data, reply, option), SUCCESS);
98 auto service = Common::MakeShared<MockIdmGetCredInfoCallbackService>(); variable
99 EXPECT_NE(service, nullptr);
[all …]
Duser_auth_callback_service_test.cpp53 auto service = Common::MakeShared<UserAuthCallbackService>(authCallback); variable
54 EXPECT_NE(service, nullptr);
55 service->OnResult(testResult, testExtraInfo);
56 service->OnAcquireInfo(testModule, testAcquireInfo, testExtraInfo);
84 auto service = Common::MakeShared<UserAuthCallbackService>(authCallback); variable
85 EXPECT_NE(service, nullptr);
86 service->OnResult(testResult, testExtraInfo);
87 service->OnAcquireInfo(testModule, testAcquireInfo, testExtraInfo);
115 auto service = Common::MakeShared<UserAuthCallbackService>(identifyCallback); variable
116 EXPECT_NE(service, nullptr);
[all …]
/base/security/device_security_level/services/sa/lite/
Ddslm_service.c24 static const char *GetName(Service *service);
25 static BOOL Initialize(Service *service, Identity identity);
26 static BOOL MessageHandle(Service *service, Request *msg);
27 static TaskConfig GetTaskConfig(Service *service);
37 static const char *GetName(Service *service) in GetName() argument
42 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
44 DslmService *dslmService = (DslmService *)service; in Initialize()
54 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
56 (void)service; in MessageHandle()
59 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
/base/print/print_fwk/etc/init/
Dcups-files.conf35 AccessLog /data/service/el1/public/cups/log/access_log
38 CacheDir /data/service/el1/public/cups/cache
44 DocumentRoot /data/service/el1/public/cups/doc
50 ErrorLog /data/service/el1/public/cups/log/error_log
56 PageLog /data/service/el1/public/cups/log/page_log
59 Printcap /data/service/el1/public/cups/printcap
67 RequestRoot /data/service/el1/public/cups/spool
76 ServerRoot /data/service/el1/public/cups
79 StateDir /data/service/el1/public/cups/run
84 TempDir /data/service/el1/public/cups/spool/tmp
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/sa/sa_mgr/
Dhks_samgr_service.c24 static const char *GetName(Service *service) in GetName() argument
26 (void)service; in GetName()
29 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
31 HKS_IF_NULL_RETURN(service, false) in Initialize()
33 HksMgrService *hksMgrService = (HksMgrService *)service; in Initialize()
38 static BOOL MessageHandle(Service *service, Request *request) in MessageHandle() argument
40 (void)service; in MessageHandle()
45 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
47 (void)service; in GetTaskConfig()

12345678910>>...28