Commit Graph

684 Commits

Author SHA1 Message Date
Arian
d884716edc
davinci: power: Build HAL
Change-Id: I650e36366cf6e8b368699f63fe82702e89394cf6
2020-08-05 14:03:32 +02:00
vasishath
4979e2c172
davinci: light: Detect maximum brightness dynamically
Change-Id: I9385be40a8598e1142bb3844446b6bbeb5aab008
2020-08-05 14:03:32 +02:00
Demon000
b7413b8791
davinci: light: Simplify alpha scaling logic
Change-Id: I9b5c15d5ec4865d3bf829457d6f110ddb3af6e94
2020-08-05 14:03:32 +02:00
Demon000
25523a776d
davinci: light: Do not turn on breathing for unlit hardware states
Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
2020-08-05 14:03:32 +02:00
Demon000
13a3863832
davinci: light: Avoid resetting state
The handler function is called regardless of whether the value of the
highest priority state changed.
In case of the notification led, this translates to the breathing
process being reset, which triggers my OCD.

Change-Id: I4880b00602cbb739219871f1d7ce9ad85d87bc1b
2020-08-05 14:03:32 +02:00
Demon000
feedda1d84
davinci: light: Avoid uint32_t underflow
Change-Id: If4f9360cc301ee8ba9f432dbbe3379c2c634c574
2020-08-05 14:03:32 +02:00
Demon000
e5440961f0
davinci: light: Properly scale brightness range
Change-Id: I0c7b9d2644bbc67a1d404e60bbb2fcc7d8a305ec
2020-08-05 14:03:32 +02:00
Arian
5af8701925
davinci: lights: Adjust for davincis LEDs
Change-Id: If9e5afe292b023a8aa4d5ba509e206f9a4ff371f
2020-08-05 14:03:32 +02:00
Demon000
3e94ffe9a3
davinci: light: Import HAL from Xiaomi msm8998-common
Change-Id: Ieee4277f15927b4522deaec9a709809cf6db6fea
2020-08-05 14:03:32 +02:00
TheScarastic
06d11196a5
davinci: Make fod color transparent and add custom icon
Change-Id: I0156a30f2d79b773878220ab016936c7208f8250
2020-08-05 14:03:32 +02:00
LuK1337
42d82f7684
davinci: fod: Implement handleAcquire()
Change-Id: Ica796fbd468e2df0ee666a0d0c6cbde628d6989f
2020-08-05 14:03:32 +02:00
Demon000
48c907ba7c
davinci: fod: Frop \n from logs
Change-Id: I1ec1e1bbdb1bf6d034bba05cd653458f04d5e544
2020-08-05 14:03:32 +02:00
xingrz
b5ddfbb07f
davinci: fod: Link vendor.goodix.hardware.biometrics.fingerprint@2.1
Change-Id: I222ceee06955fe6c530b63078bb1734ffecce913
2020-08-05 14:03:32 +02:00
Demon000
4bb20c1ea8
davinci: fod: Use 630nit fod value
Change-Id: Idfbe04e3d54635b610808494a7939beada5b3e4f
2020-08-05 14:03:32 +02:00
Demon000
e456f36fe1
davinci: fod: Improve semantics
* do not use (void) to silence unused parameters
 * do not specify namespace for IFingerprintInscreenCallback

Change-Id: Ife9d0799a091c539028f775a728d2c8c31ffbf98
2020-08-05 14:03:32 +02:00
Demon000
c89dcfb0df
davinci: fod: Remove onRelase calls duplication
Change-Id: I90f9b0a883cfed516998652cf95f4424c8e06b2b
2020-08-05 14:03:31 +02:00
Demon000
7cebc6e538
davinci: fod: Calculate dim amount based on real brightness
Change-Id: I72b7dd1fca426cc442f9a6fa382f413bbaadfc76
2020-08-05 14:03:31 +02:00
Arian
22363a500d
davinci: fod: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I9e535684792d900f50e9f09d550a4762061e090b
2020-08-05 14:03:31 +02:00
Demon000
ac23ec6af9
davinci: fod: Implement in-screen fingerprint HAL
Change-Id: I8fd985bf4eab1747351f9e717cc33fa6d5ab1517
2020-08-05 14:03:31 +02:00
Arian
03c116e1c0
davinci: fod: Import blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I2ebfe9454ff9bce6013e29eb74d8c6bd00225c7d
2020-08-05 14:03:31 +02:00
Arian
3df219168d
davinci: parts: Add icons for popup settings
Change-Id: I30dffa4f9e91d9b76a1d8daefd1da8449bac19bc
2020-08-05 14:03:31 +02:00
jhenrique09
b4dca743ea
davinci: parts: Try to take the motor back on boot when opened
Co-authored-by: Arian <arian.kulmer@web.de>
Change-Id: I36ff53e23221b6704f0fa5e108329722cf71f504
2020-08-05 14:03:31 +02:00
jhenrique09
619c58031f
davinci: parts: Check if motor is busy before doing any operation
Change-Id: I83e383d5f6d3d8e723259bc55945aab48e5acd6c
2020-08-05 14:03:31 +02:00
jhenrique09
65c44dd66e
davinci: parts: Add popup camera sound effects and LED toggle
Change-Id: Iaf66650ae68d2680fa0c9b933f2c4e634bc21e74
2020-08-05 14:03:31 +02:00
TheScarastic
932a2bcad0
davinci: parts: Add support for camera popup light
Change-Id: I531123cc6db5e823490c0c5bcf31bafe068a49f5
2020-08-05 14:03:31 +02:00
TheScarastic
89e3be0eee
davinci: Initial popup camera impl
Change-Id: I9b34ec87715febedfe173e9f9ef5ccdbf7521f35
2020-08-05 14:03:31 +02:00
arian
5d15a19de5
davinci: parts: Add icons for doze
Change-Id: Ibbb18065f97ed6f8f5376752495255aeafe1db82
2020-08-05 14:03:31 +02:00
Arian
8b5675114b
davinci: parts: Import from xiaomi_sdm845-common
e261035d91/parts

Change-Id: I442f48780ca020f3e420ee4ccaf8ac07b05457cb
2020-08-05 14:03:31 +02:00
Arian
494d2c91bd
davinci: bluetooth: Add builcfg
Change-Id: I0caa5eb0e08243eb618669678983b65d9e90651f
2020-08-05 14:03:31 +02:00
Arian
94de6ed2e1
davinci: bluetooth: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: Ie09c75a63aca03aa61f3606f761a8b10ccdf7505
2020-08-05 14:03:31 +02:00
Arian
3e3ea29100
davinci: bluetooth: Import blobs
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: I3b1ca243276045897335b1b26142f27c0f448d06
2020-08-05 14:03:31 +02:00
Arian
ddd2142bf1
davinci: camera: Build Snap
Change-Id: I3b1ca243276045897335b1b26142f27c0f448d06
2020-08-05 14:03:31 +02:00
Arian
310f9d78e5
davinci: camera: Copy hardware permissions from frameworks/native
Co-authored-by: Fabian Leutenegger <fabian.leutenegger@bluewin.ch>
Change-Id: Ief92b2adfec0e365c0a73181cbf4b40c95b36070
2020-08-05 14:03:31 +02:00
Arian
9daef7d18e
davinci: camera: Build libdng_sdk.vendor
Change-Id: I84bd86e25f8be413dbab30da31a6858b109ea147
2020-08-05 14:03:31 +02:00
Arian
c17ce45eaf
davinci: camera: Build camera provider
Change-Id: Ief92b2adfec0e365c0a73181cbf4b40c95b36070
2020-08-05 14:03:29 +02:00
Arian
53f881c9d5
davinci: camera: Import motor blobs
Change-Id: I7b76763a38c2f5777201ed1048307ee63f87b2b2
2020-08-05 14:02:38 +02:00
Arian
e3862f3904
davinci: camera: Import blobs
Change-Id: I6add4b3d7e25d781768b8aa623796ecd7c8f3ef7
2020-08-05 14:02:12 +02:00
Pig
5cdff50fbd
davinci: Include hardware/xiaomi soong namespace
Change-Id: I6a53bc85d9a9c3eb2a7174d868e2bf5f589e478e
2020-06-23 21:54:04 +02:00
Glen Kuhne
888ec201cf
davinci: overlay: Set default hotspot ssid
Added a device specific overlay that changes the default name
from "AndroidAp" to "Xiaomi Mi 9T"

