Commit Graph

761198 Commits

Author SHA1 Message Date
Shivakumar Neginal
8335fd51fb Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that
beyond S people can not access the DATA_ROAMING API from Settingss.Ideal
way to use this is from TelephonyManager.

Test: manual.
Bug: 172467621
Change-Id: I5bbdd886599ff0ecf66eb72beb78456adc4d632c
2022-06-01 06:51:43 +00:00
TreeHugger Robot
0d84708056 Merge "Postpone the request direct actions before onStart" into tm-dev 2022-06-01 03:29:35 +00:00
Michael Wright
aabe27b7a4 Merge "Invoke BrightnessSetting callbacks even with identical brightness." into tm-dev 2022-06-01 02:41:25 +00:00
Louis Chang
b4c09cd2b1 Merge "Adding the new activity on the same TF of the cleared activity" into tm-dev 2022-06-01 02:40:46 +00:00
James O'Leary
d88a6933e8 Merge "Revert "Update light/dark detection."" into tm-dev 2022-06-01 01:29:41 +00:00
Ryan Lin
8ef351123b Merge "Drop the cloned windows from visible window list" into tm-dev 2022-06-01 01:29:36 +00:00
Matt Casey
fc51b366b4 Merge "Remove spans from edited text when copying back to clipboard" into tm-dev 2022-06-01 01:14:05 +00:00
Matt Casey
707b534826 Merge "Make source color textColorSecondary" into tm-dev 2022-06-01 01:13:58 +00:00
Matt Casey
8d5bcaa534 Merge "Fix Chooser enter transition animation" into tm-dev 2022-06-01 01:13:49 +00:00
Louis Chang
e107722e17 Merge "Restrict the smallest screen width dp of an embedded TF" into tm-dev 2022-06-01 01:07:42 +00:00
Raphael Kim
99945d5d70 Merge "Implement dumpsys for CompanionDeviceManagerService.CompanionDeviceManagerImpl" into tm-dev 2022-06-01 00:03:42 +00:00
TreeHugger Robot
92538a9dbc Merge "Fix "NetworkCallback was not registered" crash" into tm-dev 2022-05-31 22:16:47 +00:00
James O'Leary
676c0c450d Revert "Update light/dark detection."
Revert "Update smartspace shadow"

Revert "Update app icon shadows"

Revert submission 17935777-lightDarkDetection

Reason for revert: Talked with Adam Cohen, white shadows are controverstial and we'd need to escalate to senior UX if we want to ship. James would rather do it in U timeframe, will flag to UXers we work with that the opportunity to escalate is available if needed.
Reverted Changes:
Ia91221427:Update light/dark detection.
Ie12d3d054:Update app icon shadows
Icc88c3496:Update smartspace shadow

Change-Id: I7d6b972d29b328a7d5ca7ac7241156b6e51a2cd6
2022-05-31 21:12:38 +00:00
Hongwei Wang
eb700c0090 Merge "Validate content overlay before removal" into tm-dev 2022-05-31 19:24:48 +00:00
Issei Suzuki
0dfb582d5a Merge "Exclude launcher from app transition animation while recents is running." into tm-dev 2022-05-31 15:48:01 +00:00
Jing Ji
57e03f3b30 Merge "Add component types which a process is hosting into the proc memstats" into tm-dev 2022-05-31 15:37:52 +00:00
Mady Mellor
91d28d1b21 Merge "Fix the pointer position when displayed in RTL" into tm-dev 2022-05-31 15:10:09 +00:00
Patrick Baumann
f598205c2d Merge "Add visibility special casing for sdk sandbox" into tm-dev 2022-05-31 14:56:37 +00:00
Hongwei Wang
4c4b7ef959 Validate content overlay before removal
Bug: 234158920
Test: atest --iteration 20 --no-bazel-mode \
        PinnedStackTests#testLaunchTaskByAffinityMatchSingleTask
Change-Id: I1ed848fcd742443a23ecaa17ba6b4fb8cdb061e2
2022-05-31 10:40:53 +00:00
Louis Chang
73774c269d Restrict the smallest screen width dp of an embedded TF
Or the smallest screen width dp could be the same as the
display size.

Bug: 230035382
Test: verify sw config of an embedded activity
Change-Id: Ic085c6ed134c2787a26fd2b02b4345b04fb693e6
Merged-In: Ic085c6ed134c2787a26fd2b02b4345b04fb693e6
(cherry picked from commit 9cee26e261)
2022-05-31 18:25:02 +08:00
Louis Chang
c4e6a6f30c Adding the new activity on the same TF of the cleared activity
While starting an activity with FLAG_ACTIVITY_CLEAR_TOP, the
existing activity could also be finished and therefore the new
activity is added on the same TF of the top running activity.
However, the top running activity could be on a TF which is
different from the cleared activity.

Bug: 233860721
Test: start Settings' shortcut activity
Test: atest TaskTests
Change-Id: I5607a2737e7d0d5986adf14f44f169791da3d38a
2022-05-31 17:35:22 +08:00
lpeter
f8342c8db5 Postpone the request direct actions before onStart
By the original design, we register the activity event in the
ActivityManagerService. After getting the activity event, we will
query current visible activities and report them to Assistant.
Assistant will start to get direct actions of those visible
activities. But sometimes they can not get the direct actions
due to the stage of activity lifecycle before onStart().

