Snap for 10071751 from 96f1585820
to udc-qpr1-release
Change-Id: I0b380e13de3da121cf2f302e76aece9017d65cad
This commit is contained in:
commit
c9787d363b
4 changed files with 41 additions and 7 deletions
|
@ -23,5 +23,11 @@
|
|||
<device name="dhdpcie_host_wake">
|
||||
<subsystem>Wifi</subsystem>
|
||||
</device>
|
||||
<device name="cp2ap_wakeup">
|
||||
<subsystem>Cellular_data</subsystem>
|
||||
</device>
|
||||
<device name="MAILBOX_AOCA322APx100">
|
||||
<subsystem>Sensor</subsystem>
|
||||
</device>
|
||||
</irq-device-map>
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include <android/binder_manager.h>
|
||||
#include <android/binder_process.h>
|
||||
#include <log/log.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
using aidl::android::hardware::power::stats::DevfreqStateResidencyDataProvider;
|
||||
using aidl::android::hardware::power::stats::DisplayStateResidencyDataProvider;
|
||||
|
@ -140,6 +141,18 @@ void addGPU(std::shared_ptr<PowerStats> p) {
|
|||
stateCoeffs));
|
||||
}
|
||||
|
||||
std::string getNfcPath() {
|
||||
struct stat buffer;
|
||||
int size = 128;
|
||||
char path[size];
|
||||
for (int i = 0; i < 10; i++) {
|
||||
std::snprintf(path, size,
|
||||
"/sys/devices/platform/10970000.hsi2c/i2c-%d/i2c-st21nfc/power_stats", i);
|
||||
if (!stat(path, &buffer)) break;
|
||||
}
|
||||
return std::string(path);
|
||||
}
|
||||
|
||||
int main() {
|
||||
LOG(INFO) << "Pixel PowerStats HAL AIDL Service is starting.";
|
||||
|
||||
|
@ -160,7 +173,7 @@ int main() {
|
|||
addWifi(p);
|
||||
addTPU(p);
|
||||
addUfs(p);
|
||||
addNFC(p, "/sys/devices/platform/10970000.hsi2c/i2c-4/i2c-st21nfc/power_stats");
|
||||
addNFC(p, getNfcPath());
|
||||
addUwb(p);
|
||||
addPowerDomains(p);
|
||||
addDevfreq(p);
|
||||
|
|
|
@ -158,11 +158,6 @@
|
|||
is when the system is in the suspended mode -->
|
||||
<bool translatable="false" name="config_wifiDtimMultiplierConfigEnabled">true</bool>
|
||||
|
||||
<!-- Boolean indicating whether the framework updates country from scan results when there is
|
||||
no telephony country code and driver country code is 00.
|
||||
This is applied only during the setup wizard -->
|
||||
<bool translatable="false" name ="config_wifiUpdateCountryCodeFromScanResultSetupWizard">true</bool>
|
||||
|
||||
<!-- Enable the feature of adjusting link layer stats polling interval based on
|
||||
device mobility state and client mode RSSI monitoring. -->
|
||||
<bool translatable="false" name="config_wifiAdjustPollRssiIntervalEnabled">true</bool>
|
||||
|
|
|
@ -977,5 +977,25 @@
|
|||
"PowerSampleDelay":60000,
|
||||
"PowerSampleCount":1
|
||||
}
|
||||
]
|
||||
],
|
||||
"Stats": {
|
||||
"Sensors": {
|
||||
"RecordWithDefaultThreshold": ["VIRTUAL-SKIN"],
|
||||
"RecordWithThreshold": [
|
||||
{
|
||||
"Name": "VIRTUAL-SKIN",
|
||||
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
|
||||
},
|
||||
{
|
||||
"Name": "VIRTUAL-USB-THROTTLING",
|
||||
"Thresholds": [2.0]
|
||||
}
|
||||
]
|
||||
},
|
||||
"CoolingDevices": {
|
||||
"RecordVotePerSensor": {
|
||||
"DefaultThresholdEnableAll": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue