Commit Graph

633694 Commits

Author SHA1 Message Date
Yi Jiang
6ea16de99d Grabs foreground activity's package name
Passes the foreground activity's package name to Rotation Reosolver.

Test: printed package name locally and it correctly shows the foreground
package.

Bug:181151868
Bug:181150530

Change-Id: Ib6e6504f784283b2d4255da8e54929c6a26cb207
2021-04-09 10:34:23 -07:00
TreeHugger Robot
a9bb9e1b53 Merge "Fix typo in android_media_AudioSystem." into sc-dev 2021-04-02 17:27:37 +00:00
TreeHugger Robot
08d6335329 Merge "Keystore 2.0: Remove references to Keystore 1" into sc-dev 2021-04-02 17:09:05 +00:00
Peter Kalauskas
825b979f81 Merge "Only update detail text when adapter is not null" into sc-dev 2021-04-02 16:54:39 +00:00
Treehugger Robot
5d7f29fd66 [automerger skipped] Merge "Fetch the WiFiInfo from NetworkCapabilities" am: f8652f4252 am: eba7b94176 am: 4cb473d395 -s ours
am skip reason: skip tag Change-Id Ie3655f044bda020b51e8342efea58757b8b7cbc4 with SHA-1 4949e2ad3c is already in history

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

Change-Id: I50f41bb4af4087d2ccd6e11bd91100e6812ce540
2021-04-02 16:54:11 +00:00
Treehugger Robot
4cb473d395 Merge "Fetch the WiFiInfo from NetworkCapabilities" am: f8652f4252 am: eba7b94176
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1659161

Change-Id: I739d76da77be587e1e01417c163a55a408cd3233
2021-04-02 16:28:07 +00:00
George Mount
e57091c6c3 Merge "Fix NPE in RecyclerView" into sc-dev 2021-04-02 16:20:06 +00:00
Beverly Tai
d402d0feb1 Merge "Don't listen for udfps on lock down or encryption" into sc-dev 2021-04-02 16:00:44 +00:00
Ying Xu
5b5c629aea Merge "Ignore the WiFi network callbacks if they are not default" into sc-dev 2021-04-02 15:54:28 +00:00
Treehugger Robot
eba7b94176 Merge "Fetch the WiFiInfo from NetworkCapabilities" am: f8652f4252
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1659161

Change-Id: I6c6146b4129486e45a27ee79ffa3d198cfd1e89a
2021-04-02 15:45:39 +00:00
TreeHugger Robot
567a688435 Merge "Hide activity indicators in SignalTileView" into sc-dev 2021-04-02 15:14:04 +00:00
TreeHugger Robot
572e4b33b8 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-02 15:05:33 +00:00
Treehugger Robot
f8652f4252 Merge "Fetch the WiFiInfo from NetworkCapabilities" 2021-04-02 15:01:41 +00:00
TreeHugger Robot
eae0522da5 Merge "Update RAT icons to match Silk design" into sc-dev 2021-04-02 14:59:36 +00:00
TreeHugger Robot
0872af3e01 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-04-02 14:55:57 +00:00
TreeHugger Robot
3d305eee7c Merge "Remove the main thread blocking call to get SSID" into sc-dev 2021-04-02 14:55:05 +00:00
TreeHugger Robot
3dcf184fe6 Merge "Hide no calling slot when QSBH expands" into sc-dev 2021-04-02 14:54:24 +00:00
Jeff Sharkey
a1d8bbb3ba Merge changes from topic "uwb_ranging_permission" into sc-dev
* changes:
  Add a new uwb ranging app-ops
  Add a new uwb ranging runtime permission
2021-04-02 14:45:57 +00:00
Dave Mankoff
6d40ac31bb Merge "Incorporate Falsing Belief sooner." into sc-dev 2021-04-02 14:38:37 +00:00
Mark Renouf
e314376395 Merge "update ScrollCaptureControllerTest" into sc-dev 2021-04-02 14:20:45 +00:00
TreeHugger Robot
fea22aab82 Merge "Hide the call strength icons from the statusbar" into sc-dev 2021-04-02 14:15:07 +00:00
Beverly
ceeacda56f Don't listen for udfps on lock down or encryption
If the device is encryped or is in lock down, don't show the udfps
overlay because the user cannot authenticate from this state anyway.