We will postpone the request direct actions a few times
before onStart().

Bug: 224789902
Test: atest CtsVoiceInteractionTestCases
Change-Id: If7cd52c5ba749523e575c0be5595e8f20704c4f2
2022-05-31 14:59:42 +08:00
ryanlwlin
70764c141a Drop the cloned windows from visible window list
Currently the cloned windows is avaialbe from window list,
however the node info from the cloned window is incorrect.
To avoid confusion, we would drop them for a short term solution.

Bug: 230300971
Test: manually test with switchaccess
      adb shell dumpsys accessibility to observe the window list
Change-Id: I7a03376567698a493c9eb5e26d1f3390aacdb408
2022-05-31 13:48:08 +08:00
Michael Wright
83097c6db4 Invoke BrightnessSetting callbacks even with identical brightness.
Even if the brightness is the same we still need to invoke any listeners
as just the act of setting the brightness has side effects, like
clearing the temporary brightness. Skipping these callbacks mean we can
possibly get stuck in a state where we don't adjust the brightness at
all until the next time a user touches the brightness slider -- this
persists even through screen off.

Fixes: 218600709
Test: Manual
Change-Id: I918636a61424a51f9d22d32fd692beb6eb2b8f2d
2022-05-31 02:10:47 +00:00
Robert Horvath
d59d17d74a Merge changes from topic "privacy-type-media-projection" into tm-dev
* changes:
  Add MediaProjection privacy item type
  Extract privacy item monitoring interface, add AppOpsPrivacyItemMonitor
2022-05-30 17:43:32 +00:00
TreeHugger Robot
c17eae2651 Merge "Invalidate autofill session on IME disconnect" into tm-dev 2022-05-30 16:50:17 +00:00
Ming-Shin Lu
c2a6a2efeb Merge "Fix snapshot starting window isn't apply fixed-rotation with IME visible" into tm-dev 2022-05-30 12:24:51 +00:00
Robert Horvath
ea71e9e9c4 Merge "Improve LogAccessDialogActivity's rotation handling" into tm-dev 2022-05-30 11:37:55 +00:00
Ricky Wai
76f37a5d74 Merge "Only add boolean extra to bundle when the value is false" into tm-dev 2022-05-30 10:01:52 +00:00
Tiger Huang
1fab45404b Merge "Only update the compat system UI visibility if the source is valid" into tm-dev 2022-05-30 08:40:03 +00:00
Ming-Shin Lu
7ee09c4b55 Fix snapshot starting window isn't apply fixed-rotation with IME visible
As IME window will be hidden by AsyncFadeAnimationController when
receiving IME show request in IMMS side during fixed-rotation.

we could remove the previous logic from CL[1] in case snapshot starting
window surface may not apply fixed-rotation when IME snapshot visible in
the first place, since in CL[2] has already removed the disable
fixed-rotation when animating snapshot starting window with IME visible.

[1]: Idfdf129adbfbee6634d8a27aa78da1f631bd213b
[2]: Iceaedbfdb75e68e9f7fb8fd4a1bf8f35a779797e

Bug: 230733128
Test: 1. Launch a portrait app which keeps showing IME. (e.g. Chrome)
      2. Return to home be home key or swiping.
      3. Hold the device in landscape.
      4. Launch the app again.
      The app should show in landscape directly and IME will
      fade-in when it is drawn in landscape.

Change-Id: Ieb656aaa9f76d0f5dcc5487a6602e528ec771552
2022-05-30 08:34:39 +00:00
Nikolas Havrikov
79c5fed289 Invalidate autofill session on IME disconnect
Remember the latest InlineSuggestionsRequestCallback coming from the
autofill service, so that its autofill session can be invalidated
when the IME process is unbound or stopped.

