Commit Graph

177 Commits

Author SHA1 Message Date
Rick Yiu
d6b9941038 Config dex2oat according to thermal status
Config dex2oat cpuset and thread count according to thermal status.

LIGHT cpuset = 0,1,2,3,4,5 thread = 6
MODERATE cpuset = 0,1,2,3 thread = 4
SEVERE cpuset = 0,1,2,3 thread = 4
CRITICAL cpuset = 0,1,2,3 thread = 2
EMERGENCY cpuset = 0,1,2,3 thread = 1

Bug: 242948832
Test: build pass
Change-Id: I04adb1aeb343b71a2741aaef1ad776398a3be1b7
2022-08-31 07:52:02 +00:00
Richard Chang
82f3bbe15f mm: sync max_cached_processes settings in ActivityManager
Bug: 237364731
Test: pts-tradefed run commandAndExit pts -m PtsPerfWbsTestCases -t
com.google.android.perfwbs.pts.MemoryTest#testMaxCachedProcesses

Change-Id: I47cb03f2053287fc4b7c2249c885b7b7de4fd3a8
2022-08-30 10:52:33 +00:00
jimmyshiu
b031889746 Enable ADPF CPU hints for SF
Allow these devices to send CPU hints to PowerHAL from SF to reduce
drops and save power.

Bug: b/241152899
Bug: b/195990840

Test: https://android-build.googleplex.com/builds/abtd/run/L70800000956157278
Change-Id: I81df99f4ec01f417d1589e2323de599819993590
(Port from commit 8a419466b86ab07a25fc18d7d6a2a9ee154f6839)
2022-08-29 12:23:04 +00:00
Kyle Lin
b06ff4dd49 Update MIFTargetLoad default values
Bug: 237365265
Test: build, boot and check the values
Change-Id: Ibdafe72dc7200c11f3aa84e49e49e6ed0d359b42
2022-08-26 10:28:46 +08:00
Cheney Ni
738f85f5b0 Bluetooth: OOBS enabling
Bug: 203079726
Test: Pass Bluetooth ON / OFF and manual tests
Change-Id: I02d2240148b52d71ff2026e247d2803f32b5b344
2022-08-25 10:27:57 +00:00
horngchuang
b74e2b582b Add system property for camera OIS with system imu
Bug: 240851527
Test: in-rom GCA
Change-Id: Ifd3e4254973e66215d31004a1f8ca28ccc7c35ce
Merged-In: I80d33ab2ef9e7e2fc3acf33580f8e333988b62f2
2022-08-25 05:50:09 +00:00
Hsiu-Chang Chen
a011c11f37 wifi: Move driver initialization to an eariler time
sys.boot_completed may take more time to be set in the first
boot after factory reset. It will cause wifi framework try
to enable wifi before driver ready. Move the timing of driver
initialization forward to all modules ready.

Bug: 242681939
Bug: 240889310
Test: wifi enables after booting
Change-Id: I97d742ffe9723d2fc09f370f3d98dfdc4413af61
2022-08-24 08:56:30 +00:00
Vincent Wang
7f6ad012b5 Fix L10 has success haptics of face unlock for non-bypass.
C10/P10 move the haptic from system_ser to sysui. Align this behavior on
L10

BUG: 242661137
Test: Check the face unlock haptic of L10 is the same with C10/P10
Change-Id: If1501ede19bff1a821c9d12d5c305085b618b4c3
2022-08-24 03:18:39 +00:00
Yung Ti Su
4a05db1b89 audio: 1. Re0 range modification
1. change Re0 range from Typical+/- 15% to +/-10% for factory build

Files from the latest attachment on b/243387067

Bug: 243387067
Test: verified by hardware engineers
Change-id: Ife86a6093d6e87224f432cb9b89c8f0c593cfe37
2022-08-23 09:36:02 +00:00
Jinting Lin
2784a6ba9d Update device name to avoid aosp build break
Bug: 235041253
Change-Id: I0489e2a2218e96cd9dd3c88c5bbb07f772e3ebad
2022-08-23 07:56:20 +00:00
jimmyshiu
38d324f8d0 Remove FPS boost
Bug: 241312961
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I8e15a1b750e45e89fc12d2c021e9e0a756a1d394
2022-08-23 05:22:05 +00:00
Jinting Lin
baf653b810 Update MIPI / DBR clock rate from latest desense tests / SW updates
source: https://docs.google.com/spreadsheets/d/11oBBmPFZ_2iRVjB1F3X8h2FB1jK-w7OakwsPK4DPB4c/edit#gid=0

Bug: 235041253
Change-Id: I2079dd03e7c8de62f1dc88db2468a37857965812
2022-08-23 04:32:06 +00:00
David Chao
02bc91305c thermal: seperate thermal config for charging
- Separate thermal config for charger mode and remove the unused thermal
throttling.

Bug: 240897207
Test: usbc overheating protection and charging throttling worked
properly in charger.

Change-Id: Ib970c16c0ed08b52fb2c9387b71cb2211f4bc1f3
2022-08-22 19:54:12 +00:00
Yung Ti Su
b85cfe1614 audio: Phase in fortemedia tuning tables and platform configuration file
Change List :

Fortemedia:
Handset :
Optimal performance to meet 3GPP requirement for NB/WB/SWB/Reserve2 SWB (RLR/SLR)
CCA light FNS to generic/TMOUS  NB/WB
Sync generic setting to TMOUS
Sync TX setting to HAC / TMO-HAC /  HAC Reserve 2 SWB

Handheld :
Optimal performance to meet 3GPP requirement for NB/WB/SWB/Reserve2 SWB (RFR/RLR/ECDT)
CCA light FNS to NB/WB
Sync TX setting to
- BT-HAC / Condor-Headphone / TTY-VCO (NB/WB)
- BT-HAC SWB / BT-HAC Reserve2 SWB / Condor-Headphone SWB / TTY-VCO SWB / Condor-Headphone Reserve2 SWB / TTY-VCO Reserve2 / Reserve2 SWB
Sync RX setting to
- TTY-HCO (NB/WB)
- TTY-HCO SWB / TTY-HCO Reserve2 SWB / Reserve2 SWB
SS to Reserve2 SWB (FFP off, stereo on, RX setting to RX2)

Headset :
sync P10 20220818 version

Bluetooth :
sync P10 20220818 version

Platform configuration :
Add for CCA
<intf id="BE_VIRTUAL_CRYSTAL_CLEAR_AUDIO_TUNING" block_id="138"/>
<module libname="audio_cca_aoc.so"/>
Modify for SS
<module libname="audio_fortemedia_aoc.so" argu="DL_CH=y VoIP_DLCHs=SPK:2,USB:2 VoIP_Rate=32000"/>

Files from the latest attachment on b/243344253

Bug: 243344253
Test: verified by hardware engineers
Change-id: I57e897a1ee9c8dab2ace0051d148c36639911bd6
2022-08-22 08:41:07 +00:00
David Chao
af60880652 thermal: enable VIRTUAL-CHARGE sensor for thermal_recorder
Remove "Hidden" to enable VIRTUAL-CHARGE sensor for thermalservice,
So that thermal_recorder can record the temperature and seveirty for
tuning.

Bug: 242944140
Test: thermalservice can read VIRTUAL CHARGE sensors.
Temperature{mValue=26.606302, mType=3, mName=VIRTUAL-SKIN, mStatus=0}
Temperature{mValue=26.577953, mType=-1, mName=VIRTUAL-SKIN-CHARGE, mStatus=0}
Temperature{mValue=26.92495, mType=-1, mName=VIRTUAL-SKIN-CHARGE-WLC, mStatus=0}

Change-Id: Icc38895d19ff7d89e307e96c2b35e26d43c1a753
2022-08-19 08:48:20 +00:00
Wendly Li
e61c8498e6 touch: change touch sysfs node ownership for dumpstate
Bug: 214118904
Test: adb bugreport
Change-Id: Ia0e133e86b11421e7b97aaea4e551f8a2fd6933f
Signed-off-by: Wendly Li <wendlyli@google.com>
2022-08-19 08:23:35 +00:00
David Chao
5caf26d1e6 thermal: enable fcc & dc_icl PID charging throttling
- Enable fcc & dc_icl SKIN PID charging throttling with state2power table
- Switch on temp 35C, target temp 39C

