Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 502) sorted by relevance

12345678910>>...21

/drivers/hdf_core/framework/core/shared/src/
Dservice_status.c13 int ServiceStatusMarshalling(struct ServiceStatus *status, struct HdfSBuf *buf) in ServiceStatusMarshalling() argument
15 if (status == NULL || buf == NULL || status->serviceName == NULL) { in ServiceStatusMarshalling()
18 if (!HdfSbufWriteString(buf, status->serviceName) in ServiceStatusMarshalling()
19 || !HdfSbufWriteUint16(buf, status->deviceClass) in ServiceStatusMarshalling()
20 || !HdfSbufWriteUint16(buf, status->status) in ServiceStatusMarshalling()
21 || !HdfSbufWriteString(buf, status->info != NULL ? status->info : "")) { in ServiceStatusMarshalling()
29 int ServiceStatusUnMarshalling(struct ServiceStatus *status, struct HdfSBuf *buf) in ServiceStatusUnMarshalling() argument
31 if (status == NULL || buf == NULL) { in ServiceStatusUnMarshalling()
34 status->serviceName = HdfSbufReadString(buf); in ServiceStatusUnMarshalling()
35 if (status->serviceName == NULL) { in ServiceStatusUnMarshalling()
[all …]
/drivers/peripheral/nfc/hdi_service/
Dnfc_impl.cpp30 static void EventCallback(unsigned char event, unsigned char status) in EventCallback() argument
33 g_callbackV1_0->OnEvent((NfcEvent)event, (NfcStatus)status); in EventCallback()
55 int32_t NfcImpl::Open(const sptr<INfcCallback> &callbackObj, NfcStatus &status) in Open() argument
65 status = NfcStatus::OK; in Open()
68 status = NfcStatus::FAILED; in Open()
72 int32_t NfcImpl::CoreInitialized(const std::vector<uint8_t> &data, NfcStatus &status) in CoreInitialized() argument
80 status = NfcStatus::OK; in CoreInitialized()
83 status = NfcStatus::FAILED; in CoreInitialized()
87 int32_t NfcImpl::Prediscover(NfcStatus &status) in Prediscover() argument
91 status = NfcStatus::OK; in Prediscover()
[all …]
Dnfc_impl.h29 int32_t Open(const sptr<INfcCallback> &callbackObj, NfcStatus &status) override;
30 int32_t CoreInitialized(const std::vector<uint8_t> &data, NfcStatus &status) override;
31 int32_t Prediscover(NfcStatus &status) override;
32 int32_t Write(const std::vector<uint8_t> &data, NfcStatus &status) override;
33 int32_t ControlGranted(NfcStatus &status) override;
34 int32_t PowerCycle(NfcStatus &status) override;
35 int32_t Close(NfcStatus &status) override;
36 int32_t Ioctl(NfcCommand cmd, const std::vector<uint8_t> &data, NfcStatus &status) override;
/drivers/peripheral/usb/sample/host/src/
Dusbhost_ddk_test.c181 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_READ_PARM, g_data, … in UsbHostDdkTestAsyncRead() local
183 … int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_READ_PARM, g_data, g_reply); in UsbHostDdkTestAsyncRead() local
185 if (status < 0) { in UsbHostDdkTestAsyncRead()
187 printf("%s:%d Dispatch USB_SERIAL_READ failed status = %d\n", __func__, __LINE__, status); in UsbHostDdkTestAsyncRead()
188 HDF_LOGE("%s:%d Dispatch USB_SERIAL_READ failed status = %d", __func__, __LINE__, status); in UsbHostDdkTestAsyncRead()
189 return status; in UsbHostDdkTestAsyncRead()
222 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_WRITE_PARM, g_data,… in UsbHostDdkTestAsyncWrite() local
224 …int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_WRITE_PARM, g_data, g_reply); in UsbHostDdkTestAsyncWrite() local
226 if (status <= HDF_SUCCESS) { in UsbHostDdkTestAsyncWrite()
228 printf("%s:%d Dispatch USB_SERIAL_WRITE failed status = %d\n", __func__, __LINE__, status); in UsbHostDdkTestAsyncWrite()
[all …]
/drivers/peripheral/usb/sample/device/linux/
Dacm_speed_read.c37 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in TestSpeed() local
39 if (status) { in TestSpeed()
41 __func__, status); in TestSpeed()
50 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in GetTempSpeed() local
52 if (status) { in GetTempSpeed()
54 __func__, status); in GetTempSpeed()
68 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in ReadSpeedDone() local
70 if (status) { in ReadSpeedDone()
72 __func__, status); in ReadSpeedDone()
88 int32_t status; in AcmSpeedRead() local
[all …]
Dacm_speed_write.c38 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in TestSpeed() local
40 if (status) { in TestSpeed()
42 __func__, status); in TestSpeed()
51 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in GetTempSpeed() local
53 if (status) { in GetTempSpeed()
55 __func__, status); in GetTempSpeed()
69 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in WriteSpeedDone() local
71 if (status) { in WriteSpeedDone()
73 __func__, status); in WriteSpeedDone()
90 int32_t status; in AcmSpeedWrite() local
[all …]
Dprop_test.c74 int32_t status = -1; in TestPropGet() local
80 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_GET_PROP, g_data, g_reply); in TestPropGet()
81 if (status != HDF_SUCCESS) { in TestPropGet()
82 HDF_LOGE("%s: Dispatch USB_SERIAL_GET_PROP failed status = %d", __func__, status); in TestPropGet()
93 return status; in TestPropGet()
98 int32_t status = -1; in TestPropSet() local
107 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_SET_PROP, g_data, g_reply); in TestPropSet()
108 if (status != HDF_SUCCESS) { in TestPropSet()
112 return status; in TestPropSet()
117 int32_t status; in TestPropRegist() local
[all …]
Dacm_write.c37 …int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_WRITE, g_data, g_repl… in TestWrite() local
38 if (status != HDF_SUCCESS) { in TestWrite()
39 HDF_LOGE("%s: Dispatch USB_SERIAL_WRITE failed status = %d", __func__, status); in TestWrite()
64 …int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_OPEN, g_data, g_reply… in AcmWrite() local
65 if (status != HDF_SUCCESS) { in AcmWrite()
72status = snprintf_s(str, STR_LEN, STR_LEN - 1, "[XTSCHECK] %d.%06d, send data[%s] to host\n", time… in AcmWrite()
74 if (status < 0) { in AcmWrite()
87 status = g_acmService->dispatcher->Dispatch(g_acmService, USB_SERIAL_CLOSE, g_data, g_reply); in AcmWrite()
88 if (status) { in AcmWrite()
/drivers/peripheral/secure_element/hdi_service/
Dse_impl.cpp37 …t32_t SeImpl::init(const sptr<ISecureElementCallback>& clientCallback, SecureElementStatus& status) in init() argument
39 return adaptor_.init(clientCallback, status); in init()
53 uint8_t& channelNumber, SecureElementStatus& status) in openLogicalChannel() argument
55 return adaptor_.openLogicalChannel(aid, p2, response, channelNumber, status); in openLogicalChannel()
59 SecureElementStatus& status) in openBasicChannel() argument
61 return adaptor_.openBasicChannel(aid, p2, response, status); in openBasicChannel()
64 int32_t SeImpl::closeChannel(uint8_t channelNumber, SecureElementStatus& status) in closeChannel() argument
66 return adaptor_.closeChannel(channelNumber, status); in closeChannel()
70 SecureElementStatus& status) in transmit() argument
72 return adaptor_.transmit(command, response, status); in transmit()
[all …]
/drivers/peripheral/secure_element/vendor_adaptor/
Dse_vendor_adaptions.cpp36 …dorAdaptions::init(const sptr<ISecureElementCallback>& clientCallback, SecureElementStatus& status) in init() argument
41 status = SecureElementStatus::SE_NULL_POINTER_ERROR; in init()
48 status = SecureElementStatus::SE_GENERAL_ERROR; in init()
53 status = SecureElementStatus::SE_SUCCESS; in init()
84 std::vector<uint8_t>& response, uint8_t& channelNumber, SecureElementStatus& status) in openLogicalChannel() argument
89 status = SecureElementStatus::SE_ILLEGAL_PARAMETER_ERROR; in openLogicalChannel()
100 status = SecureElementStatus::SE_GENERAL_ERROR; in openLogicalChannel()
103 status = SecureElementStatus::SE_SUCCESS; in openLogicalChannel()
108 SecureElementStatus& status) in openBasicChannel() argument
113 status = SecureElementStatus::SE_ILLEGAL_PARAMETER_ERROR; in openBasicChannel()
[all …]
/drivers/peripheral/usb/sample/device/liteos/
Dprop_test.c82 int32_t status = -1; in TestPropGet() local
88status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_GET_PROP, g_data, g_… in TestPropGet()
89 if (status != HDF_SUCCESS) { in TestPropGet()
90 HDF_LOGE("%s: Dispatch USB_SERIAL_GET_PROP failed status = %d", __func__, status); in TestPropGet()
101 return status; in TestPropGet()
106 int32_t status = -1; in TestPropSet() local
115status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_SET_PROP, g_data, g_… in TestPropSet()
116 if (status != HDF_SUCCESS) { in TestPropSet()
120 return status; in TestPropSet()
125 int32_t status; in TestPropRegist() local
[all …]
Dacm_speed_write.c60 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in TestSpeed() local
62 if (status != HDF_SUCCESS) { in TestSpeed()
64 __func__, status); in TestSpeed()
74 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in GetTempSpeed() local
76 if (status != HDF_SUCCESS) { in GetTempSpeed()
78 __func__, status); in GetTempSpeed()
92 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in WriteSpeedDone() local
94 if (status != HDF_SUCCESS) { in WriteSpeedDone()
96 __func__, status); in WriteSpeedDone()
144 int32_t status; in AcmSpeedWrite() local
[all …]
Dacm_test.c53 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_WRITE, g_dat… in TestWrite() local
54 if (status != HDF_SUCCESS) { in TestWrite()
55 HDF_LOGE("%s: Dispatch USB_SERIAL_WRITE failed status = %d", __func__, status); in TestWrite()
62 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_READ, g_data… in TestRead() local
63 if (status != HDF_SUCCESS) { in TestRead()
64 printf("%s: Dispatch USB_SERIAL_READ failed status = %d", __func__, status); in TestRead()
136 int32_t status; in AcmTest() local
150status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_repl… in AcmTest()
151 if (status != HDF_SUCCESS) { in AcmTest()
158status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_CLOSE, g_data, g_rep… in AcmTest()
[all …]
Dacm_speed_read.c61 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_READ_SPEED, … in TestSpeed() local
62 if (status != HDF_SUCCESS) { in TestSpeed()
73 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in GetTempSpeed() local
75 if (status != HDF_SUCCESS) { in GetTempSpeed()
77 __func__, status); in GetTempSpeed()
91 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in ReadSpeedDone() local
93 if (status != HDF_SUCCESS) { in ReadSpeedDone()
95 __func__, status); in ReadSpeedDone()
143 int32_t status; in AcmSpeedRead() local
157status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_repl… in AcmSpeedRead()
[all …]
/drivers/peripheral/usb/sample/device/liteos/lib/src/
Dlib_acm_test.c59 int32_t status; in AcmOpen() local
70status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_repl… in AcmOpen()
71 if (status != HDF_SUCCESS) { in AcmOpen()
78 int32_t status; in AcmClose() local
83status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_CLOSE, g_data, g_rep… in AcmClose()
84 if (status != HDF_SUCCESS) { in AcmClose()
100 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_WRITE, g_dat… in AcmWrite() local
101 if (status != HDF_SUCCESS) { in AcmWrite()
102 HDF_LOGE("%s: Dispatch USB_SERIAL_WRITE failed status = %d", __func__, status); in AcmWrite()
118 …int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_READ, g_data… in AcmRead() local
[all …]
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/
Dmessage_router.c82 HDF_STATUS status = OsalMutexTimedLock(&g_routerMutex, HDF_WAIT_FOREVER); in RefDispatcherInner() local
83 if (status != HDF_SUCCESS) { in RefDispatcherInner()
84 HDF_LOGE("Unable to get lock!status=%d", status); in RefDispatcherInner()
101 HDF_STATUS status = OsalMutexUnlock(&g_routerMutex); in RefDispatcherInner() local
102 if (status != HDF_SUCCESS) { in RefDispatcherInner()
103 HDF_LOGE("Unable to unlock!status=%d", status); in RefDispatcherInner()
111 HDF_STATUS status; in RegDispatcher() local
118 status = OsalMutexTimedLock(&g_routerMutex, HDF_WAIT_FOREVER); in RegDispatcher()
119 if (status != HDF_SUCCESS) { in RegDispatcher()
120 HDF_LOGE("Unable to get lock!status=%d", status); in RegDispatcher()
[all …]
Dmessage_dispatcher.c100 if (dispatcher->status != ME_STATUS_RUNNING) { in AppendToLocalDispatcher()
137 HDF_STATUS status; in HandleSyncResponse() local
142 status = OsalSemPost(&context->rspSemaphore); in HandleSyncResponse()
143 if (status != HDF_SUCCESS) { in HandleSyncResponse()
256 if (dispatcher->status != ME_STATUS_STARTTING) { in RunDispatcher()
263 dispatcher->status = ME_STATUS_RUNNING; in RunDispatcher()
265 while (dispatcher->status == ME_STATUS_RUNNING) { in RunDispatcher()
274 dispatcher->status = ME_STATUS_TODESTROY; in RunDispatcher()
286 HDF_STATUS status; in StartDispatcher() local
295 status = OsalMutexTimedLock(&dispatcher->mutex, HDF_WAIT_FOREVER); in StartDispatcher()
[all …]
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dservstat_listener_stub.cpp39 ServiceStatus status; in ServStatListenerStubOnReceive() local
46 status.serviceName = (name == nullptr) ? "" : name; in ServStatListenerStubOnReceive()
47 if (status.serviceName.empty()) { in ServStatListenerStubOnReceive()
52 if (!data.ReadUint16(status.deviceClass) || !data.ReadUint16(status.status)) { in ServStatListenerStubOnReceive()
58 status.info = (info == nullptr) ? "" : info; in ServStatListenerStubOnReceive()
60 OnReceive(status); in ServStatListenerStubOnReceive()
Diservmgr_client.cpp86 int status = Remote()->SendRequest( in RegisterServiceStatusListener() local
89 if (status) { in RegisterServiceStatusListener()
90 HDF_LOGE("failed to register servstat listener, %{public}d", status); in RegisterServiceStatusListener()
92 return status; in RegisterServiceStatusListener()
106 int status = Remote()->SendRequest( in UnregisterServiceStatusListener() local
110 if (status) { in UnregisterServiceStatusListener()
111 HDF_LOGE("failed to unregister servstat listener, %{public}d", status); in UnregisterServiceStatusListener()
113 return status; in UnregisterServiceStatusListener()
126 int status = Remote()->SendRequest( in GetService() local
129 if (status) { in GetService()
[all …]
/drivers/hdf_core/framework/core/manager/test/unittest/common/
Dhdf_remote_adapter_test.cpp116 bool status = HdfRemoteServiceSetInterfaceDesc(service, "ohos.hdi.foo.v1_1.ifoo"); variable
117 ASSERT_TRUE(status);
123 status = parcel->WriteInterfaceToken(u"ohos.hdi.foo.v1_0.ifoo");
124 ASSERT_TRUE(status);
125 status = HdfRemoteServiceCheckInterfaceToken(service, sBuf);
126 ASSERT_TRUE(status);
134 int status = HdfRemoteServiceSetInterfaceDesc(service, "ohos.hdi.foo.v1_1.ifoo"); variable
135 ASSERT_TRUE(status);
141 status = parcel->WriteInterfaceToken(u"ohos.hdi.foo.v1_0");
142 ASSERT_TRUE(status);
[all …]
/drivers/hdf_core/adapter/uhdf2/manager/
Ddevice_manager.c28 int status = HDF_FAILURE; in main() local
32 return status; in main()
36 status = instance->StartService(instance); in main()
40 if (status == HDF_SUCCESS) { in main()
48 HDF_LOGE("starting device manager service failed, status is %{public}d", status); in main()
49 return status; in main()
/drivers/peripheral/camera/vdi_base/usb_camera/camera_config/pipeline_core/
Dconfig.hcs7 status = "";
27 status = "new";
40 status = "new";
56 status = "new";
70 status = "new";
83 status = "new";
99 status = "new";
113 status = "new";
126 status = "new";
148 status = "new";
[all …]
/drivers/hdf_core/adapter/uhdf2/hcs/camera/hal/mpp/hispark_taurus/pipeline_core/
Dconfig.hcs7 status = "";
27 status = "new";
40 status = "new";
56 status = "new";
72 status = "new";
86 status = "new";
99 status = "new";
115 status = "new";
131 status = "new";
147 status = "new";
[all …]
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/nodes/
Dlocal_node.c55 HDF_STATUS status; in HandleResponseMessage() local
63 status = OsalSemPost(&context->rspSemaphore); in HandleResponseMessage()
64 if (status != HDF_SUCCESS) { in HandleResponseMessage()
65 HDF_LOGE("%s: OsalSemPost failed! status=%d", __func__, status); in HandleResponseMessage()
122 service->status = ME_STATUS_TODESTROY; in ShutdownLocalService()
162 service->status = ME_STATUS_RUNNING; in CreateLocalNodeService()
194 HDF_STATUS status; in InitLocalNode() local
201 status = OsalMutexTimedLock(&node->mutex, HDF_WAIT_FOREVER); in InitLocalNode()
202 if (status != HDF_SUCCESS) { in InitLocalNode()
208 if (node->status != ME_STATUS_STOPPED) { in InitLocalNode()
[all …]
/drivers/hdf_core/adapter/uhdf2/manager/src/
Ddevmgr_query_device.c31 uint16_t status = 0; in DevFillQueryDeviceInfo() local
38 HdfSbufReadUint16(data, &status); in DevFillQueryDeviceInfo()
39 if (status != HDF_SERVICE_UNUSABLE && status != HDF_SERVICE_USABLE) { in DevFillQueryDeviceInfo()
40 HDF_LOGE("%{public}s failed, status is invalid %{public}d", __func__, status); in DevFillQueryDeviceInfo()
50 … deviceInfo->svcName, deviceInfo->policy, deviceInfo->status, deviceInfo->deviceType); in DevFillQueryDeviceInfo()
52 deviceInfo->status == status) { in DevFillQueryDeviceInfo()

12345678910>>...21