Commit graph

907 commits

Author SHA1 Message Date
Super Liu
98b7e8c9a5 dumpstate: support CM2 data dump for touch. am: d13f6ec6d9
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15447535

Change-Id: Icc5ce8877de0fdbc9655d9a093b40cf1f3624584
2021-08-04 05:44:33 +00:00
Super Liu
d3e2787491 dumpstate: support CM2 data dump for touch.
This also change the sequence of run_rawcap_read_all
and run_self_rawcap_read_all to last. Because these
two commands need to run selftest first to read data,
this will make ambient update to make other raw data with
differen baseline.

Bug: 195111369
Test: check touch data in bugreport.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I4693b099fbc98d80fbe166525773e3ab803c98d8
2021-08-04 05:28:30 +00:00
Vinay Kalia
7671cae77c Support height/width swap am: 2678bd66df
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15453818

Change-Id: I2c8995a22a177490011aaa3a247ba89f3a21acb7
2021-08-03 17:37:24 +00:00
Vinay Kalia
4f62d6b733 Support height/width swap
Enable support for height/width swap so that vertical videos
with supported resolution can be played with HW AV1 decoder.

bug: 195409679
Test: AV1 video playback in vertical as well as horizontal orientation.

Signed-off-by: Vinay Kalia <vinaykalia@google.com>
Change-Id: I939f6a0dc432f6b1c92a1e818647afb66c20d856
2021-08-03 17:15:51 +00:00
Ruofei Ma
c5de29f7ec Publish performance points for 720p video am: 36fe57b6e7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15434512

Change-Id: Ibceb35c4d4f41b479b66586237855621c8a4b7f5
2021-08-03 15:53:39 +00:00
Ruofei Ma
d2e0f9f79b Publish performance points for 720p video
Publish performance points for 720p video. This fixes
a CTS testcase.

Bug: 195356114
Change-Id: Iddd8e3ed5edbdf35735fa679ab516a5f84bbdb0e
2021-08-03 15:36:09 +00:00
Stephane Lee
f993bd335e Create one-shot clear for Trickle-Defend am: e2177825d3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15420187

Change-Id: I96c14b2c2bee91dd138e3df586680ae00325022c
2021-08-03 00:34:51 +00:00
Stephane Lee
75619b9882 Create one-shot clear for Trickle-Defend
Test: Ensure there are no sepolicy/permissions errors
Bug: 194447428
Change-Id: Ie295e33967edc3294e1bf6d2192639d6b0377659
2021-08-03 00:20:07 +00:00
George Lee
4852441b1e bcl: enable batoilo thermal zone am: 2da01e03b7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15415375

Change-Id: I2f59a0528641db9b46db9cc00380335ac508ec64
2021-07-30 21:05:19 +00:00
George Lee
433a2566e6 bcl: enable batoilo thermal zone
Enabling batoilo thermal zone.
Reduced soft_ocp_warn per bug 184739333.

Bug: 194240210
Test: Local test: flash and boot
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I4cad70946af1cd8ffd2131df9f505dac49b8c8f8
2021-07-30 20:49:41 +00:00
Lisa Liu
2fae219f92 gs101: Start bootanimation explicitly. am: d0d93ba55f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15427350

Change-Id: I9871829fadac217984b6016bb110fed1245b7dfd
2021-07-30 14:17:29 +00:00
Ryan Chu
81122b43d2 Updating the default layouts for factory image
Add 3 Apps to the home screen hotseat

AndroidTestTool
LabelBarcode
BatteryChargeTool

Bug: 194880256
Change-Id: I52c77ac7bbcd5e7bded9ea8687bda14f7aa7e4f9
2021-07-30 06:20:26 +00:00
Lisa Liu
d79a11550b gs101: Start bootanimation explicitly.
Start bootanimation explicitly by name. Let animation start before
surfaceflinger to avoid the condition ctl.start bootanim queued after mount_all command.

