Commit graph

291 commits

Author SHA1 Message Date
Michael Williams
55c33641a6 Merge "Switch Faceauth FACE_UNLOCK_BOOST Power Hint to Mid Cluster" into main 2024-06-06 15:19:29 +00:00
Kimi Hsu
7de6734a38 Merge "Update display shape" into main 2024-06-06 08:17:27 +00:00
Arindam Mondal
3e73817588 Convert tegu/preloaded_nanoapps.json's .mk file to Android.bp.
Since `preloaded_nanoapps.json` has different configurations for
`factory` products and `non-factory` products, `soong_namespace {}`
needs to be added to the converted Android.bp file to avoid misuse.

Additionally, due to ag/27690356 and ag/27683070 a common inheritance layer has been added to all `non-factory` products for `tegu`. Therefore, setting different `PRODUCT_SOONG_NAMESPACES` in the corresponding `tegu_generic.mk` and `factory_tegu.mk` files will allow factory products and non-factory products of tegu to use different preloaded_nanoapps.json.

FLAG: EXEMPT Mechanical refactoring

Bug: 336452008
Bug: 313835597
Test: 1. lunch tegu-trunk_staging-userdebug && \
         m -j preloaded_nanoapps.json
      2. Check ./out/target/product/tegu/.../preloaded_nanoapps.json
         It should be the tegu version.
      3. lunch factory_tegu-trunk_staging-userdebug && \
         m -j preloaded_nanoapps.json
      4. Check ./out/target/product/tegu/.../preloaded_nanoapps.json
         It should be the factory version.
Change-Id: I483043ce3c55dc08b54699f332d654d18eedebd2
2024-06-06 03:14:06 +00:00
Arindam Mondal
64a738e66f Refactor product inheritance for tegu products.
Add an additional layer of inheritance for tegu products.

This change adds a common layer of inheritance for non-factory
products (tegu_generic.mk). This makes it easier to configure
factory and non-factory products differently.

Non-factory `tegu` products now inherits from
`device/google/tegu/tegu_generic.mk` which inherit from
`device/google/tegu/device-tegu.mk`.

FLAG: EXEMPT mechanical refactoring

Bug: 336452008
Bug: 345198819
Test: lunch tegu-trunk_staging-userdebug && m
Change-Id: I5a48fe09f825ec7d8dff50ff36b1c1b1b1a6fa22
2024-06-06 03:11:34 +00:00
Frank Yu
bf2d38ec1b Merge "Enable radio ext aidl service for dynamic ssc." into main 2024-06-05 10:07:55 +00:00
Treehugger Robot
6246660887 Merge "gps: Enable customgnss function" into main 2024-06-05 09:05:59 +00:00
Kah Xuan Lim
888193468c Merge "Revert "Disable Dex preoptimization"" into main 2024-06-05 07:50:58 +00:00
Treehugger Robot
4085949557 Merge "tg4: support touch sensitivity mode switching" into main 2024-06-05 03:33:28 +00:00
Kah Xuan Lim
99bfceca0a Revert "Disable Dex preoptimization"
This reverts commit 6c52094291.

Reason for revert: Disabling dex preoptimization doesn't solve the root cause of the bug and will cause some performance issue.

Flag: build.WITH_DEXPREOPT
Bug: 343341492
Bug: 343367700
Test: Build with target non-aosp targets in presubmit and aosp targets following the reproduce steps in b/343341492
Change-Id: I2309453918333b1bce7e3194c77c9cd4762c1b69
2024-06-05 03:28:24 +00:00
Sam Paradis
5b406f3ebe Switch Faceauth FACE_UNLOCK_BOOST Power Hint to Mid Cluster
Faceauth is pinning to the mid-core for this device. Adjust the power hint to boost the appropriate cluster.

