Commit graph

996 commits

Author SHA1 Message Date
George Lee
6ebf1dceb0 pixelstats: enable mitigation stats for gs201
Corresponding change to reflect changes that enable mitigation stats.

Bug: 253522156
Test: Local Test.
$> cmd stats print-logs
$> logcat | grep <atom id>
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ia0ab4e6da0f908dbca8402db9d767577863035bd
2022-10-14 15:57:59 +00:00
GOOGLE\huangaustin
a089e44eb1 [PixelLogger][P22] Update P22 default.nprf to enable LTE_DM/DRX TC trace for Power team
bug: 246867493
Change-Id: I4600e4c285f035fea1fbde7202292a8dfb87aa43
2022-10-14 09:59:19 +00:00
George Lee
7f2a1321a2 battery_mitigation: Fix lastmeal timestamp
Lastmeal.txt may be generated from after device rebooted from IRQ
triggering.  By applying limit on the time when it generates,
lastmeal.txt will not be generated after device rebooted.

Bug: 246817058
Test: Trigger brownout and confirm lastmeal.txt has correct timestamp
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I8b52f44fdc64f5ef74e0059720ed58c845e5bf60
2022-10-13 18:11:19 +00:00
linpeter
9afa58f656 Update IDisplay to V7
Bug: 241969007
Change-Id: I8edbf7621cc9b268ad23941366893ae979acb164
2022-10-13 08:11:53 +00:00
Darren Hsu
8112355636 powerstats: update GPU DVFS to fix GPU EnergyConsumer issue
Failed to create GPU EnergyConsumer due to invalid coefficient
size. The size of GPU coefficient list should be equal to the
size of available GPU DVFS list in uid_time_in_state.

Bug: 243455584
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I7938e3e89d8e1e9a43c49cff60249a723f76b969
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-10-12 18:44:50 +08:00
Wayne Lin
e3abb196ec gps: update gps driver 147.20.23.551041
Support new IPC sitIndGpsNfwData and sitIndApEmcState for modem location privacy feature.

 - sitIndGpsNfwData
Modem can report NFW data for CP non-AGNSS cases like E-CID/OTDOA to
gpsd
 - sitIndApEmcState
Modem can get emergency status from gpsd

Bug: 215260323
Bug: 229463130
Bug: 230404480

Verify test: b/251369354
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass

Change-Id: I2912a3c6f0d078a17b5426c22aceccc3a0408133
2022-10-11 13:39:24 +00:00
Kyle Tso
d0c6349927 usb: Modify the permission of additional i2c-max77759tcpc path
Bug: 251106770
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I8b9dcc4b3de7b390f752ee410022dd0d86be9c40
2022-10-11 05:48:54 +00:00
George Lee
8a8a2c92a2 bcl: Add mitigation ready check
Instead of relying on vendor.thermal.link_ready property to gate write
to BCL's SYSFS node, adding mitigation ready SYSFS so that writes to
BCL's SYSFS node would not cause NULL pointer dereference.

Bug: 249130916
Test: Confirm property vendor.brownout.mitigation.ready is set
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ic643a07ddb657cfc7e22537d5d25d0d99324e31c
2022-10-10 17:37:34 +00:00
Prasanna Prapancham
78841a5be9 Change ownership of charge_stats to system for clearing
Test: Tested with tablet with dock. Userspace is able to read
and clear sysfs node successfully

Bug: 218802317
Signed-off-by: Prasanna Prapancham <prapancham@google.com>
Change-Id: Ice5ec79d912f154203a548c6c40470952d806289
2022-10-08 11:30:30 +00:00
Wayne Lin
f7ffd91480 gps: update gps driver 147.20.23.550494
Add NAVIC factory test to improve the time of L5 CW test
Fix millisecond error in receivedSvTimeNanos and the corresponding pseudoranges
Add protection code when gpsd call sensor API
Fix invalid sensor availability status report in the PGLOR msg

Bug: 235192024
Bug: 236572839
Bug: 240389454
Bug: 244118456

Verify test: b/249001109
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass

Change-Id: I37ca4158e1f20f671e284ee55ced703400127b68
2022-10-06 05:13:32 +00:00
GOOGLE\huangaustin
6b8586ab0e [P22][M23] Replace the content of default with Pixel_default and delete Pixel_default
bug: 250787128
Change-Id: I5214255f2300d1a2a828e4eb1b5554b6ff671e96
2022-10-06 02:14:01 +00:00
Cyan_Hsieh
3ee92877ae Scale the flexibility for telephony euicc settings
disable copying the xml if DISABLE_TELEPHONY_EUICC set to true

Bug: 246514347
Change-Id: I2b7c2a8f831cdf068129fd0b6f2f7efeb74e94bb
2022-10-05 15:10:33 +08:00
Kyle Tso
2307196bb8 Disable USB contaminant detection when the disable flag is true
(ported from 6b1106498e1164f46b9a895ed2258a20a0c7a7b5)

Bug: 244658328
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I9d17748d24f3c402deaddb8a9bca89f8ef606056
Merged-In: I9d17748d24f3c402deaddb8a9bca89f8ef606056
2022-09-30 08:56:59 +00:00
Ray Chi
bfb57fd23f usb: remove redundant changes for USB nodes
Bug: 248982089
Test: build pass
Change-Id: Ic93017c26aada15cb04fc2d5cbeb9c9b07c999fa
2022-09-30 08:35:05 +00:00
Kyle Tso
a83716ff8d usb: Remove the permission change of unused nodes
Bug: 248982089
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I4707e3bbd7fa1d42e08577edba8d9bb52cc7c061
2022-09-30 08:35:05 +00:00
Doreen Wang
96b8020d7f RESTRICT AUTOMERGE: [3A] Update LOCAL_TARGET_PRODUCT for T6Pro
Update LOCAL_TARGET_PRODUCT for T6Pro.
Bug: 246290120
Test: build pass

Change-Id: If0fa3f4437f5fced9b48dffff04ebfad93d56c53
2022-09-28 17:48:56 +00:00
Doreen Wang
18a733b2cc Revert "RESTRICT AUTOMERGE: [3A] Update LOCAL_TARGET_PRODUCT for T6Pro"
This reverts commit bdfa409901.

Reason for revert: broken build

Change-Id: I01203f3389eeef7ea331cc4ee240148007dd75a7
2022-09-27 00:28:16 +00:00
Doreen Wang
bdfa409901 RESTRICT AUTOMERGE: [3A] Update LOCAL_TARGET_PRODUCT for T6Pro
Update LOCAL_TARGET_PRODUCT for T6Pro.
Bug:246290120
Test: build pass
Change-Id: Ifcda3fd12f634a331f1f0f5859bf16f48a83a7bf

Change-Id: I5c021728dcfb6a55691684b6fdc966be6f4cf4e5
2022-09-24 18:10:02 +00:00
Sayanna Chandula
dd651b1bfe pixelstats: add thermal stats paths
Add thermal metrics paths in sysfs paths list

Bug: 228247740
Test: Build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: Ibcdef9a10dea7698cbb511015ea2835994ddbf89
2022-09-23 19:48:41 +00:00
Jeremy Kemp
6ef57bda36 GPU: Remove write to ifpo sysfs node.
As part of pa/2288829, this node becomes unsupported.

Prevents -ENOTSUPP errors when trying to write to Mali's ifpo sysfs
node.

Test: Boot to homescreen
Bug: 247571932
Change-Id: I0b579728a5b2a4355d648020113dda0592f904aa
Signed-off-by: Jeremy Kemp <jeremykemp@google.com>
2022-09-23 16:55:20 +00:00
Sean.JS Tsai
6e2913695d Add notification pregrant for WfcActivation
Bug: 241721849
Bug: 246485672

