/ohos5.0/drivers/peripheral/input/test/unittest/hdi_passthrough_additional/ |
H A D | hdf_input_hdi_test.cpp | 133 for (devIndex = TOUCH_INDEX; devIndex < MAX_DEVICES; devIndex++) { 198 for (devIndex = TOUCH_INDEX; devIndex < MAX_DEVICES; devIndex++) { 266 for (devIndex = TOUCH_INDEX; devIndex < MAX_DEVICES; devIndex++) { 356 for (devIndex = TOUCH_INDEX; devIndex < MAX_DEVICES; devIndex++) { 487 for (devIndex = 3; devIndex < MAX_DEVICES; devIndex++) { 557 for (devIndex = TOUCH_INDEX; devIndex < MAX_DEVICES; devIndex++) { 627 for (devIndex = TOUCH_INDEX; devIndex < MAX_DEVICES; devIndex++) { 950 for (devIndex = 3; devIndex < MAX_DEVICES; devIndex++) { 1028 for (devIndex = 3; devIndex < MAX_DEVICES; devIndex++) { 1085 for (devIndex = 3; devIndex < MAX_DEVICES; devIndex++) { [all …]
|
H A D | input_callback_impl.cpp | 29 …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()
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/input/ |
H A D | interface_i_input_interfaces_v10.md | 30 | [GetChipInfo](#getchipinfo) ([in] unsigned int devIndex, [out] String chipInfo) | 获取devIndex对应的In… 76 获取devIndex对应的Input设备的编码信息。 103 获取devIndex对应的Input设备的驱动芯片名。 128 获取devIndex对应的Input设备的类型。 153 Input服务获取devIndex对应的Input设备信息。 204 获取devIndex对应Input设备的电源状态。 231 获取devIndex对应的Input设备的模组厂商名。 306 注册devIndex对应的Input设备的回调函数。 411 设置devIndex对应的Input设备的手势模式。 438 设置devIndex对应的Input设备的电源状态。 [all …]
|
H A D | _input_controller.md | 24 …int32_t(\* [GetDeviceType](#getdevicetype) )(uint32_t devIndex, uint32_t \*deviceType) | 获取devInde… 26 …(\* [GetVendorName](#getvendorname) )(uint32_t devIndex, char \*vendorName, uint32_t length) | 获取d… 27 …t32_t(\* [GetChipName](#getchipname) )(uint32_t devIndex, char \*chipName, uint32_t length) | 获取de… 55 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 | 75 获取devIndex对应的驱动芯片名。 83 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 | 103 获取devIndex对应的Input设备的类型。 111 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 | 140 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 | 159 获取devIndex对应的模组厂商名。 [all …]
|
H A D | _input_manager.md | 23 | int32_t(\* [OpenInputDevice](#openinputdevice) )(uint32_t devIndex) | Input服务打开对应设备的设备文件。 | 24 | int32_t(\* [CloseInputDevice](#closeinputdevice) )(uint32_t devIndex) | Input服务关闭对应设备的设备文件。 | 25 | int32_t(\* [GetInputDevice](#getinputdevice) )(uint32_t devIndex, [InputDeviceInfo](_input_device… 35 int32_t(* InputManager::CloseInputDevice) (uint32_t devIndex) 47 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 | 59 int32_t(* InputManager::GetInputDevice) (uint32_t devIndex, InputDeviceInfo **devInfo) 71 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 | 72 | devInfo | 输出参数,即devIndex对应的设备的设备信息,具体参考[InputDeviceInfo](_input_device_info.md)。 | 110 int32_t(* InputManager::OpenInputDevice) (uint32_t devIndex) 122 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 |
|
H A D | _input_reporter.md | 22 | int32_t(\* [RegisterReportCallback](#registerreportcallback) )(uint32_t devIndex, [InputEventCb](… 23 | int32_t(\* [UnregisterReportCallback](#unregisterreportcallback) )(uint32_t devIndex) | 注销对应设备的回调… 60 int32_t(* InputReporter::RegisterReportCallback) (uint32_t devIndex, InputEventCb *callback) 74 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 | 111 int32_t(* InputReporter::UnregisterReportCallback) (uint32_t devIndex) 123 | devIndex | 输入参数,Input设备索引,用于标志多个Input设备,取值从0开始,最多支持32个设备。 |
|
/ohos5.0/drivers/peripheral/input/hal/src/ |
H A D | input_controller.c | 214 if (pos->payload.devIndex != devIndex) { in SetPowerStatus() 245 if (pos->payload.devIndex != devIndex) { in GetPowerStatus() 281 if (pos->payload.devIndex != devIndex) { in GetDeviceType() 319 if (pos->payload.devIndex != devIndex) { in GetDevStringInfo() 389 if (pos->payload.devIndex != devIndex) { in SetGestureMode() 424 if (pos->payload.devIndex != devIndex) { in RunCapacitanceTest() 463 if (pos->payload.devIndex != devIndex) { in RunExtraCommand() 494 if (pos->payload.devIndex != devIndex) { in GetDeviceAbility() 539 if (pos->payload.devIndex != devIndex) { in GetDeviceAttr() 592 ret = UpdateAbilityInfo(devIndex); in UpdateDevFullInfo() [all …]
|
H A D | input_manager.c | 35 int32_t UpdateDevFullInfo(uint32_t devIndex); 56 ret = UpdateDevFullInfo(devIndex); in GetInputDevice() 71 if (pos->payload.devIndex != devIndex) { in GetInputDevice() 128 if (pos->payload.devIndex != devIndex) { in CloseInputDevice() 157 device->payload.devIndex = index; in AddService() 166 static int32_t CheckIndex(uint32_t devIndex) in CheckIndex() argument 172 if (devIndex >= MAX_INPUT_DEV_NUM) { in CheckIndex() 180 if (pos->payload.devIndex == devIndex) { in CheckIndex() 197 if (CheckIndex(devIndex) != INPUT_SUCCESS) { in OpenInputDevice() 203 "hdf_input_event", devIndex); in OpenInputDevice() [all …]
|
H A D | input_reporter.c | 97 static int32_t RegisterReportCallback(uint32_t devIndex, InputEventCb *callback) in RegisterReportCallback() argument 103 …if ((devIndex >= MAX_INPUT_DEV_NUM) || (callback == NULL) || (callback->EventPkgCallback == NULL))… in RegisterReportCallback() 111 if (pos->payload.devIndex != devIndex) { in RegisterReportCallback() 130 devIndex, manager->evtCallbackNum); in RegisterReportCallback() 135 HDF_LOGE("%s: device%u doesn't exist, can't register callback", __func__, devIndex); in RegisterReportCallback() 139 static int32_t UnregisterReportCallback(uint32_t devIndex) in UnregisterReportCallback() argument 145 if (devIndex >= MAX_INPUT_DEV_NUM) { in UnregisterReportCallback() 153 if (pos->payload.devIndex != devIndex) { in UnregisterReportCallback() 167 HDF_LOGI("%s: device%u unregister callback succ", __func__, devIndex); in UnregisterReportCallback() 171 HDF_LOGE("%s: device%u does not register callback", __func__, devIndex); in UnregisterReportCallback() [all …]
|
/ohos5.0/drivers/peripheral/input/udriver/src/ |
H A D | input_manager.cpp | 42 static int32_t OpenInputDevice(uint32_t devIndex) in OpenInputDevice() argument 48 return gInputDeviceManager_->OpenDevice(devIndex); in OpenInputDevice() 51 static int32_t CloseInputDevice(uint32_t devIndex) in CloseInputDevice() argument 57 return gInputDeviceManager_->CloseDevice(devIndex); in CloseInputDevice() 66 return gInputDeviceManager_->GetDevice(devIndex, devInfo); in GetInputDevice() 78 static int32_t SetPowerStatus(uint32_t devIndex, uint32_t status) in SetPowerStatus() argument 84 return gInputDeviceManager_->SetPowerStatus(devIndex, status); in SetPowerStatus() 87 static int32_t GetPowerStatus(uint32_t devIndex, uint32_t *status) in GetPowerStatus() argument 93 return gInputDeviceManager_->GetPowerStatus(devIndex, status); in GetPowerStatus() 156 return gInputDeviceManager_->RunExtraCommand(devIndex, cmd); in RunExtraCommand() [all …]
|
/ohos5.0/drivers/peripheral/input/hdi_service/ |
H A D | input_interfaces_impl.h | 35 int32_t OpenInputDevice(uint32_t devIndex) override; 36 int32_t CloseInputDevice(uint32_t devIndex) override; 37 int32_t GetInputDevice(uint32_t devIndex, DeviceInfo &devInfo) override; 39 int32_t SetPowerStatus(uint32_t devIndex, uint32_t status) override; 40 int32_t GetPowerStatus(uint32_t devIndex, uint32_t &status) override; 41 int32_t GetDeviceType(uint32_t devIndex, uint32_t &deviceType) override; 42 int32_t GetChipInfo(uint32_t devIndex, std::string &chipInfo) override; 44 int32_t GetChipName(uint32_t devIndex, std::string &chipName) override; 45 int32_t SetGestureMode(uint32_t devIndex, uint32_t gestureMode) override; 48 int32_t RunExtraCommand(uint32_t devIndex, const ExtraCmd &cmd) override; [all …]
|
H A D | input_interfaces_impl.cpp | 56 hdiDevInfo.devIndex = halDevInfo.devIndex; in TransferDevInfo() 131 g_inputEventCallback->EventPkgCallback(tmp, devIndex); in InputEventDataCallback() 142 HotPlugEvent.devIndex = event->devIndex; in HotplugEventDataCallback() 187 StaArr.devIndex = staArrHdf[i].devIndex; in ScanInputDevice() 195 int32_t InputInterfacesImpl::OpenInputDevice(uint32_t devIndex) in OpenInputDevice() argument 203 int32_t ret = inputInterface_->iInputManager->OpenInputDevice(devIndex); in OpenInputDevice() 211 int32_t InputInterfacesImpl::CloseInputDevice(uint32_t devIndex) in CloseInputDevice() argument 219 int32_t ret = inputInterface_->iInputManager->CloseInputDevice(devIndex); in CloseInputDevice() 290 int32_t InputInterfacesImpl::SetPowerStatus(uint32_t devIndex, uint32_t status) in SetPowerStatus() argument 456 if (devIndex >= MAX_INPUT_DEV_NUM) { in RegisterReportCallback() [all …]
|
/ohos5.0/drivers/peripheral/input/interfaces/include/ |
H A D | input_controller.h | 72 int32_t (*SetPowerStatus)(uint32_t devIndex, uint32_t status); 89 int32_t (*GetPowerStatus)(uint32_t devIndex, uint32_t *status); 102 int32_t (*GetDeviceType)(uint32_t devIndex, uint32_t *deviceType); 119 int32_t (*GetChipInfo)(uint32_t devIndex, char *chipInfo, uint32_t length); 133 int32_t (*GetVendorName)(uint32_t devIndex, char *vendorName, uint32_t length); 147 int32_t (*GetChipName)(uint32_t devIndex, char *chipName, uint32_t length); 163 int32_t (*SetGestureMode)(uint32_t devIndex, uint32_t gestureMode); 182 …int32_t (*RunCapacitanceTest)(uint32_t devIndex, uint32_t testType, char *result, uint32_t length); 196 int32_t (*RunExtraCommand)(uint32_t devIndex, InputExtraCmd *cmd);
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/input_v1_0/cpp_target/input/v1_0/ |
H A D | input_interfaces_service.h.txt | 32 int32_t OpenInputDevice(uint32_t devIndex) override; 34 int32_t CloseInputDevice(uint32_t devIndex) override; 41 int32_t SetPowerStatus(uint32_t devIndex, uint32_t status) override; 43 int32_t GetPowerStatus(uint32_t devIndex, uint32_t& status) override; 45 int32_t GetDeviceType(uint32_t devIndex, uint32_t& deviceType) override; 47 int32_t GetChipInfo(uint32_t devIndex, std::string& chipInfo) override; 49 int32_t GetVendorName(uint32_t devIndex, std::string& vendorName) override; 51 int32_t GetChipName(uint32_t devIndex, std::string& chipName) override; 53 int32_t SetGestureMode(uint32_t devIndex, uint32_t gestureMode) override; 59 int32_t RegisterReportCallback(uint32_t devIndex, [all …]
|
H A D | input_interfaces_service.cpp.txt | 35 int32_t InputInterfacesService::OpenInputDevice(uint32_t devIndex) 40 int32_t InputInterfacesService::CloseInputDevice(uint32_t devIndex) 56 int32_t InputInterfacesService::SetPowerStatus(uint32_t devIndex, uint32_t status) 61 int32_t InputInterfacesService::GetPowerStatus(uint32_t devIndex, uint32_t& status) 66 int32_t InputInterfacesService::GetDeviceType(uint32_t devIndex, uint32_t& deviceType) 71 int32_t InputInterfacesService::GetChipInfo(uint32_t devIndex, std::string& chipInfo) 76 int32_t InputInterfacesService::GetVendorName(uint32_t devIndex, std::string& vendorName) 81 int32_t InputInterfacesService::GetChipName(uint32_t devIndex, std::string& chipName) 86 int32_t InputInterfacesService::SetGestureMode(uint32_t devIndex, uint32_t gestureMode) 102 int32_t InputInterfacesService::RegisterReportCallback(uint32_t devIndex, [all …]
|
H A D | iinput_interfaces.h.txt | 45 virtual int32_t OpenInputDevice(uint32_t devIndex) = 0; 47 virtual int32_t CloseInputDevice(uint32_t devIndex) = 0; 54 virtual int32_t SetPowerStatus(uint32_t devIndex, uint32_t status) = 0; 56 virtual int32_t GetPowerStatus(uint32_t devIndex, uint32_t& status) = 0; 58 virtual int32_t GetDeviceType(uint32_t devIndex, uint32_t& deviceType) = 0; 60 virtual int32_t GetChipInfo(uint32_t devIndex, std::string& chipInfo) = 0; 62 virtual int32_t GetVendorName(uint32_t devIndex, std::string& vendorName) = 0; 64 virtual int32_t GetChipName(uint32_t devIndex, std::string& chipName) = 0; 66 virtual int32_t SetGestureMode(uint32_t devIndex, uint32_t gestureMode) = 0; 72 virtual int32_t RegisterReportCallback(uint32_t devIndex, [all …]
|
/ohos5.0/drivers/peripheral/input/test/common/src/ |
H A D | input_callback_impl.cpp | 29 …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()
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/input_v1_0/dump_ast_target/ |
H A D | dump.txt | 12 [in] unsigned int devIndex); 15 [in] unsigned int devIndex); 18 [in] unsigned int devIndex, 27 [in] unsigned int devIndex, 31 [in] unsigned int devIndex, 35 [in] unsigned int devIndex, 39 [in] unsigned int devIndex, 43 [in] unsigned int devIndex, 97 unsigned int devIndex; 141 unsigned int devIndex; [all …]
|
/ohos5.0/drivers/interface/input/v1_0/ |
H A D | IInputInterfaces.idl | 89 OpenInputDevice([in] unsigned int devIndex); 103 CloseInputDevice([in] unsigned int devIndex); 118 GetInputDevice([in] unsigned int devIndex, [out] struct DeviceInfo devInfo); 153 SetPowerStatus([in] unsigned int devIndex, [in] unsigned int status); 172 GetPowerStatus([in] unsigned int devIndex, [out] unsigned int status); 188 GetDeviceType([in] unsigned int devIndex, [out] unsigned int deviceType); 206 GetChipInfo([in] unsigned int devIndex, [out] String chipInfo); 221 GetVendorName([in] unsigned int devIndex, [out] String vendorName); 236 GetChipName([in] unsigned int devIndex, [out] String chipName); 293 RunExtraCommand([in] unsigned int devIndex, [in] struct ExtraCmd cmd); [all …]
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/input_v1_0/foo/input/v1_0/ |
H A D | IInputInterfaces.idl | 89 OpenInputDevice([in] unsigned int devIndex); 103 CloseInputDevice([in] unsigned int devIndex); 118 GetInputDevice([in] unsigned int devIndex, [out] struct DeviceInfo devInfo); 153 SetPowerStatus([in] unsigned int devIndex, [in] unsigned int status); 172 GetPowerStatus([in] unsigned int devIndex, [out] unsigned int status); 188 GetDeviceType([in] unsigned int devIndex, [out] unsigned int deviceType); 206 GetChipInfo([in] unsigned int devIndex, [out] String chipInfo); 221 GetVendorName([in] unsigned int devIndex, [out] String vendorName); 236 GetChipName([in] unsigned int devIndex, [out] String chipName); 293 RunExtraCommand([in] unsigned int devIndex, [in] struct ExtraCmd cmd); [all …]
|
/ohos5.0/drivers/peripheral/input/udriver/include/ |
H A D | input_device_manager.h | 97 RetStatus SetPowerStatus(uint32_t devIndex, uint32_t status); 98 RetStatus GetPowerStatus(uint32_t devIndex, uint32_t *status); 99 RetStatus GetDeviceType(uint32_t devIndex, uint32_t *deviceType); 100 RetStatus GetChipInfo(uint32_t devIndex, char *chipInfo, uint32_t length); 101 RetStatus GetVendorName(uint32_t devIndex, char *vendorName, uint32_t length); 102 RetStatus GetChipName(uint32_t devIndex, char *chipName, uint32_t length); 103 RetStatus SetGestureMode(uint32_t devIndex, uint32_t gestureMode); 105 RetStatus RunExtraCommand(uint32_t devIndex, InputExtraCmd *cmd); 107 RetStatus RegisterReportCallback(uint32_t devIndex, InputEventCb *callback); 108 RetStatus UnregisterReportCallback(uint32_t devIndex); [all …]
|
/ohos5.0/drivers/peripheral/input/test/fuzztest/inputsetgesturemode_fuzzer/ |
H A D | inputsetgesturemode_fuzzer.cpp | 23 uint32_t devIndex; member 48 if (sta[i].devIndex == 0) { in InputSetGestureModeFuzzTest() 52 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputSetGestureModeFuzzTest() 58 … ret = g_inputInterface->iInputController->SetGestureMode(params->devIndex, params->gestureMode); in InputSetGestureModeFuzzTest() 64 if (sta[i].devIndex == 0) { in InputSetGestureModeFuzzTest() 68 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputSetGestureModeFuzzTest()
|
/ohos5.0/drivers/peripheral/input/test/fuzztest/inputsetpowerstatus_fuzzer/ |
H A D | inputsetpowerstatus_fuzzer.cpp | 23 uint32_t devIndex; member 48 if (sta[i].devIndex == 0) { in InputSetPowerStatusFuzzTest() 52 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in InputSetPowerStatusFuzzTest() 58 ret = g_inputInterface->iInputController->SetPowerStatus(params->devIndex, params->status); in InputSetPowerStatusFuzzTest() 64 if (sta[i].devIndex == 0) { in InputSetPowerStatusFuzzTest() 68 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in InputSetPowerStatusFuzzTest()
|
/ohos5.0/drivers/peripheral/input/test/unittest/common/ |
H A D | hdi_input_test.cpp | 70 if (sta[i].devIndex == 0) { in SetUpTestCase() 116 ret = g_inputInterface->iInputManager->OpenInputDevice(msg->devIndex); in ReportHotPlugEventPkgCallback() 131 ret = g_inputInterface->iInputManager->CloseInputDevice(msg->devIndex); in ReportHotPlugEventPkgCallback() 147 if (sta[i].devIndex == 0) { in OpenOnlineDev() 150 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in OpenOnlineDev() 173 if (sta[i].devIndex == 0) { in CloseOnlineDev() 182 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in CloseOnlineDev() 202 …I("%s:%d, %d, %d, %d", __func__, sta[0].devType, sta[0].devIndex, sta[1].devType, sta[1].devIndex); 352 HDF_LOGI("%s: devindex = %u, devType = %u", __func__, dev->devIndex, 385 HDF_LOGI("%s: index = %u, devType = %u", __func__, dev[i]->devIndex, [all …]
|
/ohos5.0/drivers/peripheral/input/test/fuzztest/runcapacitancetest_fuzzer/ |
H A D | runcapacitancetest_fuzzer.cpp | 23 uint32_t devIndex; member 50 if (sta[i].devIndex == 0) { in RunCapacitanceTestFuzzTest() 54 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[i].devIndex); in RunCapacitanceTestFuzzTest() 61 params->devIndex, params->testType, testresult, length); in RunCapacitanceTestFuzzTest() 67 if (sta[i].devIndex == 0) { in RunCapacitanceTestFuzzTest() 71 ret = g_inputInterface->iInputManager->CloseInputDevice(sta[i].devIndex); in RunCapacitanceTestFuzzTest()
|