Snap for 10068852 from 1aef63a513
to udc-release
Change-Id: Ia0e76af05d1e9d54f160a81509eca01bf70b8ba3
This commit is contained in:
commit
29f3e040d7
4 changed files with 41 additions and 7 deletions
|
@ -23,5 +23,11 @@
|
||||||
<device name="dhdpcie_host_wake">
|
<device name="dhdpcie_host_wake">
|
||||||
<subsystem>Wifi</subsystem>
|
<subsystem>Wifi</subsystem>
|
||||||
</device>
|
</device>
|
||||||
|
<device name="cp2ap_wakeup">
|
||||||
|
<subsystem>Cellular_data</subsystem>
|
||||||
|
</device>
|
||||||
|
<device name="MAILBOX_AOCA322APx100">
|
||||||
|
<subsystem>Sensor</subsystem>
|
||||||
|
</device>
|
||||||
</irq-device-map>
|
</irq-device-map>
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <android/binder_manager.h>
|
#include <android/binder_manager.h>
|
||||||
#include <android/binder_process.h>
|
#include <android/binder_process.h>
|
||||||
#include <log/log.h>
|
#include <log/log.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
using aidl::android::hardware::power::stats::DevfreqStateResidencyDataProvider;
|
using aidl::android::hardware::power::stats::DevfreqStateResidencyDataProvider;
|
||||||
using aidl::android::hardware::power::stats::DisplayStateResidencyDataProvider;
|
using aidl::android::hardware::power::stats::DisplayStateResidencyDataProvider;
|
||||||
|
@ -140,6 +141,18 @@ void addGPU(std::shared_ptr<PowerStats> p) {
|
||||||
stateCoeffs));
|
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() {
|
int main() {
|
||||||
LOG(INFO) << "Pixel PowerStats HAL AIDL Service is starting.";
|
LOG(INFO) << "Pixel PowerStats HAL AIDL Service is starting.";
|
||||||
|
|
||||||
|
@ -160,7 +173,7 @@ int main() {
|
||||||
addWifi(p);
|
addWifi(p);
|
||||||
addTPU(p);
|
addTPU(p);
|
||||||
addUfs(p);
|
addUfs(p);
|
||||||
addNFC(p, "/sys/devices/platform/10970000.hsi2c/i2c-4/i2c-st21nfc/power_stats");
|
addNFC(p, getNfcPath());
|
||||||
addUwb(p);
|
addUwb(p);
|
||||||
addPowerDomains(p);
|
addPowerDomains(p);
|
||||||
addDevfreq(p);
|
addDevfreq(p);
|
||||||
|
|
|
@ -158,11 +158,6 @@
|
||||||
is when the system is in the suspended mode -->
|
is when the system is in the suspended mode -->
|
||||||
<bool translatable="false" name="config_wifiDtimMultiplierConfigEnabled">true</bool>
|
<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
|
<!-- Enable the feature of adjusting link layer stats polling interval based on
|
||||||
device mobility state and client mode RSSI monitoring. -->
|
device mobility state and client mode RSSI monitoring. -->
|
||||||
<bool translatable="false" name="config_wifiAdjustPollRssiIntervalEnabled">true</bool>
|
<bool translatable="false" name="config_wifiAdjustPollRssiIntervalEnabled">true</bool>
|
||||||
|
|
|
@ -977,5 +977,25 @@
|
||||||
"PowerSampleDelay":60000,
|
"PowerSampleDelay":60000,
|
||||||
"PowerSampleCount":1
|
"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