Commit Graph

891995 Commits

Author SHA1 Message Date
Bryce Lee
379ef492ce Move directional spacing logic out of ViewEntry.
This changelist delegates calculating the spacing between complications
to the DirectionGroup rather than the ViewEntry itself. By calculating
the margin up the hierarchy, more conditions can be accounted for
without passing the information down to the ViewEntries.

This changelist also renames complication margin to directional spacing
to better reflect how the value is used.

Test: atest ComplicationLayoutParamsTest
Bug: 280595239
Change-Id: I0a83ce98bcdd42d1100ebfe4ef2ab49bb2b95dc3
2023-05-08 11:11:28 -07:00
Alex Stetson
0e44c4575d Merge "Remove dumpable container from SystemUIApplication" into udc-dev 2023-05-08 18:05:10 +00:00
Fabian Kozynski
01ec763472 Add logging when tile cannot be found
This will help understand why is that tile null

Bug: 279388069
Test: build
Change-Id: I03cbcaf4c88c6bfcf796cf2cffe8ccbadcbedea0
2023-05-08 18:04:54 +00:00
Behnam Heydarshahi
efb6ee544c Additional tracing for volume dialog
Dump whether the dialog thinks it's animating.

Bug: b/232606092
Test: VolumeDialogImplTest
Change-Id: I278bc9d84d9661289ed479f861f0229f3856837e
2023-05-08 14:04:24 -04:00
Lucas Dupin
866745daac Do not add suffix to fixed colors
Fixed colors only exist once. They need special logic when being
assigned to overlays.

Fixes: 280128998
Test: Change colors, look at bouncer
Test: atest ThemeOverlayControllerTest
Change-Id: I001f7cf7987702de787ce29592985b990668d89d
2023-05-08 18:04:15 +00:00
Antonio Kantek
7b8a655a8b Merge "Return the default touch mode for dead displays" into udc-dev 2023-05-08 18:03:45 +00:00
Antonio Kantek
c0a3c23ac0 Merge "Fix WindowManagerServiceTests touch tests" into udc-dev 2023-05-08 18:03:30 +00:00
Aurélien Pomini
6f17fc209d Merge "WallpaperManager getDrawable & al clarifications" into udc-dev am: 5b1d2b53f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23027354

Change-Id: I349fcccc84371df2499bccdcae6e0ef9288dc821
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 18:00:36 +00:00
Ming-Shin Lu
8fb9afd655 Fix ShowImeOnAppStartWhenLaunchingAppFromQuickSwitchTest flaky
As CL[1] that ImeVisibilityStateComputer leverages
onImeInputTargetVisibilityChanged callback to check whether the current
IME input target has been covered and became invisible by non-IME focusable
layering target. If so then ImeVisibilityStateComputer will hide the IME
to address the IME persists on top of layering target but the input target
was invisible case.

But there is an edge case that the starting window could possible shown
and cover the IME input target befor it drawn during animating (e.g.
quick-switching app tasks by recents animation) then leads to IME may
hidden by CL[1]'s case.

Luckly the above scenario has caught by
ShowImeOnAppStartWhenLaunchingAppFromQuickSwitchTest, to fix this
flaky case, add the windowType in onImeTargetOverlayVisibilityChanged
to give more context for ImeVisibilityStateComputer and ignore the starting
window case, since it since it's ok to cover the IME input target window
in temporary without affecting the IME visibility.

[1]: Ia71b975898efb19439c3a1b1a9a2bdcf21b78650

Fix: 278698977
Test: atest
FlickerTest:ShowImeOnAppStartWhenLaunchingAppFromQuickSwitchTest
--rerun-until-failure 10
Test: atest ImeVisibilityStateComputerTest

Change-Id: I3a950423f73f0a97432589d0a90ac8fd1c84f05e
2023-05-08 17:52:38 +00:00
Ioana Alexandru
19a0549e77 Verify URI permissions for notification shortcutIcon.
Bug: 277593270
Test: atest NotificationManagerServiceTest
Change-Id: Iaf2a9a82f18e018e60e6cdc020da6ebf7267e8b1
2023-05-08 17:45:51 +00:00
Wenhui Yang
3727772109 FingerprintSensorProperties refactor - domain layer
Step 2/3, add domain layer for business logic of sideFps overlay.

Bug: 221037350
Test: atest SideFpsOverlayInteractorTest atest FingerprintRepositoryImplTest
Change-Id: I567b5d1333f4dc5cca5cb339c94fda41be2db6fb
2023-05-08 17:45:32 +00:00
Song Chun Fan
633c374433 Merge "[pm] fix javadoc link for setPermissionState" into udc-dev 2023-05-08 17:44:51 +00:00
Helen Qin
9e1f5f9a47 Merge "Clean up the lastUsedTime nullability" into udc-dev 2023-05-08 17:42:10 +00:00
Makoto Onuki
874885998e Disable short-service debug log (stopship)
Fix: 260012573
Test: atest CtsShortFgsTestCases
Change-Id: I71b8d23eba24aa04f3e360cc2245a7fd85a07d3c
2023-05-08 10:39:09 -07:00
Xiang Wang
1412974671 Add AM#forceStopPackageAsUserEvenWhenStopping
This is needed in scenarios that clients want to force stop the
application package even when the user is in a stopping state but not
completely stopped yet.

Bug: 276961198
Test: atest FrameworksServicesTests:ActivityManagerServiceTest
Test: perform passenger logout and login manual on the MD emulator
Change-Id: Ie08c87d717e5207ac4a0d84b28ecff65a75c882c
2023-05-08 10:34:30 -07:00
Songchun Fan
0e19e64bd3 [pm] fix javadoc link for setPermissionState
Fix rendering issue like https://screenshot.googleplex.com/8T9KG6t8Dtaxbqm.png

BUG: 281537456
Test: builds
Change-Id: I93f32fbc4c3dc02f79af9224ac484d011799065f
2023-05-08 17:24:17 +00:00
Roy Chou
47e39ef993 chore(#Magnification): add new field in metric MagnificationUsageReported
We add new field scale in metric MagnificationUsageReported. In
FullScreenMagnificationController/WindowMagnificationManager, we add
getLastActivatedScale method so that MagnificationController can get the
last magnification scale of the activation for logging.

Bug: 281287915
Test: atest MagnificationControllerTest
      m statsd_testdrive & statsd_testdrive 345
Change-Id: If45b43ae58ed05fb68575fc6bf15c551fc2026a8
2023-05-08 17:23:45 +00:00
Achim Thesmann
ab9ab096e6 Merge "Allow BAL for Autofill" into udc-dev 2023-05-08 17:17:30 +00:00
Jorge Gil
ccee98949a Merge "Do not set a disallowedAreaForEndBounds for caption window decors" into udc-dev 2023-05-08 17:11:48 +00:00
Shawn Lee
a59d1b8ed6 Merge "Add a null check to prevent NPE when status bar isn't inflated" into udc-dev 2023-05-08 17:08:35 +00:00
Prabir Pradhan
7899891e83 ViewGroup: Send events to the child at the event's dispatch location
A mouse event should always be dispatched to the cursor position,
regardless of the location of the pointers in the MotionEvent.

When there are touchpad gestures like a two finger
swipe or a pinch, we promote compatibility with apps by adding fake
pointers that emulate the same behavior on a touchscreen. For example,
two finger swipes turn into a one finger drag, and two finger pinch
emulates a pinch on the screen using two pointers.

The proper way for views to handle touchpad gestures is to look for the
new motion classifications added for touchpad gestures, and dispatch
events at the cursor position for these gestures. However, our API
is incomplete at the moment, becuase apps cannot query the cursor
position.

We can at least fix this in the UiToolkit by dispatching mouse events to
the cursor location.

Bug: 279444161
Test: manual
Test: atest FrameworksCoreTests:ViewGroupTest
Change-Id: I58a9c06b7651ebe97cd03447b083cc9887f863b1
2023-05-08 17:07:54 +00:00
Prabir Pradhan
526d138bdf Create FocusEventDebugView to show key presses on screen
Use the following command to enable FocusEventDebugView:

adb shell settings put system show_key_presses 1

Bug: 279026138
Test: manual
Change-Id: I08bedeca1166ec359f31588702d0fe885994a696
2023-05-08 17:07:24 +00:00
Evan Laird
27617f810f Add @SysUISingleton to repository switcher classes
The Mobile and WiFi repository switcher classes never got the annotation
to be created as a SysUISingleton. This is probably a mistake caused
by the way we had been providing them; By using a @Binds method on the
StatusBarPipelineModule, it was not immediately obvious that the classes
were not singletons. But believe me, they should be singletons.

Test: manually determined that there is only 1 Mobile and Wifi switcher
instantiated
Test: CarrierTextManagerLog gets current info when airplane mode
switches
Test: manually verified that the "Wi-Fi Calling" text shows when in
airplane mode
Fixes: 278254374
Change-Id: Ifdb5c4b2977020f6ab349b97cfe286c7acbedaa9

Change-Id: If2d87039042fb0a2d3bec42efb1d2d45fa015c04
2023-05-08 12:53:41 -04:00
Evan Laird
13edac415d Carrier text: add LogBuffer debug logs
Convert some Log.d calls to use LogBuffer

Test: adb shell dumpsys activity service com.android.systemui/.SystemUIService CarrierTextManagerLog
Bug: 278254374
Change-Id: Ia544cbbfc492a1e523aa2fe0e458e56f766fac92
2023-05-08 12:53:38 -04:00
Song Chun Fan
23cdcba71c Merge "Revert "Revert "[SettingsProvider] skip caching in system server""" into udc-dev 2023-05-08 16:52:11 +00:00
Bhavuk Jain
b99a3b85ea Converted released flag to unreleased flag for wallpaper picker for
creative categories

This CL aims at turning the flag off for picker for creative categories
in build where it is not needed.

Bug: b/281530539
Test: Tested by building and flashing on local and turning off the flag
Change-Id: I14b95d2fe31f9bb11c6d87363894e96ac88cbcb1
2023-05-08 16:52:07 +00:00
Austin Borger
3fac471cfc Merge "Camera / UidObserver: Add the ability to subscribe to specific UIDs" into udc-dev 2023-05-08 16:28:51 +00:00
Justin Weir
38d07cba1c Merge "Add method for adding expansion listener without firing event" into udc-dev 2023-05-08 16:26:00 +00:00
Treehugger Robot
f0e955ecd6 Merge "Fix some views not being tracked" into udc-dev 2023-05-08 16:16:01 +00:00
Treehugger Robot
f5b06ea4b4 Merge "Add satellite modem busy error code." into udc-dev am: 95977e0691
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22612534

Change-Id: Ibe3dda1c0ba51731b834de1f66947a706693ba27
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 16:12:39 +00:00
Ming-Shin Lu
392226b61e Fix unexpected starting window removal timeout when in fixed-rotation
Not aware in DC#mayImeShowOnLaunchingActivity has an issue that
it uses findMainWindow() to check its softInputMode visiblity state
but always got 0 because the returned main window is the starting window
vs. the app's base application window, which is not expected.

This problematic logic leads to when CL[1] merged, the starting window
removal mode and timout always set to DEFER_MODE_ROTATION (3 secs)
vs. DEFER_MODE_NONE (100ms) if the warm launching activity's softInputMode
is hidden during fixed-rotation.

Ensure finding the main window with excluding the starting window in
DC#mayImeShowOnLaunchingActivity to fix this case.

[1]: Ie476e89a57f2f64d4d66e722fedeeb1719d9de55

Bug: 268627602
Test: atest FlickerTests:\
      ShowImeOnAppStartWhenLaunchingAppFromFixedOrientationTest
Test: atest DisplayContentTests#\
      testMayImeShowOnLaunchingActivity_negativeWhenSoftInputModeHidden
Change-Id: I3fa33daf20734b673fd89328dca6a8fd432f2969
2023-05-08 16:02:09 +00:00
Behnam Heydarshahi
76ace72c68 Move volume dialog away from the hinge
Bug: b/255341648
Test: atest VolumeDialogImplTest

Change-Id: Iff9d8506e2481a120995bde7eb847964f9d8c6bc
2023-05-08 12:00:18 -04:00
Caitlin Shkuratov
ab3637736a Merge changes Ib9dde023,I917506fc,I8576cc36 into udc-dev
* changes:
  [SB Refactor] Only use carrier merged sub ID if wifi or CM are default.
  [SB Refactor] Use a real WifiRepo in MobileConnectionsRepositoryTest.
  [SB Refactor] Convert MobileConnectionsRepositoryTest to testScope etc.
2023-05-08 15:57:34 +00:00
Caitlin Shkuratov
4a7852efd1 Merge "[Mobile] Remove mobile_roaming_large view." into udc-dev 2023-05-08 15:51:40 +00:00
Aaron Liu
4bf3cf15ce Release flag
Release flag for activity starter.

Bug: 278761837
Bug: 278273334
Test: Ensure that the previous tests that failed are now passing on
abtd.

Change-Id: If92f7b458839299417d6002b28cb309c77ac89f2
2023-05-08 08:49:01 -07:00
Aaron Liu
ec53bda6ea Maintain parity with central surfaces impl.
Change arguments to be true by default to maintain parity with central
surfaces.

Bug: 278273334
Fixes: 280800920
Test: long press settings
Test: ABTD with change and released flag (It passes)
Test: ABTD without change and released flag (It fails)
Test: Atest on local device (It passes)
Change-Id: Ifa680f247fec41a02ab911d60207459a1fce6bae
2023-05-08 08:48:44 -07:00
Nicholas Ambur
819b087abc Merge "fix flaky behavior in FakeLatencyTracker" into udc-dev 2023-05-08 15:46:46 +00:00
Treehugger Robot
c4d316a0c2 Merge "Add UiEvent for the device starting to wake up" into udc-dev am: 957410032e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22955155

Change-Id: I7e374b84fec306ada990b1a396817852519ee1e0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 15:43:35 +00:00
Treehugger Robot
c48c4fc288 Merge "Hook up binderDied callback to cancel session when service dies" into udc-dev 2023-05-08 15:39:53 +00:00
Aurélien Pomini
5b1d2b53f5 Merge "WallpaperManager getDrawable & al clarifications" into udc-dev 2023-05-08 15:36:04 +00:00
Jeff DeCew
ebcf5a5256 Account for the bouncer's scrim in LightBarController
1) The ScrimController's alpha is irrelevant when the bouncer is showing, because the bouncer's scrim is baked into that view, so we always want `forceForScrim` to be true when the bouncer is showing.
2) Moreover, the bouncer covers expanded QS, so tweak the later logic to ignore the QS override when the bouncer is visible.

Fixes: 280434803
Test: atest LightBarControllerTest
Change-Id: Id4236235ce11b473d64d36431c9a4e5f70caf2c9
2023-05-08 11:33:00 -04:00
Evan Laird
26aee20cc6 Merge "Prefer the VCN subscription when filtering for CBRS" into udc-dev am: 541ef6fb00
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22889527

Change-Id: Id76f981ddb713546a37933907ecf060a008a828d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 14:40:02 +00:00
Caitlin Shkuratov
00edd0fce6 Merge "[Status Bar] Old pipeline: Correctly mark carrier merged as validated." into udc-dev am: ae6badadc1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23059647

Change-Id: Ide6a264b627a2d6887a2de627b0656667bd1f5b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 14:23:06 +00:00
Jan Sebechlebsky
add074a3bd Do not share VirtualDeviceImpl lock with SensorController
There's no reason to share those locks and separating the locks breaks
lock inversion cycle.

Also, return copy of mSensorDescriptors in getSensorDescriptors instead
of original map.

Bug: 278900649
Test: atest CtsVirtualDevicesTestCases
Change-Id: I993ae4f0c2a5590529bcabaa15463956b3aa5b1d
2023-05-08 16:13:17 +02:00
Treehugger Robot
95977e0691 Merge "Add satellite modem busy error code." into udc-dev 2023-05-08 14:09:59 +00:00
Caitlin Shkuratov
e059a68091 Merge "[Bluetooth] Define bluetooth repo to make fetches in the background." into udc-dev am: 4c082a2d4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22936760

Change-Id: I1f03fa1c50dea317240ecebae14f64e3fa22b77a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 14:07:43 +00:00
Ioana Alexandru
b7d43d7419 Merge "Visit URIs in landscape/portrait custom remote views." into sc-dev am: a764a470fd am: 0a1937e1d2 am: 0e8a696a9c am: 7f4bdf934a am: 0b73012d3f am: 4fc1c2dbed am: 4918bf7bcd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22895638

Change-Id: If6b7e0248cb61235d177546e35951eefa900fd29
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 14:07:31 +00:00
Ioana Alexandru
87e710d6da [automerger skipped] Merge "Visit URIs in landscape/portrait custom remote views." into rvc-dev am: 42635aa4d0 -s ours am: d40091c7a3 -s ours am: a8d2aafafa -s ours am: bd6df75f1e -s ours am: e59ea4e0c1 -s ours am: 86da9f2631 -s ours am: a7eeb19a20 -s ours am: ad98a375d5 -s ours am: 4c704db280 -s ours
am skip reason: Merged-In I7d3d35df0ec38945019f71755bed8797b7af4517 with SHA-1 c80f854e42 is already in history

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

Change-Id: I26346ae60c7fe40ab57c71859bab23d880b0f4f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 14:07:20 +00:00
Ioana Alexandru
8b191f4f72 [automerger skipped] Visit URIs in landscape/portrait custom remote views. am: 43e1ae4e0d -s ours am: 4f90f991c2 -s ours am: 95f997c629 -s ours am: 6ab72ecec9 -s ours am: e1b1b1e720 -s ours am: fd37bd7977 -s ours am: 76f4b7c7dc -s ours am: 97b0b78859 -s ours am: 0ebaac68e6 -s ours
am skip reason: Merged-In I7d3d35df0ec38945019f71755bed8797b7af4517 with SHA-1 c80f854e42 is already in history

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

Change-Id: Idff52dc706d4f48be7673854c46fb69c0e219e91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 14:07:17 +00:00
Ioana Alexandru
0c2f3d626f [automerger skipped] Merge "Visit URIs in landscape/portrait custom remote views." into rvc-qpr-dev am: d8e733ece2 am: da35aad673 -s ours am: 8a8fba5f27 -s ours am: e61eb41bdf -s ours am: 7f72842170 -s ours am: bb3b510a74 -s ours am: 6ec1461e5c -s ours am: bf01acde40 -s ours
am skip reason: Merged-In I7d3d35df0ec38945019f71755bed8797b7af4517 with SHA-1 b4692946c1 is already in history

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

Change-Id: Iaeee4e0cc4a687b6092ced501677de2ddb750045
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-08 14:07:05 +00:00