Commit Graph

657762 Commits

Author SHA1 Message Date
Beverly Tai
e427945a31 Merge "Replace 'use fingerprint to open'" into sc-dev am: bafe3db841
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15421556

Change-Id: Id3dc0de130b7a854aa86b55dc0b8cb35e9792253
2021-07-31 00:30:40 +00:00
Kevin Chyn
d42ea47f6c Merge "Fix condition where FP would require confirmation" into sc-dev am: c52f2f069f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15413720

Change-Id: I49183f60d343afa784c88177983ba93d90321612
2021-07-31 00:30:00 +00:00
Beverly Tai
bafe3db841 Merge "Replace 'use fingerprint to open'" into sc-dev 2021-07-31 00:10:54 +00:00
Kevin Chyn
c52f2f069f Merge "Fix condition where FP would require confirmation" into sc-dev 2021-07-31 00:10:05 +00:00
Ahaan Ugale
e8c8941937 Merge "Hotword: Treat preflight soft denial as granted." into sc-dev am: a13d80321e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15421452

Change-Id: Ie62a94c75c5e5eb382c511d7ba357e70ceb4be82
2021-07-30 22:50:18 +00:00
Ahaan Ugale
a13d80321e Merge "Hotword: Treat preflight soft denial as granted." into sc-dev 2021-07-30 22:37:33 +00:00
Mark Renouf
36d3828498 Merge "Use OnImageAvailableListener to wait for buffer" into sc-dev am: 008af7300c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15411889

Change-Id: I97bba98fa61426efda222b3387cd4af8b07e96c5
2021-07-30 20:50:03 +00:00
Mark Renouf
008af7300c Merge "Use OnImageAvailableListener to wait for buffer" into sc-dev 2021-07-30 20:37:20 +00:00
Martin Brabham
8dc1851c5a Merge "Add implementation for IRK to parcelable functions." into sc-dev am: e0276d9c70
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15405284

Change-Id: I645be72acf0925abd6f7204f740c8dc5f17c53e3
2021-07-30 19:00:42 +00:00
TreeHugger Robot
782080dc93 Merge "Clarify on return value of IC#setImeConsumesInput()" into sc-dev am: 16065df252
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15429835

Change-Id: I9dff9e5641a36c3d1d476b07e28234da58f9f812
2021-07-30 18:59:48 +00:00
Martin Brabham
e0276d9c70 Merge "Add implementation for IRK to parcelable functions." into sc-dev 2021-07-30 18:57:19 +00:00
TreeHugger Robot
16065df252 Merge "Clarify on return value of IC#setImeConsumesInput()" into sc-dev 2021-07-30 18:43:34 +00:00
Li Li
57240b0a67 Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev am: ef12967b75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15395534

Change-Id: I7dd879701d75eda12ef546e5c1da751a82c4c5a6
2021-07-30 16:49:49 +00:00
Li Li
ef12967b75 Merge "Freezer: fix exception when parsing /proc/locks" into sc-dev 2021-07-30 16:35:16 +00:00
Ryan Mitchell
d84bc01f67 Merge "Apply overlay updates to widget provider info" into sc-dev am: f56550282e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15332156

Change-Id: I21983be2cd61b9fdd73db771c5ab394442b859a3
2021-07-30 16:08:12 +00:00
Evan Severson
8df2c049f1 Merge "Check the current user in the system server for SensorPrivacyManager" into sc-dev am: 705c7539eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15420286

Change-Id: I58784d277b7d83e554064323af41f0dade58cd22
2021-07-30 16:07:28 +00:00
Ryan Mitchell
f56550282e Merge "Apply overlay updates to widget provider info" into sc-dev 2021-07-30 16:04:00 +00:00
Evan Severson
705c7539eb Merge "Check the current user in the system server for SensorPrivacyManager" into sc-dev 2021-07-30 15:55:22 +00:00
Bill Yi
52e1cc1b5f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7c6a1b2f87 -s ours am: 14a3d4f5ea -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15430174

