summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-24PowerHAL: add 60fps streaming hintandroid-mainline-10.0.0_r9android-mainline-10.0.0_r7android-mainline-10.0.0_r5android-mainline-10.0.0_r4android-mainline-10.0.0_r10android-10.0.0_r45android-10.0.0_r44android-10.0.0_r43android-10.0.0_r42android-10.0.0_r41android-10.0.0_r40android-10.0.0_r39android-10.0.0_r38android-10.0.0_r37android-10.0.0_r36android-10.0.0_r35android-10.0.0_r34android-10.0.0_r33android-10.0.0_r32android-10.0.0_r31android-10.0.0_r30android10-qpr3-s1-releaseandroid10-qpr3-releaseandroid10-qpr2-s4-releaseandroid10-qpr2-s3-releaseandroid10-qpr2-s2-releaseandroid10-qpr2-s1-releaseandroid10-qpr2-releaseandroid10-qpr1-mainline-releaseandroid10-mainline-media-releaseandroid10-d4-s1-releaseandroid10-d4-releaseKourosh Derakshan
am: 432bb9bd2b Change-Id: I958aab9cad46defbf01c319eb6f360d8d5355b41
2019-07-23PowerHAL: add 60fps streaming hintKourosh Derakshan
Test: Pixel test suite Bug: 136608042 Change-Id: I8b3b1149dc12ce84b03622a0ec3db601f89ffb75
2019-07-16pixelstats: Fix USB charger type enumMaggie White
Bug: 137693390 Change-Id: Ie98a57da30796f5ca227d56ccdfc0cc1a057a3a2 Signed-off-by: Maggie White <maggiewhite@google.com>
2019-06-18Convert atracehal into lazy HALWei Wang
am: 3acd4afe09 Change-Id: Ice5a352803956433ac566ab9a69f07e552362f5a
2019-06-18Convert atracehal into lazy HALandroid10-devWei Wang
Bug: 135293492 Test: HAL isn't running Test: atrace and systrace works Change-Id: Icd680a416b1376b4762553d20a7117d5999ee75b
2019-06-18Merge "Power: set PowerHAL hwbinder thread to high CFS priority" into qt-r1-devTreeHugger Robot
2019-06-17Power: set PowerHAL hwbinder thread to high CFS priorityWei Wang
NodeLooperThread is running as -20, and this CL brings the binder thread running as the same priority. Bug: 134843942 Test: Build and jank test no regression on hwui test Change-Id: I16dfc185e16ffe5c937eabd6f17e371bc9511622
2019-06-06Merge "libpixelhealth: Move average battery resistance calculation to ↵Maggie White
kernel" into qt-r1-dev
2019-06-05pixelstats: Clear charge stats after reporting themMaggie White
Clears charge stats after reporting them by writing '0' to the sysfs file. Bug: 120801632 Test: Ran manual discharge + charge and observed statsd logs Change-Id: I9c5f92dd93869a2be99413495808c6965da69a54 Signed-off-by: Maggie White <maggiewhite@google.com>
2019-06-05libpixelhealth: Move average battery resistance calculation to kernelMaggie White
We have a more sophisticated battery resistance calculation in the kernel that accounts for temperature and voltage differences, so replacing the existing algorithm with a sysfs file read. Also, clean up some stoi() references since the error handling doesn't work. Bug: 117825747 Test: Reduce upload frequency and observe logs Change-Id: I2c88647f64456bdb074d9751db48860f36c6dfbd Signed-off-by: Maggie White <maggiewhite@google.com>
2019-05-29PowerHAL: add CAMERA_STREAMING_SECURE modeJia-yi Chen
Extend CAMERA_STREMING hint to add CAMERA_STREAMING_SECURE mode for secure use case. Bug: 131263055 Test: Boot and test on both typical & secure streaming modes Change-Id: Ifde1414e3535c8744990fe5b3b3e944ecff88ae7
2019-05-23Merge "Move trustzone tracepoints into sched category" into qt-devWei Wang
am: f31589e53e Change-Id: Ib43648a6b045333f644834994034b12f65201a6e
2019-05-24Merge "Move trustzone tracepoints into sched category" into qt-devWei Wang
2019-05-23Merge "Remove CPU0 governor check" into qt-devWei Wang
am: 07c866c648 Change-Id: I5f37eb6287b34f501362052e49872d13170ae90e
2019-05-23Merge "Thermal: Disable SoC throttling when Charging" into qt-devGeorge Lee
am: 8f4ddcc99e Change-Id: I5cb6946450ee242ee09ba07e4112380b8cd9618b
2019-05-23Merge "Remove CPU0 governor check" into qt-devWei Wang
2019-05-23Move trustzone tracepoints into sched categoryWei Wang
Bug: 110111068 Bug: 131630776 Test: Build Change-Id: I16ae0ffbfddc773a1c011a4c2075ba0116d514b7
2019-05-23Merge "Thermal: Disable SoC throttling when Charging" into qt-devGeorge Lee
2019-05-23Remove CPU0 governor checkWei Wang
This leads to additional latency in processing hints. Also some tests have small cores shut off. Now for testing need to skipping powerhint: setprop vendor.powerhal.init 0 setprop ctl.restart vendor.power-hal-1-3 Test: Build Bug: 129495482 Fixes: 133425880 Change-Id: I8ede2f2ee70a3df4f1b353ee9c07ab10752973e2
2019-05-23Remove additional 2.5s boost for camera launchWei Wang
am: 67c7285318 Change-Id: I76bfc60c76c9281dae1024924ea3dd0606c79a42
2019-05-22Remove additional 2.5s boost for camera launchWei Wang
We can remove this additional boost as b/65034076 resolved. Test: Build Bug: 129495482 Change-Id: Ice34de0b3900b190c937b321f59c4ce4c97d9a64
2019-05-20Thermal: Disable SoC throttling when ChargingGeorge Lee
SOC Based throttling is disabled when charging is enabled. Throttling is re-enabled once charging is removed. Bug: 131314951 Test: Use emul_temp and battery/capacity to emulate condition for checking if SOC thermal zone is disabled/enabled. Change-Id: Ib3dc52eaf1d6ec0ff4d8e87e134d839385e69948 Signed-off-by: George Lee <geolee@google.com>
2019-05-20power: fix camera launch hint to use correct timeWei Wang
am: e7fc2638a6 Change-Id: I862f021a6eb4bfd7ad4839bf5b05cb12f7e55d3c
2019-05-20power: fix camera launch hint to use correct timeWei Wang
Test: Build Bug: 129495482 Change-Id: I928d4493cda3993be17a56d3d5375f6427a7dc83
2019-05-16add generic Pixel atrace HALWei Wang
am: bdc01697f4 Change-Id: Id0d19f9a89e386b7f5f5e62e982c9ed6cf6667d1
2019-05-16add generic Pixel atrace HALWei Wang
Bug: 110111068 Bug: 131630776 Bug: 131352179 Test: take a trace Change-Id: Ie6d8cde30a548a3fda617f1221e4e2dda2ae29d0
2019-05-10power.stats: Modify wlan data provider to not fail if wifi offBenjamin Schwartz
Previous the WlanStateResidencyDataProvider was returning a failure when it failed to open the wlan node to read the wlan power stats. This node is not avaiable when wifi is off. Since this is intended behavior we should not return a failure. Bug: 130202935 Test: vts-tradefed run vts -m VtsHalPowerStatsV1_0Target Change-Id: I9fa288bcb41c8ce07f40d580c1f82a809b3367f8
2019-04-22pixelstats: Upload alternate battery capacityMaggie White
Upload an alternative battery capacity calculation once a day via SysfsCollector. Bug: 120439050 Test: Decrease log frequency to 30 seconds and observe following log: statsd : { uid(1066) 1555981987000000000 368264161579 (105002)0x10000->com.google.pixel[S] 0x20000->0[I] 0x30000->0[I] } Change-Id: Ib62420031a9a529782dc476dffe251dceaa51f8e Signed-off-by: Maggie White <maggiewhite@google.com>
2019-04-19pixelstats: Upload charge metricsMaggie White
We calcalate charge metrics at the end of every charge cycle in the kernel and notify userspace (i.e. the pixelstats service) when a full charge is completed. The pixelstats service will then read the relevant sysfs file and construct and push statsd VendorAtoms. Bug: 120801632 Test: Matched charge_stats_actual input with statsd logs pixelstats-uevent: ChargeStats: processing 4,5000,1500, 65535,65535,65535,65535 pixelstats-uevent: VoltageTierStats: processing 1, 98.180,3698,265, 6,0,0, 265,353,265, 1187,2279,1884, 150,1350,1300 pixelstats-uevent: VoltageTierStats: processing 2, 98.180,3698,265, 317,1290,517, 260,265,272, -608,-57,609, 1250,1326,1350 statsd : { uid(1066) 1555470326000000000 2147106165556 (105000)0x10000->com.google.pixel[S] 0x20000->4[I] 0x30000->5000[I] 0x40000->1500[I] 0x50000->65535[I] 0x60000->65535[I] 0x70000->65535[I] 0x80000->65535[I] } statsd : { uid(1066) 1555470326000000000 2147106257796 (105001)0x10000->com.google.pixel[S] 0x20000->1[I] 0x30000->98.180000[F] 0x40000->3698[I] 0x50000->265[I] 0x60000->6[I] 0x70000->0[I] 0x80000->0[I] 0x90000->265[I] 0xa0000->353[I] 0xb0000->265[I] 0xc0000->1187[I] 0xd0000->2279[I] 0xe0000->1884[I] 0xf0000->150[I] 0x100000->1350[I] 0x110000->1300[I] } statsd : { uid(1066) 1555470326000000000 2147106334775 (105001)0x10000->com.google.pixel[S] 0x20000->2[I] 0x30000->98.180000[F] 0x40000->3698[I] 0x50000->265[I] 0x60000->317[I] 0x70000->1290[I] 0x80000->517[I] 0x90000->260[I] 0xa0000->265[I] 0xb0000->272[I] 0xc0000->-608[I] 0xd0000->-57[I] 0xe0000->609[I] 0xf0000->1250[I] 0x100000->1326[I] 0x110000->1350[I] } Change-Id: Iabff0ed4d2c7bb7b51f6436d6021cd2f2bde3e85 Signed-off-by: Maggie White <maggiewhite@google.com>
2019-04-19Merge "pixelstats: Create device-agnostic PixelAtoms library" into qt-devTreeHugger Robot
2019-04-18Merge "Expose pixel_power_headers to vendor" into qt-devThierry Strudel
2019-04-17Expose pixel_power_headers to vendorWei Wang
Fixes: 130757163 Test: Build Change-Id: I09a8712fb902d4847359dfbb1891e1895703e2b8
2019-04-16pixelstats: Create device-agnostic PixelAtoms libraryMaggie White
Create a central library that holds all Pixel-specific atom IDs for atoms that are generated on the vendor partition and are not device specific. This will prevent atom ID and namespace collision between Pixel device software teams. The first atoms added allow us to collect detailed charge cycle metrics. Bug: 127358284 Bug: 120439050 Test: Used this library in pixelstats Change-Id: I67ddbd6bdd3e6015838e7dfbe74ae6aee82b29cb Signed-off-by: Maggie White <maggiewhite@google.com>
2019-04-11health: pixelstats: Remove references to IPixelStatsMaggie White
Bug: 122904980 Change-Id: I3be3928c214de7cf788111cabb4ceda5806e9c6d Signed-off-by: Maggie White <maggiewhite@google.com> Merged-In: 7b2dc962f0154bceb81d18f9a8bec2e05cbe911e
2019-04-03Merge master@5428150 into git_qt-dev-plus-aosp.Bill Rassieur
am: 75b8db432e Change-Id: Ic8ee7e275ce85fafc7837865a5769d44dde3e699
2019-04-03PowerHal: Support legacy fb pathMartin Liu
This patch is to support legacy fb path Bug: 129495482 Test: boot and check Interaction hint Change-Id: Ib0dc55a802c30fbf7ed41ecc73bcb08a0c65a432
2019-04-03PowerHAL: support more camera streaming modesMartin Liu
This patch extend camera streaming to normal preview, 1080p and 4K recording cases. Bug: 116854288 Bug: 129495482 Test: boot and function test Change-Id: Ieea9976a1a48fb4580008a7bbd624b1e5167bad1
2019-04-02Merge "Expose TPU hints through AudioStreaming.h"Wei Wang
2019-04-02Merge master@5428150 into git_qt-dev-plus-aosp.Bill Rassieur
Change-Id: Id1854c146ccdc3d08e690688b490dc65c03890a1 BUG: 129345239
2019-04-02Expose TPU hints through AudioStreaming.hWei Wang
Also add vintf_fragments Bug: 127982667 Test: boot Change-Id: Ic8d03d10c1747d5b72bf874bba002c6f2e95b490
2019-04-02thermal: Change polling to ueventTeYuan Wang
Bug:119189816 Test: Verified on blueline: Can receive uevent and change to polling mode. Can keep to waiting uevent if no thermsitor accross threshold. lshal debug android.hardware.thermal@2.0::IThermal/default pts-tradefed run singleCommand pts -m PtsThermalHalTestCases -l verbose Change-Id: I3bc8fe2024b8e1e12704f7f03019430569117f6b Signed-off-by: TeYuan Wang <kamewang@google.com>
2019-03-29Merge "Move PowerHAL into Pixel common"Wei Wang
2019-03-28Move PowerHAL into Pixel commonWei Wang
Bug: 129495482 Bug: 111098032 Test: Boot and check PowerHAL Change-Id: I79b7276ff0c28885877af8b0533fe1f9d81b3b0c
2019-03-26power.stats: Improve header finding in parserBenjamin Schwartz
Bug: 129298740 Test: adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default" Change-Id: Ib5e9c16af41f62245cabda708df1dbeded737c51
2019-03-18power.stats: Rename column header for rail energyBenjamin Schwartz
lshal debug output was not clear that rail energy is cumulative total since boot. Renaming the column header to clarify this. Bug: 124080758 Test: adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default" Change-Id: Ib7cff1e9bd9241eb2bbd73b4a5bc1604883a4178
2019-03-18power.stats: Show rail energy data in lshal debugBenjamin Schwartz
lshal debug of power.stats@1.0 service now shows rail energy data. Example output: ============= PowerStats HAL 1.0 rail energy data ============== Subsys Rail Energy <example1> <railName1> 13087.34 mWs <example2> <railName2> 267.46 mWs ========== End of PowerStats HAL 1.0 rail energy data ========== Example output with "delta" option ============= PowerStats HAL 1.0 rail energy data ============== Elapsed time: 86273 ms Subsys Rail Energy ( Delta ) <example1> <railName1> 18496.73 mWs ( 6055.16) <example2> <railName2> 757.76 mWs ( 490.30) ========== End of PowerStats HAL 1.0 rail energy data ========== Bug: 124080758 Test: adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default" Test: Tried on devices with and without rail energy support Change-Id: I7421aedac07203e14322dc23712cb68f508fcb7c
2019-02-28Improve code linting in hardware/google/pixelBenjamin Schwartz
Modified .clang-format so that clang-format does not break style compliant code as often. Enabled cpplint and checkstyle in the repo hooks to better enfore code style compliance. Bug: 126583486 Test: Injected some intentional whitespace changes and made sure that clang-format did break code style compliance. Change-Id: Iae0dae7b6e1a71386844916eb060abea79a9322b
2019-02-26power.stats: Add AidlStateResidencyDataProviderBenjamin Schwartz
Some drivers that we want to collect power stats from are pass-through and would require significant changes in order to provide a sysfs node that the current power stats framework can pull stats from. These pass-through drivers typically have a userspace daemon that is capable of keeping track of the power stats and providing them to the power.stats HAL service, but currently have no way to do that. The AidlStateResidencyDataProvider will provide a vendor binder service that will allow data sources to register a callback that will get invoked when stats are requested from power.stats HAL. Bug: 117585786 Test: Created a dummy service to register a callback using that provides data for mock entities. Tested that things continue to function when killing either the dummy service or killing power.stats service. Also tested cases where the dummy service provides data for unrecognized entities, or states. Finally, I tested that an error gets logged in logcat if the callback latency exceeds some threshold. Change-Id: I090a33a4b87fc03fc258bece3ee38c90a3575d20
2019-02-25[automerger skipped] Refine perfstatsd daemon and cpu usage part am: ↵Charles(Yen-Cheng) Chan
be3368aa48 -s ours am: df31e2a8ca Change-Id: Ie27754658b9f16bf200df4918fa438901f68d6d2
2019-02-25[automerger skipped] Refine perfstatsd daemon and cpu usage partCharles(Yen-Cheng) Chan
am: be3368aa48 -s ours am skip reason: SHA1 be3368aa48 skipped by user delphij Change-Id: I20673c100d928de96504aec57dab9d0266bc5582