/test/xts/acts/multimodalinput/multimodalinput_ndk_hvigor/InputNdkSystem/entry/src/main/cpp/ |
H A D | inputndksys.cpp | 79 Input_Result retResult = OH_Input_SetAxisEventAction(axisEvent, action); in SetAxisEventAction() local 80 napi_create_int32(env, (retResult == INPUT_SUCCESS) ? 1 : 0, &result); in SetAxisEventAction() 90 Input_Result retResult = OH_Input_SetAxisEventAction(axisEvent, action); in GetAxisEventAction() local 92 retResult = OH_Input_GetAxisEventAction(axisEvent, &action); in GetAxisEventAction() 93 napi_create_int32(env, (retResult==INPUT_SUCCESS && action==AXIS_ACTION_BEGIN) ? 1 : 0, &result); in GetAxisEventAction() 103 Input_Result retResult = OH_Input_SetAxisEventDisplayX(axisEvent, displayX); in SetAxisEventDisplayX() local 104 napi_create_int32(env, (retResult==INPUT_SUCCESS) ? 1 : 0, &result); in SetAxisEventDisplayX() 114 Input_Result retResult = OH_Input_SetAxisEventDisplayX(axisEvent, displayX); in GetAxisEventDisplayX() local 116 retResult = OH_Input_GetAxisEventDisplayX(axisEvent, &displayX); in GetAxisEventDisplayX() 117 napi_create_int32(env, (retResult in GetAxisEventDisplayX() 127 Input_Result retResult = OH_Input_SetAxisEventDisplayY(axisEvent, displayY); SetAxisEventDisplayY() local 138 Input_Result retResult = OH_Input_SetAxisEventDisplayY(axisEvent, displayY); GetAxisEventDisplayY() local 152 Input_Result retResult = OH_Input_SetAxisEventAxisValue(axisEvent, axisType, axisValue); SetAxisEventAxisValue() local 164 Input_Result retResult = OH_Input_SetAxisEventAxisValue(axisEvent, axisType, axisValue); GetAxisEventAxisValue() local 177 Input_Result retResult = OH_Input_SetAxisEventActionTime(axisEvent, actionTime); SetAxisEventActionTime() local 188 Input_Result retResult = OH_Input_SetAxisEventActionTime(axisEvent, actionTime); GetAxisEventActionTime() local 201 Input_Result retResult = OH_Input_SetAxisEventType(axisEvent, axisEventType); SetAxisEventType() local 212 Input_Result retResult = OH_Input_SetAxisEventType(axisEvent, axisEventType); GetAxisEventType() local 225 Input_Result retResult = OH_Input_SetAxisEventSourceType(axisEvent, sourceType); SetAxisEventSourceType() local 237 Input_Result retResult = OH_Input_SetAxisEventSourceType(axisEvent, sourceType); GetAxisEventSourceType() local 251 Input_Result retResult = OH_Input_SetAxisEventAction(axisEvent, action); DestroyAxisEvent() local 294 Input_Result retResult = OH_Input_DestroyAxisEvent(nullptr); DestroyAxisEvent2() local 303 Input_Result retResult = OH_Input_SetAxisEventAction(nullptr, action); SetAxisEventAction2() local 312 Input_Result retResult = OH_Input_GetAxisEventAction(axisEvent, nullptr); GetAxisEventAction2() local 322 Input_Result retResult = OH_Input_GetAxisEventAction(nullptr, &action); GetAxisEventAction3() local 331 Input_Result retResult = OH_Input_SetAxisEventDisplayX(nullptr, displayX); SetAxisEventDisplayX2() local 340 Input_Result retResult = OH_Input_GetAxisEventDisplayX(axisEvent, nullptr); GetAxisEventDisplayX2() local 350 Input_Result retResult = OH_Input_GetAxisEventDisplayX(nullptr, &displayX); GetAxisEventDisplayX3() local 359 Input_Result retResult = OH_Input_SetAxisEventDisplayY(nullptr, displayY); SetAxisEventDisplayY2() local 368 Input_Result retResult = OH_Input_GetAxisEventDisplayY(axisEvent, nullptr); GetAxisEventDisplayY2() local 378 Input_Result retResult = OH_Input_GetAxisEventDisplayY(nullptr, &displayY); GetAxisEventDisplayY3() local 386 Input_Result retResult = OH_Input_GetAxisEventDisplayY(nullptr, nullptr); GetAxisEventDisplayY4() local 396 Input_Result retResult = OH_Input_SetAxisEventAxisValue(nullptr, axisType, axisValue); SetAxisEventAxisValue2() local 406 Input_Result retResult = OH_Input_GetAxisEventAxisValue(axisEvent, axisType, nullptr); GetAxisEventAxisValue2() local 417 Input_Result retResult = OH_Input_GetAxisEventAxisValue(nullptr, axisType, &axisValue); GetAxisEventAxisValue3() local 426 Input_Result retResult = OH_Input_GetAxisEventAxisValue(nullptr, axisType, nullptr); GetAxisEventAxisValue4() local 437 Input_Result retResult = OH_Input_GetAxisEventAxisValue(axisEvent, axisType, &axisValue); GetAxisEventAxisValue5() local 447 Input_Result retResult = OH_Input_SetAxisEventActionTime(nullptr, actionTime); SetAxisEventActionTime2() local 456 Input_Result retResult = OH_Input_GetAxisEventActionTime(axisEvent, nullptr); GetAxisEventActionTime2() local 466 Input_Result retResult = OH_Input_GetAxisEventActionTime(nullptr, &actionTime); GetAxisEventActionTime3() local 474 Input_Result retResult = OH_Input_GetAxisEventActionTime(nullptr, nullptr); GetAxisEventActionTime4() local 483 Input_Result retResult = OH_Input_SetAxisEventType(nullptr, axisEventType); SetAxisEventType2() local 492 Input_Result retResult = OH_Input_GetAxisEventType(axisEvent, nullptr); GetAxisEventType2() local 502 Input_Result retResult = OH_Input_GetAxisEventType(nullptr, &axisEventType); GetAxisEventType3() local 510 Input_Result retResult = OH_Input_GetAxisEventType(nullptr, nullptr); GetAxisEventType4() local 519 Input_Result retResult = OH_Input_SetAxisEventSourceType(nullptr, sourceType); SetAxisEventSourceType2() local 528 Input_Result retResult = OH_Input_GetAxisEventSourceType(axisEvent, nullptr); GetAxisEventSourceType2() local 538 Input_Result retResult = OH_Input_GetAxisEventSourceType(nullptr, &sourceType); GetAxisEventSourceType3() local 546 Input_Result retResult = OH_Input_GetAxisEventSourceType(nullptr, nullptr); GetAxisEventSourceType4() local 554 Input_Result retResult = OH_Input_AddKeyEventMonitor(KeyEventCallback); AddKeyEventMonitor() local 563 Input_Result retResult = OH_Input_AddKeyEventMonitor(KeyEventCallback); RemoveKeyEventMonitor() local 572 Input_Result retResult = OH_Input_AddKeyEventMonitor(nullptr); AddKeyEventMonitor2() local 580 Input_Result retResult = OH_Input_RemoveKeyEventMonitor(nullptr); RemoveKeyEventMonitor2() local 588 Input_Result retResult = OH_Input_RemoveKeyEventMonitor(KeyEventCallback); RemoveKeyEventMonitor3() local 596 Input_Result retResult = OH_Input_RemoveKeyEventMonitor(KeyEventCallback); AddKeyEventMonitor3() local 606 Input_Result retResult = OH_Input_RemoveKeyEventMonitor(KeyEventCallback); RemoveKeyEventMonitor4() local 616 Input_Result retResult = OH_Input_AddMouseEventMonitor(MouseEventCallback); AddMouseEventMonitor() local 625 Input_Result retResult = OH_Input_AddMouseEventMonitor(MouseEventCallback); RemoveMouseEventMonitor() local 634 Input_Result retResult = OH_Input_AddMouseEventMonitor(nullptr); AddMouseEventMonitor2() local 642 Input_Result retResult = OH_Input_RemoveMouseEventMonitor(nullptr); RemoveMouseEventMonitor2() local 650 Input_Result retResult = OH_Input_RemoveMouseEventMonitor(MouseEventCallback); RemoveMouseEventMonitor3() local 658 Input_Result retResult = OH_Input_RemoveMouseEventMonitor(MouseEventCallback); AddMouseEventMonitor3() local 668 Input_Result retResult = OH_Input_RemoveMouseEventMonitor(MouseEventCallback); RemoveMouseEventMonitor4() local 678 Input_Result retResult = OH_Input_AddTouchEventMonitor(TouchEventCallback); AddTouchEventMonitor() local 687 Input_Result retResult = OH_Input_AddTouchEventMonitor(TouchEventCallback); RemoveTouchEventMonitor() local 696 Input_Result retResult = OH_Input_AddTouchEventMonitor(nullptr); AddTouchEventMonitor2() local 704 Input_Result retResult = OH_Input_RemoveTouchEventMonitor(nullptr); RemoveTouchEventMonitor2() local 712 Input_Result retResult = OH_Input_RemoveTouchEventMonitor(TouchEventCallback); RemoveTouchEventMonitor3() local 720 Input_Result retResult = OH_Input_RemoveTouchEventMonitor(TouchEventCallback); AddTouchEventMonitor3() local 730 Input_Result retResult = OH_Input_RemoveTouchEventMonitor(TouchEventCallback); RemoveTouchEventMonitor4() local 740 Input_Result retResult = OH_Input_AddAxisEventMonitorForAll(AxisEventCallbackAll); AddAxisEventMonitorForAll() local 749 Input_Result retResult = OH_Input_AddAxisEventMonitorForAll(AxisEventCallbackAll); RemoveAxisEventMonitorForAll() local 758 Input_Result retResult = OH_Input_AddAxisEventMonitorForAll(nullptr); AddAxisEventMonitorForAll2() local 766 Input_Result retResult = OH_Input_RemoveAxisEventMonitorForAll(nullptr); RemoveAxisEventMonitorForAll2() local 774 Input_Result retResult = OH_Input_RemoveAxisEventMonitorForAll(AxisEventCallbackAll); RemoveAxisEventMonitorForAll3() local 782 Input_Result retResult = OH_Input_RemoveAxisEventMonitorForAll(AxisEventCallbackAll); AddAxisEventMonitorForAll3() local 792 Input_Result retResult = OH_Input_RemoveAxisEventMonitorForAll(AxisEventCallbackAll); RemoveAxisEventMonitorForAll4() local 803 Input_Result retResult = OH_Input_AddAxisEventMonitor(axisEventType, AxisEventCallback); AddAxisEventMonitor() local 813 Input_Result retResult = OH_Input_AddAxisEventMonitor(axisEventType, AxisEventCallback); RemoveAxisEventMonitor() local 823 Input_Result retResult = OH_Input_AddAxisEventMonitor(axisEventType, nullptr); AddAxisEventMonitor2() local 832 Input_Result retResult = OH_Input_RemoveAxisEventMonitor(axisEventType, nullptr); RemoveAxisEventMonitor2() local 841 Input_Result retResult = OH_Input_RemoveAxisEventMonitor(axisEventType, AxisEventCallback); RemoveAxisEventMonitor3() local 850 Input_Result retResult = OH_Input_RemoveAxisEventMonitor(axisEventType, AxisEventCallback); AddAxisEventMonitor3() local 861 Input_Result retResult = OH_Input_RemoveAxisEventMonitor(axisEventType, AxisEventCallback); RemoveAxisEventMonitor4() local 873 Input_Result retResult = OH_Input_RemoveAxisEventMonitor(axisEventType, AxisEventCallback); RemoveAxisEventMonitor5() local 884 Input_Result retResult = OH_Input_AddKeyEventInterceptor(nullptr, nullptr); AddKeyEventInterceptor() local 892 Input_Result retResult = OH_Input_AddKeyEventInterceptor(KeyEventCallback, nullptr); AddKeyEventInterceptor2() local 900 Input_Result retResult = OH_Input_AddKeyEventInterceptor(KeyEventCallback, nullptr); AddKeyEventInterceptor3() local 910 Input_Result retResult = OH_Input_AddKeyEventInterceptor(KeyEventCallback, nullptr); RemoveKeyEventInterceptor() local 920 Input_Result retResult = OH_Input_RemoveKeyEventInterceptor(); RemoveKeyEventInterceptor2() local 928 Input_Result retResult = OH_Input_RemoveKeyEventInterceptor(); AddKeyEventInterceptor4() local 938 Input_Result retResult = OH_Input_RemoveKeyEventInterceptor(); RemoveKeyEventInterceptor3() local 949 Input_Result retResult = OH_Input_AddInputEventInterceptor(nullptr, option); AddInputEventInterceptor() local 962 Input_Result retResult = OH_Input_AddInputEventInterceptor(&callback, option); AddInputEventInterceptor2() local 976 Input_Result retResult = OH_Input_AddInputEventInterceptor(&callback, option); AddInputEventInterceptor3() local 991 Input_Result retResult = OH_Input_AddInputEventInterceptor(&callback, option); RemoveInputEventInterceptor() local 1001 Input_Result retResult = OH_Input_RemoveInputEventInterceptor(); RemoveInputEventInterceptor2() local 1009 Input_Result retResult = OH_Input_RemoveInputEventInterceptor(); AddInputEventInterceptor4() local 1024 Input_Result retResult = OH_Input_RemoveInputEventInterceptor(); RemoveInputEventInterceptor3() local [all...] |
/test/xts/acts/multimodalinput/multimodalinput_ndk_hvigor/InputNdkNormal/entry/src/main/cpp/ |
H A D | inputndk.cpp | 196 int32_t retResult = OH_Input_InjectKeyEvent(keyEvent); in InjectKeyEvent() local 197 napi_create_int32(env, retResult == INPUT_PARAMETER_ERROR ? 1 : 0, &result); in InjectKeyEvent() 854 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); in GetDeviceIds() local 855 napi_create_int32(env, retResult == INPUT_SUCCESS ? 1 : 0, &result); in GetDeviceIds() 865 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, outSize); in GetDeviceIds2() local 866 napi_create_int32(env, retResult == INPUT_PARAMETER_ERROR ? 1 : 0, &result); in GetDeviceIds2() 876 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); in GetDeviceIds3() local 877 napi_create_int32(env, (retResult == INPUT_SUCCESS && outSize == 1) ? 1 : 0, &result); in GetDeviceIds3() 887 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); in GetDeviceIds4() local 888 napi_create_int32(env, (retResult in GetDeviceIds4() 898 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceIds5() local 908 Input_Result retResult = OH_Input_GetKeyboardType(deviceId, &KeyboardType); GetKeyboardType() local 919 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetKeyboardType2() local 933 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetKeyboardType3() local 948 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetKeyboardType4() local 964 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDevice() local 980 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDevice2() local 995 Input_Result retResult = OH_Input_GetDevice(deviceId, &deviceInfo); GetDevice3() local 1006 Input_Result retResult = OH_Input_GetDevice(deviceId, &deviceInfo); GetDevice4() local 1017 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceName() local 1053 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceName3() local 1071 Input_Result retResult = OH_Input_GetDeviceName(deviceInfo, &name); GetDeviceName4() local 1083 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceAddress() local 1119 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceAddress3() local 1136 Input_Result retResult = OH_Input_GetDeviceAddress(deviceInfo, &address); GetDeviceAddress4() local 1148 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceId() local 1183 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceId3() local 1201 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetCapabilities() local 1237 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetCapabilities3() local 1254 Input_Result retResult = OH_Input_GetCapabilities(deviceInfo, &capabilities); GetCapabilities4() local 1266 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceVersion() local 1301 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceVersion3() local 1318 Input_Result retResult = OH_Input_GetDeviceVersion(deviceInfo, &version); GetDeviceVersion4() local 1330 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceProduct() local 1366 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceProduct3() local 1383 Input_Result retResult = OH_Input_GetDeviceProduct(deviceInfo, &product); GetDeviceProduct4() local 1395 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceVendor() local 1430 Input_Result retResult = OH_Input_GetDeviceIds(deviceIds, inSize, &outSize); GetDeviceVendor3() local 1447 Input_Result retResult = OH_Input_GetDeviceVendor(deviceInfo, &vendor); GetDeviceVendor4() local 1517 int64_t retResult = OH_Input_GetIntervalSinceLastInput(intervalSinceLastInput); GetIntervalSinceLastInput() local [all...] |
/test/testfwk/arkxtest/jsunit/ |
H A D | index.js | 91 const retResult = {total: 0, failure: 0, error: 0, pass: 0, ignore: 0, duration: 0}; 93 Hypium.configWorkerItTestResult(retResult, allItemList); 100 `\n${PrintTag.OHOS_REPORT_ALL_RESULT}: stream=Test run: runTimes: ${ret.total},total: ${retResult.total}, Failure: ${retResult.failure}, Error: ${retResult.error}, Pass: ${retResult.pass}, Ignore: ${retResult.ignore}` + 101 `\n${PrintTag.OHOS_REPORT_ALL_CODE}: ${retResult.failure > 0 || retResult.error > 0 ? -1 : 0}` + 175 static configWorkerItTestResult(retResult, allItemLis [all...] |
/test/xts/acts/multimodalinput/input_cpp_standard/ |
H A D | input_native_test.cpp | 132 int32_t retResult = OH_Input_InjectKeyEvent(keyEvent); in HWTEST_F() local 133 EXPECT_EQ(retResult, INPUT_PARAMETER_ERROR); in HWTEST_F() 137 retResult = OH_Input_InjectKeyEvent(keyEvent); in HWTEST_F() 138 EXPECT_EQ(retResult, INPUT_PARAMETER_ERROR); in HWTEST_F() 210 int32_t retResult = OH_Input_InjectMouseEvent(mouseEvent); in HWTEST_F() local 211 EXPECT_EQ(retResult, INPUT_PARAMETER_ERROR); in HWTEST_F() 233 int32_t retResult = OH_Input_InjectMouseEvent(mouseEvent); in HWTEST_F() local 234 EXPECT_EQ(retResult, INPUT_PARAMETER_ERROR); in HWTEST_F() 242 retResult = OH_Input_InjectMouseEvent(mouseEvent); in HWTEST_F() 243 EXPECT_EQ(retResult, INPUT_PARAMETER_ERRO in HWTEST_F() 382 int32_t retResult = OH_Input_InjectTouchEvent(touchEvent); HWTEST_F() local [all...] |