Change-Id: I3d8e4c167bac36e9d5ae921cd6b382a0f38a08f7
2022-09-23 03:50:08 +00:00
Carter Hsu
1979e0bcf9 audio: remove CCA default setting from common
Bug: 248151108
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia48b5ef5829cb347f79b555f8c5d3edfb13acff9
2022-09-23 00:49:19 +00:00
Habib Moukalled
4002a1139d Upgrade device VINTF manifest for IDebugHost
Notes:
- Update the HAL version in VINTF manifest from
AIDL 1.0 to AIDL 2.0

Bug: 245126454
Test: E2E auth enroll, atests
Change-Id: Id8fac0965407438d9a4195e9021fefdb56320490
(cherry picked from commit 4abe8cc283)
2022-09-22 12:39:56 +00:00
Jean-Michel Trivi
65b6f92788 Include Dolby codecs
Include Dolby codecs for non-AOSP builds.

Bug: 244253825
Test: verify DD+ decoding is chosen by streaming app
Change-Id: Ib4f2e4fc49d8786c38234f40313ef40e4e15972f
2022-09-21 14:16:31 +00:00
wenchangliu
d89cff2fdb [DO NOT MERGE] temporal remove CQ mode for HEVC encoder
We are too late to upgrade the latest version of libyuv in Android T
to fix color conversion (BT.709 YUV to RGB) accuracy issue in HeifWriterTest when we exposed CQ mode for H/W hevc encoder. Move CQ mode support in Android U.

Note: remove CQ mode support, HeifWriterTest will use software hevc encoder to run the test. Since software encoder only support 512x512 resolution the default color primary is using BT.601 which will not
meet color accuracy issue.

Bug: 242466144
Test: atest android.media.misc.cts.HeifWriterTest
Change-Id: Iad6524c94937bffdc061f36973ffd41a525a181e
2022-09-21 10:00:14 +00:00
Darren Hsu
e4c0888a1e powerstats: change data source for CPU CLx-DVFS
CPU CLx-DVFS stats provided by fvp_stats are incorrect. Although
acpm stats are closer to final vote results, data accuracy is most
important. Change the data source of CPU CLx-DVFS from fvp_stats
to soc cpufreq.

Bug: 246501821
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4018f9f561d87140adfba847f2f07c672810aad0
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-09-21 08:37:33 +00:00
Jenny Ho
47adfbe5fa init: add permission to adjust wlc fan alarm level
Bug: 246486657
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Id02b6e415aad9f5dae081c45e4db667c27966130
2022-09-20 12:42:38 +08:00
Sayanna Chandula
45618a6723 Revert "thermal: Fix misalignment from removal of gxp cdev"
This reverts commit baedb92abf.

Re-enable gxp cooling device

Bug: 238273184
Test: build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I341636bc5e7d8feced4593fdbd2638c244051499
Merged-In: I341636bc5e7d8feced4593fdbd2638c244051499
2022-09-19 20:33:36 +00:00
Sayanna Chandula
b8acf39ef0 Revert "thermal: remove gxp cooling device dependency"
This reverts commit 617f8719f5.

Re-enable gxp cooling device

Bug: 238273184
Test: build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I3787c11e674b6781b81d01aad2abc88d99c1d1d0
Merged-In: I3787c11e674b6781b81d01aad2abc88d99c1d1d0
2022-09-19 20:33:20 +00:00
Hsiu-Chang Chen
d1b167f396 wifi: Add flag BOARD_WLAN_CHIP
Need a flag other than TARGET_DEVICE to identify
which WifiHal subfolder we want to use.

Bug: 246974867
Test: Build pass
Change-Id: Idf1a7af8e52a235e0491f6fb9ab09a4c37fe5713
2022-09-16 11:31:17 +08:00
George Lee
a1f90033f6 mitigation logger: Update lastmeal generation
Recent reboot reason is updated.  Mitigation logger needs to be updated
per change.