Test: Builds, manually verified name change
Bug: 36368950
Change-Id: I38a5f6fb950d6a45342080bae186a8ed276d94bf
2020-06-23 21:53:27 +02:00
Bruno Martins
578710badc
davinci: overlay: Declare STATE_DOZE support
* This is required for Ambient Display to work properly.

Change-Id: Ibad86be4e1c43a221fc2224d0a8f8ca2c938a6c7
2020-06-23 21:34:11 +02:00
yankarinRG
7e94e6fd04
davinci: overlay: Configure proper rounded corners
- changed out the path defining the software rounded corners to exactly match the hardware curve
- found the radius that would provide the most anti-aliasing without increasing the radius of the corner
- rounded corners should be in px instead of dp, so on display size change corners don't change
- moved some configs to right place

Test: visual inspection. The corners should be perfectly rounded and anti-aliased, without jagged edges
Change-Id: Iecb3d627ed043e99d7ce38c6f214cea90f100c41
2020-06-23 21:34:11 +02:00
eray orçunus
db495ebd60
davinci: overlay: Add 2 more notification icons
Change-Id: I96f218b55426cb5e04e7bc661fe6179d544e97ad
Signed-off-by: eray orçunus <erayorcunus@gmail.com>
2020-06-23 21:34:11 +02:00
Demon000
0ae68275b0
davinci: overlay: Leave space for FOD while bouncer is requesting Pattern on PIN
Change-Id: Iddfa076d92deaec982c5fe8711e155648da89965
2020-06-23 21:34:11 +02:00
TheScarastic
f1291bdf88
davinci: overlay: Adjust Biometric dialog for fod
Change-Id: Ie6cfe2704ec2ba58e0024f583164e123885c0e75
2020-06-23 21:34:11 +02:00
Arian
6e92b6926d
davinci: overlay: Configure light capabilities
Change-Id: I630edcd016d3b6a80aa8d93d15fc3e63617d5b62
2020-06-23 21:34:11 +02:00
Jesse Chan
2dba83cbc2
davinci: overlay: Enable option for full screen aspect ratio
Change-Id: I2a1b2acc5ed97ccb6795dc371c2b3ac9cb4f9d03
2020-06-23 21:34:10 +02:00
Arian
cf6d13786a
davinci: overlay: Define fingerprint position
Change-Id: Ib21d79b955d7dffaa4afd66c83cc111a47ede14f
2020-06-23 21:34:10 +02:00
maxwen
e793668fec
davinci: overlay: Hide sRGB toggle in developer options
* This is only available on Nexus/Pixel devices. Already implemented
   in LiveDisplay for devices that have the proper profile in the
   QDCM calibration file or provide the commands via sysfs node.

Change-Id: I1dbeafdef930bcfeb2b950b3adce293307abff85
2020-06-23 21:34:10 +02:00
Arian
4ea83bdcec
davinci: overlay: Adjust vibration strength
Change-Id: I994fc0e16fe62c89badbf23f871938032d795a19
2020-06-23 21:34:10 +02:00
Arian
7717128b72
davinci: overlay: Enable suspend when screen off due to proximity
Change-Id: I693a9ed7a86a9026b4319d22476431d7d99207b7
2020-06-23 21:33:58 +02:00