Commit Graph

649650 Commits

Author SHA1 Message Date
Josh Tsuji
cb17c9d93c [DO NOT MERGE] Fix DozeScreenBrightnessTest. am: 20d85a91d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15994907

Change-Id: I3e7e18f6c023842eb6de84845246c0a66ff012f0
2021-10-13 13:36:38 +00:00
TreeHugger Robot
3e4479c382 [automerger skipped] Merge "DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes." into rvc-dev am: e3a263bb6d am: b8f14a7db5 -s ours am: 3df34b9f6a -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iafbd0bf180c2b6f1576c804f765621249740b6c1
2021-10-13 13:36:23 +00:00
Janis Danisevskis
8a0a38ebf1 [automerger skipped] DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes. am: 395e56a71c am: b7c5457ce8 -s ours am: 908d3fae61 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6833bbcb302ff7d9488a041aa019b401f7adf670
2021-10-13 13:36:22 +00:00
TreeHugger Robot
6e4e897c77 [automerger skipped] Merge "DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes." into rvc-dev am: e3a263bb6d am: a68d603483 -s ours am: 80dc50df37 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibd4e75945bbabe48c8e0d00c8cd515ad482bc480
2021-10-13 13:35:56 +00:00
Janis Danisevskis
102e8bf3b5 [automerger skipped] DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes. am: 395e56a71c am: 9c6bc472e1 -s ours am: 65cf394942 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ieff39fcb62dc446db4a2d2003ec8d8e3ae799beb
2021-10-13 13:35:55 +00:00
TreeHugger Robot
dfaeda5039 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: ecb92e8968 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I12a0f5e9bcc6819164b54587e393799a78000713
2021-10-13 13:35:34 +00:00
TreeHugger Robot
754b7df9f5 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: 14a18a67d2 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I26ea00ef8c7e833f9cef642e6210ec061c551823
2021-10-13 13:35:04 +00:00
Bill Yi
a656f263d6 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 3b6edf1163 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Iba5dde89485bef778065a5033f4a5a091f7682be
2021-10-13 13:34:58 +00:00
Jeff DeCew
78c144418b [automerger skipped] Merge "Do not show the notification footer until the user is set up." into qt-dev am: 3bc24e3826 am: 025a668cf9 -s ours am: 525f35a68a -s ours am: 6bda916b61 -s ours am: 1479a93e45 -s ours
am skip reason: Merged-In I49e2b8bcec7b2ce0a9776ff30a64c07f24949da7 with SHA-1 73c3c0a7d6 is already in history

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

Change-Id: Idfa099be39a07102f20d630e6b9efc8ccb7ab235
2021-10-13 13:34:54 +00:00
Jeff DeCew
e4817eab60 [automerger skipped] Merge "Do not show the notification footer until the user is set up." into qt-dev am: 3bc24e3826 am: 025a668cf9 -s ours am: 525f35a68a -s ours am: 5e6690becb -s ours am: 6a0aca5d14 -s ours
am skip reason: Merged-In I49e2b8bcec7b2ce0a9776ff30a64c07f24949da7 with SHA-1 73c3c0a7d6 is already in history

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

Change-Id: If91fe78438b80856fbc9225cf088a50c34f91c07
2021-10-13 13:34:33 +00:00
Josh Tsuji
a323fb50fd Merge "[DO NOT MERGE] Improve brightness handling during screen off timeout." into sc-dev am: 1b7cf6d9a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15974634

Change-Id: Ib34e0e18d4755abcfb58b02b414972a5ac5e7bf0
2021-10-13 13:32:16 +00:00
Josh Tsuji
4cf6d3eee8 [automerger skipped] [DO NOT MERGE] Improve brightness handling during screen off timeout. am: bb8219d84b -s ours
am skip reason: skipped by user tsuji

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

Change-Id: I127378c325d2cc17938c5fb073f8220f843749e6
2021-10-13 13:32:10 +00:00
Winson Chung
705aff35e1 Merge "Continue the pausing process after automatically entering pip" into sc-qpr1-dev 2021-10-13 06:27:22 +00:00
Josh Tsuji
29be39a18e Merge "[DO NOT MERGE] Improve brightness handling during screen off timeout." into sc-qpr1-dev 2021-10-12 22:07:10 +00:00
Louis Chang
2c2860f0c5 Continue the pausing process after automatically entering pip
Or the activity remained in PAUSING state and prevents the
activity to stop after screen off until stop timeout.