Bug: 193726798
Bug: 191910503
Test: boot test
Change-Id: Id0d276ac8bca39c6ac1dae2b2d542107a9522b91
2021-07-30 14:08:15 +08:00
chened
7e2a8f38b1 camera: re-enable ebuf for factory build
Test: build pass
Bug: 192041653
Change-Id: I39b7a244c5b511c02892e5bafcb684dd4d07a308
2021-07-30 04:16:51 +00:00
Tom Hsu
768c6c5d3b Revert "Disable TTY as it is not supported on these devices." am: 3dd20c16d4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15416424

Change-Id: Ie67da23efe093ece76530621611e2cd20b3350d1
2021-07-30 02:25:55 +00:00
Tom Hsu
fbf3ed5d4c Revert "Disable TTY as it is not supported on these devices."
This reverts commit ce6f6da1587615240b7cd2582209c6838cb3bec8.

Reason for revert: Due to b/194243206, TTY shall keep supporting for WCDMA/GSM devcie. Thus revert this CL for pixel 2021 and after.

Bug:194243206
Test: b/194243206#comment22
Change-Id: I650eb50a12bebcd55d04a4ab18bf1d78480a0af5
2021-07-30 02:06:55 +00:00
Bart Van Assche
0d0c125d57 init.gs101.rc: Reduce the queue depth for /dev/sda am: 0a5e639661
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15394230

Change-Id: I98cd726e6a550ea77703463d536e7e21be769e2d
2021-07-29 21:45:23 +00:00
Bart Van Assche
864a08d3a7 init.gs101.rc: Reduce the queue depth for /dev/sda
Use the default chosen by the block layer (64). The purpose of this patch is
to reduce storage latency. Without this patch:

 # grep -aH . /sys/block/sd*/queue/nr_requests
/sys/block/sda/queue/nr_requests:256
/sys/block/sdb/queue/nr_requests:64
/sys/block/sdc/queue/nr_requests:64
/sys/block/sdd/queue/nr_requests:64

With this patch applied:

 # grep -aH . /sys/block/sd*/queue/nr_requests
/sys/block/sda/queue/nr_requests:64
/sys/block/sdb/queue/nr_requests:64
/sys/block/sdc/queue/nr_requests:64
/sys/block/sdd/queue/nr_requests:64

Bug: 194450129
Test: Built Android images and installed these on an Android phone.
Change-Id: I236874f3791d62a2d5faf0d37a149025639f5c4a
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
2021-07-29 13:31:50 -07:00
David Chao
3e6c40cd69 dumpstate: dump state2power table am: bac5bc98ae
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15151834

Change-Id: I70dcd09ff5fe062a674e99ea706c558aeec66bd7
2021-07-29 07:40:25 +00:00
David Chao
e00e552787 dumpstate: dump state2power table
Dump state2power table in cooling_device

Bug: 189488358
Test: local test and state2power table can be dumped.
Change-Id: Ifb9a8e41158c5452b2f6e856d30ac97011460298
Signed-off-by: David Chao <davidchao@google.com>
2021-07-29 07:13:33 +00:00
Rick Yiu
5c70b6daf4 gs101: Disable system group boost in off charger mode am: 2dd7f1765a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15396511

Change-Id: Ia48f6bb7dd5073b11f8de03386e3049251ee5b90
2021-07-28 01:41:12 +00:00
Rick Yiu
e05964f062 gs101: Disable system group boost in off charger mode
Bug: 193192017
Test: build pass
Change-Id: Ieb5ff22808f22eb5796950d427986f352d748839
2021-07-28 01:24:48 +00:00
Andrew LeCain
b16a072975 Set owner for mfg_data partiton. am: 7493d01817
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15388682

Change-Id: Ia188b1b103903395e486c52d65ae3d8d9c391842
2021-07-27 21:50:27 +00:00
Andrew LeCain
20c4f4090c Set owner for mfg_data partiton.
Enable the FP HAL to read from the mfg_data partition chowning to system

Bug: 193549276
Test: sideload cal with valid signature. auth. enroll.
Change-Id: I0897e545dc368782587ae031716012a806d05485
2021-07-27 21:32:11 +00:00
Badhri Jagan Sridharan
537a913a55 gs101: recovery: Set maxpower to allow charging from SDP port am: 211495c86a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15388681

