Commit Graph

656347 Commits

Author SHA1 Message Date
Caitlin Cassidy
56b6645afb Merge "[Status Bar Refactor] 2.2/N: Migrate StatusBar's panelExpansionChanged callback to the correct listener interface." into sc-v2-dev 2021-11-03 18:44:05 +00:00
Caitlin Cassidy
3f481ef0ba Merge "[Status Bar Refactor] 2/3: Make StatusBarWindowView only accessible from its controller, instead of accessible to anyone via Dagger." into sc-v2-dev 2021-11-03 18:33:23 +00:00
Emilian Peev
852aa2cb93 CameraServiceProxy: Clean up app compat overrides
The rotate&crop heuristics must now return specific
modes instead of true&false. Various modes are not
supported by the app compat overrides which can only be
enabled or disabled.
Clean up unnecessary app compat overrides that can not
be supported and update the corresponding comments.

Bug: 204587197
Test: Manual using application
Change-Id: Iacb6844c625092a9864ab5ff7cae7376cfd2cd9a
2021-11-03 17:39:01 +00:00
Caitlin Cassidy
c3e4e96ef2 Merge "[Status Bar Refactor] 2.1/N: Migrate ScrimController's panelExpanisonChanged listener off of the StatusBar.ExpansionChangedListener interface and onto the PanelExpansionListener interface." into sc-v2-dev 2021-11-03 17:08:42 +00:00
Winson Chung
292ed69c65 Merge "Revert "Do NOT MERGE Fix magnification border includes taskbar"" into sc-v2-dev 2021-11-03 16:49:07 +00:00
Mady Mellor
980e3e78f8 Merge "When a shortcut is deleted remove it from xml as well" into sc-v2-dev 2021-11-03 16:20:09 +00:00
TreeHugger Robot
0b6477d82f Merge "Remove call to set wakeLock WorkSource from VibrationThread constructor" into sc-v2-dev 2021-11-03 16:08:48 +00:00
Caitlin Cassidy
5038891a99 [Status Bar Refactor] 2/3: Make StatusBarWindowView only accessible from its
controller, instead of accessible to anyone via Dagger.

Test: manual once-over of key user journeys
Test: atest SystemUITests
Bug: 204583449
Change-Id: I00282f273aae79e01c32405aae970d5673a56447
2021-11-03 15:42:34 +00:00
Caitlin Cassidy
c3ea20b662 Merge "[Status Bar Refactor] 1/3: Move status bar window's animation controller into a method inside StatusBarWindowController, rather than being in StatusBar.java." into sc-v2-dev 2021-11-03 15:32:29 +00:00
Lais Andrade
c7db2377f1 Remove call to set wakeLock WorkSource from VibrationThread constructor
A new  VibrationThread might be created and dropped if the ongoing
thread takes long to be finished and a new vibration arrived to the
service.

The wakelock is only acquired when a thread starts, so move the calls to
configure the worksource to the run() method.

Fix: 193742818
Test: manual
Change-Id: I7d7953ec9e065bcec78110b44daf3ef57693164d
(cherry picked from commit 56663ddbe7)
Merged-In: I7d7953ec9e065bcec78110b44daf3ef57693164d
2021-11-03 15:06:01 +00:00
Caitlin Cassidy
b3a7427046 [Status Bar Refactor] 2.2/N: Migrate StatusBar's panelExpansionChanged
callback to the correct listener interface.

StatusBar also had two different methods called when
panelExpansionChanged happened, so those methods are merged into one.

Test: manual (verified callback still triggers correctly)
Test: atest SystemUITests
Bug: 200063118
Change-Id: I90011b0e0bb9bb57accf82806cef7d5c44e19a7f
2021-11-03 15:03:50 +00:00
Caitlin Cassidy
ccbb1b8074 [Status Bar Refactor] 2.1/N: Migrate ScrimController's
panelExpanisonChanged listener off of the
StatusBar.ExpansionChangedListener interface and onto
the PanelExpansionListener interface.

These two listener interfaces do the same thing, so we should unify them
into one interface. All 2.x CLs will migrate listeners to
the PanelExpansionListener interface.

Test: manual (verify ScrimController's callback still triggers)
Bug: 200063118
Change-Id: Ie0cec69a6571a936fa98be39e6de118cc0a6bdaf
2021-11-03 15:03:49 +00:00
Lucas Dupin
7bced578b7 Merge "Correctly apply scrollY" into sc-v2-dev 2021-11-03 15:01:11 +00:00
Alex Chau
8f2824fc72 Revert "Do NOT MERGE Fix magnification border includes taskbar"
Revert submission 16003793-magnification_border

Bug: 196510717
Reason for revert: Caused NexusLauncherTests and NexusLauncherOutOfProcTests to stop running
Reverted Changes:
Ibbc9c51ea:Do NOT MERGE Fix magnification border includes tas...
Ida2bb5bf1:DO NOT MERGE Fix the cutout of magnification borde...

Change-Id: Id61a370271f94b4a379709226a90e29bc5dfa4b3
2021-11-03 14:19:23 +00:00
TreeHugger Robot
9145f4a488 Merge "Ensure we clear mPackagesWithShareRequests when a remote exception happens at write() or start()." into sc-qpr1-dev am: 7207d8d032
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16174880

Change-Id: If8fdbfe1c02a4b9cb0122c18d4d2a11d531c7e21
2021-11-03 11:49:10 +00:00
TreeHugger Robot
7207d8d032 Merge "Ensure we clear mPackagesWithShareRequests when a remote exception happens at write() or start()." into sc-qpr1-dev 2021-11-03 11:32:18 +00:00
Jerry Chang
cb5907cc57 Merge "Fix unable to drag notification to enter split screen" into sc-v2-dev 2021-11-03 08:45:41 +00:00
TreeHugger Robot
52c1467044 Merge "Fix unexpected hide IME cases" into sc-v2-dev 2021-11-03 08:01:36 +00:00
Louis Chang
9d25f3fbe8 Merge "Allowing activity visible behind translucent adjacent TaskFragments" into sc-v2-dev 2021-11-03 06:32:05 +00:00
Ryan Lin
eb8b4fdec8 Merge "Do NOT MERGE Fix magnification border includes taskbar" into sc-v2-dev 2021-11-03 05:24:26 +00:00
Jaineel
7730d422d9 Update AutofillPerf tests with perfetto permission am: 7a58911bbf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16176434

Change-Id: I9a86821f4fc88d8ea354e51545c3400b3aa665cd
2021-11-03 04:14:30 +00:00
Winson Chung
3e90f3b5be Merge "Abstract out common code for managing a single instance remote callback" into sc-v2-dev 2021-11-03 03:04:18 +00:00
Wu Ahan
43f59bb11b Merge "Instrument jank of splash screen AVD and exit animation" into sc-v2-dev 2021-11-03 02:44:08 +00:00
Jerry Chang
4d61bbca3b Fix unable to drag notification to enter split screen
Fix exception when resetting adjacent launch root, dragging expandable
notification and logging unknown activity dragging event.

Fix: 202276040
Fix: 197968594
Fix: 204900540
Test: tests passed
Test: drag expandable notification to split won't fail
Change-Id: I4bb6c361df2034547079a6e9d932b0f5589b3e35
2021-11-03 10:22:26 +08:00
ryanlwlin
fa486cd228 Do NOT MERGE Fix magnification border includes taskbar
The window type of the Taskbar is navigation_bar_paenel, which
is unmagnifiable. However, we used to exclude these windows from
magnification region computation to avoid cutout.

When the foldables is unfolded, the taskbar wouldn't cause the cutout.
To fix this problem, so we add a flag to distinguish the windows
that cause the cutout.

Bug: 196510717
Test: manual test
Change-Id: Ibbc9c51ead9ea492f1f2e598587b21dd28d30a2b
2021-11-03 10:12:23 +08:00
Lucas Dupin
92097fc4a4 Correctly apply scrollY
The previous calculation was not correct.
Now we interpolate between the requested height, including the override,
and the actual view bounds.

Test: visual
Bug: 199047412
Change-Id: I62104d04c9cee22d12ca63d55e4f834e44dde335
2021-11-02 17:57:21 -07:00
Mady Mellor
80a34bc07e Merge "Add locusId as something taskOrganizers care about" into sc-v2-dev 2021-11-03 00:47:12 +00:00
Jerry Chang
7d7857b2c5 Merge "Support to transfer freeform task into split screen" into sc-v2-dev 2021-11-03 00:39:26 +00:00
Mady Mellor
a542c24b6a When a shortcut is deleted remove it from xml as well
Bug: 204586850
Test: atest BubblesTest NewNotifPipelineBubblesTest
Change-Id: I99cfacf773a0aae7ebcf13830d24ff32c5c35b2b
2021-11-02 17:09:32 -07:00
Winson Chung
9f7ea0a38f Abstract out common code for managing a single instance remote callback
- Pull code that manages the lifecycle of the callback into its own
  class which takes care of cleaning up any callback references and also
  listening for when the binder dies
- Removing some boilerplate code

Bug: 202740477
Test: atest WMShellUnitTests
Change-Id: I7ff4c876fc14291d6523c2c62a7c453a01d96294
2021-11-02 17:04:03 -07:00
Mady Mellor
5468eedde5 Add locusId as something taskOrganizers care about
This ensures that a locusId change will trigger an
onTaskInfoChange immediately. Previously it would just
be sent with the next info change event which isn't
sufficient.

Test: atest NotificationManagerTest
Bug: 204260661
Change-Id: I2b53f63b6efd6d2c22a877b7c33f5a12832a8e1d
2021-11-02 15:31:41 -07:00
Caitlin Cassidy
4f154e9c4a [Status Bar Refactor] 1/3: Move status bar window's animation controller into
a method inside StatusBarWindowController, rather than being in
StatusBar.java.

Test: Test steps in ag/14294127 (specifically, that the updated
animation in b/183229367#comment11 still occurs)
Bug: 204583449

Change-Id: Ib4e8a18250db0cabed490fe286e8944262cc4f9c
2021-11-02 20:50:20 +00:00
Caitlin Cassidy
cec069482f Merge "[Status Bar Refactor] 1/N: Define a singleton PanelExpansionStateManager and pipe existing panel expansion callbacks through it." into sc-v2-dev 2021-11-02 20:45:33 +00:00
TreeHugger Robot
1c3b93b10a Merge "Always check if the view can be recycled." into sc-v2-dev 2021-11-02 19:07:48 +00:00
TreeHugger Robot
b027e634e8 Merge "CameraExtensionProxy: Add queries intent in AndroidManifest" into sc-v2-dev 2021-11-02 19:05:38 +00:00
Jaineel
7a58911bbf Update AutofillPerf tests with perfetto permission
Test: atest AutofillPerfTests
Bug: 192989101
Change-Id: Ic703dcff424c8496e588e3188299a8f52c36b626
(cherry picked from commit c56e0b3188)
2021-11-02 18:45:36 +00:00
Sergey Volnov
063fe636ba Ensure we clear mPackagesWithShareRequests when a remote exception
happens at write() or start().

Bug: 203784652
Test: atest CtsContentCaptureServiceTestCases
Change-Id: I35d8c8056dc126c44f03b74a04090861224a9407
(cherry picked from commit 39d8062aec)
2021-11-02 18:18:08 +00:00
Kenneth Ford
27d7e521e9 Merge "Adds tests for device state flags in DeviceStateProvider" into sc-v2-dev 2021-11-02 16:59:09 +00:00
Ming-Shin Lu
fac4cdfce6 Fix unexpected hide IME cases
When testing testImeSwitchingWithoutWindowFocusAfterDisplayOffOnFull on
the virtual device, the test flows will be:
1) Launch an activity and click the editor to show IME
2) Turn off/on the screen
3) Launch the IME picker dialog and expecting no window focus change.
4) Switch to another IME app and expect the IME visible after switched.

Somehow the flaky point is in step 4) that if attaching the new input
to show the IME comes first, before the input target updated to WM,
in the meantime the app received onControlChanged
callback with null control from WMS#relayoutWindow, then in
ImeInsetsSourceConsumer#setControl -> hide() will end up calling
notifyImeHidden for IME to invoke hideMySoftInput(), which is
not expected result.

As this unexpected IME hidden issue is related the timing issue of
updating IME targets to WM a bit late and showing IME request happends
from IMMS instead of from ImeInsetsSourceConsumer#requestShow.
(i.e. consumer#hide() be invoked when mIsRequestedVisibleAwaitingControl
is false but the control is null when setControl called)

To fix this issue case, it looks make sense to check with
ImeInsetsSourceConsumer#isRequestedVisibleAwaitingControl() when the
null control callback in setControl(), since
isRequestedVisibleAwaitingControl() will be true when requested the IME
visible, so that it won't fall into hide() logic.

Also, modified "Animation finished abruptly." debug log in
InsetsAnimationControlImpl#applyChangeInsets to print only when the
animation actually finished, since it does not make sense to print
when the animation is not finish.

Fix: 204524304
Test: atest InputMethodServiceLifecycleTest#\
        testImeSwitchingWithoutWindowFocusAfterDisplayOffOnFull \
          --rerun-until-failure 100

Change-Id: I3071af14bf78e23f9526d6a9c138ab6ae2e0e339
2021-11-02 16:19:18 +00:00
Tyler Gunn
a208bcce58 Merge "Add config to detect e-call call based on dialed sim emerg # list." into sc-qpr1-dev am: 8a7e825938
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16150137

Change-Id: Iab11604bff41682864b5da319a3c14e3eef38e17
2021-11-02 16:12:32 +00:00
Tyler Gunn
8a7e825938 Merge "Add config to detect e-call call based on dialed sim emerg # list." into sc-qpr1-dev 2021-11-02 16:06:21 +00:00
TreeHugger Robot
4bd8d4b475 [automerger skipped] Merge "Ensure end action is called if keyguard animation is cancelled" into sc-qpr1-dev am: 43ded012fb -s ours
am skip reason: Merged-In I9984863d0acea1265d09dfcfac22d5e78c73a1fe with SHA-1 8a7b6945da is already in history

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

Change-Id: Ic0b05d1b0c584bf0ceeb46f64afec16d370b2988
2021-11-02 16:04:53 +00:00
Lucas Dupin
9a6f2ac14d Merge "Only call layout during layout pass" into sc-v2-dev 2021-11-02 15:47:04 +00:00
TreeHugger Robot
43ded012fb Merge "Ensure end action is called if keyguard animation is cancelled" into sc-qpr1-dev 2021-11-02 15:45:20 +00:00
TreeHugger Robot
9de009c3a5 Merge "Remove deadlock path between InteractionJankMonitor and FrameTracker" into sc-v2-dev 2021-11-02 15:26:32 +00:00
TreeHugger Robot
820b49488d Merge "Set background for ripple feedback on network items" into sc-v2-dev 2021-11-02 15:23:32 +00:00
Tom Natan
2d213c397a Merge "Redesign the size compat restart button according to mocks." into sc-v2-dev 2021-11-02 15:22:05 +00:00
Jeff DeCew
a509832d9c Merge changes from topic "b204127880_pipeline_backport_3" into sc-v2-dev
* changes:
  New Pipeline: Remote Input 4/4: Add RemoteInputCoordinator
  New Pipeline: Remote Input 3/4: Extract notification rebuilder methods to a utility
  New Pipeline: Remote Input 2/4: Add ability to internally update notifications
  New Pipeline: Remote Input 1/4: Extract legacy pipeline logic within NotificationRemoteInputManager
  Make SmartReplyController a Dumpable
2021-11-02 15:06:33 +00:00
TreeHugger Robot
0f4943a748 Merge "Make AlertDialog use specific styles per button" into sc-v2-dev 2021-11-02 13:58:37 +00:00
TreeHugger Robot
869e9dd773 [automerger skipped] Merge "Fixed an issue where using UDFPS always dismissed the shade" into sc-qpr1-dev am: bd69c2fd14 -s ours
am skip reason: Merged-In Id8bf8460bff26ec5694c82466ea63e3cdf61216e with SHA-1 703c9e5c42 is already in history

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

Change-Id: Ifffea83f7a69cbf70dad63bd5afe6afa610fbbce
2021-11-02 13:23:42 +00:00