Commit graph

1064 commits

Author SHA1 Message Date
davidycchen
61dbdcfc42 Add GTI touch dump script
Bug: 243077990
Test: adb bugreport

Change-Id: I34fa88409e610622da0401f1f3f745fe308f316e
Signed-off-by: davidycchen <davidycchen@google.com>
2022-12-26 16:28:05 +08:00
TreeHugger Robot
258077f1d1 Merge "add support for BLE offload case in audio policy" 2022-12-26 05:13:00 +00:00
TreeHugger Robot
f72338e7bd Merge "Enable LE Audio unicast offload" 2022-12-26 05:12:52 +00:00
TreeHugger Robot
e34bd0f799 Merge "audio: 1st table release for Husky" 2022-12-23 09:16:12 +00:00
TreeHugger Robot
75a34e9c1b Merge "audio: 1st table release for Shiba" 2022-12-23 07:50:25 +00:00
TreeHugger Robot
e1d188ae49 Merge "powerstats: update state residency and energy consumer for Display" 2022-12-23 03:20:22 +00:00
David Li
3bdfceaadb audio: 1st table release for Shiba
There are recording.gatf and template.xml in the ZIP file.
for recording.gatf
Camcorder path : IIR1(high pass), SUR(calibrated filter), IIR2(high pass), AGC (-24 ideal RMS), MBDRC ( -44 threshold)
MIC path: correct MBDRC
for template.xml
correct SUR module ID

Files from the latest attachment on b/263448513

Bug: 263448513
Test: verified by wjacky@
Change-Id: I7d7dc2496ee3cf37b35b30f34b9f72febc512189
2022-12-23 10:00:30 +08:00
David Li
ca98913a34 audio: 1st table release for Husky
There are recording.gatf and template.xml in the ZIP file.

for recording.gatf
Camcorder path : IIR1(high pass), SUR(calibrated filter), IIR2(high pass), AGC (-24 ideal RMS), MBDRC ( -44 threshold)
MIC path: correct MBDRC

for template.xml
correct SUR module ID with AZ1.0 parameters

Files from the latest attachment on b/263449687

Bug: 263449687
Test: verified by darrenyen@
Change-Id: I5a31582ecf6b8f8b81be7e61079e172bddb09ba0
2022-12-23 09:41:06 +08:00
Robert Lee
a11f088032 audio: update tuning bin file and table for 48K playback
Bug: 261807510
Bug: 243626704
Bug: 243497194
Test: Builds
Change-Id: Idd50d9b5de0f183e9373e888cca3f93af03c428d
Signed-off-by: Robert Lee <lerobert@google.com>
2022-12-22 20:25:50 +08:00
Shawn Lin
b9ede6869b Merge "Update rounded corner, cutout and display shape configs" 2022-12-22 06:17:54 +00:00
Wendly Li
d5bcab2e05 init: start twoshay on boot.
Bug: 243079722
Test: Check if twoshay start successfully.
Change-Id: Iebcc9d87709277d26c95fb518d9b0075630bffff
Signed-off-by: Wendly Li <wendlyli@google.com>
2022-12-22 04:13:31 +00:00
Yen-Chao Chen
96e5e575c3 Merge "init: start twoshay on boot." 2022-12-22 02:09:38 +00:00
Sayanna Chandula
fbfe97b636 Merge changes from topic "hk3-vs-v2"
* changes:
  thermal: enable charging throttling
  thermal: update thermal config with v2 coefficients
2022-12-22 00:00:03 +00:00
Shawn Lin
2c7b9074f4 Update rounded corner, cutout and display shape configs
Bug: 243688044
Test: make
Change-Id: Ica71daf88ac7a115a84f8e603fbb49210d757b2c
2022-12-21 10:35:40 +00:00
Ken Yang
95db2df53b Merge "WLC: Include the wireless_charger from gs-common" 2022-12-21 08:36:15 +00:00
Cheng Chang
f1ff704845 gps: enable coex function
Bug: 257093529
Test: Verify at b/257093529
Change-Id: I5c7417368d1c754aa492db9304b7790049f68501
2022-12-21 07:12:46 +00:00
Darren Hsu
220f84cf79 powerstats: update state residency and energy consumer for Display
Bug: 262488285
Bug: 262492074
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: Ib000455c8f68789090bb37c8bc4117502fa65fa9
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-12-21 13:32:05 +08:00
Sayanna Chandula
53ea1cd963 thermal: enable charging throttling
Bug: 259450323
Test: Build and boot on device. Check charging throttling

