Commit Graph

1252 Commits

Author SHA1 Message Date
Evan Laird 1dac5f7b58 Redfin corner updates am: 4468efc8e2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11933719

Change-Id: Ib0b85a2295d08eb771222f0ce4af6b1ace471bcd
2020-06-20 21:10:07 +00: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 22ceab1b04 audio: update audio table am: 2500653beb
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11902064

Change-Id: Iab634e584ef56cfaaf2f22920b6ec49128fe72ec
2020-06-18 18:10:31 +00: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 521598b9ae Merge "vibrator: Update property naming rule" into rvc-d1-dev am: 1878ad827d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11881953

Change-Id: Ifa50ed83142009ed7e84ad9429ee7d954fc54df9
2020-06-18 03:27:52 +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 68924f1aad Allow to disable NFC polling in redfin am: 724a37a542 am: 349b2e5dae
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11807221

Change-Id: I0c1b63cb5c55d0e27c937db9443cefa4703a08af
2020-06-17 16:04:26 +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
Jason Hsu 0ae06f2fad audio: update acdb table am: 54ea660f52
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11881946

Change-Id: I4007da8a2ffd6405d77c075caa2b1efc1d0f1745
2020-06-17 10:59:36 +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 587de818ee Merge "Exclude unavailable features from AOSP build" into rvc-d1-dev am: a61b972515
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11863486

Change-Id: I8d7036278f61f3ac83b4ae34a58d559873d5fb1f
2020-06-17 02:33:30 +00: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 bea54fe70a dumpstate: add battery eeprom to dumpstate am: 2fb7619cfd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11818829

Change-Id: I906a9cf12b26b5b3763c60357745abc32efd395c
2020-06-16 09:52:50 +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 728e3f9cb0 audio: update audio table am: b19567794e
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11863478

Change-Id: I9720d1dcd5f3f0464f5bfeb4cc6fa43c828520bc
2020-06-16 01:44:10 +00: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 d0b9676c96 Add the default Bluetooth SAR table for ROW am: 28fda48381
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11833695

Change-Id: Ic19586612679d648fe1341430fd94db0c609b28e
2020-06-12 07:03:08 +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 9f2b041d54 audio: update audio tables am: 3b13583bb5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin/+/11818820