Change-Id: Ie082fbb1f91880f2834626117372bc82e79244d7
2021-07-30 15:08:03 +00:00
Bill Yi
14a3d4f5ea [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 7c6a1b2f87 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15430174

Change-Id: Ide9da06929ae5176883f2902e75c3b8f98c48d49
2021-07-30 14:53:59 +00:00
Bill Yi
849141420d [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ff530f0a8d -s ours am: ab93af3c44 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15430176

Change-Id: Ib1b8bcb57c9f2a164d007a5570324d897ae5a336
2021-07-30 14:38:27 +00:00
Zimuzo Ezeozue
db92babb59 Merge "Fix fd leak while bypassing transcoding in media APIs" into sc-dev am: 3fefc5c3ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15423590

Change-Id: Idc2f4c83f95723970d9f9c7eb0b1851e8247fff7
2021-07-30 14:38:18 +00:00
Bill Yi
ab93af3c44 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ff530f0a8d -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15430176

Change-Id: I02d051ef3c6b009679a10c06cdc36d09c4a080e0
2021-07-30 14:32:28 +00:00
TreeHugger Robot
9f00bfc992 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-mainline-prod 2021-07-30 14:29:31 +00:00
Zimuzo Ezeozue
3fefc5c3ed Merge "Fix fd leak while bypassing transcoding in media APIs" into sc-dev 2021-07-30 14:23:48 +00:00
Yohei Yukawa
d8c0b18ea5 Clarify on return value of IC#setImeConsumesInput()
This CL aims to clarify on what the return value of

  InputConnection#setImeConsumesInput()

means for both the IME authors and editor authors [1][2].

In short, the semantics is exactly the same as

  InputConnection#performSpellCheck()

hence this CL reuses its @return section.

Other than clarifying an API doc, this CL changes nothing.

 [1]: Ic04cacfd73f1f4cb254bb16caf6b04c00c91a318
      30fe6aa964
 [2]: I8ac1ea4d53f747b0086ed415ff90793dfc6155bc
      66b21086e3

Bug: 175362887
Fix: 194099171
Test: presubmit
Change-Id: Ibdfe81a9dd1448856797aaed2f14de1314da1cac
Merged-In: Ibdfe81a9dd1448856797aaed2f14de1314da1cac
(cherry picked from commit f9ca70be57)
2021-07-30 13:49:02 +00:00
Bill Yi
ff530f0a8d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifbd45d9bb55f6450da12428e7d14b4d3d2299d86
2021-07-30 10:52:22 +00:00
Bill Yi
0670c6a710 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If3a339f114909df58fa3f6f8c0945160782dea41
2021-07-30 10:49:12 +00:00
Bill Yi
7c6a1b2f87 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifb46839ebfdd3cd2670a7218c5f3955399dc3097
2021-07-30 10:46:03 +00:00
Junyu Lai
4a0f9e5981 Add debug log for tracking NPE of mMobileIfaces am: b8364adc23
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15406353

Change-Id: I055f0a85c41a869b46b8ec91b4d3e23398f559bc
2021-07-30 08:16:48 +00:00
Junyu Lai
4f90370071 Fix mMobileIfaces is not protected by lock am: f5dc09bc7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15283494

Change-Id: I15131f1090b13a7bf7bb30400c9d47d6e8d75cda
2021-07-30 08:16:40 +00:00
Junyu Lai
b8364adc23 Add debug log for tracking NPE of mMobileIfaces
Test: TH
Bug: 192758557
Original-Change: https://android-review.googlesource.com/1777887
Merged-In: Ib048c18b1c64627de5a9d2b04d10e084a014ff64
Change-Id: Ib048c18b1c64627de5a9d2b04d10e084a014ff64
2021-07-30 06:08:30 +00:00
Junyu Lai
f5dc09bc7c Fix mMobileIfaces is not protected by lock
Currently, mMobileIfaces is accessed from multiple threads, and
should be protected from concurrent accessing. However, since the
variable could be accessed frequently, holding the mStatsLock
would make this be blocked by network stats I/O operations.
Thus, protect the variable by making it volatile.

Test: Wifi on/off stress test
Bug: 192758557
Original-Change: https://android-review.googlesource.com/1765686
Merged-In: Ie7694a63f5203ee7c83830ca13d97219b7949fd7
Change-Id: Ie7694a63f5203ee7c83830ca13d97219b7949fd7
2021-07-30 05:59:21 +00:00
Kevin Chyn
30d04e9ec0 Merge "Disable face haptics during coex non-bypass by default" into sc-dev am: bf637195e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15404309

Change-Id: Ibfd5b792823463ce306f83597a558f13c643dca1
2021-07-30 05:34:42 +00:00
Kevin Chyn
bf637195e9 Merge "Disable face haptics during coex non-bypass by default" into sc-dev 2021-07-30 05:20:32 +00:00
Wesley Wang
589b23e1eb Merge "Adjust SystemUI PowerModule" into sc-dev am: 614b1e94ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15390769

Change-Id: I63096233d2732e964238564f6c4bd7c930667e36
2021-07-30 04:24:51 +00:00
Wesley Wang
614b1e94ae Merge "Adjust SystemUI PowerModule" into sc-dev 2021-07-30 04:10:00 +00:00
Kevin Chyn
4815db0d69 Fix condition where FP would require confirmation
Adds IconController#deactivate to allow clean transfer of view
ownership. Now we deactivate the face IconController once we know we
need to animate to the fingerprint state, and use the fingerprint
IconController to display subsequent animations.

This also fixes a hidden issue where the face IconController was
leaking (pulsing logic keeps running) even after BP is dismissed.

Bug: 194351208
Test: manual, for requireConfirmation=true and requireConfirmation=false
Test: atest com.android.systemui.biometrics

Change-Id: Iefd3df7a8706ce9213109862d509235a74aa8099
2021-07-29 18:31:52 -07:00
Kevin Chyn
4a468bd48c Disable face haptics during coex non-bypass by default
Face haptic should still be played when bypass is enabled. Adds test
cases for both paths.

Bug: 193089985

Test: adb shell dumpsys biometric
Test: atest com.android.server.biometrics
Change-Id: I0dd89ee9a63307cd5cef886aded5a7b618c580d7
2021-07-29 16:23:34 -07:00
Jay Aliomer
6f44007d8c Merge "Reset patterned animations when solid ripple is reset" into sc-dev am: 70c0c93542
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15413252

Change-Id: I2216b55386c2e1b720c96ed86a19712aad1d3cbc
2021-07-29 22:10:15 +00:00
Michael Wachenschwanz
36fb9e1ea2 Merge "Log and skip noteEvent calls with null name" into sc-dev am: 0e1ba5a342
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15419007

Change-Id: Ied34ab215d9564dd1858ad5965d13059491edd8a
2021-07-29 22:09:46 +00:00
Jay Aliomer
70c0c93542 Merge "Reset patterned animations when solid ripple is reset" into sc-dev 2021-07-29 22:08:56 +00:00
Michael Wachenschwanz
0e1ba5a342 Merge "Log and skip noteEvent calls with null name" into sc-dev 2021-07-29 21:50:46 +00:00
Beverly Tai
f1d31a1974 Merge "Add gravity center to layout params" into sc-dev am: 98a4967908
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15411507

Change-Id: I8df1d1102ba069748306b7c2f0cb908c9424ab3f
2021-07-29 21:32:06 +00:00
Mark Renouf
6ab3ffa722 Use OnImageAvailableListener to wait for buffer
This eliminates a dependency on having the client wait until a buffer
is produced before invoking the callback.

Bug: 194927650
Test: atest ScrollCaptureClientTest
Change-Id: I9b479217e23b8a7558ecc046a2d5c41156c22baa
2021-07-29 17:09:29 -04:00
Zim
366493edd2 Fix fd leak while bypassing transcoding in media APIs
To call the media service while bypassing transcoding there are 4 file
descriptors involved:

A: The original file descriptor the app owns and is responsible for
closing
B: Dupe of A, to pass into the MediaStore API as an input to receive a
non-transoding fd
C: The output from the MediaStore API
D: Final fd owned by the media service, after C gets duped over binder
as part of setDataSource

We were leaking (B) and (C). Now we close them appropriately.

See I0124ec8fbd0471237e99bab321f903544f8fe1f8 for another 2 fd leak
fix in MediaProvider

Test: atest TranscodeTest
Test: Manual with 'adb shell lsof | grep <filename>'
Bug: 194828489
Bug: 179804072
Change-Id: I978257bbc4a8f6813b6e6a5ce22124257204f432
Merged-In: I978257bbc4a8f6813b6e6a5ce22124257204f432
2021-07-29 22:05:17 +01:00
Beverly Tai
98a4967908 Merge "Add gravity center to layout params" into sc-dev 2021-07-29 20:57:30 +00:00
Jeff DeCew
e38e044460 Merge "Fix bug removing semantic colors of CallStyle notification actions." into sc-dev am: 4203db854f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15405173

Change-Id: Iab8d4e8ad367d1fdddf04ff241accc3fca262f7f
2021-07-29 20:37:15 +00:00
Jeff DeCew
4203db854f Merge "Fix bug removing semantic colors of CallStyle notification actions." into sc-dev 2021-07-29 20:24:37 +00:00
Beverly Tai
5c74ba065e Merge "For devices with udfps, always show bg on udfps" into sc-dev am: d2e60974cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15392265

Change-Id: If1631c1a8d2746b4dcd1692dc9133b8a2bec9847
2021-07-29 20:06:51 +00:00