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/
Dhdf_input_hdi_test.cpp66 static bool IsOnlineDev(uint32_t devIndex) in IsOnlineDev() argument
71 if (g_sta[i].devIndex == devIndex) { in IsOnlineDev()
119 uint32_t devIndex = 0; variable
120 ret = g_inputInterfaces->OpenInputDevice(devIndex);
132 uint32_t devIndex = TOUCH_INDEX; variable
133 for (devIndex = TOUCH_INDEX; devIndex < MAX_DEVICES; devIndex++) {
134 if (IsOnlineDev(devIndex)) {
135 ret = g_inputInterfaces->OpenInputDevice(devIndex);
136 g_inputInterfaces->CloseInputDevice(devIndex);
139 ret = g_inputInterfaces->OpenInputDevice(devIndex);
[all …]
Dinput_callback_impl.cpp29 …t32_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.devT… 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()
Dinput_callback_impl.h30 int32_t EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) override;
/test/xts/hats/hdf/input/PassthroughBenchmarkTest/
Dinput_callback_impl.cpp29 …t32_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.devT… 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()
Dinput_callback_impl.h30 int32_t EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) override;
Dhdf_input_benchmark_test.cpp88 …("%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()
/test/xts/hats/hdf/input/hdi_passthrough/
Dinput_callback_impl.cpp29 …t32_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.devT… 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()
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, ret); in CloseOnlineDev()
[all …]
Dinput_callback_impl.h30 int32_t EventPkgCallback(const std::vector<EventPackage> &pkgs, uint32_t devIndex) override;
/test/xts/hats/hdf/input/inputBenchmarkTest/
Dhdf_input_benchmark_test.cpp42 …tic void ReportEventPkgCallback(const InputEventPackage **pkgs, uint32_t count, uint32_t devIndex);
73 if (sta[i].devIndex == 0) { in SetUp()
85 …atic 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/hdi_input/
Dhdi_input_test.cpp74 …atic void ReportEventPkgCallback(const InputEventPackage **pkgs, uint32_t count, uint32_t devIndex) in ReportEventPkgCallback() argument
82 i, devIndex, pkgs[i]->type, pkgs[i]->code, pkgs[i]->value); in ReportEventPkgCallback()
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);
122 if (sta[i].devIndex == 0) {
126 g_touchIndex = sta[i].devIndex;
261 …printf("GetInputDevice001 %s: devIndex = %u, devType = %u\n", __func__, dev->devIndex, dev->devTyp…
329 printf("%s: index = %u, devType = %u\n", __func__, (dev + i)->devIndex, (dev + i)->devType);
/test/xts/hats/hdf/input/hdi_input/common/
Dhdi_input_test.cpp38 …tic 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].devTy… 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].devTy… in SetUpTestCase()
95 …atic void ReportEventPkgCallback(const InputEventPackage **pkgs, uint32_t count, uint32_t devIndex) in ReportEventPkgCallback() argument
114 …HDF_LOGI("%s: status =%d devId=%d type =%d \n", __func__, msg->status, msg->devIndex, msg->devType… in ReportHotPlugEventPkgCallback()
116 EXPECT_GE(msg->devIndex, 0); in ReportHotPlugEventPkgCallback()
120 ret = g_inputInterface->iInputManager->OpenInputDevice(msg->devIndex); in ReportHotPlugEventPkgCallback()
122 HDF_LOGE("%s: open device[%u] failed, ret %d \n", __func__, msg->devIndex, ret); in ReportHotPlugEventPkgCallback()
[all …]