Bug: 239548433
Test: Confirm lastmeal is generated.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I7a9fd4225e5f3b0843e666f77296441ff44fbc4b
2022-09-14 13:06:31 -07:00
Chungjui Fan
9fe1f4be94 Dump the sys node of LED
Bug: 242300919
Change-Id: I04a2cc7cdb80b1d08c5884c26f9edb6782772810
2022-09-14 02:59:20 +00:00
Nicole Lee
d299a424ca Update pixel stability logging mask
- Add GP_SMPF_MSF -> MSD_Warning, MSD_Essential, MSD_Normal, MSD_Detail
- Add SR_IF -> All

Bug: 244403232
Change-Id: I2ebaab2a18b6b0c86ff70306cf57707692a30d03
2022-09-12 02:19:10 +00:00
Jeffrey Carlyle
24c9524b72 dck: pick up recovery mode library for digital car key wiping
This is done by conditionally including the makefile under vendor so
that AOSP builds where vendor is not present do not faile.

(cherry picked from commit a3a42642f3)

Bug: 203234558
Test: data wipe in Android recovery mode on raven
Test: data wipe in Android recovery mode on c10
Test: data wipe in user mode fastbootd mode on raven
Test: data wipe in user mode fastbootd mode on c10
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: I0ef9dd1ea9eae90ed4feabd19bf9edc7434a572b
2022-09-08 21:58:52 +00:00
JJ Lee
5d912313d7 dumpstate: Add aoc memory vote dump
Bug: 223674292
Test: Boot test, taking bugreport is not blocked
Change-Id: I514d04de5808e22e3927f9534a5b710b7abc045d
Signed-off-by: JJ Lee <leejj@google.com>
2022-09-07 14:25:06 +00:00
Cheng Chang
034981b6e5 gps: raise gps service priority
Bug: 237695224
Test: Result 241195410
Change-Id: I9106b8ba3111296225985b4c9f3c2365c23d445d
2022-09-06 03:07:18 +00:00
shihchienc
85f961fa57 Differentiate COD between phone and non-phone project
Since we have tablet project and its COD device class should not
be same as phone, we need to add tag for each tablet project so
that when we build project, we can use different COD setting toward
different projects.

Bug: 244403430
Test: build project and check EIR
      tablet should have ComputeR/handheld PC/PDA class and phone should
      have Phone/Smartphone class
Change-Id: I044d93b3c2200ad2025ae44319f0836b079f2584
2022-09-05 03:30:29 +00:00
Yang Qi
8de207127f Update P22 device compatibility matrix file to update uwb IUwbVendor to v2
Bug: 243455233
Change-Id: Ice60456a5fd0225a5bd7a23de57ee845ddb3eefd
2022-09-01 17:16:53 +00:00
eddiepeng
fd96acefef [Camera 3A] Update LOCAL_TARGET_PRODUCT for F10
Update LOCAL_TARGET_PRODUCT for F10.

Bug: 242961953
Test: buid pass.
Change-Id: Id13d1b47fe3642062defc673656167f9538732ef
Merged-In: Id13d1b47fe3642062defc673656167f9538732ef
2022-09-01 10:14:13 +00:00
Wayne Lin
e631aba3e6 Move lhd.conf, scd.conf to device folder
Move lhd.conf, scd.conf to device folder and maintain them separately by project requirement

Bug: 244258007
Test: confirm the configurations are correct
Change-Id: I8cd14eea3d805c77dfe863285548f090d5fed538
2022-09-01 08:27:37 +00:00
George Lee
cad8c5c0a3 health: Remove SOC based throttling
Bug: 244359848
Test: Confirm SOC based throttling removed
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ideac2224be741b8bb1cc179f27fea0f634a03921
2022-08-31 19:47:00 +00:00
eddielan
1044dd4a6c fp_test: add command binary for fp test
(Cherry-pick from cdb78894f0909d58568d0063c48e1a0a1e7f4132)

Bug: 203016894
Test: Build pass, verify on device