Bug: 239507440
Test: Charging throttling worked as expected.
Change-Id: I172b71e64f6dc03627c4c33be556080a1a29d777
2022-08-18 01:48:16 +00:00
David Chao
20ef1286dc thermal: update thermal config
1) Based on Proto1.0 and 1.1 thermal result to modify VIRTUAL-SKIN formula v0.4.
2) Add WLAN and DISPLAY odpm power rail in PARTIAL_SYSTEM_POWER
3) Enable USB overheat protection polling log 3 degC earlier.
4) Set the cdev_ceiling for CPU/GPU to avoid the abnormal throttling request when ODPM has issue.
5) Move target temperature from 45 degC to 41 degC.

Bug: 236562040
Test: ThermalHAL throttling worked properly
Change-Id: I78ec8c1fe44f3674d4f578c8e48a50f004c406f3
2022-08-18 01:48:16 +00:00
David Li
1db103ba10 audio: Phase in Waves mps file and volume curve audio_policy.xml file
I put L10 EVT tuning files in the attached file.

L10 EVT HW modify Proto speaker.
I need to re-tune mps file.
I base on EVT speaker make this mps file tuning.


And slightly lower volume step 21th to let volume curve smoothly.
So, I modify audio_policy.xml file.

Files from the latest attachment on b/242521368

Bug: 242153654
Bug: 242521368
Test: verified by hardware engineers
Change-id: Ide63f88ee7aa55f4b79c53de2d70314bc20ab285
2022-08-16 10:05:27 +00:00
achigoliu
4403bc43db Bundle handheld_core_hardware.xml
Bug: 237110906
Test: Manual, verify build artifacts
Signed-off-by: achigoliu <achigoliu@google.com>
Change-Id: I5865b21a4ab2bd31e5a69d497422117fafbd1414
Merged-In: I92137b615c7bce28026f858c201d8bd530754b5b
2022-08-10 02:47:02 +00:00
Junkyu Kang
47e5d68e3c gps: Enable SI SUPL over Wifi
Test: -
- SI SUPL Wifi on + mobile network off
- SI SUPL Wifi on + mobile network on
- SI SUPL Wifi off + mobile network on
- SI SUPL Wifi on + airplane mode on
Bug: 239671126

Change-Id: I308f7501085be765c3cdcc9858b93e98554b2bc3
2022-08-09 05:11:28 +00:00
Yung Ti Su
5c1334c7d6 audio: [L10] Recording tuning table update 8/5 - EVT Ver. For 1st assessment
Change list :
1. adjust IIR1 as main filter for flat FR in camcorder path.
2. for camcorder path, implement all 6 scenarios with same parameters except linear gain module, and use linear gain to swap channels.
3. fine tune and swap the channels in mic path.

Files from the latest attachment on b/241720915

Bug: 241498250
Bug: 241720915
Test: verified by hardware engineers
Change-id: Iea93f2d118c30bcd83c44c2227ce68a3bfa8074d
2022-08-08 06:28:07 +00:00
Junkyu Kang
c1404ba0a8 gps : enable runtime LTE filter control feature
Bug: 241213788
Test: Sanity test
Change-Id: I1d4f255fb974ce33685d2f049e2df23112209f39
2022-08-06 05:46:31 +00:00
Yung Ti Su
fb9da3e3b5 add support for BLE Broadcast output
Bug: 210987580
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: I544636e4fac94142b06aa38d4c0957de36f0ebea
2022-08-04 03:38:21 +00:00
Gary Jian
1cca3358b4 Handle the network selection restoring in modem side
Bug: 240654108
Test: manual
Change-Id: I1fdd7250d162ba4a4a1fa386561649e5b4adc9e3
2022-08-04 03:17:55 +00:00
Adam Shih
efa52cece3 Remove AIDL support on IBluetoothCcc
Bug: 239658601
Test: vts-tradefed run vts -m vts_treble_vintf_vendor_test
Change-Id: Ib0634920e60e58db5e0fc70a4d16afef5ba80a0f
2022-08-03 09:21:49 +00:00
Yung Ti Su
684e46c4cf audio: update speaker bins
Change list:
1. Bot spekaer model for EVT version

Bug: 223513454
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: I9b0e79d296328e790b01e33f84d86aa18b572d8f
2022-08-03 04:36:51 +00:00
Yung Ti Su
a8d6785778 audio: update speaker bins
Change list
1. modify Rtrace in cali/diag.bin

Bug: 223513454
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: Ia6f0c6346b58f6e149a7fbe41f360d4ac92d99f9
2022-08-03 04:36:51 +00:00
Yung Ti Su
cd8e8f7a36 update fortemedia tuning table
Change List :