Test: atest KeyguardUpdateMonitorTest
Fixes: 183629563
Change-Id: Ie48dfa6bc4a5db0a35be02fd973d982ef3475315
2021-04-02 13:03:24 +00:00
Beverly Tai
726db03ea1 Merge "Change Udfps window type to KEYGUARD_DIALOG" into sc-dev 2021-04-02 13:02:53 +00:00
TreeHugger Robot
86b816ed99 Merge "Group notification time bug" into sc-dev 2021-04-02 13:01:08 +00:00
Derek Sollenberger
ed941a71b3 Merge "Respect HDR/HDR10 colormodes in HWUI Vulkan backend" into sc-dev 2021-04-02 12:16:44 +00:00
Ming-Shin Lu
e670863eaf Merge "Fix unexpected IME visibility restores" into sc-dev 2021-04-02 11:58:01 +00:00
Shan Huang
4c5101bbd2 Merge "Increase the size of ripple sparkle" into sc-dev 2021-04-02 10:20:58 +00:00
TreeHugger Robot
1ab6db5cc6 Merge "Always unbind/delete incremental instances when remove packages." into sc-dev 2021-04-02 08:58:02 +00:00
Shan Huang
5501d76cc4 Increase the size of ripple sparkle
Test: Manully
Test: SysUITests
Bug:183382912

Change-Id: I4c358ac37d6dec05fdff8474ebee32f4ba18de3e
2021-04-02 16:25:16 +08:00
Jayant Chowdhary
3f45860e70 Merge "getCameraIdListNoLazy : remove system cameras from mTorchStatus as well." into sc-dev 2021-04-02 08:08:27 +00:00
TreeHugger Robot
1d7abf0d62 Merge "Check mInputEventReceiver before sending timeline" into sc-dev 2021-04-02 07:30:36 +00:00
Hyundo Moon
8b40c9b344 Merge "System MR2: Check MODIFY_AUDIO_ROUTING permission" into sc-dev 2021-04-02 06:38:09 +00:00
Darryl Johnson
6b7f69ef38 Merge "Make PipMotionHelper injectable" into sc-dev 2021-04-02 06:18:44 +00:00
Sarah Chin
c680b0950d Merge "DCT set up default before enterprise APN" into sc-dev 2021-04-02 05:13:25 +00:00
Hongwei Wang
8affff3ab2 Merge "Protect the default media PiP PendingIntent" into sc-dev 2021-04-02 05:08:13 +00:00
Alex Buynytskyy
dc12570037 Always unbind/delete incremental instances when remove packages.
Bug: 160635296
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: Ie0aea11d906dccad892d6962b71afa62b44c6378
2021-04-01 21:21:22 -07:00
Bill Yi
83dc28d70a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9895cbadedd5d7204a87c9dd853e6b3ccbd97955
2021-04-02 04:05:43 +00:00
TreeHugger Robot
56d150ed18 Merge "Integer to int causes null exception" into sc-dev 2021-04-02 04:00:11 +00:00
Cody Kesting
2aca029981 Merge "Clarify docs for status codes in VcnStatusCallback." am: 36a84ebbaf am: 2ea2b734e5 am: f73591b47f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1660643

Change-Id: Ib276041e5f3c5e0401bf466939384bfaa8801119
2021-04-02 03:43:50 +00:00
Hyundo Moon
cd83e77ea5 System MR2: Check MODIFY_AUDIO_ROUTING permission
This CL adds a permission check for
MediaRouter2#getInstance(Context, String)
which creates the system MediaRouter2 instance.

Bug: 183428114
Test: CTS only passes with the right permission.
Change-Id: I38561dd6525d9e3c4514829662483d2c7a08dda1
2021-04-02 12:00:54 +09:00
Cody Kesting
f73591b47f Merge "Clarify docs for status codes in VcnStatusCallback." am: 36a84ebbaf am: 2ea2b734e5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1660643