Bug: 202345179
Test: atest PinnedStackTests
Change-Id: Ibb8b3c48d483dcb96207ec2395a87b31d8eb107e
Merged-In: Ibb8b3c48d483dcb96207ec2395a87b31d8eb107e
(cherry picked from commit e84bd0d141)
2021-10-11 17:57:50 +00:00
Winson Chung
731c558ec1 Merge "Apply the last recents animation transform on single-activity PIP tasks" into sc-qpr1-dev 2021-10-11 17:31:18 +00:00
TreeHugger Robot
3b55d6d9fd Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-10 05:37:38 +00:00
TreeHugger Robot
77ff793f66 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-10 05:34:26 +00:00
Bill Yi
8c4d915e01 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I88cafe31874b0dc86c8b912a00f8b4028fbd0deb
2021-10-09 06:13:57 +00:00
Bill Yi
e615b75ab8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibdf0e8b92b536f9848d3fcd7595929e652211692
2021-10-09 02:27:31 +00:00
Joanne Chung
e82a38a8ee Merge "Fix not show translation if call startTranslation after pauseTranslation" into sc-qpr1-dev 2021-10-09 02:26:10 +00:00
Winson Chung
54d481deda Apply the last recents animation transform on single-activity PIP tasks
- When swiping up to enter PIP w/ auto-enter, SysUI applies a transform
  on the leash which is seamlessly applied to the task (to prevent jumps
  when the leash is removed).  This was intended to be applied in both
  single and multiple activity PIP cases, but if that doesn't happen,
  then when the transform is later cleared, it will inadvertently reset
  the task's crop and matrix.

Bug: 201127015
Test: atest PinnedStackTests
Test: Open YT, enter PIP, turn screen off, turn screen back on
Change-Id: I0d6d46c7c52f7a43058902b50a26131f626ae92d
2021-10-08 23:26:03 +00:00
Eino-Ville Talvala
0f6c1c9d24 Merge "Camera: Fix wrong wasImageCaptured flag" into sc-qpr1-dev 2021-10-08 20:10:28 +00:00
TreeHugger Robot
00c890cda7 Merge "Camera: Avoid possible deadlock when closing advanced extension session" into sc-qpr1-dev 2021-10-08 19:49:12 +00:00
Emilian Peev
dd55b3dee5 Camera: Avoid possible deadlock when closing advanced extension session
The advanced extension session request processor must not hold the
'mInterfaceLock' when calling the camera device implementation as it
could result in a deadlock with the camera device close that can
run at the same time and try to acquire the same locks in reverse order.
The request processor will only read from 'mCameraConfigMap' which is
initialized only once during session setup and will not change during
the session lifetime.
A sample stack trace will look like this:
Service thread:
1) android.hardware.camera2.impl.CameraCaptureSessionImpl.stopRepeating
2) android.hardware.camera2.impl.CameraAdvancedExtensionSessionImpl$RequestProcessor.stopRepeating

Client thread:
1) android.hardware.camera2.impl.CameraAdvancedExtensionSessionImpl.release
2) android.hardware.camera2.impl.CameraDeviceImpl.close


Bug: 202074988
Test: Manual using application,
Camera CTS

Change-Id: If992667a7d7e54be5bea1fcc4b1d71ec1b895ca0
2021-10-08 19:48:12 +00:00
TreeHugger Robot
7cb452002e Merge "Revert changes to StationaryThrottlingLocationProvider" into sc-qpr1-dev 2021-10-08 16:26:41 +00:00
Shuzhen Wang
8af9bbaeed Camera: Fix wrong wasImageCaptured flag
CaptureFailure is created with a "dropped" parameter. But what's passed
in is mayHaveBuffers, which is opposite of "dropped".

Test: Camera CTS, GoogleCamera
Bug: 201967385
Change-Id: I42eb2daa78f116502cb1c5943015ea3f4af3f1e3
2021-10-08 16:26:14 +00:00
TreeHugger Robot
373ed0127e Merge "Prevent multiple outstanding permission queries per client" into sc-qpr1-dev 2021-10-07 23:39:29 +00:00
Anthony Stange
a44514e961 Prevent multiple outstanding permission queries per client
Under stress tests, it's possible for several messages to be sent before
CHRE has time to respond to the permission query which can cause several
permission queries to be sent and CHRE to be overwhelmed.

Fixes: 202201157
Test: Flash device and run stress test
Change-Id: I16871a116216cd288f0eba0e6c5572f5afa6b959
2021-10-07 19:24:05 +00:00
Soonil Nagarkar
67884d6edd Revert changes to StationaryThrottlingLocationProvider
For unknown reasons these changes are causing a memory usage increase
affecting Go devices. This reverts commit
6eecc3ce91.

Bug: 201306859
Test: presubmits
Change-Id: Ifd820ead3099c61abf7403442219f3d1172b8505
2021-10-07 19:01:30 +00:00
Fiona Campbell
6be9887cb9 Merge "Stop RBC affecting brightness so drastically" into sc-qpr1-dev 2021-10-07 16:28:57 +00:00
TreeHugger Robot
a3f88f630d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-07 14:28:20 +00:00
Rodrigo Lagos
773a974b8a Merge "Add pre-grant bluetooth permissions for AUTOMOTIVE SetupWizard" into sc-qpr1-dev 2021-10-07 13:25:42 +00:00
Fiona Campbell
67927b8af5 Stop RBC affecting brightness so drastically
This change resets the brightness short term model when RBC is turned
off or the strength is changed. We add a singular interaction when RBC is turned on, and add
interactions in RBC as normal.

