PixelStat: Suez: Porting wireless charging am: 4c3d1f2369 am: 39d43e59fb am: 626a99fea2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14881199 Change-Id: Ibe02b486f8e10738d7e97be62808c368ae073fb7
This commit is contained in:
commit
7e40474ef7
1 changed files with 4 additions and 4 deletions
|
@ -40,14 +40,14 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
|
||||||
.ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance",
|
.ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance",
|
||||||
.CodecPath = "/sys/devices/platform/audiometrics/codec_state",
|
.CodecPath = "/sys/devices/platform/audiometrics/codec_state",
|
||||||
.EEPROMPath = "/dev/battery_history"};
|
.EEPROMPath = "/dev/battery_history"};
|
||||||
|
const struct UeventListener::UeventPaths ueventPaths = {
|
||||||
const char *const kAudioUevent = "/devices/virtual/amcs/amcs";
|
.AudioUevent = "/devices/virtual/amcs/amcs",
|
||||||
const char *const kSSOCDetailsPath = "/sys/class/power_supply/battery/ssoc_details";
|
.WirelessChargerPtmcPath = "/sys/class/power_supply/wireless/device/ptmc_id"};
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
LOG(INFO) << "starting PixelStats";
|
LOG(INFO) << "starting PixelStats";
|
||||||
|
|
||||||
UeventListener ueventListener(kAudioUevent, kSSOCDetailsPath);
|
UeventListener ueventListener(ueventPaths);
|
||||||
std::thread listenThread(&UeventListener::ListenForever, &ueventListener);
|
std::thread listenThread(&UeventListener::ListenForever, &ueventListener);
|
||||||
listenThread.detach();
|
listenThread.detach();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue