Snap for 10068852 from 1aef63a513 to udc-release

Change-Id: Ia0e76af05d1e9d54f160a81509eca01bf70b8ba3
This commit is contained in:
Android Build Coastguard Worker 2023-05-04 23:02:44 +00:00
commit 29f3e040d7
4 changed files with 41 additions and 7 deletions

View file

@ -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>

View file

@ -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);

View file

@ -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>

View file

@ -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
}
}
}
}