Since users turning RBC in a bright environment could want any
brightness between the given one and MAX, but turning RBC off will often result in
a MAX interaction being logged, if the slider is already at MAX (given
RBC) which is not necessarily what we want.

In order to prevent unwanted changes to the brightness curve, we ignore
interactions that turn RBC off. Turning RBC on seems like a valid
indicator that the user wants the brightness darker, and at a specific
brightness, however turning RBC off is less of an indicator. Changing
the strength of RBC is also a good time to reset the short term model,
however after resetting, we still add an interaction after this.

Bug: 199187829
Test: manual
Change-Id: I6512d9642f2da634aa60af6b5573c792c0a116d5
2021-10-07 08:36:31 +00:00
Joanne Chung
5667540a7d Fix not show translation if call startTranslation after pauseTranslation
It is possible the developer calls pauseTranslation() to show the
original text but it calls startTranslation() to show translated
text. Ideally the developer should call resumeTranslation but it
also make sense to call startTranslation() to show translated text.

When receiving translation response, we avoid showing transaltion
if the view already has the response and it's the same. But it is
good to also check if the view is showing translated text or not.
If the view is not translated text, it is possible developer calls
startTranslation() instead if calling pauseTranslation() to show
translated again, the fixing can resolve this case.

The issue case can be fixed by this change. But there is a deeper
problem about it's useless the caller call finishTranslation(). This
is planned to be fixed in next release.

Bug: 201238016
Test: manual. The issue case is fixed.
Test: manual. Test some chat apps, it still works fine.
Test: atest CtsTranslationTestCases
Change-Id: I699d0fa1d60ac96db094adcc6e17f4203df03214
2021-10-07 06:04:06 +00:00
Evan Severson
395f43dd6f Merge "Fix setting camera op restriction on reboot" into sc-qpr1-dev 2021-10-07 02:57:27 +00:00
Bill Yi
f100f56cf0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I153a51ca14636fc51e98234fd7c5a7b465336ced
2021-10-07 01:47:03 +00:00
TreeHugger Robot
e2ba264dd0 Merge "Ensure pkg uid matches provided uid for device phone number check" into sc-qpr1-dev 2021-10-06 23:57:16 +00:00
TreeHugger Robot
886d034fb2 Merge "Fix bug checking incorrect AppOp" into sc-qpr1-dev 2021-10-06 22:45:53 +00:00
TreeHugger Robot
3df34b9f6a [automerger skipped] Merge "DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes." into rvc-dev am: e3a263bb6d am: b8f14a7db5 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I15882b5679ea2b5bbdd319b2f61cb97b9321a6cf
2021-10-06 21:08:55 +00:00
Janis Danisevskis
908d3fae61 [automerger skipped] DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes. am: 395e56a71c am: b7c5457ce8 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibafe7a8f3c80ff808de2cf0f564003b3db99d174
2021-10-06 21:08:46 +00:00
TreeHugger Robot
80dc50df37 [automerger skipped] Merge "DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes." into rvc-dev am: e3a263bb6d am: a68d603483 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibe9799152f258ff19a103abc2311b72a8b6f3552
2021-10-06 21:08:34 +00:00
Janis Danisevskis
65cf394942 [automerger skipped] DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes. am: 395e56a71c am: 9c6bc472e1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I78a3aa4927d3116b35816f4d94347c2519f90128
2021-10-06 21:08:12 +00:00
TreeHugger Robot
3376e545e0 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-06 21:06:39 +00:00
TreeHugger Robot
a68d603483 Merge "DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes." into rvc-dev am: e3a263bb6d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15900956

Change-Id: I107df5d3381fed5ffb729ee814ad3e1172abb1db
2021-10-06 20:54:22 +00:00
TreeHugger Robot
b8f14a7db5 Merge "DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes." into rvc-dev am: e3a263bb6d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15900956

Change-Id: Ifd4c6e1bcdd0e5c100786bf21c0868a309db75b1
2021-10-06 20:54:18 +00:00
Janis Danisevskis
9c6bc472e1 DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes. am: 395e56a71c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15900956

Change-Id: I5cf3f948bf5e13f040cc34c2e98ae600270848ee
2021-10-06 20:54:12 +00:00
Janis Danisevskis
b7c5457ce8 DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes. am: 395e56a71c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15900956

Change-Id: Id0df567907cdc7e5a8d73f749e660609ac99c632
2021-10-06 20:54:08 +00:00
TreeHugger Robot
e3a263bb6d Merge "DO NOT MERGE KeyStore ChunkedStreamer must tolerate update consuming 0 bytes." into rvc-dev 2021-10-06 20:40:50 +00:00
Josh Tsuji
20d85a91d4 [DO NOT MERGE] Fix DozeScreenBrightnessTest.
This was broken by ag/15974634, but the presubmits did not catch that for some reason. That CL changed the brightness logic to be <= the dim value, so this failure (and fix) make sense.

Test: atest SystemUITests, since apparently treehugger won't do that and will +2 this anyway
Fixes: 202212576
Change-Id: Ibe18322fbe1e1fbae86c5274615ad0b6f727c8e2
2021-10-06 20:25:27 +00:00