Test: atest InlineWebViewActivityTest#testAutofillOneDataset
Bug: 226240255
Change-Id: I49cf295b95cec33b7eb404eab62b900014d09e26
(cherry picked from commit 33dc7f89c8)
Merged-In: I49cf295b95cec33b7eb404eab62b900014d09e26
2022-05-30 08:22:08 +00:00
Wenhao Wang
edfc3fa2ae [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours am: aa456df74e -s ours am: b1cf2a0cd2 -s ours am: 718d5a4d2f -s ours am: e9f7ca4fd5 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: Iab195185cff6a1a09845d48bf74d0b5045c21d8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 08:07:34 +00:00
Wenhao Wang
e9f7ca4fd5 [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours am: aa456df74e -s ours am: b1cf2a0cd2 -s ours am: 718d5a4d2f -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: If384bbd807b6b10bbafebf359d11b725b30db72e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 07:51:13 +00:00
Wenhao Wang
718d5a4d2f [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours am: aa456df74e -s ours am: b1cf2a0cd2 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: Id2ee63db92aae509297f6e014a03fe7ccf574497
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 07:33:49 +00:00
Wenhao Wang
b1cf2a0cd2 [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours am: aa456df74e -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: I5926ea7d571c78eae47ca529cb0a166c2a718519
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 06:58:02 +00:00
Wenhao Wang
aa456df74e [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours am: c543f70e3d -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

Change-Id: Id295b15c1e6469ee9f50babb2f4c057d78d67e7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 06:35:00 +00:00
Julia Reynolds
d400ef9b4d [automerger skipped] [conflict] Move service initialization am: 38fe45b539 am: 012cace2ee -s ours am: f3a82a3b59 -s ours am: b50f345f57 -s ours am: f03f3fad8b -s ours am: 692a08086e -s ours am: 61c6c8ba09 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 caa5a22ea0 is already in history

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

Change-Id: Id34e71280cebda99a0861c89af03d77806102abe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 06:34:54 +00:00
Julia Reynolds
61c6c8ba09 [automerger skipped] [conflict] Move service initialization am: 38fe45b539 am: 012cace2ee -s ours am: f3a82a3b59 -s ours am: b50f345f57 -s ours am: f03f3fad8b -s ours am: 692a08086e -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 caa5a22ea0 is already in history

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

Change-Id: Id7065a864f7b11ca96085bc2870ce12d46c13533
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 06:12:27 +00:00
Wenhao Wang
c543f70e3d [automerger skipped] Revert "[conflict] Move service initialization am: 38fe45b539" am: 8bb5e98ecb -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 38fe45b539 is already in history. Merged-In was found from reverted change.

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

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

Change-Id: I44b0bee5c0ba597407652dd2c1af868adcee724a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 06:11:04 +00:00
Julia Reynolds
692a08086e [automerger skipped] [conflict] Move service initialization am: 38fe45b539 am: 012cace2ee -s ours am: f3a82a3b59 -s ours am: b50f345f57 -s ours am: f03f3fad8b -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 caa5a22ea0 is already in history

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

Change-Id: Ide0431351cbc788dc0c4ca649a8b5eedbd9a93ca
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 05:39:09 +00:00
Wenhao Wang
8bb5e98ecb Revert "[conflict] Move service initialization am: 38fe45b539"
This reverts commit 012cace2ee.

Reason for revert: This CL depends on ag/17823648, which is not merged into qt-qpr1-dev.

Change-Id: I503bcc1e979dd4db941cb7754f63a0dc35ce9682
2022-05-30 05:30:08 +00:00
Julia Reynolds
f03f3fad8b [automerger skipped] [conflict] Move service initialization am: 38fe45b539 am: 012cace2ee -s ours am: f3a82a3b59 -s ours am: b50f345f57 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 caa5a22ea0 is already in history

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

Change-Id: Icbb45e04112d49968b4a2f33693793ef01fb95b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 05:14:00 +00:00
Julia Reynolds
b50f345f57 [automerger skipped] [conflict] Move service initialization am: 38fe45b539 am: 012cace2ee -s ours am: f3a82a3b59 -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 caa5a22ea0 is already in history

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

Change-Id: I1f15a3a4dd6fe04321ecda11bb16dc6f2aef175c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 04:53:17 +00:00
Julia Reynolds
f3a82a3b59 [automerger skipped] [conflict] Move service initialization am: 38fe45b539 am: 012cace2ee -s ours
am skip reason: Merged-In I2f9f9bdba37f4ebfaea56c1a6662f0474ae8a002 with SHA-1 caa5a22ea0 is already in history

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

Change-Id: I094361ea2d938bd3e7ff77e66f68cf23d8e25ee2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-30 04:05:13 +00:00
Edgar Wang
3aa0a120b1 Merge "Enable hyphenation on most of preference." into tm-dev 2022-05-30 04:00:19 +00:00
Antony Sargent
fc6eb70e0e Merge "Prevent deadlocks during VirtualDisplay creation" into tm-dev 2022-05-30 00:09:18 +00:00
Antony Sargent
725dad7d71 Prevent deadlocks during VirtualDisplay creation
When creating a VirtualDisplay for a VirtualDevice, we need to do some
extra work like setting up for input injection, creating a
DisplayWindowPolicyController, and grabbing a wakelock to keep the
display awake. Some parts of this extra work end up calling back into
the DisplayManagerService from another thread, but since we're already
holding the mSyncRoot lock we sometimes get into situations where
those threads get blocked trying to acquire mSyncRoot, while holding a
lock that another thread ends up needing like the global window
manager one, so we get deadlock.

The fix in this CL is to break up the extra work the
VirtualDeviceManagerService needs to do into two parts: one part that
happens before the VirtualDisplay is created, and one part
after. Neither of these needs mSyncRoot to be held.

Fixes: 230544802
Test: atest CreateVirtualDisplayTest
Change-Id: I6a6e03f816567579510b3f1ef0705375549a3c88
2022-05-29 11:18:36 -07:00
Henry Fang
9dd35d01f8 Merge "Allow LNB to be opened before Frontend" into tm-dev 2022-05-28 18:43:29 +00:00
Hongwei Wang
83979ad7b7 Merge "Fix the animation position when launch into PiP" into tm-dev 2022-05-28 06:14:33 +00:00