Change-Id: Ib9a3f1d5642ec4c88e752d05529e2e429dbbc95c
2022-08-30 09:50:44 +00:00
Wayne Lin
ce2ec891bb gps: update gps driver 143.20.23.547844
Fix biased position issue in subsequent periodic request
Fix LHD get stuck issue in PtsChreTestRunner#gnssRestartTest.
Change MSB to true in PVT SUPL posTechnology
Fix position bias issue in the foliage running test

Bug: 236200991
Bug: 240663862
Bug: 236206122
Bug: 233851633

Verify test: b/243323303
Test: VtsHalGnssTargetTest pass
CtsLocationGnssTestCases pass
PtsChreTestCases pass

Change-Id: Ib75eefceb6106523ae99b6b1770f42a3d8c63dc9
2022-08-30 05:11:51 +00:00
Sateshk Kumar Chinnappan
3d77a0d872 Support Call Metrics info as part of Call KPI
Bug:  235999019
Test: make. MO/MT call.
Change-Id: Icad57fbe3545ce2f0f70934bfe16c2dd1a80bee2
2022-08-30 04:31:48 +00:00
Darren Hsu
4c5bbfc702 powerstats: update GPU EnergyConsumer channels
GPU EnergyConsumer should include both S8S_VDD_G3D_L2 and
S2S_VDD_G3D channels.

Bug: 243455584
Test: verified both channels are included
Change-Id: Ia63c89ff5ba24d026a4f0b1e368141521e47b611
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-08-26 07:39:57 +00:00
Jeffrey Carlyle
63e9c666f2 Revert "dck: pick up recovery mode library for digital car key w..."
Revert "move digital car key wiping to gs-common"

Revert "clear secure element of Digital Car Keys during factory ..."

Revert "dck: switch to gs--common implementation of digital car ..."

Revert submission 19734547-b203234558-qpr1

Reason for revert: see b/243864778
Reverted Changes:
I53967a5e8:dck: pick up recovery mode library for digital car...
I8fd944c60:dck: switch to gs--common implementation of digita...
I6e8c80818:move digital car key wiping to gs-common
I60052ca58:Support calling WipeKeys with out a ui object
I459d81800:clear secure element of Digital Car Keys during fa...

Change-Id: Ic3f42d0d2c6c78be47cacf9794e7727e6ee5475f
2022-08-26 06:36:57 +00:00
Robb Glasser
21ffd5f188 Dump usf stats history in bugreports.
USF saves a stat buffer to the filesystem periodically. Dump this as
part of bugreports.

Bug: 242320914
Test: Stats are visible in a bugreport.
Change-Id: I2020f48026fcad19e41c8959e404e0a0783a2ef0
2022-08-25 02:47:58 +00:00
Jeffrey Carlyle
a3a42642f3 dck: pick up recovery mode library for digital car key wiping
This is done by pick optionally including a Makefile so that aosp builds
in which the library is not present will pass.

Bug: 203234558
Test: adb reboot recovery; wipe data via menu; verify keys removed
Signed-off-by: Jeffrey Carlyle <jcarlyle@google.com>
Change-Id: I53967a5e8ea0327d6467623929902b90eb2c85da
2022-08-24 12:25:12 -07:00
Roger Fang
7447cd3664 pixelstats: add ams_rate sysfs for ATOM of VendorAudioHardwareStatsReported
Bug: 239508478
Test: manually test passed

Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: I94b57a757ec8c75ef62b5aa3c516002b905f6f15
2022-08-23 15:34:12 +00:00
David Chao
0d14937aef thermal: move charger thermal HAL setup into project
Move charger pixel-thermal-symlink from common to project folder
to prevent the GKI version dependencies from blocking init.

Bug: 240897207
Test: thermal_symlinks worked properly in charging mode
Change-Id: I46a4fe59fe62845f8197d3a59b18af0945a163f4
2022-08-22 19:54:12 +00:00