Commit Graph

757102 Commits

Author SHA1 Message Date
Sudheer Shanka
86ef571dab Fix the @RequiresPermission annotation.
We initially were using PACKAGE_USAGE_STATS permission to guard
the API BroadcastOptions.recordResponseEventWhileInBackground()
but changed it's implementation to use the new
ACCESS_BROADCAST_RESPONSE_STATS permission later but didn't update
the annotation to specify the new permission.

Bug: 228894230
Test: treehugger
Change-Id: I5142e2d2f754e8014c0c291d56b5ec2254449e77
2022-04-12 15:34:16 +00:00
Jernej Virag
93599ecf92 Merge "Downscale oversized MessagingStyle avatars" into tm-dev 2022-04-12 15:33:38 +00:00
Sudheer Shanka
370ec584b2 Merge "Inform the app to wait only if procstate has affect on ntwk access." into tm-dev 2022-04-12 15:32:57 +00:00
TreeHugger Robot
c49da4808e Merge "Remove keyguard unlock listener to fix leak." into tm-dev 2022-04-12 15:19:49 +00:00
Anton Hansson
4fd0b29105 Merge "Update deprecated_at_birth script" am: 033de61f59 am: 01673de24e am: 88a6b630aa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2059569

Change-Id: Ice3324baec83320357de3bb38e22ec144f8c8f8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 15:19:12 +00:00
Michał Brzeziński
c161367148 Merge "Adjusting bottom QQS padding in large screen shade" into tm-dev 2022-04-12 15:17:18 +00:00
Anton Hansson
88a6b630aa Merge "Update deprecated_at_birth script" am: 033de61f59 am: 01673de24e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2059569

Change-Id: Icce03e846b4b23b5677db6095476fe1b342bc058
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 14:59:38 +00:00
Mark Renouf
05709ae494 Merge "Fix potential StrictMode crash with miniresolver" into tm-dev 2022-04-12 14:53:55 +00:00
Anton Hansson
01673de24e Merge "Update deprecated_at_birth script" am: 033de61f59
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2059569

Change-Id: I789294f78d144121a9d9336cf922b803a6b47458
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 14:43:31 +00:00
Beth Thibodeau
d39f10737c Merge "Revert "Enable media session flag by default"" into tm-dev 2022-04-12 14:37:46 +00:00
Lee Shombert
ead48cc667 Merge "Helper classes for IpcDataCache clients" into tm-dev 2022-04-12 14:32:31 +00:00
Anton Hansson
033de61f59 Merge "Update deprecated_at_birth script" 2022-04-12 14:28:35 +00:00
Pavel Grafov
4d35e771f4 Merge "Fix DPMS unit tests." into tm-dev 2022-04-12 14:17:16 +00:00
TreeHugger Robot
7359720a2d Merge "Fix typo in dumpsys for GnssAntennaInfoProvider" into tm-dev 2022-04-12 14:16:12 +00:00
Calvin Pan
895a7b661e Merge "Add current system language into suggestion list" into tm-dev 2022-04-12 13:55:29 +00:00
Fabian Kozynski
4ae15e81bc Merge "Don't crash TileService app when systemui crashes" into tm-dev 2022-04-12 13:16:54 +00:00
Jorim Jaggi
331f163d20 Merge "Fix doc issue linking internal class" into tm-dev 2022-04-12 12:50:54 +00:00
Chris Li
721634a9ec Merge "Fix untrusted embedding visibility in multi windowing mode" into tm-dev 2022-04-12 12:37:16 +00:00
TreeHugger Robot
ab0c667365 Merge "Fixed that the camera will not be blocked on the virtual display in special cases" into tm-dev 2022-04-12 12:21:47 +00:00
Jing Ji
885af3d522 Merge "Update the text of background app battery usage notification." into tm-dev 2022-04-12 11:29:28 +00:00
Pavel Grafov
4eefc3152c Fix DPMS unit tests.
Currently these tests fail because of an attempt to register the same
service more than once in a static map, which leads to an exception.
Make DevicePolicyManagerTestable unregister them before constructing
DPMS, so that it doesn't have to be done in every test.

Bug: 228842216
Test: atest com.android.server.devicepolicy
Change-Id: I43d10193779edf7909d77863f13ecdccfa383473
2022-04-12 12:15:27 +01:00
Julia Reynolds
08f603903c Merge "Modify handling of notifs with invalid sounds" into tm-dev 2022-04-12 11:02:03 +00:00
Jernej Virag
3405f17fe4 Downscale oversized MessagingStyle avatars
Notification API downscales oversized icons in all formats except in MessagingStyle. This seems to be an oversight that can cause massive memory usage.
This downscales avatars to a reasonable size if they're too big.

Bug:193720474
Bug:221890932

Test: atest NotificationTest
      Built a test app with 4000x4000 avatar icon.
      Memory usage went from 250MB to ~170KB per notification.
Change-Id: I35377cdb5d61ee6e23fccc2bffb5d3aec6ca2b7d
2022-04-12 10:58:33 +00:00
Michał Brzeziński
cd2ba60978 Merge "Moving brightness slider lower in split shade" into tm-dev 2022-04-12 10:15:23 +00:00
TreeHugger Robot
217edfa93b Merge "SIM slot not available error code added to UpdateAvailableNetworksResult" into tm-dev 2022-04-12 09:49:49 +00:00
Cliff Wu
3895dba947 Fixed that the camera will not be blocked on the virtual display in special cases
- Root cause: When an app uses the system default camera app to open
the camera on the phone, and another app uses an Intent
(MediaStore.ACTION_IMAGE_CAPTURE) (the system default camera app) to
open the camera on the virtual display, because they will use the same
thread in the camera service, the camera will only reconfigure the
stream without creating it again. Therefore, the onCameraOpened callback
will not be triggered, causing the issue that the camera on the virtual
display is not blocked.

