/test/xts/hats/hdf/input/inputBenchmarkTest/ |
H A D | hdf_input_benchmark_test.cpp | 43 static void CloseOnlineDev(InputDevDesc *sta, int32_t len);
44 static void OpenOnlineDev(InputDevDesc *sta, int32_t len);
55 InputDevDesc sta[MAX_DEVICES];
in SetUp() local 56 ret = memset_s(sta, MAX_DEVICES * sizeof(InputDevDesc), 0, MAX_DEVICES * sizeof(InputDevDesc));
in SetUp() 68 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, MAX_DEVICES);
in SetUp() 73 if (sta[i].devIndex == 0) {
in SetUp() 132 static void OpenOnlineDev(InputDevDesc *sta, int32_t len)
in OpenOnlineDev() argument 134 int32_t ret = g_inputInterface->iInputManager->ScanInputDevice(sta, len);
in OpenOnlineDev() 141 if (sta[i].devIndex == 0) {
in OpenOnlineDev() 144 ret = g_inputInterface->iInputManager->OpenInputDevice(sta[ in OpenOnlineDev() 158 CloseOnlineDev(InputDevDesc *sta, int32_t len) CloseOnlineDev() argument 193 InputDevDesc sta[MAX_DEVICES]; BENCHMARK_F() local 218 InputDevDesc sta[MAX_DEVICES]; BENCHMARK_F() local 266 InputDevDesc sta[MAX_DEVICES]; BENCHMARK_F() local [all...] |
/test/xts/hats/hdf/input/hdi_passthrough/ |
H A D | hdf_input_hdi_test.cpp | 73 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() 151 std::vector<DevDesc> sta; HWTEST_F() local 1088 std::vector<DevDesc> sta; HWTEST_F() local [all...] |
/test/xts/hats/hdf/input/hdi_input/hdi_input/ |
H A D | hdi_input_test.cpp | 111 InputDevDesc sta[MAX_DEVICES] = {0}; in HWTEST_F() local 116 ret = g_inputInterface->iInputManager->ScanInputDevice(sta, sizeof(sta) / sizeof(InputDevDesc)); in HWTEST_F() 119 __func__, sta[0].devType, sta[0].devIndex, sta[1].devType, sta[1].devIndex); in HWTEST_F() 122 if (sta[i].devIndex == 0) { in HWTEST_F() 125 if (sta[i].devType == INDEV_TYPE_TOUCH) { in HWTEST_F() 126 g_touchIndex = sta[ in HWTEST_F() [all...] |
/test/xts/acts/communication/btmanager_errorcode401/entry/src/ohosTest/ets/test/ |
H A D | BtMGattAdvertiser401.test.js | 58 let sta = bluetooth.getState(); 59 switch(sta){ 61 console.info('[bluetooth_js] bt turn off:'+ JSON.stringify(sta)); 67 console.info('[bluetooth_js] bt turning on:'+ JSON.stringify(sta)); 71 console.info('[bluetooth_js] bt turn on:'+ JSON.stringify(sta)); 74 console.info('[bluetooth_js] bt turning off:'+ JSON.stringify(sta));
|
H A D | BtMGattManager401.test.js | 56 let sta = bluetooth.getState();
57 switch(sta){
59 console.info('[bluetooth_js] bt turn off:'+ JSON.stringify(sta));
65 console.info('[bluetooth_js] bt turning on:'+ JSON.stringify(sta));
69 console.info('[bluetooth_js] bt turn on:'+ JSON.stringify(sta));
72 console.info('[bluetooth_js] bt turning off:'+ JSON.stringify(sta));
|
/test/xts/hats/hdf/input/PassthroughBenchmarkTest/ |
H A D | hdf_input_benchmark_test.cpp | 79 std::vector<DevDesc> sta; in BENCHMARK_F() local 85 ret = g_inputInterfaces->ScanInputDevice(sta); in BENCHMARK_F() 88 HDF_LOGE("%s: %d, %d, %d, %d", __func__, sta[0].devType, sta[0].devIndex, sta[1].devType, sta[1].devIndex); in BENCHMARK_F()
|
/test/xts/acts/communication/btmanager_switchoff/entry/src/ohosTest/ets/test/ |
H A D | btManagerSwitchOff003.test.js | 28 let sta = bluetoothManager.getState(); 29 switch(sta){ 31 console.info('[bluetooth_js] bt turn off:'+ JSON.stringify(sta)); 34 console.info('[bluetooth_js] bt turning on:'+ JSON.stringify(sta)); 40 console.info('[bluetooth_js] bt turn on:'+ JSON.stringify(sta)); 46 console.info('[bluetooth_js] bt turning off:'+ JSON.stringify(sta)); 123 let sta = bluetoothManager.getState(); 124 console.info('[bluetooth_js] bt getState:'+ JSON.stringify(sta));
|
/test/xts/acts/communication/bluetooth_standard/src/main/js/test/ |
H A D | BtSetLocalName.test.js | 78 let sta = bluetooth.getState(); 79 switch(sta){ 88 console.info('[bluetooth_js] bt turning on:'+ JSON.stringify(sta)); 92 console.info('[bluetooth_js] bt turn on:'+ JSON.stringify(sta));
|
/test/xts/hats/hdf/input/hdi_passthrough_additional/ |
H A D | hdf_input_hdi_test.cpp | 86 std::vector<DevDesc> sta; in HWTEST_F() local 90 ret |= g_inputInterfaces->ScanInputDevice(sta); in HWTEST_F()
|