Home
last modified time | relevance | path

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

1234

/test/xts/tools/lite/hctest/src/
Dhctest_service.c30 static const char *GetName(Service *service);
31 static BOOL Initialize(Service *service, Identity identity);
32 static BOOL MessageHandle(Service *service, Request *request);
33 static TaskConfig GetTaskConfig(Service *service);
45 static const char *GetName(Service *service) in GetName() argument
47 (void)service; in GetName()
51 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
53 TestService *testService = (TestService *)service; in Initialize()
68 static BOOL MessageHandle(Service *service, Request *request) in MessageHandle() argument
70 TestService *testService = (TestService *)service; in MessageHandle()
[all …]
/test/xts/device_attest_lite/framework/small/src/service/
Dattest_framework_server.c31 static const char *GetName(Service *service) in GetName() argument
33 (void)service; in GetName()
37 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
39 AttestFrameworkService *attestService = (AttestFrameworkService *)service; in Initialize()
44 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
46 (void)service; in MessageHandle()
51 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
53 (void)service; in GetTaskConfig()
/test/xts/hats/hdf/wlan/hdi_service/
Dwlan_callback_impl.c63 struct WlanCallbackService *service = in WlanCallbackServiceGet() local
65 if (service == NULL) { in WlanCallbackServiceGet()
70 service->interface.ResetDriverResult = WlanCallbackResetDriver; in WlanCallbackServiceGet()
71 service->interface.ScanResult = WlanCallbackScanResult; in WlanCallbackServiceGet()
72 service->interface.WifiNetlinkMessage = WlanCallbackNetlinkMessage; in WlanCallbackServiceGet()
73 return &service->interface; in WlanCallbackServiceGet()
78 struct WlanCallbackService *service = (struct WlanCallbackService *)instance; in WlanCallbackServiceRelease() local
79 if (service == NULL) { in WlanCallbackServiceRelease()
83 OsalMemFree(service); in WlanCallbackServiceRelease()
/test/testfwk/arkxtest/jsunit/src/
Devent.js23 subscribeEvent(service) { argument
24 this.eventMonitors.push(service);
47 subscribeEvent(service) { argument
48 this.eventMonitors.push(service);
71 subscribeEvent(service) { argument
72 this.eventMonitors.push(service);
Dcore.js49 addService(name, service) { argument
56 serviceObj[service.id] = service;
130 const service = serviceObj[serviceID];
131 service.init(context);
133 if (typeof service.apis !== 'function') {
136 const apis = service.apis();
/test/xts/hats/hdf/camera/hdi/cameraAttr/src/
Dhdi_host_test.cpp56 Test_->rc = Test_->service->GetCameraIds(Test_->cameraIds);
73 Test_->rc = Test_->service->GetCameraIds(Test_->cameraIds);
76 Test_->rc = Test_->service->GetCameraAbility(Test_->cameraIds[i], Test_->ability);
94 Test_->rc = Test_->service->GetCameraAbility(cameraId, Test_->ability);
111 Test_->rc = Test_->service->GetCameraAbility(cameraId, Test_->ability);
127 Test_->service->GetCameraIds(Test_->cameraIds);
129 …Test_->rc = Test_->service->OpenCamera(Test_->cameraIds.front(), Test_->deviceCallback, Test_->cam…
151 … Test_->rc = Test_->service->OpenCamera(cameraId, Test_->deviceCallback, Test_->cameraDevice);
168 … Test_->rc = Test_->service->OpenCamera(cameraId, Test_->deviceCallback, Test_->cameraDevice);
185 … Test_->rc = Test_->service->OpenCamera(cameraId, Test_->deviceCallback, Test_->cameraDevice);
[all …]
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/
DLiteIPCServiceTest.cpp40 static const char *GetName(Service *service) in GetName() argument
42 (void)service; in GetName()
45 static const char *GetName2(Service *service) in GetName2() argument
47 (void)service; in GetName2()
50 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
52 DemoService *demoService = (DemoService *)service; in Initialize()
59 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
62 pthread_self(), service->GetName(service), msg->msgId, msg->msgValue, msg->data); in MessageHandle()
66 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
68 (void)service; in GetTaskConfig()
[all …]
DIUnknownTest.cpp35 static const char *GetName(Service *service) in GetName() argument
37 (void)service; in GetName()
46 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
48 ExampleService *example = (ExampleService *)service; in Initialize()
53 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
55 (void)service; in MessageHandle()
60 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
62 (void)service; in GetTaskConfig()
150 Service *service = SAMGR_GetInstance()->UnregisterService(SERVICE_NAME); in TearDown() local
151 if (service == nullptr) { in TearDown()
DTaskpoolNoTaskTest.cpp58 static const char *GetName(Service *service) in GetName() argument
60 (void)service; in GetName()
64 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
66 DemoService *demoService = (DemoService *)service; in Initialize()
71 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
73 (void)service; in MessageHandle()
78 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
80 (void)service; in GetTaskConfig()
DLiteIPCFeatureTest.cpp34 static const char *GetName(Service *service) in GetName() argument
36 (void)service; in GetName()
40 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
42 DemoService *demoService = (DemoService *)service; in Initialize()
48 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
50 (void)service; in MessageHandle()
55 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
57 (void)service; in GetTaskConfig()
251 Service *service = SAMGR_GetInstance()->UnregisterService(SERVICE_NAME); variable
252 ASSERT_EQ(service != nullptr, TRUE);
DServiceTest.cpp41 static const char *GetName(Service *service) in GetName() argument
43 (void)service; in GetName()
47 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
50 ExampleService *example = (ExampleService *)service; in Initialize()
55 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
57 (void)service; in MessageHandle()
61 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
63 (void)service; in GetTaskConfig()
DTaskpoolSingleTaskTest.cpp38 static const char *GetName(Service *service);
39 static BOOL Initialize(Service *service, Identity identity);
40 static BOOL MessageHandle(Service *service, Request *msg);
41 static TaskConfig GetTaskConfig(Service *service);
160 static const char *GetName(Service *service) in GetName() argument
162 if (service == (Service *)&g_service[INDEX0]) { in GetName()
164 } else if (service == (Service *)&g_service[INDEX1]) { in GetName()
166 } else if (service == (Service *)&g_service[INDEX2]) { in GetName()
174 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
176 DemoService *demoService = (DemoService *)service; in Initialize()
[all …]
DDefaultFeatureApiTest.cpp34 static const char *GetName(Service *service) in GetName() argument
36 (void)service; in GetName()
40 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
42 ExampleService *example = (ExampleService *)service; in Initialize()
47 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
49 (void)service; in MessageHandle()
54 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
56 (void)service; in GetTaskConfig()
DFeatureTest.cpp36 static const char *GetName(Service *service) in GetName() argument
38 (void)service; in GetName()
42 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
44 ExampleService *example = (ExampleService *)service; in Initialize()
49 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
52 (void)service; in MessageHandle()
56 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
58 (void)service; in GetTaskConfig()
DTaskpoolSpecifiedTaskTest.cpp25 static const char *GetName(Service *service);
26 static BOOL Initialize(Service *service, Identity identity);
27 static BOOL MessageHandle(Service *service, Request *msg);
28 static TaskConfig GetTaskConfig(Service *service);
113 static const char *GetName(Service *service) in GetName() argument
115 if (service == (Service *)&g_createService[0]) { in GetName()
122 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
124 DemoService *demoService = (DemoService *)service; in Initialize()
130 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
132 DemoService *demoService = (DemoService *)service; in MessageHandle()
[all …]
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/src/
Dtaskpool_notask_func_test.c61 static const char *GetName(Service *service) in GetName() argument
63 (void)service; in GetName()
67 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
69 DemoService *service1 = (DemoService *)service; in Initialize()
74 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
76 (void)service; in MessageHandle()
81 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
83 (void)service; in GetTaskConfig()
Dservice_func_test.c44 static const char *GetName(Service *service) in GetName() argument
46 (void)service; in GetName()
50 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
52 ExampleService *example = (ExampleService *)service; in Initialize()
57 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
60 (void)service; in MessageHandle()
64 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
66 (void)service; in GetTaskConfig()
Diunknown_func_test.c34 static const char *GetName(Service *service) in GetName() argument
36 (void)service; in GetName()
45 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
47 ExampleService *example = (ExampleService *)service; in Initialize()
52 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
54 (void)service; in MessageHandle()
59 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
61 (void)service; in GetTaskConfig()
Ddefaultfeatureapi_func_test.c35 static const char *GetName(Service *service) in GetName() argument
37 (void)service; in GetName()
41 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
43 ExampleService *example = (ExampleService *)service; in Initialize()
48 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
50 (void)service; in MessageHandle()
55 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
57 (void)service; in GetTaskConfig()
Dtaskpool_specifiedtask_func_test.c29 static const char *GetName(Service *service);
30 static BOOL Initialize(Service *service, Identity identity);
31 static BOOL MessageHandle(Service *service, Request *msg);
32 static TaskConfig GetTaskConfig(Service *service);
116 static const char *GetName(Service *service) in GetName() argument
118 if (service == (Service *)&g_service[0]) { in GetName()
125 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
127 DemoService *demoService = (DemoService *)service; in Initialize()
133 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
136 DemoService *demoService = (DemoService *)service; in MessageHandle()
[all …]
Dtaskpool_singletask_func_test.c32 static const char *GetName(Service *service);
33 static BOOL Initialize(Service *service, Identity identity);
34 static BOOL MessageHandle(Service *service, Request *msg);
35 static TaskConfig GetTaskConfig(Service *service);
160 static const char *GetName(Service *service) in GetName() argument
162 if (service == (Service *)&g_service[INDEX0]) { in GetName()
164 } else if (service == (Service *)&g_service[INDEX1]) { in GetName()
166 } else if (service == (Service *)&g_service[INDEX2]) { in GetName()
174 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
176 DemoService *demoService = (DemoService *)service; in Initialize()
[all …]
Dfeature_func_test.c38 static const char *GetName(Service *service) in GetName() argument
40 (void)service; in GetName()
44 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
46 ExampleService *example = (ExampleService *)service; in Initialize()
51 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
54 (void)service; in MessageHandle()
58 static TaskConfig GetTaskConfig(Service *service) in GetTaskConfig() argument
60 (void)service; in GetTaskConfig()
Dtaskpool_sharedtask_func_test.c29 static const char *GetName(Service *service);
30 static BOOL Initialize(Service *service, Identity identity);
31 static BOOL MessageHandle(Service *service, Request *msg);
32 static TaskConfig GetTaskConfig(Service *service);
123 static const char *GetName(Service *service) in GetName() argument
125 if (service == (Service *)&g_service[0]) { in GetName()
132 static BOOL Initialize(Service *service, Identity identity) in Initialize() argument
134 DemoService *demoService = (DemoService *)service; in Initialize()
140 static BOOL MessageHandle(Service *service, Request *msg) in MessageHandle() argument
143 DemoService *demoService = (DemoService *)service; in MessageHandle()
[all …]
/test/xts/hats/hdf/camera/hdi/cameraExt/src/
Dflashlight_test.cpp45 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
61 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
66 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
86 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
112 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
146 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
173 Test_->rc = Test_->service->SetFlashlight(Test_->cameraIds.front(), Test_->status);
/test/xts/hats/hdf/camera/hdi/cameraFunction/src/
Dopen_camera_test.cpp43 Test_->service->GetCameraIds(Test_->cameraIds);
50 Test_->rc = Test_->service->OpenCamera(cameraId, Test_->deviceCallback, Test_->cameraDevice);
72 Test_->service->GetCameraIds(Test_->cameraIds);
76 … Test_->rc = Test_->service->OpenCamera(cameraId, Test_->deviceCallback, Test_->cameraDevice);

1234