- Solution: The camera mechanism is that only one camera can run at a
  time. If two apps open the camera at the same time, it will first open
  and close the camera of one of two apps, and then open the camera of
  another app. So we identify above issue according to this rule: track
  the app that opens the camera on the phone (main display). When it is
  detected that this app also appears on the virtual display, it means
  that the app appears on both sides at the same time, which belongs to
  the above issue, and the camera of this app is set to a blocked state.

Bug: 210795569
Test: Manual
Change-Id: Idabee8a38085c8aae1f47f3579cead1adde385ea
2022-04-12 09:24:44 +00:00
Jacqueline Bronger
6cc02e8d74 Merge "Fix gravity after re-enabling expanded PiP" into tm-dev 2022-04-12 08:48:52 +00:00
Galia Peycheva
427189714d Merge "Fix strange pip size in horizontal expanded mode" into tm-dev 2022-04-12 08:29:43 +00:00
Calvin Pan
729a22a2cc Add current system language into suggestion list
Bug: 228905883
Test: Add system language and change app language

Change-Id: I7b1f78bb13902dc50f3e8ce8e1c62590ac623b9c
2022-04-12 07:37:13 +00:00
Chris Li
c48483db9e Fix untrusted embedding visibility in multi windowing mode
Before, we search overlay within the same root Task, which can be other
task in split. Now, we only search within the same leaf Task.

Bug: 197364677
Test: atest WmTests:TaskFragmentTest
Change-Id: I64dfdf322a15cfd80f169d0ddfc6e9bbf94d2a03
2022-04-12 14:25:41 +08:00
Tiger Huang
06b93cf997 Merge "Fix WindowInsets#getStableInsets" into tm-dev 2022-04-12 06:09:03 +00:00
Riddle Hsu
dc19fc3bd0 Merge "Do not show animation background with wallpaper transition" into tm-dev 2022-04-12 05:45:11 +00:00
Shaowei Shen
eda5ea3e38 Merge "DO NOT MERGE: Downbranch merge conflict [Output Switcher] Refine seekbar control" into tm-dev 2022-04-12 05:42:21 +00:00
TreeHugger Robot
466dcdd650 Merge "Post the starting of the Notification dialog" into tm-dev 2022-04-12 05:27:34 +00:00
TreeHugger Robot
d421a51399 Merge "Add config to disable Bubbles" into tm-dev 2022-04-12 04:57:50 +00:00
Chris Li
a6b968f887 Merge "No embed activity when Task is in PIP" into tm-dev 2022-04-12 03:29:37 +00:00
Shawn Lin
08cc104906 [automerger skipped] Merge "[DO NOT MERGE] Update to use new res status bar height dimen" into sc-v2-dev am: 2f5827830e am: c0d749ed90 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1135c619f99128432615ee68ce70ab1960aee0fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 02:36:57 +00:00
Shawn Lin
24eb4b556e Merge changes from topic "sbHeight" into sc-v2-dev-plus-aosp am: 7337802a28
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17686875

Change-Id: Ibf65c7b92a7721aa1ab3cd4a68cab05ef9981142
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 02:36:09 +00:00
shawnlin
5972c1d457 [automerger skipped] [automerge] [DO NOT MERGE] Update to use new res status bar height dimen 2p: 47fb15fe8c am: 1f5b53c8c4 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I639e5baa4da709a5347ebd035e5c3fece16b6927
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 02:35:46 +00:00
Shawn Lin
c0d749ed90 Merge "[DO NOT MERGE] Update to use new res status bar height dimen" into sc-v2-dev am: 2f5827830e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17686875

Change-Id: Ia35e5f69b5f363b61a208b9dc949cb383c68574f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-12 02:35:45 +00:00
Arthur Hung
92f53fc942 Merge "Exclude TYPE_SECURE_SYSTEM_OVERLAY from onehand mode" into tm-dev 2022-04-12 02:34:17 +00:00
TreeHugger Robot
a5e6d1e6b3 Merge "ActivityRecordInputSink: Ensure timely release of SurfaceControl" into tm-dev 2022-04-12 02:17:45 +00:00
Shawn Lin
455e78d8f4 Merge "Fixed status bar glitch for apps that access internal res" into tm-dev 2022-04-12 02:15:58 +00:00
Shawn Lin
7337802a28 Merge changes from topic "sbHeight" into sc-v2-dev-plus-aosp
* changes:
  [automerge] [DO NOT MERGE] Update to use new res status bar height dimen 2p: 47fb15fe8c
  [DO NOT MERGE] Update to use new res status bar height dimen
2022-04-12 02:14:40 +00:00
Shawn Lin
2f5827830e Merge "[DO NOT MERGE] Update to use new res status bar height dimen" into sc-v2-dev 2022-04-12 02:14:40 +00:00
Sudheer Shanka
745698b4da Inform the app to wait only if procstate has affect on ntwk access.
Bug: 226299593
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: Iad41fa423844dee975c5063c03784e44a68bbfcd
2022-04-12 02:11:13 +00:00
Minche Li
b26d2ae80b Merge "Notifies magnification change for the transitioning target mode" into tm-dev 2022-04-12 01:10:41 +00:00
Shaowei Shen
49ab839806 Merge "[Output switcher] Check current device" into tm-dev 2022-04-12 00:14:37 +00:00
TreeHugger Robot
887c94e629 Merge "Log PsdsServerConfigured in dumpsys" into tm-dev 2022-04-11 22:01:24 +00:00
Josh Tsuji
b39e1f1a67 Merge "Revert "Revert "Fix shouldControlUnlockedScreenOff.""" into tm-dev 2022-04-11 21:53:39 +00:00