Change-Id: I5bc80faf9a04b499af59d069b7ed21a7fef75d64
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-20 13:12:46 -08:00
Sayanna Chandula
b92b81e178 thermal: update thermal config with v2 coefficients
Update with v2 virtual coefficients
Update trigger sensors
Align hot thresholds with P22
Use VIRTUAL-SKIN as combination where applicable

Bug: 259450323
Test: Build and boot on device. Check thermal service
adb shell dumpsys thermalservice

Change-Id: I5f738a1cc1fe3735f5fae41dd42d27e6bd305e05
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-20 13:11:59 -08:00
TreeHugger Robot
7a1a4b67f7 Merge "Remove UClampThreshold hint" 2022-12-20 06:38:58 +00:00
Linyu He
0753e2318f Merge "[Zuma 8k] Add 8k encoder profiles for P23 devices (3rd attempt)" 2022-12-19 19:35:15 +00:00
TreeHugger Robot
d37ec46ab6 Merge "powerstats: update state residency and energy consumer for Display" 2022-12-19 03:23:57 +00:00
Sayanna Chandula
a22891c9e1 thermal: update thermal powerhints thresholds
Align control temperature and switch on temperature thresholds
with current kernel configuration

Bug: 259450323
Test: Build and boot on device. Quick thermal check

Change-Id: I423a68762ae5b4df5b09b058322f40888aae8fce
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-17 00:22:13 +00:00
Sayanna Chandula
2e4641fbbd Merge changes from topic "shusky-vs-v1"
* changes:
  thermal: enable PI loop for tskin mitigation
  thermal: update thermal configs with v1 virtual coefficients
2022-12-16 18:28:36 +00:00
Patty Huang
c0b6391624 Enable LE Audio unicast offload
1. Set the LE Audio unicast offload property
2. Add the offload capability file for unicast

Bug: 257377483
Test: Manual
Change-Id: If6233bfcefa8894f52d0a8c7799ffa5b6b786f53
2022-12-16 08:16:55 +00:00
Yung Ti Su
81f4134629 add support for BLE offload case in audio policy
Bug: 257377746
Test: manual

Change-Id: Id9a2c528fd51898d59c3234b05cd606d7ebd9dc2
Signed-off-by: Yung Ti Su <andysu@google.com>
2022-12-16 16:09:58 +08:00
Jasmine Cha
9b66a4e09d audio: update waves tuning
- Full tuning includes volume curve to match previous pixel
  at volume 18 to 1 perceived loudness.
- Passes all power targets
- Pass top speaker heat budget for 40C skin
- Fails bottom speaker heat budget for 40, 41, 42C skin.  Passes 43C skin.
- Test acoustics shows superior performance to past premium.

Bug: 262787252
Test: manual test

Change-Id: Iec4664f0f1ad7499caf5e3cde2158151ca849111
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-16 09:00:20 +08:00
Linyu He
4cdc9d3fa2 [Zuma 8k] Add 8k encoder profiles for P23 devices (3rd attempt)
The 2nd attempt (ag/20294157) was reverted due to b/259732944. To avoid
the bug, we explicitly define the "high" quality encoder as a 4k
encoder. Note (1) below explains the reasons.

8k encoder specs:
  Codec: h264
  bitRate: 80000000 (80M); source: b/241178681#comment3
  Size: 7680x4320 (8K UHD)
  Frame rate: 30fps

Notes:

(1) Regarding b/259732944 (the bug caused by the 2nd attempt):

If CamcorderProfile.QUALITY_HIGH isn't explicitly specified, the highest
resolution available will be used.

Therefore, when the 8k profile was added, apps requesting QUALITY_HIGH
would ask HAL to perform 8k recording.

This created the following issues:
(a) As 8k support in HAL isn't ready, existing tests using QUALITY_HIGH
will fail (such as CTS, PTS, FATP, etc.).
(b) 3rd-party apps currently using QUALITY_HIGH will get 8k, which might
not be their intention.

