Remove obsolete led dump
Bug: 240530709 Test: adb bugreport Change-Id: Ie018b028c6819fb263d39826fd462e232291df6a
This commit is contained in:
parent
6fe621f1a5
commit
0584dcc4b5
2 changed files with 0 additions and 17 deletions
|
@ -213,7 +213,6 @@ Dumpstate::Dumpstate()
|
||||||
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
{ "memory", [this](int fd) { dumpMemorySection(fd); } },
|
||||||
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
||||||
{ "display", [this](int fd) { dumpDisplaySection(fd); } },
|
{ "display", [this](int fd) { dumpDisplaySection(fd); } },
|
||||||
{ "led", [this](int fd) { dumpLEDSection(fd); } },
|
|
||||||
},
|
},
|
||||||
mLogSections{
|
mLogSections{
|
||||||
{ "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } },
|
{ "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } },
|
||||||
|
@ -370,21 +369,6 @@ void Dumpstate::dumpDisplaySection(int fd) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dump items related to LED
|
|
||||||
void Dumpstate::dumpLEDSection(int fd) {
|
|
||||||
struct stat buffer;
|
|
||||||
|
|
||||||
if (!PropertiesHelper::IsUserBuild()) {
|
|
||||||
if (!stat("/sys/class/leds/green", &buffer)) {
|
|
||||||
DumpFileToFd(fd, "Green LED Brightness", "/sys/class/leds/green/brightness");
|
|
||||||
DumpFileToFd(fd, "Green LED Max Brightness", "/sys/class/leds/green/max_brightness");
|
|
||||||
}
|
|
||||||
if (!stat("/mnt/vendor/persist/led/led_calibration_LUT.txt", &buffer)) {
|
|
||||||
DumpFileToFd(fd, "LED Calibration Data", "/mnt/vendor/persist/led/led_calibration_LUT.txt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) {
|
void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) {
|
||||||
std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY;
|
std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY;
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,6 @@ class Dumpstate : public BnDumpstateDevice {
|
||||||
void dumpDevfreqSection(int fd);
|
void dumpDevfreqSection(int fd);
|
||||||
void dumpMemorySection(int fd);
|
void dumpMemorySection(int fd);
|
||||||
void dumpDisplaySection(int fd);
|
void dumpDisplaySection(int fd);
|
||||||
void dumpLEDSection(int fd);
|
|
||||||
|
|
||||||
void dumpLogSection(int fd, int fdModem);
|
void dumpLogSection(int fd, int fdModem);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue