Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 218) sorted by relevance

123456789

/drivers/peripheral/usb/test/unittest/common/
Dusb_device_liteos_sdk_test.cpp60 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_CREATE_DEVICE, -1}; variable
61 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
66 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_CREATE_DEVICE002, -1}; variable
67 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
72 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_CREATE_DEVICE003, -1}; variable
73 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
78 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_CREATE_DEVICE004, -1}; variable
79 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
84 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_CREATE_DEVICE005, -1}; variable
85 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
/drivers/hdf_core/framework/support/platform/src/hdmi/
Dhdmi_cec.c149 static bool HdmiCecCheckTimerStatusMsgLen(struct HdmiCecMsg *msg) in HdmiCecCheckTimerStatusMsgLen() argument
152 uint8_t info = (msg->data[HDMI_CEC_MSG_DATA_SECOND_ELEMENT] & 0xf); in HdmiCecCheckTimerStatusMsgLen()
155 if ((msg->data[HDMI_CEC_MSG_DATA_SECOND_ELEMENT] & 0x10) > 0) { in HdmiCecCheckTimerStatusMsgLen()
158 (msg->len < HDMI_CEC_GET_MSG_LEN(HDMI_CEC_TIMER_STATUS_DATA_MAX_LEN))) { in HdmiCecCheckTimerStatusMsgLen()
163 if (msg->len < HDMI_CEC_GET_MSG_LEN(HDMI_CEC_TIMER_STATUS_DATA_MAX_LEN)) { in HdmiCecCheckTimerStatusMsgLen()
171 static bool HdmiCecCheckRecordOnMsgLen(struct HdmiCecMsg *msg) in HdmiCecCheckRecordOnMsgLen() argument
173 switch (msg->data[HDMI_CEC_MSG_DATA_SECOND_ELEMENT]) { in HdmiCecCheckRecordOnMsgLen()
177 if (msg->len < HDMI_CEC_GET_MSG_LEN(HDMI_CEC_RECORD_ON_DIGITAL_MSG_PARAM_LEN)) { in HdmiCecCheckRecordOnMsgLen()
183 if (msg->len < HDMI_CEC_GET_MSG_LEN(HDMI_CEC_RECORD_ON_ANALOG_MSG_PARAM_LEN)) { in HdmiCecCheckRecordOnMsgLen()
189 if (msg->len < HDMI_CEC_GET_MSG_LEN(HDMI_CEC_RECORD_ON_EXT_PLUG_MSG_PARAM_LEN)) { in HdmiCecCheckRecordOnMsgLen()
[all …]
/drivers/hdf_core/framework/test/unittest/platform/entry/
Dhdf_platform_entry_test.c24 int32_t HdfPlatformEventTestEntry(HdfTestMsg *msg) in HdfPlatformEventTestEntry() argument
26 if (msg != NULL) { in HdfPlatformEventTestEntry()
27 msg->result = PlatformEventTestExecute(msg->subCmd); in HdfPlatformEventTestEntry()
32 int32_t HdfPlatformQueueTestEntry(HdfTestMsg *msg) in HdfPlatformQueueTestEntry() argument
34 if (msg != NULL) { in HdfPlatformQueueTestEntry()
35 msg->result = PlatformQueueTestExecute(msg->subCmd); in HdfPlatformQueueTestEntry()
40 int32_t HdfPlatformDeviceTestEntry(HdfTestMsg *msg) in HdfPlatformDeviceTestEntry() argument
42 if (msg != NULL) { in HdfPlatformDeviceTestEntry()
43 msg->result = PlatformDeviceTestExecute(msg->subCmd); in HdfPlatformDeviceTestEntry()
48 int32_t HdfPlatformManagerTestEntry(HdfTestMsg *msg) in HdfPlatformManagerTestEntry() argument
[all …]
/drivers/peripheral/usb/test/unittest/host_sdk/liteos/
Dhdf_usb_raw_test.cpp172 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_START_IO, -1}; in SetUpTestCase() local
174 HdfTestSendMsgToService(&msg); in SetUpTestCase()
190 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_INIT_001_TEST, -1}; variable
191 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
202 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_EXIT_001_TEST, -1}; variable
203 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
214 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_INIT_002_TEST, -1}; variable
215 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
226 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_EXIT_002_TEST, -1}; variable
227 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_usb_test.cpp145 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_INIT_001_TEST, -1}; variable
146 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
157 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_EXIT_001_TEST, -1}; variable
158 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
169 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_INIT_002_TEST, -1}; variable
170 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
180 { struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_EXIT_002_TEST, -1}; variable
181 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
192 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_INIT_003_TEST, -1}; variable
193 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_usb_io_test.cpp144 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_INIT_001_TEST, -1}; variable
145 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
156 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_CLAIM_INTERFACE_006_TEST, -1}; variable
157 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
168 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_OPEN_INTERFACE_006_TEST, -1}; variable
169 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
180 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_SELECT_INTERFACE_006_TEST, -1}; variable
181 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
193 struct HdfTestMsg msg = {TEST_USB_HOST_TYPE, USB_HOSTSDK_CLAIM_INTERFACE_007_TEST, -1}; variable
194 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_usb_raw_io_test.cpp171 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_START_IO, -1}; in SetUpTestCase() local
173 HdfTestSendMsgToService(&msg); in SetUpTestCase()
178 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_STOP_IO, -1}; in TearDownTestCase() local
179 HdfTestSendMsgToService(&msg); in TearDownTestCase()
192 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_INIT_001_TEST, -1}; variable
194 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
205 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_OPEN_DEVICE_007_TEST, -1}; variable
207 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
218 struct HdfTestMsg msg = {TEST_USB_HOST_RAW_TYPE, USB_RAW_SDK_IF_GET_CONFIGURATION_004_TEST, -1}; variable
220 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
/drivers/hdf_core/framework/model/audio/core/test/unittest/common/
Daudio_core_test.cpp43 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIODEVICEREADREG, -1}; variable
44 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
49 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIODEVICEWRITEREG, -1}; variable
50 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
55 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIOSOCREGISTERPLATFORM, -1}; variable
56 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
61 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIOSOCREGISTERDAI, -1}; variable
62 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
67 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIOREGISTERDSP, -1}; variable
68 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
/drivers/hdf_core/framework/utils/src/hcs_parser/test/unittest/common/
Dhdf_config_test.cpp113 … struct HdfTestMsg msg = {TEST_CONFIG_TYPE, HDF_CREATE_DM_HSL_TO_TREE_001, HDF_MSG_RESULT_DEFAULT}; variable
115 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
126 …struct HdfTestMsg msg = {TEST_CONFIG_TYPE, HDF_GET_NODE_BY_ATTR_VALUE_001, HDF_MSG_RESULT_DEFAULT}; variable
127 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
138 …struct HdfTestMsg msg = {TEST_CONFIG_TYPE, HDF_GET_NODE_BY_ATTR_VALUE_002, HDF_MSG_RESULT_DEFAULT}; variable
139 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
150 struct HdfTestMsg msg = {TEST_CONFIG_TYPE, HDF_GET_BOOL_ATTR_VALUE_001, HDF_MSG_RESULT_DEFAULT}; variable
151 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
162 struct HdfTestMsg msg = {TEST_CONFIG_TYPE, HDF_GET_BOOL_ATTR_VALUE_002, HDF_MSG_RESULT_DEFAULT}; variable
163 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
/drivers/hdf_core/framework/model/audio/common/test/unittest/common/
Daudio_platform_base_test.cpp44 struct HdfTestMsg msg = {g_testAudioType, TESTDATAFROMCARD, -1}; variable
45 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
50 struct HdfTestMsg msg = {g_testAudioType, TESTBYTESTOFRAMES, -1}; variable
51 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
56 struct HdfTestMsg msg = {g_testAudioType, TESTDATABIGENDIANCHANGE, -1}; variable
57 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
62 struct HdfTestMsg msg = {g_testAudioType, TESTFRAMATTOBITWIDTH, -1}; variable
63 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
68 struct HdfTestMsg msg = {g_testAudioType, TESTSETPCMINFO, -1}; variable
69 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Daudio_dma_base_test.cpp44 struct HdfTestMsg msg = {g_testAudioType, TESTDMABUFALLOC, -1}; variable
45 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
50 struct HdfTestMsg msg = {g_testAudioType, TESTDMABUFFREE, -1}; variable
51 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
56 struct HdfTestMsg msg = {g_testAudioType, TESTDMAREQUESTCHANNEL, -1}; variable
57 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
62 struct HdfTestMsg msg = {g_testAudioType, TESTDMACONFIGCHANNEL, -1}; variable
63 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
68 struct HdfTestMsg msg = {g_testAudioType, TESTDMAPREP, -1}; variable
69 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
/drivers/peripheral/usb/test/performance/common/
Dusb_device_liteos_sdk_io_test.cpp54 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_CREATE_DEVICE, -1}; variable
55 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
60 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_REQUEST_ASYNC, -1}; variable
61 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
66 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_REQUEST_ASYNC002, -1}; variable
67 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
72 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_REQUEST_ASYNC003, -1}; variable
73 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
78 struct HdfTestMsg msg = {TEST_USB_DEVICE_TYPE, USB_DEVICE_REQUEST_ASYNC004, -1}; variable
79 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
/drivers/hdf_core/framework/model/input/driver/input_bus_ops/
Dinput_i2c_ops.c19 struct I2cMsg msg[I2C_READ_MSG_NUM]; in InputI2cRead() local
20 (void)memset_s(msg, sizeof(msg), 0, sizeof(msg)); in InputI2cRead()
22 msg[0].addr = client->i2cCfg.addr; in InputI2cRead()
23 msg[0].flags = 0; in InputI2cRead()
24 msg[0].len = writeLen; in InputI2cRead()
25 msg[0].buf = writeBuf; in InputI2cRead()
27 msg[1].addr = client->i2cCfg.addr; in InputI2cRead()
28 msg[1].flags = I2C_FLAG_READ; in InputI2cRead()
29 msg[1].len = readLen; in InputI2cRead()
30 msg[1].buf = readBuf; in InputI2cRead()
[all …]
/drivers/hdf_core/framework/support/platform/test/unittest/common/
Dhdf_platform_dumper_test.cpp52 struct HdfTestMsg msg = {TEST_PAL_DUMPER_TYPE, PLAT_DUMPER_TEST_ADD_UINT8, -1}; variable
53 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
64 struct HdfTestMsg msg = {TEST_PAL_DUMPER_TYPE, PLAT_DUMPER_TEST_ADD_UINT16, -1}; variable
65 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
76 struct HdfTestMsg msg = {TEST_PAL_DUMPER_TYPE, PLAT_DUMPER_TEST_ADD_UINT32, -1}; variable
77 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
88 struct HdfTestMsg msg = {TEST_PAL_DUMPER_TYPE, PLAT_DUMPER_TEST_ADD_UINT64, -1}; variable
89 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
100 struct HdfTestMsg msg = {TEST_PAL_DUMPER_TYPE, PLAT_DUMPER_TEST_ADD_INT8, -1}; variable
101 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_rtc_test.cpp56 struct HdfTestMsg msg = { TEST_PAL_RTC_TYPE, RTC_TEST_CMD_WR_TIME, -1 }; variable
57 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
70 struct HdfTestMsg msg = { TEST_PAL_RTC_TYPE, RTC_TEST_CMD_WR_MAX_TIME, -1 }; variable
71 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
84 struct HdfTestMsg msg = { TEST_PAL_RTC_TYPE, RTC_TEST_CMD_WR_MIN_TIME, -1 }; variable
85 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
98 struct HdfTestMsg msg = { TEST_PAL_RTC_TYPE, RTC_TEST_CMD_WR_ALARM_TIME, -1 }; variable
99 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
112 struct HdfTestMsg msg = { TEST_PAL_RTC_TYPE, RTC_TEST_CMD_WR_ALARM_MAX_TIME, -1 }; variable
113 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_mipi_csi_test.cpp72 struct HdfTestMsg msg = {TEST_PAL_MIPI_CSI_TYPE, MIPI_CSI_TEST_SET_HS_MODE, -1}; variable
73 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
84 struct HdfTestMsg msg = {TEST_PAL_MIPI_CSI_TYPE, MIPI_CSI_TEST_DISABLE_MIPI_CLOCK, -1}; variable
85 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
96 struct HdfTestMsg msg = {TEST_PAL_MIPI_CSI_TYPE, MIPI_CSI_TEST_ENABLE_MIPI_CLOCK, -1}; variable
97 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
108 struct HdfTestMsg msg = {TEST_PAL_MIPI_CSI_TYPE, MIPI_CSI_TEST_RESET_RX, -1}; variable
109 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
120 struct HdfTestMsg msg = {TEST_PAL_MIPI_CSI_TYPE, MIPI_CSI_TEST_DISABLE_SENSOR_CLOCK, -1}; variable
121 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_i3c_test.cpp32 struct HdfTestMsg msg = {TEST_PAL_I3C_TYPE, I3C_TEST_CMD_SETUP_ALL, -1}; in SetUpTestCase() local
34 HdfTestSendMsgToService(&msg); in SetUpTestCase()
39 struct HdfTestMsg msg = {TEST_PAL_I3C_TYPE, I3C_TEST_CMD_TEARDOWN_ALL, -1}; in TearDownTestCase() local
40 HdfTestSendMsgToService(&msg); in TearDownTestCase()
60 struct HdfTestMsg msg = {TEST_PAL_I3C_TYPE, I3C_TEST_CMD_TRANSFER, -1}; variable
61 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
72 struct HdfTestMsg msg = {TEST_PAL_I3C_TYPE, I3C_TEST_CMD_SET_CONFIG, -1}; variable
73 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
84 struct HdfTestMsg msg = {TEST_PAL_I3C_TYPE, I3C_TEST_CMD_GET_CONFIG, -1}; variable
85 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_can_test.cpp52 struct HdfTestMsg msg = {TEST_PAL_CAN_TYPE, CAN_TEST_SEND_AND_READ, -1}; variable
53 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
64 struct HdfTestMsg msg = {TEST_PAL_CAN_TYPE, CAN_TEST_NO_BLOCK_READ, -1}; variable
65 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
76 struct HdfTestMsg msg = {TEST_PAL_CAN_TYPE, CAN_TEST_BLOCK_READ, -1}; variable
77 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
88 struct HdfTestMsg msg = {TEST_PAL_CAN_TYPE, CAN_TEST_ADD_DEL_FILTER, -1}; variable
89 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
100 struct HdfTestMsg msg = {TEST_PAL_CAN_TYPE, CAN_TEST_ADD_MULTI_FILTER, -1}; variable
101 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_regulator_test.cpp67 struct HdfTestMsg msg = {TEST_PAL_REGULATOR_TYPE, REGULATOR_ENABLE_TEST, -1}; variable
68 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
78 struct HdfTestMsg msg = {TEST_PAL_REGULATOR_TYPE, REGULATOR_DISABLE_TEST, -1}; variable
79 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
89 struct HdfTestMsg msg = {TEST_PAL_REGULATOR_TYPE, REGULATOR_FORCE_DISABLE_TEST, -1}; variable
90 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
100 struct HdfTestMsg msg = {TEST_PAL_REGULATOR_TYPE, REGULATOR_SET_VOLTAGE_TEST, -1}; variable
101 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
111 struct HdfTestMsg msg = {TEST_PAL_REGULATOR_TYPE, REGULATOR_GET_VOLTAGE_TEST, -1}; variable
112 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_i2s_test.cpp73 struct HdfTestMsg msg = {TEST_PAL_I2S_TYPE, I2S_SET_CFG_TEST, -1}; variable
74 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
85 struct HdfTestMsg msg = { TEST_PAL_I2S_TYPE, I2S_READ_START_TEST, -1}; variable
86 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
97 struct HdfTestMsg msg = {TEST_PAL_I2S_TYPE, I2S_READ_TEST, -1}; variable
98 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
109 struct HdfTestMsg msg = { TEST_PAL_I2S_TYPE, I2S_READ_STOP_TEST, -1}; variable
110 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
121 struct HdfTestMsg msg = { TEST_PAL_I2S_TYPE, I2S_WRITE_START_TEST, -1}; variable
122 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
/drivers/peripheral/wlan/test/unittest/common/
Dhdf_net_device_test.cpp41 struct HdfTestMsg msg = {TEST_WIFI_TYPE, WIFI_NET_DEVICE_INIT, -1}; in SetUpTestCase() local
42 HdfTestSendMsgToService(&msg); in SetUpTestCase()
47 struct HdfTestMsg msg = {TEST_WIFI_TYPE, WIFI_NET_DEVICE_DEINIT, -1}; in TearDownTestCase() local
48 HdfTestSendMsgToService(&msg); in TearDownTestCase()
64 struct HdfTestMsg msg = {TEST_WIFI_TYPE, WIFI_NET_DEVICE_INIT, -1}; variable
65 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
76 struct HdfTestMsg msg = {TEST_WIFI_TYPE, WIFI_NET_DEVICE_ADD, -1}; variable
77 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
88 struct HdfTestMsg msg = {TEST_WIFI_TYPE, WIFI_NET_DEVICE_GET, -1}; variable
89 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
Dhdf_message_test.cpp61 struct HdfTestMsg msg = { TEST_WIFI_TYPE, WIFI_MESSAGE_QUEUE_001, -1 }; variable
62 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
73 struct HdfTestMsg msg = { TEST_WIFI_TYPE, WIFI_MESSAGE_QUEUE_002, -1 }; variable
74 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
85 struct HdfTestMsg msg = { TEST_WIFI_TYPE, WIFI_MESSAGE_QUEUE_003, -1 }; variable
86 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
97 struct HdfTestMsg msg = { TEST_WIFI_TYPE, WIFI_MESSAGE_SINGLE_NODE_001, -1 }; variable
98 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
109 struct HdfTestMsg msg = { TEST_WIFI_TYPE, WIFI_MESSAGE_SINGLE_NODE_002, -1 }; variable
110 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
Dhdf_usb_entry_test.c16 int32_t HdfUsbUnitTestEntry(HdfTestMsg *msg) in HdfUsbUnitTestEntry() argument
18 if (msg == NULL) { in HdfUsbUnitTestEntry()
21 dprintf("---%s::command[%u], subCommand[%u]\n", __func__, msg->cmd, msg->subCmd); in HdfUsbUnitTestEntry()
22 if (msg->cmd == TEST_USB_HOST_TYPE) { in HdfUsbUnitTestEntry()
23 msg->result = UsbTestEntry(msg->subCmd); in HdfUsbUnitTestEntry()
24 } else if (msg->cmd == TEST_USB_HOST_RAW_TYPE) { in HdfUsbUnitTestEntry()
25 msg->result = UsbRawTestEntry(msg->subCmd); in HdfUsbUnitTestEntry()
27 …dprintf("%s::command[%u], subCommand[%u], result:%d\n", __func__, msg->cmd, msg->subCmd, msg->resu… in HdfUsbUnitTestEntry()
28 return msg->result; in HdfUsbUnitTestEntry()
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
Di2c_test.c45 struct I2cMsg msg[2]; in I2cReadData() local
46 (void)memset_s(msg, sizeof(msg), 0, sizeof(msg)); in I2cReadData()
48 msg[0].addr = EEPROM_ADDR; in I2cReadData()
49 msg[0].flags = 0; in I2cReadData()
50 msg[0].len = writeLen; in I2cReadData()
51 msg[0].buf = writeBuf; in I2cReadData()
53 msg[1].addr = EEPROM_ADDR; in I2cReadData()
54 msg[1].flags = I2C_FLAG_READ; in I2cReadData()
55 msg[1].len = readLen; in I2cReadData()
56 msg[1].buf = readBuf; in I2cReadData()
[all …]
/drivers/hdf_core/framework/model/audio/sapm/test/unittest/common/
Daudio_sapm_test.cpp43 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIOSAPMNEWCOMPONENTS, -1}; variable
44 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
49 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIOSAPMADDROUTES, -1}; variable
50 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
55 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIOSAPMNEWCONTROLS, -1}; variable
56 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
61 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIOSAPMSLEEP, -1}; variable
62 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
67 struct HdfTestMsg msg = {g_testAudioType, TEST_AUDIOSAMPPOWERUP, -1}; variable
68 EXPECT_EQ(0, HdfTestSendMsgToService(&msg));
[all …]

123456789