So we chose to keep QUALITY_HIGH at 4k, which was the highest resolution
on P22 devices.

Detailed discussions are in b/259599407.

----------------

(2) Regarding the "quality" attribute in EncoderProfile:

It must match what's defined in MediaProfiles::sCamcorderQualityNameMap
(see frameworks/av/media/libmedia/MediaProfiles.cpp).

----------------

(3) Regarding the camera IDs:

The camera IDs in media_profiles_{device_name}.xml correspond to the
IDs inside vector ModelSpecificDataControllerBase::visible_camera_ids_.
The vector is populated in
lyric/silo/hardware/devices/{device_name}/data/model_specific_data_controller.cc

According to the documentation of "visible_camera_ids_", "the first ID
for each facing will be used as the default camera ID". As
visible_camera_ids_[0] is always the first (default) ID for the rear
camera, and only the rear camera supports 8k, we add 8k encoder
profiles for camera 0 in media_profiles.

The explanation above isn't obvious. You'll need to read
model_specific_data_controller.cc to understand it.

----------------

(4) Regarding tests:

We can't test the 8k encoder since we haven't brought up the 8k support
in ISP.

We can use CTS, PTS, and EECoexer to test this CL for existing use cases.

Note that RecordingTest#testBasicRecording currently fails at TOT due to
a different reason. For this CL, we only need to make sure no 8k stream
is requested by observing logs with the "GCH_HalUtils" tag.

Bug: 232811715
Bug: 262423942
Test: build & boot Android
Test: atest RecordingTest#testBasicRecording
Test: adb shell /data/sysval/scripts/eecoexer/eecoex.sh -s CAM,22,0,5,true,HIGH
Test: manually testing GCA video recording
Change-Id: Ie6c054e641810da9c231f3839961cbe8fcc16fdc
2022-12-15 22:50:37 +00:00
Sayanna Chandula
881a59faed thermal: enable PI loop for tskin mitigation
Bug: 259450323
Test: Build and boot on device. Checked video recording
and YT playback. Checked for thermal runaway with burn8
and gpubw workloads

Change-Id: If2e40383b31bf1ea64602484ff9c650a3ba0d1f8
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-15 22:21:56 +00:00
TreeHugger Robot
eb2d1dec89 Merge "fix usb factory loopback/playback/capture fail" 2022-12-15 10:23:00 +00:00
vincenttew
5f962c00c0 fix usb factory loopback/playback/capture fail
Test: factory command, normal playback/capture
Bug: 245503800
Change-Id: I5f9aa710725f6e9869e7632f0c268e9e67f925c5
Signed-off-by: vincenttew <vincenttew@google.com>
2022-12-15 16:57:44 +08:00
Jasmine Cha
7023b26da0 audio: update volume curve for power budget
Bug: 262473484
Test: manual test

Change-Id: I98ea8ffa08a7d7fee3c48df936dee2640072c2b2
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-15 01:55:12 +00:00
Sayanna Chandula
79098905c3 thermal: update thermal configs with v1 virtual coefficients
Bug: 259450323
Test: Build and boot on device

Change-Id: I95bf15965993b4b083eed765a8620c621cf53b57
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-14 17:41:02 -08:00
Darren Hsu
7225af3349 powerstats: update state residency and energy consumer for Display
Bug: 262488433
Bug: 262491621
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I77ff227d3c50b135c3085f19f088f57a3b274cce
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-12-14 17:13:13 +08:00
Jasmine Cha
15548e038e audio: waves tuning table
- Full tuning includes volume curve to match previous project at
  volume 18 to 1 perceived loudness.
- Passes all power and skin thermal targets
  (for 40C skin temp sustained power)
- Test acoustics shows superior performance to past premium (R4, C10)

Bug: 262473484
Test: manual test

Change-Id: Icc1dee1782d9919195aa161bc5b99708c489fc66
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-14 13:39:13 +08:00
Jia-yi Chen
8de6c2e009 Merge "powerhint: Add CPU MaxFreq cap for camera powerhints" 2022-12-14 02:11:44 +00:00
TreeHugger Robot
060bfd3165 Merge "wifi: Move PixelWifiOverlay2023" 2022-12-13 23:24:03 +00:00
Jia-yi Chen
45a5c648d6 powerhint: Add CPU MaxFreq cap for camera powerhints
Before PMU feature is ready, directly limit the CPU frequencies
via powerhint. Also update the value of CPU frequencies based on
the latest HW.