Bug: 329893113
Change-Id: I7b0f228a1ecac523fee5b5dd607f27f99a608411
2024-06-04 19:13:09 +00:00
Frank Yu
9af99adb0b Enable radio ext aidl service for dynamic ssc.
Bug: 343576955
Test: Manual. RadioExt aidl service start successfully.
Change-Id: Ia2b7ff1c14fae8b7aedf40a594b346359072dc6a
2024-06-04 09:24:12 +00:00
Kimi Hsu
256a5e78ac Update display shape
Bug: 337202957
Test: make
Change-Id: I3fed1757b0df411e665b4356942e490f695deb84
2024-06-04 08:51:33 +00:00
Treehugger Robot
a82e04a983 Merge "powerhint: Set big core to group_cfs_skip_mask for sys group" into main 2024-06-04 07:01:08 +00:00
Shinru Han
a9210afdc9 Merge "gps: maintain one solution" into main 2024-06-04 06:41:30 +00:00
Blackbear Chou
7f105f6b59 tg4: support touch sensitivity mode switching
Write the sysfs node to set touch sensitivity mode when the property
changes.

Bug: 315239048
Test: toggle the touch sensitivity button in Settings and check log.

Change-Id: I02d1bc2051264a136d1487d63e295259c31f2980
Signed-off-by: Blackbear Chou <blackbearchou@google.com>
2024-06-04 13:37:17 +08:00
Paulsu Su
c9a2bf6db9 powerhint: Set big core to group_cfs_skip_mask for sys group
sync from ag/27280353

Set big core to group_cfs_skip_mask for sys group when screen is off,
so that sys group tasks will run less in big core.

Bug: 342968374
Test: boot to home

Change-Id: I4456641e8e99c83573887c4a3b56ba484b490773
2024-06-04 01:54:23 +00:00
Paulsu Su
4951bdeabd Merge "powerhint: Set big core to cpu skip mask by default" into main 2024-06-04 01:24:02 +00:00
Paulsu Su
72beef1f16 Merge "powerhint: Disable auto prefer idle explictly for some conditions" into main 2024-06-04 01:23:28 +00:00
Paulsu Su
e3e0bcb6c9 powerhint: Disable auto prefer idle explictly for some conditions
sync from ag/26728408

Bug: 343134499
Test: boot to home

Change-Id: Ic4940816966ab342c46ade27b3f381f9ad47f5ba
2024-06-04 00:41:06 +00:00
Paulsu Su
3eba1a8f63 powerhint: Set big core to cpu skip mask by default
sync from ag/27232593

Bug: 343134499
Test: boot to home

Change-Id: I4255b5e05697ee4181f8b5c68b82ea6080fb733e
2024-06-04 00:39:21 +00:00
Peter (YM)
710acad3df Merge "thermal: usb thermal throttle in off charging mode" into main 2024-06-03 07:00:58 +00:00
Peter (YM)
8f730bc927 thermal: usb thermal throttle in off charging mode
Fix the issue that device not trigger usb throttle in off mode charging.

Bug: 344445952
Test: Build and flash on device, verify with uart.
Change-Id: Ic6d453b1cab4614f8f6b42a9b6f5fe521a98101d
Signed-off-by: Peter (YM) <peterym@google.com>
2024-06-03 06:57:07 +00:00
Blackbear Chou
4a4e76d1e8 dumpstate: touch: Init using touch_predump
More info at go/touch_predump

Test: Test locally on test device and check predump_touch works.
Bug: 315239193

Change-Id: Ie06e91c68fc4af0fe58a1f5358793bffff2b02d8
Signed-off-by: Blackbear Chou <blackbearchou@google.com>
2024-06-03 01:10:00 +00:00
Wen Chang Liu
a1b543b4ce Merge "tegu: Enable media performance class 13" into main 2024-05-31 02:46:12 +00:00
David Christie
bab49992fe Config Tegu to allow external GPS location providers
-A noop change by itself, but allows Google to later overlay
 a different GPS engine within GmsCore.

Bug: 343731153
Test: Manual
Flag: EXEMPT resource only update

	modified:   tegu/overlay/frameworks/base/core/res/res/values/config.xml

Change-Id: Id4ea559c8fb666fee06ec73b5a30414bd8c232a8
2024-05-30 19:10:57 +00:00
wenchangliu
e98d0ac9d1 tegu: Enable media performance class 13
The MPC is limited to 13 since Camera recording does not support
HDR 10-bit.

Bug: 343087302
Test: run cts -m CtsMediaPerformanceClassTestCases
Test: run cts -m CtsCameraTestCases -t android.hardware.camera2.cts.ExtendedCameraCharacteristicsTest
Change-Id: Ic7ca5fe5d5a21ff6febf67799b80fc0f2da59a4a
2024-05-30 08:17:07 +00:00
Treehugger Robot
fa455db7b1 Merge "Switch makefile owners to MK_OWNERS" into main 2024-05-30 08:16:17 +00:00
Rios Kao
e0bc9d4dfc Merge "tegu: correct mixer paths location from previous check" into main 2024-05-30 03:29:10 +00:00
Treehugger Robot
1190a7e674 Merge "Camera: add system imu property" into main 2024-05-30 03:15:23 +00:00
Treehugger Robot
0844e83823 Merge "Camera: Force front camera always binning for 720P or less" into main 2024-05-30 03:12:32 +00:00
Treehugger Robot
0c3ca22cc9 Merge "Update camera related powerhint settings" into main 2024-05-30 02:49:54 +00:00
Pointer Kung
8c402e742b Camera: add system imu property
sync from ag/26673229

Bug: 343152323
Test: Build pass, adb shell getprop
Change-Id: I7cf8688628620555adaabbf7a8192cfafe1e59da
2024-05-30 02:29:26 +00:00
Pointer Kung
57ccaf29e5 Camera: Force front camera always binning for 720P or less
sync from ag/25777459

Bug: 343152323
Test: Build pass, adb shell getprop
Change-Id: Ia38932db7c4e655256fc767c1be13f200ae084d8
2024-05-30 02:28:15 +00:00
Rios Kao
f07dfa3784 tegu: correct mixer paths location from previous check
note:
     previous cl of mixer table is incorrect due to
     bot wrong path setup.

Bug: 343570040
Test: check the file in the test build.
Change-Id: Ie6e17eab71255c605078bcd6da529e7a818b63db
2024-05-30 02:23:01 +00:00
Treehugger Robot
de87dbfa64 Merge "audio: add sound dose offset curve" into main 2024-05-30 01:45:13 +00:00
Treehugger Robot
b0676974a4 Merge "display: remove display RRS default Config" into main 2024-05-29 14:52:42 +00:00
Rios Kao
57152fcb1e audio: Update templete.xml, recording.gatf and audio_platform_configuration to leverage RC setting
- Update PGC, AGC and SNS settings for camcorder use case
- Update PGC, AGC and SNS settings for recorder use case
- Add SA-Lite in voice recognition use case for enabling MIC COMP function

Files from the latest attachment on b/343141249

Bug: 343141249
Test: verified by cartercheng@
Change-Id: I57052a1be4992a9a11fc83a67c189d033cb6a0ba
2024-05-29 01:53:51 +00:00
Pointer Kung
27af9addc4 Update camera related powerhint settings
sync from
- ag/26741141 [Project11] Update Project11 powerhint
- ag/27477178 [Project11] CPU scheduling update.
- ag/27120048 Reduce DVFSHeadroom to 1100 for CAMERA_STREAMING_STANDARD
- ag/26555645 Change CPU UtilThreshold, DVFSHeadroom, CDPreferHighCap for Video Call

Bug: 342502377
Test: Build pass, Boot to home, GCA
Change-Id: I7411d6703f6e3e5b602a48413a7be101d0da2941
2024-05-28 10:27:25 +00:00
Rios Kao
d59904cedf audio: Phase in TG4 mixer_paths tables
Change List :

mixer_paths:

Disable T-coil Amp

Change from

<path name="speaker-earpiece (VOICE,HAC)">
<ctl name="TAS25XX CODEC PROFILE" value="voice"/>
<ctl name="TAS25XX ASI Switch" value="1"/>
<ctl name="TAS25XX PLAYBACK_VOLUME_LEFT" value="58"/>
<ctl name="HAC AMP EN" value="1" />
<ctl name="TAS25XX EM LEFT" value="OFF"/>
<ctl name="TAS25XX EM RIGHT" value="OFF"/>
</path>

to

<path name="speaker-earpiece (VOICE,HAC)">
<ctl name="TAS25XX CODEC PROFILE" value="voice"/>
<ctl name="TAS25XX ASI Switch" value="1"/>
<ctl name="TAS25XX PLAYBACK_VOLUME_LEFT" value="58"/>
<ctl name="HAC AMP EN" value="0" />
<ctl name="TAS25XX EM LEFT" value="OFF"/>
<ctl name="TAS25XX EM RIGHT" value="OFF"/>
</path>

Thanks.

Files from the latest attachment on b/342982889

Bug: 342982889
Test: verified by ntkuo@
Change-Id: I3b20c5f232334a0f0e9d35ab2b4c202837d42ec9
2024-05-28 02:12:56 +00:00
Treehugger Robot
3ac2dc0002 Merge "display: tegu: don't apply overlay in low light" into main 2024-05-27 02:30:10 +00:00
Sam Ou
a780b504b1 Merge "thermal: tegu: Remove BCL related thermal zone" into main 2024-05-24 09:16:02 +00:00
Treehugger Robot
1531f4df80 Merge changes from topic "sync_camera_powerhint" into main
* changes:
  [Camera] Change PMU max frequency for CL2 to 1164MHz
  Enable PMU during photo capture
  Disable CDPreferIdle, set DSUMin to 610MHz for 60fps
  Increase SPC thresholds for 60fps
  Increase SPC threshold for little and mid cores for CAMERA_STREAMING_STANDARD
  Increase TAUClampBoost during capture to reduce latency
  Thermal Boost for severe thermal state
  Powerhint: Enable big core reduction feature and CDPreferIdle, limit CPUset to 0-6, optimize MIF clock frequency
2024-05-24 09:06:45 +00:00
Cathy Hsu
727623e519 Merge "display: update ssc_en permission" into main 2024-05-24 08:51:56 +00:00
samou
bd9bbb5288 thermal: tegu: Remove BCL related thermal zone
Bug: 342504477
Change-Id: I8da3a8b1ae6fee59b8e03fddc5f2bdca2c080a8b
Signed-off-by: samou <samou@google.com>
2024-05-24 08:03:35 +00:00
Cyan_Hsieh
c174438a3f Switch makefile owners to MK_OWNERS
Bug: 278167548
Change-Id: I35f8faf240de6daa3b2ddb2c39f3bdd3d40239c6
2024-05-24 15:53:56 +08:00
Pointer Kung
79263305ab [Camera] Change PMU max frequency for CL2 to 1164MHz
sync from ag/27327800 and ag/27350615

Bug: 342502377
Test: GCA
Change-Id: I21162cd593db199a25fa527d4a1879b3f4ea694b
2024-05-24 04:11:03 +00:00
Pointer Kung
1f3c427641 Enable PMU during photo capture
This CL enables PMU feature during photo capture. With the new settings, we can achieve up to 120ms saving in capture latency, while paying a penalty of 60mW. However, even with the added power, we are still below the F10 numbers (go/f10-camera-power-gtw).

Refer to ag/27238472 and ag/27255676

Bug: 342502377
Test: GCA photo capture
Change-Id: Iefe755e64e2e5bd6858f13adb4be7533c6b3e611
2024-05-24 04:00:08 +00:00
Pointer Kung
0efca5ac37 Disable CDPreferIdle, set DSUMin to 610MHz for 60fps
With MulticamRoutingNode on RT, the performance is no longer impacted by
having CDPreferIdle disabled. Additionally, this CL reduces DSUMin to
610MHz, saving overall up to 50mW in CPU power.

Refer to ag/27091363 and ag/27105186

Bug: 342502377
Test: Build pass
Change-Id: I49c8a5aad237c76582388545ff83d44d440d84a0
2024-05-24 03:52:17 +00:00
Pointer Kung
efae9635e1 Increase SPC thresholds for 60fps
This CL increase SPC threshold for little core to 55, and for mid core
to 32. Tests show that in a loaded scenario, framedrop rate can reduce
to almost zero, while not impacting the power in the unloaded (baseline)
scenario.

Refer to ag/27032799 and ag/27078536

Bug: 342502377
Test: Build pass
Change-Id: I9c50b58483cb5262c3550cb45907cbe522eb4e5a
2024-05-24 03:46:57 +00:00
Pointer Kung
f5e293b0e4 Increase SPC threshold for little and mid cores for CAMERA_STREAMING_STANDARD
SPC threshold is too low for both Little and Mid cores. This CL increases this
threshold to 55 for Little Core and to 30 for Mid core.
Test results show lower framedrop rate in presence of background load,
without having a negative impact on the power.

Refer to ag/26943567 and ag/27018139

Bug: 342502377
Test: Build pass
Change-Id: I593b9ca4f85e844ebacdb8606147d51c9d8926da
2024-05-24 03:42:13 +00:00