Handset :
Sync P10 20220712 TX setting
Optimal performance to meet 3GPP requirement for EVT NB/WB/SWB
Sync generic setting to TMOUS
Sync TX setting to HAC / TMO-HAC /  HAC Reserve 2 SWB

Handheld :
Sync P10 20220712 TX setting
Optimal performance to meet 3GPP requirement for EVT NB/WB/SWB
Sync TX setting to
- BT-HAC / Condor-Headphone / TTY-VCO (NB/WB)
- BT-HAC SWB / BT-HAC Reserve2 SWB / Condor-Headphone SWB / TTY-VCO SWB / Condor-Headphone Reserve2 SWB / TTY-VCO Reserve2 / Reserve2 SWB
Sync RX setting to
- TTY-HCO (NB/WB)
- TTY-HCO SWB / TTY-HCO Reserve2 SWB / Reserve2 SWB

Headset :
Sync P10 20220712 setting

Bluetooth :
Sync P10 20220712 RX setting

Bug: 230558942
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: Id9bfb7e7d47840e7cf06ad7d98aecf9750ec1685
2022-08-01 11:03:49 +08:00
Junkyu Kang
0fbee81ccf gps: Set RTO/SUPL download interval to 20 min
Bug: 240360367
Test: TTFF and RTO download

Change-Id: I9938548539734fad1b5037cbcc463e970b50113e
2022-07-29 11:13:04 +00:00
Stephane Lee
4f5438d52c Remove device-specific support for GoogleBattery HAL
This is covered by parent projects.

Bug: 232461104
Test: Ensure Adaptive Charging/Battery health flags works as expected
Change-Id: I4f8bf22fc2cbde580d1fa4058210b357f24c2bb5
Merged-In: If97f5a5f3f082e2066f1d512f449fcbb295b50f2
2022-07-28 20:01:51 +00:00
George Chang
97f89f5da3 Remove NFC uicc card emulation mode support
Correct the nfc feature flag declaration.

Bug: 240225338
Bug: 222030531
Test: manual
Change-Id: I946f53a4a1b951168314e59bd3e521800626defe
2022-07-28 14:36:36 +08:00
Darren Hsu
5345021276 powerstats: remove support of bluetooth data provider
This device uses QC solution on Bluetooth Remove support of
Bluetooth state residency data provider from PowerStatsHAL
on this device.

Bug: 231395549
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I1248e2cd74cbeac4f0f9cf727e8bdee9a925fa05
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-07-27 07:56:02 +00:00
Cheney Ni
4cf2cbd78f Bluetooth: Fix broken builds by no such file
Using full path name instead of $(LOCAL_PATH)

Bug: 240249614
Test: Build Pass
Change-Id: I83c9ceb2c628b9f7a28315c7c2af3a1e26232565
2022-07-26 20:50:12 +08:00
Cheney Ni
ec385d24c9 Bluetooth: Preliminary BT SAR table for dogfood
Bug: 239899228
Test: Pass SAR manually tests
Change-Id: Id75818fc7ed844c837e5be2cf4e0ee4b8eabd087
2022-07-26 08:57:31 +00:00
Bill Yi
cdfc6970cc Add AOSP support for Lynx
We will have a 'vendor' project containing proprietary blobs
to be able to build and flash Pixel device when vendor source is not
available.
The project name is
platform/vendor/aosp/google_devices/lynx

and the path is
vendor/google_devices/lynx

TEST:make

