Home
last modified time | relevance | path

Searched refs:sta (Results 1 - 25 of 27) sorted by relevance

12

/drivers/peripheral/input/test/fuzztest/inputgetchipinfo_fuzzer/
H A Dinputgetchipinfo_fuzzer.cpp29 InputDevDesc sta[MAX_DEVICES]; in InputGetchipInfoFuzzTest() local
34 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in InputGetchipInfoFuzzTest()
40 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in InputGetchipInfoFuzzTest()
45 if (sta[i].devIndex == 0) { in InputGetchipInfoFuzzTest()
49 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputGetchipInfoFuzzTest()
61 if (sta[i].devIndex == 0) { in InputGetchipInfoFuzzTest()
65 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputGetchipInfoFuzzTest()
/drivers/peripheral/input/test/fuzztest/inputgetdevicetype_fuzzer/
H A Dinputgetdevicetype_fuzzer.cpp29 InputDevDesc sta[MAX_DEVICES]; in InputGetDeviceTypeFuzzTest() local
34 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in InputGetDeviceTypeFuzzTest()
40 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in InputGetDeviceTypeFuzzTest()
45 if (sta[i].devIndex == 0) { in InputGetDeviceTypeFuzzTest()
49 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputGetDeviceTypeFuzzTest()
61 if (sta[i].devIndex == 0) { in InputGetDeviceTypeFuzzTest()
65 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputGetDeviceTypeFuzzTest()
/drivers/peripheral/input/test/fuzztest/inputgetchipname_fuzzer/
H A Dinputgetchipname_fuzzer.cpp28 InputDevDesc sta[MAX_DEVICES]; in InputGetChipnameFuzzTest() local
33 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in InputGetChipnameFuzzTest()
39 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in InputGetChipnameFuzzTest()
44 if (sta[i].devIndex == 0) { in InputGetChipnameFuzzTest()
48 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputGetChipnameFuzzTest()
60 if (sta[i].devIndex == 0) { in InputGetChipnameFuzzTest()
64 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputGetChipnameFuzzTest()
/drivers/peripheral/input/test/fuzztest/inputgetvendorname_fuzzer/
H A Dinputgetvendorname_fuzzer.cpp29 InputDevDesc sta[MAX_DEVICES]; in InputGetVendorNameFuzzTest() local
34 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in InputGetVendorNameFuzzTest()
40 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in InputGetVendorNameFuzzTest()
45 if (sta[i].devIndex == 0) { in InputGetVendorNameFuzzTest()
49 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputGetVendorNameFuzzTest()
61 if (sta[i].devIndex == 0) { in InputGetVendorNameFuzzTest()
65 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputGetVendorNameFuzzTest()
/drivers/peripheral/input/test/fuzztest/inputgetpowerstatus_fuzzer/
H A Dinputgetpowerstatus_fuzzer.cpp29 InputDevDesc sta[MAX_DEVICES]; in InputGetpowerStatusFuzzTest() local
33 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in InputGetpowerStatusFuzzTest()
39 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in InputGetpowerStatusFuzzTest()
44 if (sta[i].devIndex == 0) { in InputGetpowerStatusFuzzTest()
48 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputGetpowerStatusFuzzTest()
60 if (sta[i].devIndex == 0) { in InputGetpowerStatusFuzzTest()
64 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputGetpowerStatusFuzzTest()
/drivers/peripheral/input/test/fuzztest/inputregisterreportcallback_fuzzer/
H A Dinputregisterreportcallback_fuzzer.cpp28 InputDevDesc sta[MAX_DEVICES]; in DoSomethingInterestingWithMyAPI() local
32 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in DoSomethingInterestingWithMyAPI()
38 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in DoSomethingInterestingWithMyAPI()
43 if (sta[i].devIndex == 0) { in DoSomethingInterestingWithMyAPI()
47 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in DoSomethingInterestingWithMyAPI()
64 if (sta[i].devIndex == 0) { in DoSomethingInterestingWithMyAPI()
68 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/input/test/fuzztest/inputsetgesturemode_fuzzer/
H A Dinputsetgesturemode_fuzzer.cpp33 InputDevDesc sta[MAX_DEVICES]; in InputSetGestureModeFuzzTest() local
37 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in InputSetGestureModeFuzzTest()
43 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in InputSetGestureModeFuzzTest()
48 if (sta[i].devIndex == 0) { in InputSetGestureModeFuzzTest()
52 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputSetGestureModeFuzzTest()
64 if (sta[i].devIndex == 0) { in InputSetGestureModeFuzzTest()
68 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputSetGestureModeFuzzTest()
/drivers/peripheral/input/test/fuzztest/inputsetpowerstatus_fuzzer/
H A Dinputsetpowerstatus_fuzzer.cpp33 InputDevDesc sta[MAX_DEVICES]; in InputSetPowerStatusFuzzTest() local
37 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in InputSetPowerStatusFuzzTest()
43 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in InputSetPowerStatusFuzzTest()
48 if (sta[i].devIndex == 0) { in InputSetPowerStatusFuzzTest()
52 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputSetPowerStatusFuzzTest()
64 if (sta[i].devIndex == 0) { in InputSetPowerStatusFuzzTest()
68 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputSetPowerStatusFuzzTest()
/drivers/peripheral/input/test/fuzztest/inputunregisterreportcallback_fuzzer/
H A Dinputunregisterreportcallback_fuzzer.cpp28 InputDevDesc sta[MAX_DEVICES]; in InputUnregisterReportCallbackFuzzTest() local
33 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in InputUnregisterReportCallbackFuzzTest()
39 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in InputUnregisterReportCallbackFuzzTest()
44 if (sta[i].devIndex == 0) { in InputUnregisterReportCallbackFuzzTest()
48 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputUnregisterReportCallbackFuzzTest()
65 if (sta[i].devIndex == 0) { in InputUnregisterReportCallbackFuzzTest()
69 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputUnregisterReportCallbackFuzzTest()
/drivers/peripheral/input/test/fuzztest/runcapacitancetest_fuzzer/
H A Druncapacitancetest_fuzzer.cpp34 InputDevDesc sta[MAX_DEVICES]; in RunCapacitanceTestFuzzTest() local
39 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in RunCapacitanceTestFuzzTest()
45 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in RunCapacitanceTestFuzzTest()
50 if (sta[i].devIndex == 0) { in RunCapacitanceTestFuzzTest()
54 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in RunCapacitanceTestFuzzTest()
67 if (sta[i].devIndex == 0) { in RunCapacitanceTestFuzzTest()
71 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in RunCapacitanceTestFuzzTest()
/drivers/peripheral/input/test/fuzztest/runextracommand_fuzzer/
H A Drunextracommand_fuzzer.cpp28 InputDevDesc sta[MAX_DEVICES]; in RunExtraCommandFuzzTest() local
34 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in RunExtraCommandFuzzTest()
40 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in RunExtraCommandFuzzTest()
45 if (sta[i].devIndex == 0) { in RunExtraCommandFuzzTest()
49 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in RunExtraCommandFuzzTest()
61 if (sta[i].devIndex == 0) { in RunExtraCommandFuzzTest()
65 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in RunExtraCommandFuzzTest()
/drivers/peripheral/input/test/fuzztest/closeinputdevice_fuzzer/
H A Dcloseinputdevice_fuzzer.cpp29 InputDevDesc sta[MAX_DEVICES]; in CloseInputDeviceFuzzTest() local
32 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in CloseInputDeviceFuzzTest()
38 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in CloseInputDeviceFuzzTest()
43 if (sta[i].devIndex == 0) { in CloseInputDeviceFuzzTest()
47 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in CloseInputDeviceFuzzTest()
/drivers/peripheral/input/test/unittest/common/
H A Dhdi_input_test.cpp38 static void CloseOnlineDev(InputDevDesc *sta, int32_t len);
39 static void OpenOnlineDev(InputDevDesc *sta, int32_t len);
52 InputDevDesc sta[MAX_DEVICES]; in SetUpTestCase() local
53 ret = memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in SetUpTestCase()
65 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in SetUpTestCase()
70 if (sta[i].devIndex == 0) { in SetUpTestCase()
138 static void OpenOnlineDev(InputDevDesc *sta, int32_t len) in OpenOnlineDev() argument
140 int32_t ret = g_inputInterface->iInputManager->ScanInputDevice(sta, len); in OpenOnlineDev()
147 if (sta[i].devIndex == 0) { in OpenOnlineDev()
150 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[ in OpenOnlineDev()
164 CloseOnlineDev(InputDevDesc *sta, int32_t len) CloseOnlineDev() argument
192 InputDevDesc sta[MAX_DEVICES]; HWTEST_F() local
212 InputDevDesc sta[MAX_DEVICES]; HWTEST_F() local
[all...]
/drivers/peripheral/input/test/fuzztest/openinputdevice_fuzzer/
H A Dopeninputdevice_fuzzer.cpp29 InputDevDesc sta[MAX_DEVICES]; in OpenInputDeviceFuzzTest() local
32 (void)memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)); in OpenInputDeviceFuzzTest()
38 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES); in OpenInputDeviceFuzzTest()
43 if (sta[i].devIndex == 0) { in OpenInputDeviceFuzzTest()
/drivers/peripheral/input/test/unittest/hdi/
H A Dhdf_input_hdi_test.cpp73 static void OpenOnlineDev(std::vector<DevDesc> sta) in OpenOnlineDev() argument
75 int32_t ret = g_inputInterfaces->ScanInputDevice(sta); in OpenOnlineDev()
82 if (sta[i].devIndex == 0) { in OpenOnlineDev()
85 ret = g_inputInterfaces->OpenInputDevice(sta[i].devIndex); in OpenOnlineDev()
87 HDF_LOGE("%s: open device[%d] failed, ret %d", __func__, sta[i].devIndex, ret); in OpenOnlineDev()
91 ret = g_inputInterfaces->RegisterReportCallback(sta[i].devIndex, g_callback); in OpenOnlineDev()
93 HDF_LOGE("%s: register callback failed for device[%d], ret %d", __func__, sta[i].devIndex, ret); in OpenOnlineDev()
99 static void CloseOnlineDev(std::vector<DevDesc> sta) in CloseOnlineDev() argument
101 int32_t ret = g_inputInterfaces->ScanInputDevice(sta); in CloseOnlineDev()
108 if (sta[ in CloseOnlineDev()
149 std::vector<DevDesc> sta; HWTEST_F() local
776 std::vector<DevDesc> sta; HWTEST_F() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/model/network/wifi/
H A DMakefile22 WSTA_PATH := core/components/sta
36 $(HDF_WIFI_FRAMEWORKS_ROOT)/$(WSTA_PATH)/sta.o \
H A Dhdfwifi.mk43 -I$(srctree)/drivers/hdf/framework/model/network/wifi/core/components/sta \
/drivers/hdf_core/adapter/khdf/liteos/model/network/wifi/
H A DMakefile41 WSTA_PATH := $(HDM_WIFI_ROOT)/core/components/sta
67 $(WSTA_PATH)/sta.c \
/drivers/peripheral/input/test/unittest/udriver/
H A Dhdi_input_test.cpp129 InputDevDesc sta[MAX_DEVICES]; in HWTEST_F() local
130 if (memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc)) != EOK) { in HWTEST_F()
138 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, sizeof(sta) / sizeof(InputDevDesc)); in HWTEST_F()
141 __func__, sta[0].devType, sta[0].devIndex, sta[1].devType, sta[1].devIndex); in HWTEST_F()
144 if (sta[i].devIndex == 0) { in HWTEST_F()
147 if (sta[ in HWTEST_F()
[all...]
/drivers/hdf_core/framework/model/input/driver/
H A Dhdf_input_device_manager.c414 DevDesc sta; in ScanAllDev() local
417 sta.devType = tmpDev->devType; in ScanAllDev()
418 sta.devId = tmpDev->devId; in ScanAllDev()
420 if (!HdfSbufWriteBuffer(reply, &sta, sizeof(DevDesc))) { in ScanAllDev()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/
H A Dv4l2_uvc.cpp201 struct stat sta = {}; in V4L2UvcEnmeDevices() local
214 if (stat(devName, &sta) != 0) { in V4L2UvcEnmeDevices()
218 if (!S_ISCHR(sta.st_mode)) { in V4L2UvcEnmeDevices()
/drivers/peripheral/camera/vdi_base/usb_camera/adapter/platform/v4l2/src/driver_adapter/src/
H A Dv4l2_uvc.cpp200 struct stat sta = {}; in V4L2UvcEnmeDevices() local
213 if (stat(devName, &sta) != 0) { in V4L2UvcEnmeDevices()
217 if (!S_ISCHR(sta.st_mode)) { in V4L2UvcEnmeDevices()
/drivers/peripheral/input/test/benchmarktest/
H A Dinput_benchmark_test.cpp69 std::vector<DevDesc> sta; in BENCHMARK_F() local
72 ret = g_inputInterfaces->ScanInputDevice(sta); in BENCHMARK_F()
/drivers/hdf_core/adapter/khdf/linux/test/
H A Dtest_khdf.mk62 -I$(srctree)/$(HDF_FRAMEWORK_ROOT)/model/network/wifi/core/components/sta \
/drivers/hdf_core/adapter/khdf/liteos/test/
H A Dtest_lite.mk84 HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/core/components/sta

Completed in 9 milliseconds

12