Commit Graph

658817 Commits

Author SHA1 Message Date
TreeHugger Robot
52b4c166ec [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 79b7936bb6 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I6b9b9ae42a05dbca125a5c2d57cdb5131daf26fd
2022-02-06 07:30:39 +00:00
TreeHugger Robot
b57b1f6a52 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 8df23efae2 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ib5405c749597b261cac9db0670bb15e1c91e7851
2022-02-06 07:29:39 +00:00
TreeHugger Robot
351b259381 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-02-06 07:13:03 +00:00
TreeHugger Robot
c39b340f75 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-02-06 07:12:22 +00:00
TreeHugger Robot
aa28142051 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-02-06 07:12:02 +00:00
TreeHugger Robot
a1643d8b6c Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-02-06 07:11:18 +00:00
TreeHugger Robot
79b7936bb6 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2022-02-06 07:11:10 +00:00
TreeHugger Robot
8df23efae2 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2022-02-06 07:11:04 +00:00
Chris Kuiper
e534d9269d Merge changes from topics "presubmit-am-848876f4083644ad802120cf11b761de", "presubmit-am-feedd56083be48668fea14c29cf72287" into sc-v2-dev
* changes:
  [RESTRICT AUTOMERGE]DisplayManager: Make sure RampAnimator sets property in linear space.
  [RESTRICT AUTOMERGE]DisplayManager: Switch RampAnimator to ramp in HLG space.
2022-02-06 00:27:14 +00:00
Bill Yi
1f4adf67ed Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I23841faeff045d3588e623c3b5b068d08a736463
2022-02-05 21:20:19 +00:00
Bill Yi
c0bb5003a5 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idb654e375b0798383dcd5d8af0620471c108e2ee
2022-02-05 20:36:01 +00:00
Bill Yi
964d06032e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9e7951e910d6ce34628c0b66a6e2fea1fccc895d
2022-02-05 18:54:52 +00:00
Bill Yi
d194a4cfbf Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7ce72b91327024d36887d4d06a60341851b5da3b
2022-02-05 18:52:55 +00:00
Bill Yi
3ffc33b6c0 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaf9c9efd64970e68c76268423ec49b1a63e74463
2022-02-05 17:34:41 +00:00
Bill Yi
22c3adf8b2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I96fccf4b7115d931934fc1954b37cc7210e55ecc
2022-02-05 17:31:52 +00:00
Ganesh Olekar
e38b4d59cf Merge "Validate pid can be trusted" into sc-dev am: 45312b8382 am: b14e524ffd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16461958

Change-Id: I55bd837724c745078138cdbd8afc4213768dcdb1
2022-02-05 04:31:21 +00:00
Ganesh Olekar
b14e524ffd Merge "Validate pid can be trusted" into sc-dev am: 45312b8382
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16461958

Change-Id: I47da71211e30902d5f489f0dec109056b9503707
2022-02-05 04:14:22 +00:00
Ganesh Olekar
45312b8382 Merge "Validate pid can be trusted" into sc-dev 2022-02-05 03:56:26 +00:00
Nicolò Mazzucato
734dde1298 Merge "[DO NOT MERGE] Ensure SensorManager is destroyed on Launcher activity destruction" into sc-v2-dev 2022-02-04 16:56:51 +00:00
Nicolo' Mazzucato
7eee970bd6 [DO NOT MERGE] Ensure SensorManager is destroyed on Launcher activity destruction
cp of I96bf525fe3730e7bf6b4c1042c18ef96622248fd to solve leak.
Restricting automerge as the bug is already fixed on master, but the file has been converted to kotlin, so this cl can't be automatically patched there.


Fix: 217144034
Test: See other cl
Change-Id: Id81168475882e94fb81ea6c89388707e730da5f9
2022-02-04 14:32:14 +00:00
Chris Kuiper
47461bb5ae [RESTRICT AUTOMERGE]DisplayManager: Make sure RampAnimator sets property in linear space.
This fixes the case where RampAnimator is used the first time and
immediately jumps to the target brightness. In that case the property
was set to a value that has not been converted back into linear
space, causing an incorrect initial brightness value.

To avoid these bugs, consolidate setting of the property into one
function.

Bug: 217289549
Test: Cannot reproduce bug.
Change-Id: I2ccdaa51ddba062fc5de1209470b90eb429280db
2022-02-03 17:06:05 -08:00
Chris Kuiper
692f088bba [RESTRICT AUTOMERGE]DisplayManager: Switch RampAnimator to ramp in HLG space.
This switches the ramp animator logic to ramp in the perceptual HLG
space, thereby making ramping appear linear to the human eye.

Bug: 204252940
Test: Verified on Pixel 6 Pro that ramping is much more linear and
      consistent.
Change-Id: I946e1570e654eb25aa334be827ca3d15cba21c48
2022-02-03 17:05:56 -08:00
Benedict Wong
34af4df2f0 Merge "Pull underlying network MTU using Java APIs" into sc-v2-dev 2022-02-04 00:27:53 +00:00
Benedict Wong
74983c1214 Merge "Fix potential for dead binders when calling callbacks" into sc-v2-dev 2022-02-04 00:27:50 +00:00
TreeHugger Robot
6f4e1ef303 Merge "DO NOT MERGE: Call DeleteLocalRef on callObjectMethod's returned value" into sc-v2-dev 2022-02-03 23:45:25 +00:00
Benedict Wong
451c399229 Pull underlying network MTU using Java APIs
This change ensures that if the VCN's underlying network MTU is not
reported via the LinkProperties APIs (as in the case of Carrier WiFi),
the kernel values will be used (as possible).

Bug: 204813618
Test: Manual testing
Test: atest FrameworksVcnTests CtsVcnTestCases
Original-Change: https://android-review.googlesource.com/1877796
Change-Id: If291aa6b915e4da39152a679bbe3e40216b42f44
Merged-In: If291aa6b915e4da39152a679bbe3e40216b42f44
2022-02-03 05:53:41 +00:00
Benedict Wong
4975dd39e8 Fix potential for dead binders when calling callbacks
This patch ensures that all callbacks out of the VcnManagementService
are try/catch guarded to ensure that callbacks are not called and throw
an exception.

This is triggered when telephony dies, which results in the
subscriptions changing, and attempting to notify the policy listeners
triggers a DeadObjectException.

Bug: 217537578
Test: atest FrameworksVcnTests
Original-Change: https://android-review.googlesource.com/1969041
Change-Id: Ibfe82fb187b7989164e22919a72b8c36d2655902
Merged-In: Ibfe82fb187b7989164e22919a72b8c36d2655902
2022-02-03 05:22:47 +00:00
Rui Qiu
606dede844 DO NOT MERGE: Add car telemetry service permission to car shell allowlist
Bug: 207548461
Bug: 207175350
Test: atest CarSecurityPermissionTest:CarTelemetryPermissionTest

Change-Id: I9319983138ce3969b1c6a46a9c4e1bf168a13772
Merged-In: I9319983138ce3969b1c6a46a9c4e1bf168a13772
(cherry picked from commit 7d104e280baedc3400951a016a7a427c65cb9f0d)
2022-02-02 22:31:19 +00:00
Hongwei Wang
d208a46d52 Merge "Add leash check in PipTaskOrganizer#fadeExistingPip" into sc-v2-dev 2022-02-02 01:31:37 +00:00
Yu-Han Yang
7a883af438 DO NOT MERGE: Call DeleteLocalRef on callObjectMethod's returned value
CallObjectMethod returns a local reference that's causing memory
leakage. We need to make sure all these local refs are deleted.

This change combines I7462bd9293b214d75df5196ae42b4da1da904e1a
(ag/16752598) and I85d68039a5f3951cb629fd4286b182c93a7293e1
(ag/16765005) from the master branch.

Bug: 214967397
Test: manual
Change-Id: Idb222eab7a498b23a194272543b2dab235eaf002
2022-02-01 11:02:02 -08:00
Patrick Huang
e8d0b6bdca Merge "Move power button cooldown period flag to Settings.Global" into sc-v2-dev 2022-02-01 17:52:33 +00:00
Ahaan Ugale
7a2c5b7d9f Merge "Fix Activity leak from ContentCapture Context-Updated event." into sc-v2-dev 2022-02-01 02:24:21 +00:00
Patrick Huang
4b73a58920 Move power button cooldown period flag to Settings.Global
This is a follow up of ag/16406749

Bug: 195782998
Test: unit tests, manual test on device
Change-Id: Icb977d9a7591ffe48ae44bbe2ad521945b7b0139
Merged-In: Icb977d9a7591ffe48ae44bbe2ad521945b7b0139
(cherry picked from commit 5ab8466005)
2022-02-01 02:11:24 +00:00
Ahaan Ugale
93debeaead Fix Activity leak from ContentCapture Context-Updated event.
How it leaks: When a session is destroyed, mDirectServiceInterface is
set to null. If an event is added to the buffer after this, it cannot be
flushed because of that. But the flush() call will still keep
rescheduling itself regularly (to handle the case of
mDirectServiceInterface not being ready when the session is created).
The flush message holds a reference to the session, which holds the
Context that created it (the Activity). The message effectively stays
forever in the handler queue, preventing it from being GC'd.

When destroyed, the mDestroyed flag is set which prevents new events
from being queued (through isContentCaptureEnabled()). However,
setContentCaptureContext() is missing this check. This cl adds it there.
Note: There is possibly a race condition if ContentCaptureSession calls
happen on different threads (Framework code always calls these methods
on the main thread). This will be fixed separately.

Bug: 204891006
Test: atest NexusLauncherTests:com.android.quickstep.StartLauncherViaGestureTests#testStressSwipeToOverview --iterations 5
Change-Id: If69a17e828d928007232db76af6e0cac16502875
(cherry picked from commit 97757ea0c4)
2022-01-31 20:58:51 +00:00
Mady Mellor
b73f1acdab Use the orientation from the config object not resources
Test: manual - reboot the device, rotate, drag stuff into split
             => verify that the orientation of split while dragging is
                correct
Bug: 216643100
Change-Id: I300ad7263bf2ac18575d92f057fdd9c13ef736a7
(cherry picked from commit 4a79d7cb97)
2022-01-31 18:11:06 +00:00
Matt Pietal
17456caf69 Merge "Add more tracing" into sc-v2-dev 2022-01-31 15:29:18 +00:00
Chris Li
0207f039d2 [DO NOT MERGE] Fix regression for enter PIP when onUserLeaveHint
This was changed in ag/15886711, but it shouldn't be needed anymore as
for case we need to animate the close transition, isVisible() will stay
true until the app transition is finished. Otherwise we shouldn't need
to keep the surface as visible even if it is in the closing app list.

Without this fix, we may accidentally show the surface that has been
commited to be invisible, such as enter pip onUserLeaveHint.

Fix: 216145863
Test: manually verify with Google Meet.
Test: atest WmTests:ActivityRecordTests
Change-Id: Ib28651f5c4dc728d19f968adc56015836e307ef8
Merged-In: Ib28651f5c4dc728d19f968adc56015836e307ef8
2022-01-30 03:43:17 +00:00
TreeHugger Robot
4afa26e51f Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-29 03:39:07 +00:00
Miranda Kephart
27261a8120 Merge "Dispose of input event reciever along with monitor" into sc-v2-dev 2022-01-28 22:05:03 +00:00
Oscar Azucena
9af845a47e Merge "Fixed silent mode alarm play at full volume" into sc-v2-dev 2022-01-28 21:27:22 +00:00
Matt Pietal
48309cc755 Add more tracing
Row for statusBarState and showKeyguard

Bug: 212572042
Test: manual (trace + perfetto)

Change-Id: I1e8074d71fb36989a93e1d4cffca82fb5bdcfa63
2022-01-28 14:18:27 -05:00
Patrick Huang
7f62909c98 Merge "Add power button cooldown after emergency gesture is triggered." into sc-v2-dev 2022-01-28 18:51:04 +00:00
John Reck
8b65a252d4 Merge "Fix a mismatch in Bitmap_createFromParcel" into sc-dev am: 6a0f27d52f am: d797c5a620
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16664941

Change-Id: I8783ca22e93536b0050a756dffaa1e6831bda478
2022-01-28 18:49:31 +00:00
John Reck
d797c5a620 Merge "Fix a mismatch in Bitmap_createFromParcel" into sc-dev am: 6a0f27d52f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16664941

Change-Id: I580cb62d6f806113a16a4913b849d288c64bce0c
2022-01-28 18:25:53 +00:00
John Reck
6a0f27d52f Merge "Fix a mismatch in Bitmap_createFromParcel" into sc-dev 2022-01-28 18:07:35 +00:00
Jeff DeCew
e7781424f5 Merge "Fix missing group alertOverride recalculation" into sc-v2-dev 2022-01-27 20:45:15 +00:00
Jeff DeCew
7be755663f Merge "Allow alertOverride if the summary GROUP_ALERT_ALL" into sc-v2-dev 2022-01-27 20:27:10 +00:00
Jeff DeCew
e6275c8a45 Merge "Fix the animation glitch when NSSL adds and removes a HUN in the same frame." into sc-v2-dev 2022-01-27 20:26:55 +00:00
TreeHugger Robot
98f21387dc Merge "[DO NOT MERGE] Keyguard PIN View - Landscape fixes" into sc-v2-dev 2022-01-27 19:08:30 +00:00
TreeHugger Robot
5150b2b56c Merge "Move CtsContentTestCases to group presubmit-large" into sc-dev am: a9a177e057 am: dd9121aaf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16709491

Change-Id: I24513de281029178f2cdd9360ce87ed4d8eb210c
2022-01-27 18:47:46 +00:00