The support of Elan touch panel is added to remote_aardvark
Class ElanTouchScreenDevice is added. The format of the reported
events is the same as the format that was used in ElanTouchDevice.
Also main.py is updated to be able to use the new class.
the following command can is used to test the device
python main.py -telan_ts_i2c
BUG=none
TEST=Manually tested and works
Change-Id: I73e44913f2f1aeb481781db5bacfec68cdec5d1c
Reviewed-on: https://chromium-review.googlesource.com/271173
Reviewed-by: Charlie Mooney <charliemooney@chromium.org>
Tested-by: Amirhossein Simjour <asimjour@chromium.org>
Commit-Queue: Amirhossein Simjour <asimjour@chromium.org>
diff --git a/main.py b/main.py
index be4f508..1de4a48 100644
--- a/main.py
+++ b/main.py
@@ -8,14 +8,15 @@
import colorama as color
-from remote import ChromeOSTouchDevice, AndroidTouchDevice, ElanTouchDevice, mt
+from remote import ChromeOSTouchDevice, AndroidTouchDevice, mt
+from remote import ElanTouchScreenDevice, ElanTouchDevice
from report import Report
from test_suite import TestSuite
REPORT_LOCATION = 'report.html'
def parse_arguments():
- VALID_DUT_TYPES = ['chromeos', 'android', 'elan_i2c', 'replay']
+ VALID_DUT_TYPES = ['chromeos', 'android', 'elan_i2c', 'elan_ts_i2c', 'replay']
VALID_MODES = ['performance', 'noise', 'full']
VALID_PROTOCOLS = [mt.MTA, mt.MTB, 'auto']
parser = optparse.OptionParser()
@@ -96,7 +97,9 @@
elif options.dut_type == 'android':
touch_dev = AndroidTouchDevice(options.addr, True, options.protocol)
elif options.dut_type == 'elan_i2c':
- touch_dev = ElanTouchDevice(options.addr, True)
+ touch_dev = ElanTouchDevice(options.addr)
+ elif options.dut_type == 'elan_ts_i2c':
+ touch_dev = ElanTouchScreenDevice(options.addr)
else:
return None