Change-Id: I040befa12318da8bea09c24273974187c701059e
2021-07-27 20:29:21 +00:00
Badhri Jagan Sridharan
a7c0b48fc4 gs101: recovery: Set maxpower to allow charging from SDP port
Leaving maxpower at default i.e. 2mA prevents the phone from
charging from SDP ports. Setting this to 900mA. Kernel would
then set the current limit to 500/900mA based on the configured
speed.

Bug: 194722479
Test: Boot to recovery; Through uart cat maxpower;
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I763c70eb5d19f74e6e846155af69c25ca3e91f85
2021-07-27 20:07:58 +00:00
Max Kogan
1d0d03de75 Add AoC wakeup stats to dump state am: 360ad16d6a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15393903

Change-Id: Ia2d677e1994869e08622b02df07aa78a571d6d4d
2021-07-27 19:44:07 +00:00
Minchan Kim
798e375d64 gs101: increase swap size am: e7ea5deba6
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14824045

Change-Id: Ic2813eb414f4fd05744e1eeba50050a8b47ea3f6
2021-07-27 19:44:00 +00:00
Max Kogan
e1039ea565 Add AoC wakeup stats to dump state
Need wakeup stats to track AoC to AP messages resulting
in frequent wake-ups.

Bug: 192668026
Change-Id: I99cca607d74b63a974d0b89bc0ba14022bcc22ec
2021-07-27 19:23:05 +00:00
Minchan Kim
c0f6127a16 gs101: increase swap size
Since we have 8G/12GB ram, increase swap size from 2G to 3G
since 3G swap shows best result.

note: we had used 2G swap for even 4G ram devices.

Bug: 187488125
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Iea8ab1126c378cd02a89c2ef982262431c894487
2021-07-27 19:08:10 +00:00
Jack Wu
fddbb1cb32 add permission for pca charge_stats access am: 29057d5010
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15359875

Change-Id: I3b17c5c5b9bff2edab5982938176d7831f3ae42f
2021-07-27 02:29:16 +00:00
Jack Wu
b089995845 add permission for pca charge_stats access
Bug: 194386750
Test: no Permission denied while accessing the file node
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: Ia399e59a2f7098147522161d5c7458545febfb77
2021-07-24 06:42:51 +00:00
Ankit Goyal
fc6dd232e6 Include memtrack in product packages am: 77e2cdea93
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15268977

Change-Id: Id562576c57e02855dcbfa480508125f4f343d971
2021-07-23 21:24:50 +00:00
Ankit Goyal
099ff5167b Include memtrack in product packages
Bug: 191966412
Test: adb shell dumpsys meminfo
Change-Id: Ie521d242274502d70d228faeab0727abee5284b4
2021-07-23 20:52:52 +00:00
Meng Wang
3c9f24ac5d Move CDMA feature XML inclusion to device specific mk files am: 412fc665cc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15363243

Change-Id: Id9fac3fdac90b450b977977bb395f007ebae4a88
2021-07-23 18:18:26 +00:00
YiHo Cheng
44dae94fde thermal: Update usb_pwr_therm2 emul_temp control am: 25ab176251
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15359876

Change-Id: I5b446bbdfa9d8ba1bc649f53aa5f80a2c2c75684
2021-07-23 18:17:48 +00:00
Meng Wang
fbb1a572a1 Move CDMA feature XML inclusion to device specific mk files
So devices not supporting CDMA don't include the feature by mistake.

Bug: 194307361
Test: inspect build artifacts - telephony.cdma.xml is included
Change-Id: I0fe3a3624d2cda2b57347402d62e8a16513174e5
Merged-In: I0fe3a3624d2cda2b57347402d62e8a16513174e5
(cherry picked from commit d808d99ce089ca4c7ff4e2abe8ee76b4eeb38a64)
2021-07-23 17:50:41 +00:00
YiHo Cheng
2bb5a796f9 thermal: Update usb_pwr_therm2 emul_temp control
Update usb_pwr_therm2 emul_temp control to allow
vendor.disable.usb.overheat.mitigation.control to disable/enable
usbc-port throttling to prevent device offline during thermal
mitigation test in lab.

