1{ 2 "description": "Configuration for hjunit demo Tests", 3 "driver": { 4 "type": "OHJSUnitTest", 5 "test-timeout": "180000", 6 "bundle-name": "com.acts.inputmethoddrawncontrol.test", 7 "module-name": "entry_test", 8 "shell-timeout": "600000", 9 "testcase-timeout": "60000" 10 }, 11 "kits": [ 12 { 13 "type": "PushKit", 14 "pre-push": [ 15 "mount -o rw,remount /" 16 ], 17 "push": [ 18 "./resource/inputMethod/input_method_choose_dialog.hap ->/data/local/tmp" 19 ] 20 }, 21 { 22 "type": "ShellKit", 23 "run-command": [ 24 "mount -o rw,remount /", 25 "target mount", 26 "sed -i 's/enableInputMethodFeature\": true/enableInputMethodFeature\": false/' /system/variant/phone/base/etc/inputmethod/inputmethod_framework_config.json", 27 "sed -i 's/enableFullExperienceFeature\": true/enableFullExperienceFeature\": false/' /system/variant/phone/base/etc/inputmethod/inputmethod_framework_config.json", 28 "sed -i 's/enableInputMethodFeature\": true/enableInputMethodFeature\": false/' /system/variant/tablet/base/etc/inputmethod/inputmethod_framework_config.json", 29 "sed -i 's/enableFullExperienceFeature\": true/enableFullExperienceFeature\": false/' /system/variant/tablet/base/etc/inputmethod/inputmethod_framework_config.json", 30 "sed -i 's/enableInputMethodFeature\": true/enableInputMethodFeature\": false/' /system/variant/pc/base/etc/inputmethod/inputmethod_framework_config.json", 31 "sed -i 's/enableFullExperienceFeature\": true/enableFullExperienceFeature\": false/' /system/variant/pc/base/etc/inputmethod/inputmethod_framework_config.json", 32 "sed -i 's/enableInputMethodFeature\": true/enableInputMethodFeature\": false/' /system/variant/car/base/etc/inputmethod/inputmethod_framework_config.json", 33 "sed -i 's/enableFullExperienceFeature\": true/enableFullExperienceFeature\": false/' /system/variant/car/base/etc/inputmethod/inputmethod_framework_config.json", "param set persist.usb.setting.gadget_conn_prompt false", 34 "param set persist.usb.setting.gadget_conn_prompt false", 35 "param set persist.skip_scb_charging 1", 36 "bm install -p /data/local/tmp/input_method_choose_dialog.hap", 37 "reboot", 38 "power-shell wakeup", 39 "param set persist.sys.abilityms.support.ecologicalrulemgrservice false", 40 "param set skip_scb_charging 1", 41 "power-shell timeout -o 2147483647", 42 "uinput -T -m 300 720 300 360 200", 43 "uinput -T -m 650 2500 650 1380 200", 44 "uinput -T -m 650 2760 650 1380 200", 45 "power-shell setmode 602", 46 "power-shell wakeup", 47 "power-shell timeout -o 2147483647", 48 "uinput -T -d 1070 1070 -u 1070 1070", 49 "power-shell setmode 602" 50 ] 51 }, 52 { 53 "test-file-name": [ 54 "ActsInputMethodDrawnControlTest.hap" 55 ], 56 "type": "AppInstallKit", 57 "cleanup-apps": true 58 } 59 ] 60} 61