BUG: 240203789
Change-Id: I33af4dce2b60f5de21d8998e445d2f8abd2b7e01
2022-07-26 06:07:09 +00:00
Jasmine Cha
6f3b7806be audio: enable BAACL (amp only)
Bug: 227715448
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I4f86f3744a7aeaaf67764d8db7f9c2641ca62a83
2022-07-26 02:09:52 +00:00
jimmyshiu
6817895610 Remove universal touch boost
Bug: 236781877
Test: PtsUiBench
Change-Id: Icae3f31286dafcd7ca0df8fad07916d5a76f7929
Merged-In: Icae3f31286dafcd7ca0df8fad07916d5a76f7929
2022-07-25 18:36:45 +00:00
George Chang
3e25f104db Add sku info for enable nfc secure
Bug: 239668161
Test: check settings page
Change-Id: I43d4c4f4f29c6746cdaff90361c04b6720f5ff3e
2022-07-22 06:42:58 +00:00
Junkyu Kang
f1d730fe31 gps: extend min GPS week number
Bug: 238931611
Test: Basic Gnss Test
Change-Id: If31aa3aea9311ffcade50c7e0d87e6e59692b912
2022-07-22 01:38:39 +00:00
Yung Ti Su
068108f9ee Recording tuning table update
Change list:

 1)2048 FFT size WNR
      mid(17) pid(31) param(COHERENCE_END_BIN)
      5 ==> 10

      mid(17) pid(37) param(SP_GAIN_MAX_BIN)
      8 ==> 18

      mid(17) pid(46) param(GMIN_LINEAR_SPLIT_MID_POINT_BINR)
      27 ==> 55
 2)AGC pumping
      rmsTav
      200 ==> 1000

Bug: 236802184
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: I2c1a373d38dc0f63dc015f050af589378a1dc367
2022-07-21 11:40:18 +00:00
Alex Hong
0eb17533ff [DO NOT MERGE] Use GmsCorePrebuilt y2022w28 for lynx devices
Bug: 239681407
Change-Id: I198654fa109cc0674344b565fe7409f2d9bae7ca
2022-07-21 09:05:52 +00:00
George Chang
ffc1fc5c5b Enable eSE2 and ctsmode settings
turn on st33spi when persist.vendor.se.ese2.mode is set to ctsmode

Bug: 239657021
Bug: 239655807
Test: VtsHalSecureElementV1_2TargetTest,
      VtsHalSecureElementV1_1TargetTest,
      VtsHalSecureElementV1_0TargetTest,
      CtsOmapiTestCases
Change-Id: Ifd96d96068f49d85879efdd3d11a7067f71ee907
2022-07-21 06:07:00 +00:00
pointerkung
bedc610607 MIF frequency optimization for 60fps video recording use-case
This CL sets the MIF min clock frequency to 1539MHz, which based on
initial ODPM and MIPS measurements shows benefit both in terms of power
consumption and cycles-per-instructions (CPI), reducing the gap with R4
device.

L10 power and performance impact tests will update on the bug.

Bug: 239651545
Test: Build pass, GCA
Change-Id: I1b057f187e45bad46f4661bd5673f0f88aab3a93
2022-07-20 11:50:32 +00:00
Robin Peng
2d51ed1ffd init: remove twoshay HAL init trigger condition 'on late-init'
Bug: 238853979
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: I60ce38f2b4ae4e27c14a9fe8ede5f762c06fa22f
2022-07-20 12:48:36 +08:00
Sam Ou
4b3c259498 add power_profile
Bug: 235224245
Signed-off-by: Sam Ou <samou@google.com>
Change-Id: Iadfe19bda2eab70b2af7b929c065cc61afd4b991
2022-07-18 03:58:38 +00:00
Robin Peng
1cbb9b31e4 init: set vendor.all.modules.ready and vendor.all.devices.ready
migrated from init.gs201.rc

Bug: 238853979
Signed-off-by: Robin Peng <robinpeng@google.com>
Change-Id: If9f775dffeab9669310ae02e6f2b82f15f6eb1f2
2022-07-15 14:43:48 +00:00
Yung Ti Su
6706afc0bc add the missing audio_policy_configuration_le_offload_disabled.xml back
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: I28286331bcbff5cff2ecdd772eb564dfde554217
Merged-In: I04fc1306eb15ea2ae102f65b59c1b1cca2070dd1
2022-07-15 11:27:32 +08:00
Jason Chang
5a48a5bc85 Enable One-handed mode feature for L10
PRODUCT_PRODUCT_PROPERTIES += \
    ro.support_one_handed_mode=true

Bug: 238591567

Test: manually test.
Change-Id: I8dfdcdb20e9921822e3c3a7e552c766d7bc3b341
2022-07-12 06:18:05 +00:00
Mark Chang
517e7c4be2 L10: Start twoshay service on boot.
Bug: 214118928
Test: Verified twoshay successfully launched on boot.

Signed-off-by: Mark Chang <changmark@google.com>
Change-Id: I946f89058aae8ea522a5ca7e228b9aaf76fd4708
2022-07-12 02:13:15 +00:00