Home
last modified time | relevance | path

Searched refs:devIndex (Results 1 - 12 of 12) sorted by relevance

/test/xts/hats/hdf/input/hdi_passthrough_additional/
H A Dhdf_input_hdi_test.cpp66 static bool IsOnlineDev(uint32_t devIndex) in IsOnlineDev() argument
71 if (g_sta[i].devIndex == devIndex) { in IsOnlineDev()
114 * @tc.desc : Test parameters(devIndex::0) with abnormal input
119 uint32_t devIndex = 0; in HWTEST_F() local
120 ret = g_inputInterfaces->OpenInputDevice(devIndex); in HWTEST_F()
127 * @tc.desc : Test input param(devIndex::1~32)
132 uint32_t devIndex = TOUCH_INDEX; in HWTEST_F() local
133 for (devIndex = TOUCH_INDEX; devIndex < MAX_DEVICE in HWTEST_F()
184 uint32_t devIndex = 0; HWTEST_F() local
197 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
251 uint32_t devIndex = 0; HWTEST_F() local
265 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
340 uint32_t devIndex = 0; HWTEST_F() local
354 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
471 uint32_t devIndex = 0; HWTEST_F() local
485 uint32_t devIndex = 3; HWTEST_F() local
541 uint32_t devIndex = 0; HWTEST_F() local
555 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
611 uint32_t devIndex = 0; HWTEST_F() local
625 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
662 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
678 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
717 uint32_t devIndex = 0; HWTEST_F() local
732 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
758 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
796 uint32_t devIndex = 0; HWTEST_F() local
811 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
837 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
875 uint32_t devIndex = 0; HWTEST_F() local
890 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
916 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
931 uint32_t devIndex = 0; HWTEST_F() local
947 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
973 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
988 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1009 uint32_t devIndex = 0; HWTEST_F() local
1025 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1051 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
1066 uint32_t devIndex = 0; HWTEST_F() local
1082 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1108 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
1124 uint32_t devIndex = 0; HWTEST_F() local
1140 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1167 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
1183 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1208 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1233 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1258 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1282 uint32_t devIndex = 0; HWTEST_F() local
1298 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1325 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
1341 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1363 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1383 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1403 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1423 uint32_t devIndex = 0; HWTEST_F() local
1436 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1462 uint32_t devIndex = MAX_DEVICES; HWTEST_F() local
1475 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
1496 uint32_t devIndex = TOUCH_INDEX; HWTEST_F() local
[all...]
H A Dinput_callback_impl.cpp29 int32_t InputCallbackImpl::EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) in EventPkgCallback() argument
43 if (event.devIndex == 0) { in HotPlugCallback()
48 HDF_LOGI("%s: status = %d devId= %d type = %d", __func__, event.status, event.devIndex, event.devType); in HotPlugCallback()
51 ret = inputInterfaces_->OpenInputDevice(event.devIndex); in HotPlugCallback()
53 HDF_LOGE("%s: open device[%u] failed, ret %d", __func__, event.devIndex, ret); in HotPlugCallback()
57 ret = inputInterfaces_->RegisterReportCallback(event.devIndex, reportCallback_.GetRefPtr()); in HotPlugCallback()
59 HDF_LOGE("%s: register callback failed for device[%d], ret %d", __func__, event.devIndex, ret); in HotPlugCallback()
63 ret = inputInterfaces_->UnregisterReportCallback(event.devIndex); in HotPlugCallback()
69 ret = inputInterfaces_->CloseInputDevice(event.devIndex); in HotPlugCallback()
H A Dinput_callback_impl.h30 int32_t EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) override;
/test/xts/hats/hdf/input/PassthroughBenchmarkTest/
H A Dinput_callback_impl.cpp29 int32_t InputCallbackImpl::EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) in EventPkgCallback() argument
43 if (event.devIndex == 0) { in HotPlugCallback()
48 HDF_LOGI("%s: status = %d devId= %d type = %d", __func__, event.status, event.devIndex, event.devType); in HotPlugCallback()
51 ret = inputInterfaces_->OpenInputDevice(event.devIndex); in HotPlugCallback()
53 HDF_LOGE("%s: open device[%u] failed, ret %d", __func__, event.devIndex, ret); in HotPlugCallback()
57 ret = inputInterfaces_->RegisterReportCallback(event.devIndex, reportCallback_.GetRefPtr()); in HotPlugCallback()
59 HDF_LOGE("%s: register callback failed for device[%d], ret %d", __func__, event.devIndex, ret); in HotPlugCallback()
63 ret = inputInterfaces_->UnregisterReportCallback(event.devIndex); in HotPlugCallback()
69 ret = inputInterfaces_->CloseInputDevice(event.devIndex); in HotPlugCallback()
H A Dhdf_input_benchmark_test.cpp88 HDF_LOGE("%s: %d, %d, %d, %d", __func__, sta[0].devType, sta[0].devIndex, sta[1].devType, sta[1].devIndex); in BENCHMARK_F()
174 HDF_LOGI("%s: index = %u, devType = %u", __func__, dev[i].devIndex, dev[i].devType); in BENCHMARK_F()
H A Dinput_callback_impl.h30 int32_t EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) override;
/test/xts/hats/hdf/input/hdi_passthrough/
H A Dinput_callback_impl.cpp29 int32_t InputCallbackImpl::EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) in EventPkgCallback() argument
43 if (event.devIndex == 0) { in HotPlugCallback()
48 HDF_LOGI("%s: status = %d devId= %d type = %d", __func__, event.status, event.devIndex, event.devType); in HotPlugCallback()
51 ret = inputInterfaces_->OpenInputDevice(event.devIndex); in HotPlugCallback()
53 HDF_LOGE("%s: open device[%u] failed, ret %d", __func__, event.devIndex, ret); in HotPlugCallback()
57 ret = inputInterfaces_->RegisterReportCallback(event.devIndex, reportCallback_.GetRefPtr()); in HotPlugCallback()
59 HDF_LOGE("%s: register callback failed for device[%d], ret %d", __func__, event.devIndex, ret); in HotPlugCallback()
63 ret = inputInterfaces_->UnregisterReportCallback(event.devIndex); in HotPlugCallback()
69 ret = inputInterfaces_->CloseInputDevice(event.devIndex); in HotPlugCallback()
H A Dhdf_input_hdi_test.cpp82 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()
108 if (sta[i].devIndex == 0) { in CloseOnlineDev()
111 ret = g_inputInterfaces->UnregisterReportCallback(sta[i].devIndex); in CloseOnlineDev()
114 HDF_LOGE("%s: register callback failed for device[%d], ret %d", __func__, sta[i].devIndex, ret); in CloseOnlineDev()
118 ret = g_inputInterfaces->CloseInputDevice(sta[i].devIndex); in CloseOnlineDev()
120 HDF_LOGE("%s: close device[%d] failed, ret %d", __func__, sta[i].devIndex, re in CloseOnlineDev()
[all...]
H A Dinput_callback_impl.h30 int32_t EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) override;
/test/xts/hats/hdf/input/inputBenchmarkTest/
H A Dhdf_input_benchmark_test.cpp42 static void ReportEventPkgCallback(const InputEventPackage **pkgs, uint32_t count, uint32_t devIndex);
73 if (sta[i].devIndex == 0) { in SetUp()
85 static void ReportEventPkgCallback(const InputEventPackage **pkgs, uint32_t count, uint32_t devIndex) in ReportEventPkgCallback() argument
104 HDF_LOGI("%s: status =%d devId=%d type =%d \n", __func__, msg->status, msg->devIndex, msg->devType); in ReportHotPlugEventPkgCallback()
106 EXPECT_GE(msg->devIndex, 0); in ReportHotPlugEventPkgCallback()
110 ret = g_inputInterface->iInputManager->OpenInputDevice(msg->devIndex); in ReportHotPlugEventPkgCallback()
112 HDF_LOGE("%s: open device[%u] failed, ret %d \n", __func__, msg->devIndex, ret); in ReportHotPlugEventPkgCallback()
115 ret = g_inputInterface->iInputReporter->RegisterReportCallback(msg->devIndex, &g_callback); in ReportHotPlugEventPkgCallback()
117 HDF_LOGE("%s: register callback failed for device[%d], ret %d \n", __func__, msg->devIndex, ret); in ReportHotPlugEventPkgCallback()
120 ret = g_inputInterface->iInputReporter->UnregisterReportCallback(msg->devIndex); in ReportHotPlugEventPkgCallback()
[all...]
/test/xts/hats/hdf/input/hdi_input/common/
H A Dhdi_input_test.cpp38 static void ReportEventPkgCallback(const InputEventPackage **pkgs, uint32_t count, uint32_t devIndex);
69 if (g_allDev[0].devIndex == 1){ in SetUpTestCase()
71 printf("%s: scan deviceIndex:%d,devType:%d. \n", __func__, g_allDev[0].devIndex, g_allDev[0].devType); in SetUpTestCase()
74 if (g_allDev[i].devIndex == 0) { in SetUpTestCase()
77 printf("%s: scan deviceIndex:%d,devType:%d. \n", __func__, g_allDev[i].devIndex, g_allDev[i].devType); in SetUpTestCase()
98 static void ReportEventPkgCallback(const InputEventPackage **pkgs, uint32_t count, uint32_t devIndex) in ReportEventPkgCallback() argument
117 HDF_LOGI("%s: status =%d devId=%d type =%d \n", __func__, msg->status, msg->devIndex, msg->devType); in ReportHotPlugEventPkgCallback()
119 EXPECT_GE(msg->devIndex, 0); in ReportHotPlugEventPkgCallback()
123 ret = g_inputInterface->iInputManager->OpenInputDevice(msg->devIndex); in ReportHotPlugEventPkgCallback()
125 HDF_LOGE("%s: open device[%u] failed, ret %d \n", __func__, msg->devIndex, re in ReportHotPlugEventPkgCallback()
[all...]
/test/xts/hats/hdf/input/hdi_input/hdi_input/
H A Dhdi_input_test.cpp74 static void ReportEventPkgCallback(const InputEventPackage **pkgs, uint32_t count, uint32_t devIndex) in ReportEventPkgCallback() argument
81 printf("device action Index: %u devIndex: %u type: %u code: %u value %d\n", in ReportEventPkgCallback()
82 i, devIndex, pkgs[i]->type, pkgs[i]->code, pkgs[i]->value); in ReportEventPkgCallback()
92 printf("%s: device hotplug action devIndex: %u devType: %u status: %u\n", __func__, in ReportHotPlugEventPkgCallback()
93 msg->devIndex, msg->devType, msg->status); in ReportHotPlugEventPkgCallback()
95 EXPECT_EQ(g_inputInterface->iInputManager->OpenInputDevice(msg->devIndex), INPUT_SUCCESS); in ReportHotPlugEventPkgCallback()
97 EXPECT_EQ(g_inputInterface->iInputManager->CloseInputDevice(msg->devIndex), INPUT_SUCCESS); in ReportHotPlugEventPkgCallback()
119 __func__, sta[0].devType, sta[0].devIndex, sta[1].devType, sta[1].devIndex); in HWTEST_F()
122 if (sta[i].devIndex in HWTEST_F()
[all...]

Completed in 6 milliseconds