Change-Id: I82957134d3bf09486d0db5bef04470dc07d7561e
2021-04-02 02:57:56 +00:00
TreeHugger Robot
82722a0423 Merge "Revert "Shortcut integration with AppSearch (Part 5)"" into sc-dev 2021-04-02 02:50:45 +00:00
Siarhei Vishniakou
d2766d013f Check mInputEventReceiver before sending timeline
Previously, it was possible to receive a FrameMetrics callback after the view was already detached from window. In that situation, the mInputEventReceiver is set to null and the object is disposed.

But InputMetricsListener used to store another reference to mInputEventReceiver. So it's own object was never set to null. We would then try to send the timeline to native input receiver, and crash because the native object has already be deleted by the earlier dispose() call.

So the sequence of events was:

dispatchDetachedFromWindow
mInputEventReceiver.dispose()
native input receiver is deleted
InputMetricsListener::onFrameMetricsAvailable
mInputEventReceiver.reportTimeline
try to access a native object using a null pointer
crash

A few options to fix this were investigated:

1) Unregister the observer when mAttachInfo.mThreadedRenderer is set to null.

This is good to do, but it's not sufficient. The problem is that the native call to RenderProxy 'removeObserver' is not serviced immediately, but is posted to be completed sometime in the future. Therefore, the crash would not be fixed by it.
Still, we should always register the observer for the active threadedRenderer, which is done in this CL.

2) Keep a weak reference to mInputEventReceiver inside InputMetricsListener. This would allow InputMetricsListener to check on the status of mInputEventReceiver. When it's disposed, it would be also set to null, so the weak reference resolution would fail.

Unfortunately, 'mInputEventReceiver' is not the only reference to the object of WindowInputEventReceiver. It turns out that the receiver is also stored inside the queued events (see class QueuedInputEvent { private InputEventReceiver mReceiver }). From reviewing ag/153113, it should be OK to remove the receiver from QueuedInputEvent and simply keep track of whether the event is synthesized or not.
But, that change would be too significant to make in this CL. Also, weak references have performance impact, so this may not be desirable anyways.

3) Do not store mInputEventReceiver in InputMetricsListener
The chosen option is to simply use the variable mInputEventReceiver from the outer class. If the receiver is null, we don't notify about the metrics.

This reverts commit d187cc7627.

Reason for revert: fixing this properly instead

Bug: 184255546
Bug: 169866723
Test: settings -> privacy -> permission manager -> body sensors -> show system (only click once) -> google play services -> deny -> deny anyway
Repeat the above 20 times. Observe that there's no crash of the activity.

Change-Id: I5cf36ef068f7964572ab1a1475ff8ac53ae6beb5
2021-04-02 02:32:06 +00:00
Jay Aliomer
48191afa57 Integer to int causes null exception
Fixes: b/183921888
Test: manually follow bug steps
Change-Id: I7763f4108ced922eba031b5b405774bfe112549a
2021-04-01 22:28:46 -04:00
Cody Kesting
2ea2b734e5 Merge "Clarify docs for status codes in VcnStatusCallback." am: 36a84ebbaf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1660643

Change-Id: I60bb16e7d0bc07448537ef58562441d90b4ea6e5
2021-04-02 02:14:55 +00:00
Bill Yi
9eee5de566 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I01b0f18d212c9c7e2816a41219c658a348143721
2021-04-02 02:03:24 +00:00
TreeHugger Robot
bfe78e7308 Merge "Revert "Avoid running RegisteredServicesCache tasks on main thread"" into sc-dev 2021-04-02 01:55:01 +00:00
Jayant Chowdhary
bedb9950c8 getCameraIdListNoLazy : remove system cameras from mTorchStatus as well.
Bug: 182530469

Test: Make Emulator back camera system camera; atest FlashlightTest.java

Change-Id: I0a149ba3d93a740cfbfdc2d04c1235e648061156
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2021-04-01 18:50:19 -07:00
Benedict Wong
4f61155196 Merge changes I2e52ff67,I9f2b2d0d am: f11ccc456b am: 88aa5dfd70 am: 956676c982
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1661226

Change-Id: I648b1a0363399ddda0e917c1f2db3ea121fb7189
2021-04-02 01:39:12 +00:00
Cody Kesting
36a84ebbaf Merge "Clarify docs for status codes in VcnStatusCallback." 2021-04-02 01:24:25 +00:00