Bug: 194252201
Test: setprop vendor.disable.usb.overheat.mitigation.control 0/1 to
check usb_pwr_therm2 temperature reading

Change-Id: Ia522706ce32bee68596b977a3e526f0b951a95ca
2021-07-23 17:45:41 +00:00
Rick Yiu
02ff983d53 gs101: Add a new profile for camera power tuning am: 1b33e486e7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15283137

Change-Id: Ib1bb4f3d4404a1589e7228c7e997b3c3450aa054
2021-07-23 14:07:45 +00:00
Rick Yiu
853246aeb8 gs101: Add a new profile for camera power tuning
Create CameraServicePower profile.

Bug: 192607122
Test: build pass
Change-Id: Ia4ff63dabc51d449d4b4acc95a2685c10643c509
2021-07-23 13:49:53 +00:00
Devika Krishnadas
8fc20d2788 Update late duration am: 9eee175664
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15337090

Change-Id: I1821280ec9726ccd65ef874904ab0dca77cdd369
2021-07-23 13:41:28 +00:00
Devika Krishnadas
be6acfd1c5 Update late duration
Bug: 192099706
Test: Run UIBench b/194024035
Change-Id: I7954214df1210df19e79308a950cc22d7d96fbe2
Signed-off-by: Devika Krishnadas <kdevika@google.com>
2021-07-23 13:20:29 +00:00
Jack Wu
5d40befa79 move permission for WirelessCharger HAL to init am: c836799f95
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15358310

Change-Id: I1b243285a7741557e806fb0f289c2a22cb3b5d85
2021-07-23 12:28:25 +00:00
Jack Wu
9e5b9c54c0 move permission for WirelessCharger HAL to init
Bug: 194354746
Test: there is no wireless access error
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I2dcc54047129132c38899d5e4310dc7c1ca7bc80
2021-07-23 12:09:26 +00:00
SongFerngWang
8c4fa5514d Overlay the config_network_selection_list_aggregation_enabled am: 2ed78c0fb7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15336318

Change-Id: I67f1c733bce6d1d862127cb455ef53c6c1ab8094
2021-07-23 09:20:17 +00:00
vincechiu
e6fafa1f72 Camera: create three new groups for camera threads am: 8d9f8f0ccc
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15328126

Change-Id: Idbb07b079ec5e8ed71ad89852ac9475348e9f78b
2021-07-23 09:19:54 +00:00
SongFerngWang
373005fd5e Overlay the config_network_selection_list_aggregation_enabled
Bug: 173387374
Test: build pass
Change-Id: I84c899e9c7aae4e4cbd1f76ae3d021b507ea6fb2
2021-07-23 09:05:48 +00:00
vincechiu
f3b644db0c Camera: create three new groups for camera threads
high-group is running on CPU 6-7.
mid-group is running on CPU 4-5.
mid-high-gropu is running on CPU 4-7.
Move camera tasks to CPU 4-7 for 1 seconds when AP launch.

Bug: 194271751
Test: GCA
Change-Id: I8e13e9ad0057b8f42f8ed3958bf0c6d58a5a02bc
2021-07-23 09:03:24 +00:00
Lisa Liu
da77a55be2 gs101: tune vendor_sched parameters for boot time am: 49baab8621
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15268982

Change-Id: Id6ddff161d069282e984e8ce5122940a6731f4bb
2021-07-23 07:00:34 +00:00
Lisa Liu
9a20a9faee gs101: tune vendor_sched parameters for boot time
Set uclamp_min and prefer_idle to sys_group to improve 2nd init
stage boot time performance.
* original
boot_progress_start_avg: 4832.3
* with tuning
boot_progress_start_avg: 4028.75

Bug: 193192017
Test: boot test
Change-Id: I8ebd52fddceadbee22e9a8c75969d52047b2acfc
2021-07-23 06:38:38 +00:00