dumpstate: support CM2 data dump for touch. am: d13f6ec6d9 am: abe54873bb am: 9c91d922ad
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15447535 Change-Id: I5f7990259965b439f469cbce128fd4fd59c455e8
This commit is contained in:
commit
820ad6a5ae
1 changed files with 21 additions and 14 deletions
|
@ -648,20 +648,6 @@ void DumpstateDevice::dumpTouchSection(int fd) {
|
|||
lsi_spi_path, lsi_spi_path);
|
||||
RunCommandToFd(fd, "Self Strength", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Raw cap
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo %s > %s/cmd && cat %s/cmd_result",
|
||||
"run_rawcap_read_all",
|
||||
lsi_spi_path, lsi_spi_path);
|
||||
RunCommandToFd(fd, "Mutual Raw Cap", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Self raw cap
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo %s > %s/cmd && cat %s/cmd_result",
|
||||
"run_self_rawcap_read_all",
|
||||
lsi_spi_path, lsi_spi_path);
|
||||
RunCommandToFd(fd, "Self Raw Cap", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// TYPE_AMBIENT_DATA
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo %s > %s/cmd && cat %s/cmd_result",
|
||||
|
@ -697,6 +683,27 @@ void DumpstateDevice::dumpTouchSection(int fd) {
|
|||
lsi_spi_path, lsi_spi_path);
|
||||
RunCommandToFd(fd, "TYPE_NOI_P2P_MAX", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Raw cap
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo %s > %s/cmd && cat %s/cmd_result",
|
||||
"run_rawcap_read_all",
|
||||
lsi_spi_path, lsi_spi_path);
|
||||
RunCommandToFd(fd, "Mutual Raw Cap", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Self raw cap
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo %s > %s/cmd && cat %s/cmd_result",
|
||||
"run_self_rawcap_read_all",
|
||||
lsi_spi_path, lsi_spi_path);
|
||||
RunCommandToFd(fd, "Self Raw Cap", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// CM2
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo %s > %s/cmd && cat %s/cmd_result",
|
||||
"run_rawcap_high_freq_read_all",
|
||||
lsi_spi_path, lsi_spi_path);
|
||||
RunCommandToFd(fd, "CM2", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Disable: force touch active
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo %s > %s/cmd && cat %s/cmd_result",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue