Snap for 8969739 from 08c526a578
to tm-qpr1-release
Change-Id: Iec81c97f5a07b55f53045fd6219b1ad0ab745f40
This commit is contained in:
commit
5bb2651272
3 changed files with 60 additions and 0 deletions
|
@ -528,6 +528,7 @@ void Dumpstate::dumpTouchSection(int fd) {
|
|||
const char lsi_spi_path[] = "/sys/devices/virtual/sec/tsp";
|
||||
const char syna_cmd_path[] = "/sys/class/spi_master/spi0/spi0.0/synaptics_tcm.0/sysfs";
|
||||
const char focaltech_cmd_path[] = "/proc/focaltech_touch";
|
||||
const char gti0_cmd_path[] = "/sys/devices/virtual/goog_touch_interface/gti.0";
|
||||
char cmd[256];
|
||||
|
||||
if (!access(focaltech_cmd_path, R_OK)) {
|
||||
|
@ -819,6 +820,48 @@ void Dumpstate::dumpTouchSection(int fd) {
|
|||
lsi_spi_path, lsi_spi_path);
|
||||
RunCommandToFd(fd, "Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
|
||||
}
|
||||
|
||||
if (!access(gti0_cmd_path, R_OK)) {
|
||||
// Enable: force touch active
|
||||
snprintf(cmd, sizeof(cmd), "echo 1 > %s/force_active", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Touch Firmware Version
|
||||
snprintf(cmd, sizeof(cmd), "%s/fw_ver", gti0_cmd_path);
|
||||
DumpFileToFd(fd, "Touch Firmware Version", cmd);
|
||||
|
||||
// Get Mutual Sensing Data - Baseline
|
||||
snprintf(cmd, sizeof(cmd), "cat %s/ms_base", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Get Mutual Sensing Data - Baseline", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Get Mutual Sensing Data - Delta
|
||||
snprintf(cmd, sizeof(cmd), "cat %s/ms_diff", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Get Mutual Sensing Data - Delta", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Get Mutual Sensing Data - Raw
|
||||
snprintf(cmd, sizeof(cmd), "cat %s/ms_raw", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Get Mutual Sensing Data - Raw", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Get Self Sensing Data - Baseline
|
||||
snprintf(cmd, sizeof(cmd), "cat %s/ss_base", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Get Self Sensing Data - Baseline", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Get Self Sensing Data - Delta
|
||||
snprintf(cmd, sizeof(cmd), "cat %s/ss_diff", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Get Self Sensing Data - Delta", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Get Self Sensing Data - Raw
|
||||
snprintf(cmd, sizeof(cmd), "cat %s/ss_raw", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Get Self Sensing Data - Raw", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Self Test
|
||||
snprintf(cmd, sizeof(cmd), "cat %s/self_test", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Self Test", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Disable: force touch active
|
||||
snprintf(cmd, sizeof(cmd), "echo 0 > %s/force_active", gti0_cmd_path);
|
||||
RunCommandToFd(fd, "Disable Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
|
||||
}
|
||||
}
|
||||
|
||||
// Dump items related to SoC
|
||||
|
|
|
@ -680,6 +680,22 @@ void addGs201CommonDataProvidersQc(std::shared_ptr<PowerStats> p) {
|
|||
addWlan(p);
|
||||
}
|
||||
|
||||
void addGs201CommonDataProvidersBig(std::shared_ptr<PowerStats> p) {
|
||||
setEnergyMeter(p);
|
||||
|
||||
addAoC(p);
|
||||
addDvfsStats(p);
|
||||
addSoC(p);
|
||||
addCPUclusters(p);
|
||||
addGPU(p);
|
||||
addUfs(p);
|
||||
addPowerDomains(p);
|
||||
addDevfreq(p);
|
||||
addTPU(p);
|
||||
addPixelStateResidencyDataProvider(p);
|
||||
addWifi(p);
|
||||
}
|
||||
|
||||
void addNFC(std::shared_ptr<PowerStats> p, const std::string& path) {
|
||||
const GenericStateResidencyDataProvider::StateResidencyConfig nfcStateConfig = {
|
||||
.entryCountSupported = true,
|
||||
|
|
|
@ -21,5 +21,6 @@
|
|||
using aidl::android::hardware::power::stats::PowerStats;
|
||||
|
||||
void addGs201CommonDataProviders(std::shared_ptr<PowerStats> p);
|
||||
void addGs201CommonDataProvidersBig(std::shared_ptr<PowerStats> p);
|
||||
void addGs201CommonDataProvidersQc(std::shared_ptr<PowerStats> p);
|
||||
void addNFC(std::shared_ptr<PowerStats> p, const std::string& path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue