Commit Graph

1275 Commits

Author SHA1 Message Date
Yichi Chen
5e56e985f6 HbmManager: Configure compensation_filter_horizon to 3500
Current user study suggested that we increase the response time and also
the threshold for the compensation images. The patch increases the
filter horizon to 3500 and changes the first level to 15k lux.

Bug: 161650321
Test: User study
Change-Id: I00b5a659798550ef8c2788b45ed9d400aa22b6ad
2020-07-23 14:57:57 +08:00
Midas Chien
10cebb86c3 Merge "redfin: enable idle timer with kernel support" into rvc-d1-dev 2020-07-08 04:24:10 +00:00
Midas Chien
e408bbf6d5 redfin: enable idle timer with kernel support
Enable display kernel driver idle timer, which allows dropping to lower
refresh rate earlier and without additional overhead.

Bug: 160682800
Test: track idle timer through systrace
Test: zone test, scrolling
Change-Id: I6e82b58026d7b31cf0cabc0db7bb6277f6731d12
2020-07-08 00:13:12 +08:00
Jack Wu
500b0647da dumpstate: dump logbuffer_device in dumpstate
Bug: 159680802
Test: check dumpstate result
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: If10d5b654e4e39747a29cfd23fdf6b7b658a007d
2020-07-07 10:09:21 +08:00
Joe Huang
76bc9dade9 Include gnss_antenna_info.conf
Since R3 and B5 have different antenna patterns, separating this config.

Bug: 160089647

Test: Ensure ANTENNA_INFO is enabled and VTS is PASS
Change-Id: I862b1237053d075ef137f832a90c1bc870e1e341
2020-07-06 10:26:19 +00:00
Miller Liang
e309323171 Merge "audio: add delay settings for playback and capture" into rvc-d1-dev 2020-07-06 09:09:36 +00:00
TreeHugger Robot
ba806d61c6 Merge "Revise the Bluetooth SAR table name" into rvc-d1-dev 2020-07-06 09:01:36 +00:00
Fo Lee
5c4f5be24a Merge "Add Camera profiler CamNode log" into rvc-d1-dev 2020-07-06 08:35:08 +00:00
millerliang
1e84ccdc30 audio: add delay settings for playback and capture
AudioTrack/AudioRecord timestamps are off by 30ms
when tested with the Clarity app

Bug: 158430162
Test: Manual test with Clarity apk
Signed-off-by: millerliang <millerliang@google.com>
Change-Id: I5ce5027badcf4de9f5047936a3575baef421d26c
2020-07-06 16:33:34 +08:00
More Kuo
48e0a14674 Revise the Bluetooth SAR table name
Revise the Bluetooth SAR table name for naming simply

Bug: 160414534
Test: Manual
Change-Id: Ibc358c1d6e02b0a03ecac67397698917bafa14cf
2020-07-06 11:47:57 +08:00
Fo Lee
2cd2648d44 Add Camera profiler CamNode log
In order to clarify and improve video jank problem, we plan to add
some CamNode log into bugreport

Bug: 158243741
Change-Id: Idb1cf97c321027cdc7651700d32fe0cb92ab016b
2020-07-06 10:06:37 +08:00
Yichi Chen
6e02bc5880 HbmManager: Support R3-specific configurations
The patch provides the compensation images and threshold configurations
for R3.

Bug: 151886711
Test: Enale HBM and check compensation layer

Change-Id: Ibf0cc557d385953beea28f7af6b18e3940882250
2020-07-03 14:56:51 +00:00
TreeHugger Robot
b1534fba3a Merge "vibrator: Update haptic tuning setting V4(IMU)" into rvc-d1-dev 2020-07-03 13:53:07 +00:00
TreeHugger Robot
2f77af1205 Merge "Add the Bluetooth SAR table for JP" into rvc-d1-dev 2020-07-03 11:19:43 +00:00
eddielan
fdd1bdfd4d vibrator: Update haptic tuning setting V4(IMU)
Click 1: [vibrator.hal.effect.strength1]: [275]
Click 2: [vibrator.hal.effect.strength2]: [550]
Click 3: [vibrator.hal.effect.strength3]: [600]
Click 4: [vibrator.hal.effect.strength4]: [900]
Click 5: [vibrator.hal.effect.strength5]: [1120]
High motion: [vibrator.hal.steady.strength1]: [2000]
Non-motion: [vibrator.hal.steady.strength3]: [1000]

Bug: 160444095
Test: Build Pass
Change-Id: Ied7f75d7d6b5b5a23e4cc42d323f05ecb3001c00
2020-07-03 17:15:15 +08:00
Ted Wang
bd7d63f5b4 Add the Bluetooth SAR table for JP
Add the Bluetooth SAR table for JP and update SAR table for EU, US and
the defautl table

Bug: 160414534
Test: Manual
Change-Id: Ic3523e2ba20d92a23e3e7d0aa3e7b1cdc3cbe868
2020-07-03 14:17:36 +08:00
juyuchen
6fa426c3b7 audio: update cs35l41 speaker bin files
Changes are
 - PICL enabled.
 - Correct values entered so that this will operate as a default calibration file for service centers

Bug: 153562615
Test: manual audio tests

Signed-off-by: juyuchen <juyuchen@google.com>
Change-Id: I299a311ef22dde2909b83442d708cc29a62f235a
2020-07-03 13:35:30 +08:00
TreeHugger Robot
7c720acf0f Merge "audio: update mixer paths table" into rvc-d1-dev 2020-07-02 15:39:52 +00:00
Jason Hsu
b6381ebe00 audio: update mixer paths table
Mixer Path:
Added the VP Brownout feature config

ACDB:
1. HESWB: SFR adjustment
2. acdb id 7 compress offload: apply de-vib tuning
3. HHWB/SWB: Rx distortion fine tune
4. HASWB: SFR adjustment
5. HEWB SFR adjustment
6. Adjust HASWB BVE boosting gain

Bug: 145244105
Bug: 160379276
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I839bd4c08c2c2482b3391ab5e03a4c7424db5080
2020-07-02 14:08:22 +08:00
TreeHugger Robot
3671637565 Merge "vibrator: Update haptic tuning setting V3(IMU)" into rvc-d1-dev 2020-07-01 15:00:25 +00:00
eddielan
b0d28c30f8 vibrator: Update haptic tuning setting V3(IMU)
Bug: 160290874
Test: Build Pass
Change-Id: Icdc1db946e26e83a87c2373c7c2c48e353545846
2020-07-01 18:06:49 +08:00
TreeHugger Robot
464cd081d1 Merge "Revert "audio: temporarily disabling auido-ull-playback feature"" into rvc-d1-dev 2020-07-01 10:04:47 +00:00
TreeHugger Robot
61e0c4f8cb Merge "vibrator: Correct the device version comparison" into rvc-d1-dev 2020-07-01 07:28:33 +00:00
Edison Chou
a9f2faa766 Merge "Disable AoD by default" into rvc-d1-dev 2020-07-01 01:48:31 +00:00
edisonchou
2abecb3b1d Disable AoD by default
Follow legacy Pixels to disable AoD

Bug: 149363453
Test: Check if AoD is off by default
Change-Id: I8b10493ab55e98a6fb67ff39d0b76d360e1d92f0
Signed-off-by: edisonchou <edisonchou@google.com>
2020-06-30 08:32:45 +00:00
chasewu
c690b7248c vibrator: Correct the device version comparison
1. Correct device version comparison method
2. Support proto device to use previous target G

Bug: 157610908
Test: use proto and dvt device to check it
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: Id5de9f6de3788284cd56908b3189b1f8cefc8ab4
2020-06-30 16:18:38 +08:00
TreeHugger Robot
2128cd8b63 Merge "thermal: Add camera-critical tz" into rvc-d1-dev 2020-06-30 05:28:41 +00:00
TreeHugger Robot
a8ba718dc3 Merge "thermal: Update thermal control prop" into rvc-d1-dev 2020-06-30 03:44:33 +00:00
YiHo Cheng
6693fbff1a thermal: Update thermal control prop
- Allow thermal prop to disable/enable skin-therm-cpu tz.
- Allow thermal prop to disable/enable camera-critical tz.

Bug: 156569397
Test: check skin-therm-cpu tz can be disabled/enabled via thermal control
prop.
Test: check camera-critical tz can be disabled/enabled via thermal control
prop.

Change-Id: I0df1dc18552e33552575d0ff346f2f461e85c63c
2020-06-30 02:51:59 +00:00
Justin Weng
41df54e7f8 Revert "audio: temporarily disabling auido-ull-playback feature"
This reverts commit 845e4be94dd6617f9061bd98ee062ce7de17fefe.

Reason for revert: The tuning for vibration control is done.

Bug: 155831461
Test: Verify by H/W

Change-Id: I8adc2df69bc46f0a90bcd0c8687124454f126db7
2020-06-30 01:31:27 +08:00
Jason Hsu
f07e4d4ad0 audio: update acdb table
Change list is as below:
1. Handsfree SWB
    - RX modify DRC
    - BVE on
2. BTNB / BTNB-NREC / BTWB / BTWB-NREC Uplink
    - WB IIR: modify for SFR
3. Handset Smoothing tuning Downlink
    - HANB: max-1 / max-2
    - HAWB: max / max-1 / max-2
    - HASWB: max-1 / max-2
4. Camcorder
   - Upgrade the WNR version from 1.0.2 to 1.0.6
   - Update the WNR parameters in camcorder use case ID 61~66
   - Update the SURREC parameters in camcorder use case ID 61~66
   - Update the IIR parameters in camcorder use case ID 61~66
   - Update the Mic Gain parameters in camcorder use case ID 61~63

Bug: 159768812
Bug: 156513851
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I663d41fe87e528aa2ec478744142806aee2086ba
2020-06-29 14:14:23 +08:00
YiHo Cheng
7dd0b74437 thermal: Add camera-critical tz
- Add camera-critical tz for 4K 60 and setting critical severity
threshold as 46.5C(47C + 1C offset - 1C transient - 0.5C buffer)
- Follow legacy hysteresis 1.9C

Bug: 156569397
Bug: 159102998
Test: dump and check thermalhal camera-critical threshold
Change-Id: If3c1309dbe290e1d3f767019c07f470afc88c111
2020-06-23 21:52:53 +08:00
TeYuan Wang
60f2a7bd30 thermal: adjust thermal shutdown threshold
Acocording to the redfin EVT thermal virus test. When skin-therm is
53 degC, the max surface temperature is only 53degC. So, adjust shutdown
 threshold to 55 degC and emergency threshold to 53 degC to improvide
the UX.

Bug: 153850974
Test: Test thermalhal shutdown by emul temp
Change-Id: Ia3813e9aa4c7848d1df0a31074534e2870f6b132
Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-06-23 14:53:35 +08:00
Evan Laird
4468efc8e2 Redfin corner updates
Bottom corners on this device are non-square, so rounded_corner_bottom
reflects that.

- Status bar set to 145px (52dp)
- Updated bottom and top paths
- Status bar top padding set to 2dp for better centering of icons

Test: visual
Bug: 156017682
Bug: 156017028
Bug: 156016494
Bug: 157612517
Change-Id: I0883b97569e7174bf2a67611ca03137da2f37894
2020-06-19 18:47:00 -04:00
vincenttew
2500653beb audio: update audio table
change list:
1. add voip bt sco/sco-wb/sco-swb echo reference
2. fix indent in mixer table

Bug: 157877037
Test: build pass
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I3379a76f7fd35ebaf7e96e31bbad4686e709897b
2020-06-18 07:07:24 +00:00
TreeHugger Robot
1878ad827d Merge "vibrator: Update property naming rule" into rvc-d1-dev 2020-06-18 03:18:35 +00:00
Jack Yu
349b2e5dae Allow to disable NFC polling in redfin am: 724a37a542
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11807221

Change-Id: If6cb889cbaa4bc170b0ac7f944b4f5efd8296ca8
2020-06-17 15:52:48 +00:00
chasewu
46d645318c vibrator: Update property naming rule
Bug: 158802146
Test: manual check properies value
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I2a092f79ca8105dc175ba026561234ce553da933
2020-06-17 16:37:47 +08:00
Jason Hsu
54ea660f52 audio: update acdb table
change list:
1. De-vibration tuning in Handset NB/WB/SWB
2. Align TMUS Handset VoIP tuning to Generic

Bug: 159178918
Test: verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I9d3b5714b3dd7b133be854a157e168efc022148d
2020-06-17 12:15:02 +08:00
TreeHugger Robot
a61b972515 Merge "Exclude unavailable features from AOSP build" into rvc-d1-dev 2020-06-17 02:19:03 +00:00
Ken Tsou
2fb7619cfd dumpstate: add battery eeprom to dumpstate
sync ag/10382199

Bug: 149979769
Test: trigger dumpstate and check battery eeprom data
Change-Id: I390bcf599fd232371963b8a3b2cfb282dca05808
Signed-off-by: Wasb Liu <wasbliu@google.com>
Signed-off-by: Ken Tsou <kentsou@google.com>
2020-06-16 09:40:20 +00:00
Chungjui Fan
737730c4a2 Exclude unavailable features from AOSP build
Failed Items:
testDelegatedCertInstallerDeviceIdAttestation
testDeviceIdAttestationForProfileOwner
testLocationFeatures

Bug: 155943720
Bug: 159095429
Test: Tests pass for these failed items
Change-Id: I332c38b612fc136c0ec1b3fe0d35f3e96b1cd8fd
Signed-off-by: Chungjui Fan <chungjuifan@google.com>
2020-06-16 15:14:16 +08:00
Jason Hsu
b19567794e audio: update audio table
audio_platform_info.xml:
Modify Record acdb id path
<device name="SND_DEVICE_IN_USB_HEADSET_MIC" acdb_id="44"/> => From 4 to 44
<device name="SND_DEVICE_IN_VOICE_RECOG_USB_HEADSET_MIC" acdb_id="143"/> => New add

ACDB:
1. HAC FB fine tune from Annie
2. HE Recording (acdb id :44) modify
 - Change Recording topology to AUDIO_TX_MONO_COPP_MBDRC_V4
 - Apply parameter, 18dB gain in Audio Mic gain , and pre-gain set to 0x1 in IIR

Bug: 158717246
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I2fd20bdccd344807b4b98ec389088318345ff5b9
2020-06-16 01:37:34 +08:00
Jack Yu
724a37a542 Allow to disable NFC polling in redfin
Config overlay in redfin to allow disable Nfc polling with
setReaderMode().

Bug: 157173627
Test: build pass
Change-Id: Iffdef5bd3582c8fb7a983dccce0fb66b6caa6c47
2020-06-15 09:27:36 +00:00
More Kuo
28fda48381 Add the default Bluetooth SAR table for ROW
1. Add the new Bluetooth SAR table as default table for ROW (default fall
   back version when there is no SKU+RegDomain match in other csvs).
2. Rename bluetooth_power_limits_redfin_ce.csv to
   bluetooth_power_limits_redfin_eu.csv

Bug: 158774295
Test: Manual
Change-Id: Ib3f43978ee2ac86d46ab4e66635039d7ec66b9f2
2020-06-12 10:55:22 +08:00
Jason Hsu
3b13583bb5 audio: update audio tables
1. acdb's change list is as below
  - Handset NB/WB/SWB/FB EPD-Offset to fine tune EC performance
  - Handheld WB EPD-offset to fine tune EC performance
  - Ringback tone: MBDRC modification
  - Handheld FB: update tuning for DT & EC
  - Handheld NB/WB: optimize BVE parameters

2. mixer's changelist
  *** The mixer modification was based on b/145244105 comment #63.
  - change the EC reference from TDM-RX to TDM-TX (align with B5S5) in Handheld voice call & VoIP. Details is as below.

    <ctl name="ASPTX1 Slot Position" value="1" />
    <ctl name="R ASPTX1 Slot Position" value="0" />

    <path name="echo-reference">
        <ctl name="AUDIO_REF_EC_UL1 MUX" value="QUIN_TDM_TX_0" />
        <ctl name="EC Reference Channels" value="Two"/>

    <path name="echo-reference speaker">
        <ctl name="AUDIO_REF_EC_UL10 MUX" value="QUIN_TDM_TX_0"/>
        <ctl name="EC Reference Channels" value="Two"/>

    <path name="voicemmode1-call speaker">
        <ctl name="VOC_EXT_EC MUX" value="QUIN_TDM_TX" />
        <ctl name="QUIN_TDM_RX_0_Voice Mixer VoiceMMode1" value="1"/>
        <ctl name="VoiceMMode1_Tx Mixer PRI_TDM_TX_0_MMode1" value="1"/>
    </path>

Bug: 158623210
Bug: 156513851
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I3ddd419a1d7da76841dd58889de36769e48c1f74
2020-06-10 09:42:57 +00:00
Jason Hsu
445011aaad audio: update audio table
1. For mixer_paths_noextcodec_snd.xml,
    a. Change gain setup from 0dB(value 23) to 22dB(value 52) of path name "voice-rec-mic".
    b. Add strings for gain visibility of path name "handset-stereo-dmic-ef".
    c. Change gain setup from 13dB(value 40) to 22dB(value 52) and add strings for gain visibility of path name "voice-rec-dmic-ef".
    d. Change gain setup from 0dB(value 23) to 22dB(value 52) of path name "three-mic".
    e. Change gain setup from 0dB(value 23) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-mic".
    f.  Change gain setup from 13dB(value 40) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-stereo-mic".
    g. Change gain setup from 0dB(value 23) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-three-mic".

2. For audio_platform_info_noextcodec_snd.xml,
    a. Apply acdb id_144 for SND_DEVICE_IN_VOICE_REC_DMIC_STEREO.
    b. Update "microphone_characteristics" and "input_snd_device_mic_mapping" to fit R3 configurations.

Bug: 145244105
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I5cc6c87c0a4cf100e993fce1906a253966bc564c
2020-06-10 15:15:56 +08:00
Super Liu
ac3ffc70ec dumpstate: change touch output data format
Bug: 144326854
Test: check bugreport output data
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I0b240e1488a8319c9472a68bf82476b71614c881
2020-06-10 15:15:50 +08:00
chasewu
9f4c9b3752 vibrator: Dynamically support different HW stage device
Since EVT and DVT devices were applied different target G values,
we have to add a workaround to support this condition.

Bug: 157610908
Bug: 157714236
Bug: 154788092
Test: manual check logs
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I5d534d44a6f765250f16a13cc7bb9ccecc120f99
2020-06-10 15:15:15 +08:00
Willy Hu
a42dffa999 [R3] ril: Add null check when strtok_r return
Symptom:
We meet the issue about the incomplete log, when we
process covert to pcap file, it will cause to crash
due to strtok_r return null pointer.

Log:
2020-05-27 20:48:33.058 0000 00 0e b6 00 00 02 00 0e b6 00 00 01 86 DD 60 03 22 0a 00 28 06 40 20 01 b4 00 e3 06 1b 5b a3 67 54 1f b6 41 76 ac 20 01 b0 00 01 68 00 00 00 00 00 00 00 00 00 02 bf d0 03 55 d3 ec 6a 8f 00 00 00 00 a0 02 ff ff 0c b5 00 00 02 04 05 a0 04 02 08 0a 36 45 3b 33 00 00 00 00 01 03 03 08
// it's incomplete log as below
2020-05-27 20:48:33.

Bug: 157973383
Test: 1. We can reproduce this issue by using incomplete log as above
         description.
      2. Manual trigger bugreport with incomplete log and the symptom
         of crash is gone.
Change-Id: I9a69104a1d354da8e732b6c6d7fbe675d2863ed3
2020-06-08 17:19:35 +08:00