Change-Id: I29d16bf6b502676630d064faf85e9dee296d9106
2020-06-10 16:24:33 +00: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
Leo Liou 363bcf7857 redfin: dumpstate: add UFS err_stats dump
dumpstate_board.txt:
------ UFS err_stats (/vendor/bin/sh ... ------
err_clear_pend_xfer_tm:0
err_eh:0
err_hibern8_enter:0
err_hibern8_exit:0
err_int_fatal_error:0
err_int_uic_error:0
err_linkstartup:0
err_power_mode_change:0
err_resume:0
err_suspend:0
err_task_abort:0
err_vops_suspend:0

Bug: 137150088
Bug: 151790553
Test: run bugreport and capture dumpstate_board
Change-Id: I519d4d751028e127abffcd0230d0e7664aa13386
Signed-off-by: Leo Liou <leoliou@google.com>
2020-06-08 17:19:28 +08:00
Jason Hsu bbd22edaf1 audio: update acdb file
The change list is as below:
1. Enable BVE at HANB/WB/SWB
2. Adjust HASWB Nom FDEQ for RFR
3. Adjust HAC FB
4. Recording (HA_Tri_Mic id46)
    - disable all effect
5.Camcorder
   - Import the WNR module into ACDB.
   - Add the WNR module in the camcorder use case ID 61~66.
6. optimize PTL MPPS  in id 513

Bug: 158043299
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: Ia3bb5766e216419090b15549b140c3372a7178ed
2020-06-08 17:19:22 +08:00
Mark Salyzyn 4507caba1c fastboot/recovery: wait for display
With GKI we find in certain situations the timing of the drivers
loading is delayed as compared to a monolithic kernel.  This
introduces a race where during second stage init, the attributes
inside /sys/bus/platform/drivers/drm_dsi_ctrl might not be set by
the time the menu is painted on the screen.

To address this, we wait for /sys/class/drm/card0 to instantiate.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: make sure user space fastbootd comes up reliably for a GKI kernel
Change-Id: I64c21529c21cdd8c8ad9908c8a57e933549986a5
2020-06-02 18:49:44 +08:00
Mark Salyzyn 3cbff385c0 Insmod script configuration use modules.blacklist
Load all modules except those listed in the modules.blacklist file.
Then load device specific modules that are members of the blacklist.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: fastboot flashall & boot
Change-Id: I88b3f9fa5eb21ae8dfb66bc24ca485ea214914a8
2020-06-02 18:49:39 +08:00
Mark Salyzyn df454bf83c Refactor BoardConfig to simplify maintenance
Move common operations to redbull.

Uses TARGET_BOOTLOADER_BOARD_NAME set here where ever product or
device specific directories are referenced in stanzas move to redbull.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 151950334
Test: fastboot flashall & boot
Change-Id: I4df013924a7566807063bc410fb879d9546f9b6b
2020-06-02 18:49:33 +08:00
Bill Lin 38205c0473 Tuning Redfin rounded anti aliasing corner curve
Test: adb root; adb shell setprop debug.screenshot_rounded_corners true;
      adb shell pidof com.android.systemui |xargs -i adb shell kill -9 {}
Test: manual check visual
Bug: 155372020
Change-Id: Icfa805de1dcc8915e0245ba785d1336fc7a89513
2020-06-02 18:49:28 +08:00
Cyan_Hsieh ee61f152d0 Merge branch 'rvc-dev' into rvc-d1-dev
Change-Id: I6ec66f04fee0d2fd8a1a78b7dad67af40e9f1c62
2020-06-02 18:48:49 +08:00
Yan Wang 6871a58d9f iorap: Enable pinner for camera on redfin
Bug: 157667363
Test: Make
Change-Id: Id2f4c00e77c562ed78ed99b42715acd12f4a0c8f
2020-06-02 18:39:24 +08:00
JJ Lee 1ab04aed6c audio: add mixer paths for call screen mode
Bug: 140384450
Test: build pass, call screen mode functions
Change-Id: Iec1740df2a9b507dc31839a45410cd5e34a2838a
Signed-off-by: JJ Lee <leejj@google.com>
2020-06-02 18:39:17 +08:00
Cyan_Hsieh 9858ca09aa Merge branch 'rvc-dev' into rvc-d1-dev
Change-Id: Id52b0c1a0c7f3c8d1226ead31c543da63c8fd505
2020-05-29 22:05:53 +08:00
JJ Lee 4cd460e1eb audio: update acdb files
Changelist:
  1. Adjust HASWB TX
     - SFR optimize
     - Noise Suppression high band optimize
  2. Modify HAWB
     - The adapt len: 0x000 for response stability

Bug: 157618341
Test: verified by H/W
Change-Id: Ice4d15a5eb032ff1fd50336f25bffe67845d27b5
Signed-off-by: JJ Lee <leejj@google.com>
2020-05-29 21:25:22 +08:00
TreeHugger Robot 4069a166f0 Merge "vibrator: Use interpolation method for non-motion voltage" into rvc-d1-dev
Change-Id: Ibb99217da92f2441eea28fb414839201d5bc5401
Change-Id: I39b057caaa429187080a1490b867581bc62bf2f0
Change-Id: Id09b3a6278aaa96382cc64297a954c583de95a01
Change-Id: Ie3d69a576e518bbc98874fb0adf474d91d93311a
Change-Id: I2c27afbe0b475dd96c0de9482daefcce26b282f1
2020-05-29 21:22:49 +08:00
Ken Huang f188002378 redfin: enable peak refresh rate (90hz)
Enables default setting to 90hz mode, this can be disabled through
Settings app

Bug: 155011573
Test: wipe user settings and check default peak refresh rate enabled
Change-Id: Ieccb820c9bc19e00aa20e3b9dfbe5401c44a88d7
2020-05-29 21:22:49 +08:00
chasewu 0808fdb6df vibrator: Use interpolation method for non-motion voltage
Bug: 156428459
Test: manual check the ol_clamp
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I3ef918098391a08d4ed36e057f6ce093a702d924
2020-05-29 21:22:49 +08:00
TreeHugger Robot abe7c51aec Merge "vibrator: Add an initial value for non-motion vibration intensity" into rvc-d1-dev
Change-Id: I07fa931e44e316e7a1511a5a3cc5f38f7032a0e9
Change-Id: I545530b3d98b8f0c81dc3b2d925e423e27e72dfb
Change-Id: I4f4874d92fbecf338a4f15b526e98d1423d96436
Change-Id: Iee4bcc97fb8f22841dd5762c04bc8a1a3e9db756
Change-Id: I622e02c9d21d563d6337d129aed3920dddc12415
2020-05-29 21:22:48 +08:00
chasewu 6b2456b0d7 vibrator: Add an initial value for non-motion vibration intensity
Bug: 155709426
Test: remove cal file and trigger vibration
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I07e63dc8106a2f5d875b6be665e67e6f8dda9239
2020-05-29 21:22:48 +08:00
Robin Peng 03e0e3863d Merge "audio: update pcmid on speaker calib tx and rx usecase" into rvc-d1-dev
Change-Id: I86d8196d34b54b0d9540df57f7f32a20690e783f
Change-Id: Ic396acbda81fc597fd7d14ab080e3f737f494ca7
Change-Id: I2c8a4ac59d4855e2708e2b742d53dc0af74fe705
Change-Id: If6dda0625f905e011355ec42596669301a2266c7
Change-Id: Ia2ec814158b5542ae439995620bb465fc2c5f16a
2020-05-29 21:22:47 +08:00
yixuanjiang 5ea7630e9c audio: update pcmid on speaker calib tx and rx usecase
Bug: 156714478
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ic1b54057154e0dbef4f7be065682b42af1760df0
2020-05-29 21:22:47 +08:00
More Kuo f45238fb50 Merge "Add the Bluetooth SAR table for EU" into rvc-d1-dev
Change-Id: Iefe830f56e343ef331f29c27659640913b02cbd3
Change-Id: I154525967b02f7cd0e0f376a394e486f15730e43
Change-Id: Ib657b1ba04906f1e9535623bb1900448c233bd1f
Change-Id: Ib6204277ec18a536ddfd0ad9b70eaea3fb3ffbc1
Change-Id: I23774e059fb2ad0a2e258bd248ce9848b49faf4f
2020-05-29 21:22:46 +08:00
TeYuan Wang 9bbc47208d thermal: update init.hardware.chamber.rc.userdebug
To align with the latest thermal policy

Bug: 157109068
Test: thermal throttling can be disabled
Change-Id: I8ddf8ead4e025dd9526a7d789494b25a23fb7e44
Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-05-29 21:22:46 +08:00
More Kuo 426b2479d0 Add the Bluetooth SAR table for EU
Add the Bluetooth SAR table for EU and the default table

Bug: 157267001
Test: Manual
Change-Id: I630ce0f24c2484094e4bd35155ac92c50fffb6f0
2020-05-29 21:22:46 +08:00
Willy Hu 372c141ed7 Merge "ril: [R3] Support traffic stats log convert tp pcap" into rvc-dev am: c44943d8d0
Change-Id: I0f1b9681bcb7052586ff4adbc79d4005749cde39
2020-05-29 21:22:45 +08:00
More Kuo 91f0712b1a Rename the Bluetooth SAR table for US
Rename the Bluetooth SAR table file name according to the Regulatory
domain.

Bug: 156994868
Test: Manual
Change-Id: I1f3ac204f8932c0e497943e092b74e279ac9246a
2020-05-29 21:22:45 +08:00