Bug: 261760700
Test: Boot & take traces
Change-Id: Ibc41c9decd866a37ec65201204f5a1b09798b72e
2022-12-13 13:43:36 -08:00
Chungkai Mei
09e38849c0 Remove UClampThreshold hint
the file node was removed so also remove these
dummy setting

Bug: 260806701
Change-Id: I23044f7f32cf4b2b2cc93205ec5751525f05ee7f
Signed-off-by: Chungkai Mei <chungkai@google.com>
2022-12-13 09:39:59 +00:00
Sayanna Chandula
6ec947dc44 Merge "thermal: implement basic tskin mitigation" 2022-12-13 04:27:33 +00:00
Sayanna Chandula
141142a118 thermal: implement basic tskin mitigation
cdev limit at CRITICAL severity and hard throttling at
EMERGENCY severity

Bug: 262304756
Test: Build and boot on device

Change-Id: Ic79ef7a38a8b64b25285d53581ce1613844a26c1
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2022-12-12 17:27:58 -08:00
Jay
010c154953 powerhint: disable PMU for Zuma
Zuma's PMU porting is not completed so disable PMU for now.

Bug: 259144954
Test: GCA video recording
Change-Id: I96b16b486342d95df28813b63fe7d95a9d9e2aeb
2022-12-12 19:11:46 +00:00
Ted Wang
0b2e0595fb Disable Accelerated BT ON feature for ripcurrent
Bug: 262181537
Test: make
Change-Id: Ifc109da72052130f225271c87f75e44f9318da41
2022-12-12 14:35:58 +08:00
kensun
5a7aa6ccd2 wifi: Move PixelWifiOverlay2023
PixelWifiOverlay2023 was originally added in device-XXX.mk file, and lead to overlay parsing failure on aosp/factory build.
Referring to other existing Pixel projects, move PixelWifiOverlay2023 to product.mk files.

Bug: 260594276
Test: Overlay can be read correctly.
Change-Id: I739504ee9ded6f232e438ce5830ca168ed1f4675
2022-12-12 03:33:11 +00:00
Cheng Chang
d63e841415 Merge "gps: update rf configuration" 2022-12-12 01:53:29 +00:00
TreeHugger Robot
c2724b2380 Merge "battery: disable wireless for pts battery test" 2022-12-11 06:42:58 +00:00
Ken Yang
10fe580b45 WLC: Include the wireless_charger from gs-common
Bug: 237600973
Change-Id: I5bcd35ca016a2012f9887ce15e8c88a342f288e6
Signed-off-by: Ken Yang <yangken@google.com>
2022-12-10 14:39:40 +00:00
Roshan Pius
976b66e6f8 Merge "uwb(hk3): Add UWB framework overlays rro app" 2022-12-09 22:44:54 +00:00
Ken Tsou
0983124386 battery: disable wireless for pts battery test
Disable wireless charging during drain, usb charging,
and charger stress test
  - vendor.disable.wlc 1
If device is placed onto dreamliner and shutdwon(drain out),
it would boot up by DC_CHG and keep shutdown(0%)-boot up
(by DC_CHG) continuously. To avoid this symptom, limit wireless
current_max as 75000 after device boot up
  - persist.vendor.limit.wlc.current=1

How to verify:
  adb shell setprop vendor.disable.wlc 1
  adb shell cat /sys/class/power_supply/wireless/online >>>> 0

  adb shell setprop persist.vendor.limit.wlc.current 1
  adb shell cat /sys/class/power_supply/dc/current_max >>>> 75000

Bug: 261948834
Test: set the property manually and query the result from file node.
Change-Id: I5bcf9baeb2818b439520167b518b2e5c5224d7e2
Signed-off-by: Ken Tsou <kentsou@google.com>
(synced from commit 4c821c04fc25b026f5fc8e9301758bf87dbb4a3e)
2022-12-09 09:10:08 +00:00
George Chang
d73a435119 Merge "Remove legacy nfc/se settings" 2022-12-09 07:28:02 +00:00