/drivers/hdf_core/framework/core/shared/src/ |
H A D | service_status.c | 13 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() 22 HDF_LOGI("failed to marshalling service status"); in ServiceStatusMarshalling() 29 ServiceStatusUnMarshalling(struct ServiceStatus *status, struct HdfSBuf *buf) ServiceStatusUnMarshalling() argument [all...] |
/drivers/peripheral/usb/sample/host/src/ |
H A D | usbhost_ddk_test.c | 181 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_READ_PARM, g_data, g_reply); 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("%{public}s:%{public}d Dispatch USB_SERIAL_READ failed status = %{public}d", in UsbHostDdkTestAsyncRead() 189 __func__, __LINE__, status); in UsbHostDdkTestAsyncRead() 190 return status; in UsbHostDdkTestAsyncRead() 223 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_WRITE_PARM, g_data, g_reply); in UsbHostDdkTestAsyncWrite() local 225 int32_t status in UsbHostDdkTestAsyncWrite() local 245 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_READ_DATA_SYNC, g_data, g_reply); UsbHostDdkTestSyncRead() local 247 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_READ_DATA_SYNC, g_data, g_reply); UsbHostDdkTestSyncRead() local 282 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_WRITE_DATA_SYNC, g_data, g_reply); UsbHostDdkTestSyncWrite() local 284 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_WRITE_DATA_SYNC, g_data, g_reply); UsbHostDdkTestSyncWrite() local 304 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_CLASS_CTRL_SYNC, g_data, g_reply); UsbHostDdkTestCtrlClass() local 306 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_CLASS_CTRL_SYNC, g_data, g_reply); UsbHostDdkTestCtrlClass() local 330 int32_t status = UsbHostDdkTestStdGetDes() local 333 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_STD_CTRL_GET_DESCRIPTOR_CMD, g_data, g_reply); UsbHostDdkTestStdGetDes() local 364 int32_t status = UsbHostDdkTestStdGetDesAsync() local 367 int32_t status = UsbHostDdkTestStdGetDesAsync() local 402 int32_t status = UsbHostDdkTestStdGetStatus() local 405 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_STD_CTRL_GET_STATUS_CMD, g_data, g_reply); UsbHostDdkTestStdGetStatus() local 438 int32_t status = TestStdGetConf() local 441 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_STD_CTRL_GET_CONFIGURATION, g_data, g_reply); TestStdGetConf() local 465 int32_t status = TestStdGetInterface() local 468 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_STD_CTRL_GET_INTERFACE, g_data, g_reply); TestStdGetInterface() local 497 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_SET_BAUDRATE, g_data, g_reply); UsbHostDdkTestSetBaudrate() local 499 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_SET_BAUDRATE, g_data, g_reply); UsbHostDdkTestSetBaudrate() local 520 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_GET_BAUDRATE, g_data, g_reply); UsbHostDdkTestGetBaudrate() local 522 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_GET_BAUDRATE, g_data, g_reply); UsbHostDdkTestGetBaudrate() local 558 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_ADD_INTERFACE, g_data, g_reply); UsbHostDdkTestAddInterface() local 560 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_ADD_INTERFACE, g_data, g_reply); UsbHostDdkTestAddInterface() local 582 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_REMOVE_INTERFACE, g_data, g_reply); UsbHostDdkTestRemoveInterface() local 584 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_REMOVE_INTERFACE, g_data, g_reply); UsbHostDdkTestRemoveInterface() local 610 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_OPEN_PARM, g_data, g_reply); UsbHostDdkTestOpen() local 612 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_OPEN_PARM, g_data, g_reply); UsbHostDdkTestOpen() local 636 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, CMD_CLOSE_PARM, g_data, g_reply); UsbHostDdkTestClose() local 638 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, CMD_CLOSE_PARM, g_data, g_reply); UsbHostDdkTestClose() local [all...] |
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | servstat_listener_stub.cpp | 39 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() 53 HDF_LOGE("failed to read deviceClass or status in ServiceStatus"); in ServStatListenerStubOnReceive() 58 status.info = (info == nullptr) ? "" : info; in ServStatListenerStubOnReceive() 60 HDF_LOGI("call OnReceive, %{public}s, %{public}d", status.serviceName.c_str(), status in ServStatListenerStubOnReceive() [all...] |
H A D | iservmgr_client.cpp | 90 int status = Remote()->SendRequest( in RegisterServiceStatusListener() local 93 if (status) { in RegisterServiceStatusListener() 94 HDF_LOGE("failed to register servstat listener, %{public}d", status); in RegisterServiceStatusListener() 96 return status; in RegisterServiceStatusListener() 114 int status = Remote()->SendRequest( in UnregisterServiceStatusListener() local 118 if (status) { in UnregisterServiceStatusListener() 119 HDF_LOGE("failed to unregister servstat listener, %{public}d", status); in UnregisterServiceStatusListener() 121 return status; in UnregisterServiceStatusListener() 138 int status = Remote()->SendRequest( in GetService() local 141 if (status) { in GetService() 179 int status = Remote()->SendRequest( ListAllService() local 211 int status = Remote()->SendRequest( ListServiceByInterfaceDesc() local [all...] |
/drivers/peripheral/nfc/hdi_service/ |
H A D | nfc_impl.cpp | 37 static void EventCallback(unsigned char event, unsigned char status) in EventCallback() argument 40 g_callbackV1_1->OnEvent((NfcEvent)event, (NfcStatus)status); in EventCallback() 78 int32_t NfcImpl::Open(const sptr<INfcCallback> &callbackObj, NfcStatus &status) in Open() argument 92 status = NfcStatus::OK; in Open() 95 status = NfcStatus::FAILED; in Open() 99 int32_t NfcImpl::CoreInitialized(const std::vector<uint8_t> &data, NfcStatus &status) in CoreInitialized() argument 107 status = NfcStatus::OK; in CoreInitialized() 110 status = NfcStatus::FAILED; in CoreInitialized() 114 int32_t NfcImpl::Prediscover(NfcStatus &status) in Prediscover() argument 118 status in Prediscover() 125 Write(const std::vector<uint8_t> &data, NfcStatus &status) Write() argument 140 ControlGranted(NfcStatus &status) ControlGranted() argument 151 PowerCycle(NfcStatus &status) PowerCycle() argument 162 Close(NfcStatus &status) Close() argument 180 Ioctl(NfcCommand cmd, const std::vector<uint8_t> &data, NfcStatus &status) Ioctl() argument 195 IoctlWithResponse(NfcCommand cmd, const std::vector<uint8_t> &data, std::vector<uint8_t> &response, NfcStatus &status) IoctlWithResponse() argument 211 GetVendorConfig(NfcVendorConfig &config, NfcStatus &status) GetVendorConfig() argument 222 DoFactoryReset(NfcStatus &status) DoFactoryReset() argument 233 Shutdown(NfcStatus &status) Shutdown() argument 251 NfcStatus status = NfcStatus::FAILED; OnRemoteDied() local [all...] |
H A D | nfc_impl.h | 31 int32_t Open(const sptr<INfcCallback> &callbackObj, NfcStatus &status) override; 32 int32_t CoreInitialized(const std::vector<uint8_t> &data, NfcStatus &status) override; 33 int32_t Prediscover(NfcStatus &status) override; 34 int32_t Write(const std::vector<uint8_t> &data, NfcStatus &status) override; 35 int32_t ControlGranted(NfcStatus &status) override; 36 int32_t PowerCycle(NfcStatus &status) override; 37 int32_t Close(NfcStatus &status) override; 38 int32_t Ioctl(NfcCommand cmd, const std::vector<uint8_t> &data, NfcStatus &status) override; 40 NfcStatus &status) override; 41 int32_t GetVendorConfig(NfcVendorConfig &config, NfcStatus &status) overrid [all...] |
/drivers/peripheral/wlan/chip/hdi_service/ |
H A D | wifi_sta_iface.cpp | 65 WifiError status; in GetSupportFreqs() local 67 std::tie(status, validFrequencies) = vendorHal_.lock()->GetValidFrequenciesForBand( in GetSupportFreqs() 70 if (status == HAL_SUCCESS) { in GetSupportFreqs() 78 WifiError status = vendorHal_.lock()->GetSupportedFeatureSet(ifname_, capabilities); in GetIfaceCap() local 79 if (status != HAL_SUCCESS) { in GetIfaceCap() 87 bool status = ifaceUtil_.lock()->SetMacAddress(ifname_, mac); in SetMacAddress() local 88 if (!status) { in SetMacAddress() 96 WifiError status = vendorHal_.lock()->SetCountryCode(ifname_, code); in SetCountryCode() local 97 if (status == HAL_SUCCESS) { in SetCountryCode() 138 WifiError status in StartScan() local 148 WifiError status = vendorHal_.lock()->GetScanInfos(ifname_, scanResultsInfo); GetScanInfos() local 158 WifiError status = vendorHal_.lock()->StartPnoScan(ifname_, pnoParams); StartPnoScan() local 168 WifiError status = vendorHal_.lock()->StopPnoScan(ifname_); StopPnoScan() local 177 WifiError status = vendorHal_.lock()->GetSignalPollInfo(ifname_, signalPollResult); GetSignalPollInfo() local 191 WifiError status = vendorHal_.lock()->EnablePowerMode(ifname_, mode); EnablePowerMode() local 200 WifiError status = vendorHal_.lock()->SetDpiMarkRule(uid, protocol, enable); SetDpiMarkRule() local 209 WifiError status = vendorHal_.lock()->SetTxPower(ifname_, power); SetTxPower() local 226 WifiError status = vendorHal_.lock()->SendCmdToDriver(ifName, cmdId, paramBuf); SendCmdToDriver() local [all...] |
H A D | wifi_vendor_hal.cpp | 84 WifiError status = globalFuncTable_.waitDriverStart(); in Start() local 85 if (status == HAL_TIMED_OUT || status == HAL_UNKNOWN) { in Start() 87 return status; in Start() 90 status = globalFuncTable_.vendorHalInit(&globalHandle_); in Start() 91 if (status != HAL_SUCCESS || !globalHandle_) { in Start() 93 return status; in Start() 96 status = RetrieveIfaceHandles(); in Start() 97 if (status != HAL_SUCCESS || ifaceNameHandle_.empty()) { in Start() 99 return status; in Start() 177 const auto status = stopWaitCv_.wait_for( Stop() local 221 WifiError status = globalFuncTable_.vendorHalGetChannelsInBand( GetValidFrequenciesForBand() local 228 WifiError status = globalFuncTable_.vendorHalCreateIface( CreateVirtualInterface() local 239 WifiError status = globalFuncTable_.vendorHalDeleteIface( DeleteVirtualInterface() local 244 HandleIfaceChangeStatus( const std::string& ifname, WifiError status) HandleIfaceChangeStatus() argument 261 WifiError status = globalFuncTable_.vendorHalGetIfaces( RetrieveIfaceHandles() local 293 WifiError status = globalFuncTable_.vendorHalSetRestartHandler( RegisterRestartCallback() local 323 WifiError status = globalFuncTable_.getPowerMode(ifaceName.c_str(), &mode); GetPowerMode() local 345 WifiError status = globalFuncTable_.wifiStartScan(GetIfaceHandle(ifaceName), params); StartScan() local 351 WifiError status = globalFuncTable_.wifiStartPnoScan(GetIfaceHandle(ifaceName), pnoParams); StartPnoScan() local 357 WifiError status = globalFuncTable_.wifiStopPnoScan(GetIfaceHandle(ifaceName)); StopPnoScan() local 364 WifiError status = globalFuncTable_.getScanResults(GetIfaceHandle(ifaceName), scanResultsInfo); GetScanInfos() local [all...] |
H A D | wifi_ap_iface.cpp | 69 WifiError status; in GetSupportFreqs() local 71 std::tie(status, validFrequencies) = vendorHal_.lock()->GetValidFrequenciesForBand( in GetSupportFreqs() 74 if (status == HAL_SUCCESS) { in GetSupportFreqs() 87 bool status = ifaceUtil_.lock()->SetMacAddress(ifname_, mac); in SetMacAddress() local 88 if (!status) { in SetMacAddress() 96 WifiError status = vendorHal_.lock()->SetCountryCode(ifname_, code); in SetCountryCode() local 97 if (status != HAL_SUCCESS) { in SetCountryCode() 105 WifiError status; in GetPowerMode() local 108 std::tie(status, mode) = vendorHal_.lock()->GetPowerMode(ifname_); in GetPowerMode() 109 if (status in GetPowerMode() 118 WifiError status = vendorHal_.lock()->SetPowerMode(ifname_, powerMode); SetPowerMode() local 173 WifiError status = vendorHal_.lock()->SetTxPower(ifname_, power); SetTxPower() local 188 WifiError status = vendorHal_.lock()->SendCmdToDriver(ifName, cmdId, paramBuf); SendCmdToDriver() local [all...] |
/drivers/peripheral/usb/sample/device/liteos/lib/src/ |
H A D | lib_acm_test.c | 59 int32_t status; in AcmOpen() local 70 status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_OPEN, g_data, g_reply); in AcmOpen() 71 if (status != HDF_SUCCESS) { in AcmOpen() 78 int32_t status; in AcmClose() local 83 status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_CLOSE, g_data, g_reply); in AcmClose() 84 if (status != HDF_SUCCESS) { in AcmClose() 100 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_WRITE, g_data, g_reply); in AcmWrite() local 101 if (status != HDF_SUCCESS) { in AcmWrite() 102 HDF_LOGE("%{public}s: Dispatch USB_SERIAL_WRITE failed status = %{public}d", __func__, status); in AcmWrite() 118 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_READ, g_data, g_reply); AcmRead() local 145 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_REGIST_PROP, g_data, g_reply); acm_prop_regist() local 167 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_SET_PROP, g_data, g_reply); acm_prop_write() local 184 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_GET_PROP, g_data, g_reply); acm_prop_read() local [all...] |
/drivers/peripheral/nfc/test/unittest/nfc_impl_test/ |
H A D | nfc_impl_test.cpp | 66 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 68 int ret = nfcImpl->Open(callbackObj, status); in HWTEST_F() 80 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 82 int ret = nfcImpl->CoreInitialized(data, status); in HWTEST_F() 94 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 96 int ret = nfcImpl->CoreInitialized(data, status); in HWTEST_F() 107 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 109 int ret = nfcImpl->Prediscover(status); in HWTEST_F() 121 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 123 int ret = nfcImpl->Write(data, status); in HWTEST_F() 135 NfcStatus status = NfcStatus::OK; HWTEST_F() local 148 NfcStatus status = NfcStatus::OK; HWTEST_F() local 161 NfcStatus status = NfcStatus::OK; HWTEST_F() local 174 NfcStatus status = NfcStatus::OK; HWTEST_F() local 189 NfcStatus status = NfcStatus::OK; HWTEST_F() local 204 NfcStatus status = NfcStatus::OK; HWTEST_F() local 220 NfcStatus status = NfcStatus::OK; HWTEST_F() local 236 NfcStatus status = NfcStatus::OK; HWTEST_F() local 259 NfcStatus status = NfcStatus::OK; HWTEST_F() local 273 NfcStatus status = NfcStatus::OK; HWTEST_F() local 286 NfcStatus status = NfcStatus::OK; HWTEST_F() local 299 NfcStatus status = NfcStatus::OK; HWTEST_F() local [all...] |
/drivers/peripheral/secure_element/hdi_service/ |
H A D | se_impl.cpp | 43 int32_t SeImpl::init(const sptr<ISecureElementCallback>& clientCallback, SecureElementStatus& status) in init() argument 45 return adaptor_.init(clientCallback, status); in init() 59 uint8_t& channelNumber, SecureElementStatus& status) in openLogicalChannel() 61 return adaptor_.openLogicalChannel(aid, p2, response, channelNumber, status); in openLogicalChannel() 65 SecureElementStatus& status) in openBasicChannel() 67 return adaptor_.openBasicChannel(aid, p2, response, status); in openBasicChannel() 70 int32_t SeImpl::closeChannel(uint8_t channelNumber, SecureElementStatus& status) in closeChannel() argument 72 return adaptor_.closeChannel(channelNumber, status); in closeChannel() 76 SecureElementStatus& status) in transmit() 78 return adaptor_.transmit(command, response, status); in transmit() 58 openLogicalChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t>& response, uint8_t& channelNumber, SecureElementStatus& status) openLogicalChannel() argument 64 openBasicChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t>& response, SecureElementStatus& status) openBasicChannel() argument 75 transmit(const std::vector<uint8_t>& command, std::vector<uint8_t>& response, SecureElementStatus& status) transmit() argument 81 reset(SecureElementStatus& status) reset() argument [all...] |
/drivers/peripheral/secure_element/sim_hdi_service/ |
H A D | secure_element_interface_service.cpp | 33 OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) in init() 35 return adaptor_.init(clientCallback, status); in init() 50 OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) in openLogicalChannel() 52 return adaptor_.openLogicalChannel(aid, p2, response, channelNumber, status); in openLogicalChannel() 56 std::vector<uint8_t>& response, OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) in openBasicChannel() 58 return adaptor_.openBasicChannel(aid, p2, response, status); in openBasicChannel() 62 OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) in closeChannel() 64 return adaptor_.closeChannel(channelNumber, status); in closeChannel() 68 OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) in transmit() 70 return adaptor_.transmit(command, response, status); in transmit() 31 init( const sptr<OHOS::HDI::SecureElement::SimSecureElement::V1_0::ISecureElementCallback>& clientCallback, OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) init() argument 48 openLogicalChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t>& response, uint8_t& channelNumber, OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) openLogicalChannel() argument 55 openBasicChannel(const std::vector<uint8_t>& aid, uint8_t p2, std::vector<uint8_t>& response, OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) openBasicChannel() argument 61 closeChannel(uint8_t channelNumber, OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) closeChannel() argument 67 transmit(const std::vector<uint8_t>& command, std::vector<uint8_t>& response, OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) transmit() argument 73 reset( OHOS::HDI::SecureElement::SimSecureElement::V1_0::SecureElementStatus& status) reset() argument [all...] |
/drivers/peripheral/nfc/test/unittest/nfc_impl_mock_test/ |
H A D | nfc_impl_mock_test.cpp | 65 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 67 int ret = nfcImpl->Open(callbackObj, status); in HWTEST_F() 79 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 81 int ret = nfcImpl->CoreInitialized(data, status); in HWTEST_F() 93 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 95 int ret = nfcImpl->CoreInitialized(data, status); in HWTEST_F() 106 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 108 int ret = nfcImpl->Prediscover(status); in HWTEST_F() 120 NfcStatus status = NfcStatus::OK; in HWTEST_F() local 122 int ret = nfcImpl->Write(data, status); in HWTEST_F() 134 NfcStatus status = NfcStatus::OK; HWTEST_F() local 147 NfcStatus status = NfcStatus::OK; HWTEST_F() local 160 NfcStatus status = NfcStatus::OK; HWTEST_F() local 173 NfcStatus status = NfcStatus::OK; HWTEST_F() local 188 NfcStatus status = NfcStatus::OK; HWTEST_F() local 203 NfcStatus status = NfcStatus::OK; HWTEST_F() local 219 NfcStatus status = NfcStatus::OK; HWTEST_F() local 235 NfcStatus status = NfcStatus::OK; HWTEST_F() local 258 NfcStatus status = NfcStatus::OK; HWTEST_F() local 272 NfcStatus status = NfcStatus::OK; HWTEST_F() local 285 NfcStatus status = NfcStatus::OK; HWTEST_F() local [all...] |
/drivers/peripheral/usb/sample/device/linux/ |
H A D | prop_test.c | 74 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("%{public}s: Dispatch USB_SERIAL_GET_PROP failed status = %{public}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; TestPropRegist() local [all...] |
H A D | acm_speed_read.c | 37 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in TestSpeed() local 39 if (status) { in TestSpeed() 40 HDF_LOGE("%{public}s: Dispatch USB_SERIAL_WRITE_SPEED failed status = %{public}d", 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() 53 HDF_LOGE("%{public}s: Dispatch USB_SERIAL_WRITE_GET_TEMP_SPEED failed status = %{public}d", 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() 88 int32_t status; AcmSpeedRead() local [all...] |
H A D | acm_speed_write.c | 38 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in TestSpeed() local 40 if (status) { in TestSpeed() 41 HDF_LOGE("%{public}s: Dispatch USB_SERIAL_WRITE_SPEED failed status = %{public}d", 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() 54 HDF_LOGE("%{public}s: Dispatch USB_SERIAL_WRITE_GET_TEMP_SPEED failed status = %{public}d", 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() 90 int32_t status; AcmSpeedWrite() local [all...] |
/drivers/peripheral/usb/sample/device/liteos/ |
H A D | prop_test.c | 82 int32_t status = -1; in TestPropGet() local 88 status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_GET_PROP, g_data, g_reply); in TestPropGet() 89 if (status != HDF_SUCCESS) { in TestPropGet() 90 HDF_LOGE("%{public}s: Dispatch USB_SERIAL_GET_PROP failed status = %{public}d", __func__, status); in TestPropGet() 101 return status; in TestPropGet() 106 int32_t status = -1; in TestPropSet() local 115 status = g_acmService->dispatcher->Dispatch(&g_acmService->object, USB_SERIAL_SET_PROP, g_data, g_reply); in TestPropSet() 116 if (status != HDF_SUCCESS) { in TestPropSet() 120 return status; in TestPropSet() 125 int32_t status; TestPropRegist() local [all...] |
H A D | acm_speed_write.c | 60 int32_t status = g_acmService->dispatcher->Dispatch(&g_acmService->object, in TestSpeed() local 62 if (status != HDF_SUCCESS) { in TestSpeed() 63 HDF_LOGE("%{public}s: Dispatch USB_SERIAL_WRITE_SPEED failed status = %{public}d", 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() 77 HDF_LOGE("%{public}s: Dispatch USB_SERIAL_WRITE_GET_TEMP_SPEED failed status = %{public}d", in GetTempSpeed() 78 __func__, status); in GetTempSpeed() 92 int32_t status = g_acmService->dispatcher->Dispatch(g_acmService, in WriteSpeedDone() local 94 if (status ! in WriteSpeedDone() 144 int32_t status; AcmSpeedWrite() local [all...] |
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/ |
H A D | message_router.c | 82 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 in RegDispatcher() 341 HDF_STATUS status; RegistRemoteService() local 374 HDF_STATUS status; UnregistServiceInner() local 447 HDF_STATUS status; RefRemoteService() local 624 HDF_STATUS status; StartMessageRouter() local 687 HDF_STATUS status; ShutdownMessageRouter() local 709 HDF_STATUS status; RefMessageNode() local [all...] |
/drivers/hdf_core/framework/core/shared/test/unittest/common/ |
H A D | hdf_core_shared_test.cpp | 69 ServiceStatus *status = (struct ServiceStatus *)OsalMemCalloc(sizeof(struct ServiceStatus)); in HWTEST_F() local 70 ASSERT_NE(status, nullptr); in HWTEST_F() 71 ret = ServiceStatusMarshalling(status, nullptr); in HWTEST_F() 76 ret = ServiceStatusMarshalling(status, sBuf); in HWTEST_F() 78 OsalMemFree(status); in HWTEST_F() 86 ServiceStatus *status = (struct ServiceStatus *)OsalMemCalloc(sizeof(struct ServiceStatus)); in HWTEST_F() local 87 ASSERT_NE(status, nullptr); in HWTEST_F() 90 ret = ServiceStatusUnMarshalling(status, sBuf); in HWTEST_F() 94 ret = ServiceStatusUnMarshalling(status, sBuf); in HWTEST_F() 96 OsalMemFree(status); in HWTEST_F() [all...] |
/drivers/peripheral/secure_element/test/unittest/se_impl_test/ |
H A D | se_impl_test.cpp | 68 SecureElementStatus status; in HWTEST_F() local 70 int ret = seImpl->init(clientCallback, status); in HWTEST_F() 111 SecureElementStatus status; in HWTEST_F() local 113 int ret = seImpl->openLogicalChannel(aid, p2, response, channelNumber, status); in HWTEST_F() 128 SecureElementStatus status; in HWTEST_F() local 130 int ret = seImpl->openLogicalChannel(aid, p2, response, channelNumber, status); in HWTEST_F() 144 SecureElementStatus status; in HWTEST_F() local 146 int ret = seImpl->openBasicChannel(aid, p2, response, status); in HWTEST_F() 160 SecureElementStatus status; in HWTEST_F() local 162 int ret = seImpl->openBasicChannel(aid, p2, response, status); in HWTEST_F() 174 SecureElementStatus status; HWTEST_F() local 189 SecureElementStatus status; HWTEST_F() local 202 SecureElementStatus status; HWTEST_F() local [all...] |
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | devmgr_query_device.c | 31 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() 49 HDF_LOGD("%{public}s %{public}s policy:%{public}d status:%{public}d type:%{public}d", __func__, in DevFillQueryDeviceInfo() 50 deviceInfo->svcName, deviceInfo->policy, deviceInfo->status, deviceInfo->deviceType); in DevFillQueryDeviceInfo() 52 deviceInfo->status == status) { in DevFillQueryDeviceInfo() [all...] |
/drivers/hdf_core/adapter/uhdf2/manager/ |
H A D | device_manager.c | 31 int status = HDF_FAILURE; in main() local 35 return status; in main() 39 status = instance->StartService(instance); in main() 44 if (status == HDF_SUCCESS) { in main() 54 HDF_LOGE("starting device manager service failed, status is %{public}d", status); in main() 55 return status; in main()
|
/drivers/hdf_core/framework/test/fuzztest/devicemanagerstart_fuzzer/ |
H A D | devicemanagerstart_fuzzer.cpp | 32 int status = HDF_FAILURE;
in DeviceManagerStartServiceFuzzTest() local 36 return status;
in DeviceManagerStartServiceFuzzTest() 40 status = instance->StartService(instance);
in DeviceManagerStartServiceFuzzTest() 46 if (status == HDF_SUCCESS) {
in DeviceManagerStartServiceFuzzTest() 54 HDF_LOGI("end of hdf device manager fuzzer, status is %{public}d", status);
in DeviceManagerStartServiceFuzzTest() 55 return status;
in DeviceManagerStartServiceFuzzTest()
|