Commit Graph

891995 Commits

Author SHA1 Message Date
Presubmit Automerger Backend
4b7b81510b [automerge] Verify URI permissions for notification shortcutIcon. 2p: beb185c5cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22894946

Bug: 277593270
Change-Id: If52f31b6ea51535d95606605c98e8a2a4355392a
2023-05-05 14:37:07 +00:00
Seigo Nonaka
aa93568740 Merge "Retruns true for hasSelection in reversed selection case" into udc-dev 2023-05-05 14:33:48 +00:00
Charles Chen
8ea8db15b2 Fix primary activity untouchable with punch hole
The root cause is that the letterbox receives touches within the whole task,
which made the primary activity untouchable.

This CL changes to make the letterbox only cover the secondary
taskfragment area

Test: manual - repro steps in bug
Bug: 271592105

Change-Id: I2d724736d01a8fc50fe4c82c8b8cca2769d97d4f
2023-05-05 22:33:31 +08:00
Kevin Jeon
68304252b7 Add null check to SQLiteConnectionPool.dump()
This change adds a null check before adding the current connection
pool path's parent to the list of directories, since the parent might be
null. This avoids an NPE in SQLiteDatabase.dumpAll().

Test: run dumpsys dbinfo, verify that it no longer times out
Bug: 281043011
Change-Id: Iec7fa9d0941d79dfa034f117c35c30797c7d3113
2023-05-05 14:32:12 +00:00
Ioana Alexandru
beb185c5cd Verify URI permissions for notification shortcutIcon.
Bug: 277593270
Test: atest NotificationManagerServiceTest
Change-Id: Iaf2a9a82f18e018e60e6cdc020da6ebf7267e8b1
2023-05-05 14:29:49 +00:00
Jigar Thakkar
a3b93dcc4b Merge "Add config to control app cloning building blocks" into udc-dev 2023-05-05 14:12:13 +00:00
Matt Pietal
66c017e708 Capture all remote exceptions
A surface may no longer be available on callback, which results in a
Throwable exception. We've seen this mainly during tests. Capture and
log the exception to prevent a crash.

Fixes: 277481883
Test: manual
Change-Id: Ie121aec4f1ff58cff432b94120efae00bdb97268
2023-05-05 14:05:18 +00:00
Jan Sebechlebsky
7bd5ec2de8 Fix AudioProductStrategy.equals implementation
... and add missing .hashCode overrides.

Bug: 281036492
Test: atest AudioProductStrategyTest
Change-Id: I09d23368b13052592fc8d27dd1ff985d3e508c6a
2023-05-05 16:04:17 +02:00
Caitlin Shkuratov
ae698fe79a [Status Bar] Old pipeline: Correctly mark carrier merged as validated.
This is a very targeted fix because we expect the old pipeline to be
able to be deleted in an upcoming release, so we don't want to
re-architect the world.

Bug: 225902574
Test: atest NetworkControllerWifiTest (The `vcnOnlyOnUnderlyingNetwork`
test fails without this fix and passes with it.)
Test: manual: verify QS tile works correctly in non-carrier merged
scenarios
Test: adb shell dumpsys activity service
com.android.systemui/.SystemUIService NetworkController still works and
has the `isDefaultConnectionValidated` column
Change-Id: I9bc007f47b991a20ca9caa85af839963f268486a

Change-Id: I2371b76a3a3a4fe679444122385ee97c7f57e2b3
2023-05-05 13:41:12 +00:00
Elis Elliott
155c16be3f Remove references to permissions in docs of flagged APIs
Bug: 273496614

Test: n/a
Change-Id: I6cf4b5224b2479a7ced215ef5c8b9947666b9836
2023-05-05 13:15:46 +00:00
Caitlin Shkuratov
476bf5a566 [SB Refactor] Only use carrier merged sub ID if wifi or CM are default.
(or the device is in airplane mode)

The old pipeline's WifiSignalController only sent updates to
MobileSignalController if the wifi info was carrier merged *and* wifi or
carrier merged was the default connection or the device was in airplane
mode. The new pipeline previously didn't check this default status,
which caused the new pipeline to keep polling the carrier merged info
instead of the normal cellular info.

Also increases the size of the connectivity buffer, since investigating
the BRs attached to this bug revealed that the buffer cut off too early.

Bug: 278618530
Test: atest MobileConnectionsRepositoryTest
Change-Id: Ib9dde0234c38921bb67179a138f9cc8c60e7d669
2023-05-05 13:14:35 +00:00
Caitlin Shkuratov
f31398af73 [SB Refactor] Use a real WifiRepo in MobileConnectionsRepositoryTest.
Using the real wifi repo will let us send the same network capabilities
objects to both the default network callback and the normal network
callback in tests. This makes the tests more reflective of production
scenarios.

This is in preparation for the CL that fixes b/278618530, since that CL
will rely more heavily on updating both the default and non-default
network callbacks with information.

Bug: 278618530
Test: atest MobileConnectionsRepositoryTest
Change-Id: I917506fc3c04cd63a0236cdf356cd26719c20337
2023-05-05 13:14:35 +00:00
Caitlin Shkuratov
884f426fe2 [SB Refactor] Convert MobileConnectionsRepositoryTest to testScope etc.
Bug: 238425913
Test: atest MobileConnectionsRepositoryTest
Change-Id: I8576cc36b034a6ccaf087e5f7a111b3a3d30c1fd
2023-05-05 13:14:29 +00:00
Riddle Hsu
d7a594d31c Use local leash to animate PiP activity surface
Currently shell is not aware of letterbox info of activity.
Especially PiP animation assume the surface is task which
should be put at 0,0 in either task display area or a
multi-window container after expanding.

By using a local leash, the position of activity surface won't
be erased by the end of pip animation, and the animation will
look better by including the area of activity offset.

Bug: 280028520
Test: In a ignore-orientation display or split screen.
      Task[A,B], B requested fixed orientation to trigger letterbox.
      B enter PiP, then then expand to original position.
      The offset from letterbox should not be changed.
Change-Id: I1a24703ce0d9976d0f5dfeda0569226a5afa908c
2023-05-05 12:54:16 +00:00
Pablo Gamito
21910b0fe6 Merge changes from topic "update-transition-trace-dumping-structure" into udc-dev am: b26be926b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22750303

Change-Id: I4d7e2db029f12303d4065891a8dac368a5158d87
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 12:52:08 +00:00
Pablo Gamito
6c88459d4d Update transition dumping structure am: c8ccb5c2f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22738465

Change-Id: I8933a65bde135b84b6d48627c82ccf612652b754
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 12:52:04 +00:00
Pablo Gamito
eb290ffbc3 Add real to elapsed offset to shell transition trace am: 541c4b6021
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22988307

Change-Id: Iad589a9a728f164b8b94863888598115fd4eb26a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 12:51:59 +00:00
Pablo Gamito
9badb89f67 Update WM side transition trace file name am: 31fc0390c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22852177

Change-Id: I2cafe084b052152999eae29a879015dc0a7be845
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 12:51:54 +00:00
Vlad Popa
64f33ed135 CSD: Remove volume based warning when CSD is enabled
The sound dose method already covers the volume based warnings that
comply with 10.6.5 of IEC62368-1. We do not need to implement the 10.6.5
requirements when sound dose method is enabled.

Test: manual with flag override
Bug: 280748088
Change-Id: I3abc8b4f57f89ff9553ec80cc6f754f57e4ace29
2023-05-05 14:43:27 +02:00
Pablo Gamito
b26be926b0 Merge changes from topic "update-transition-trace-dumping-structure" into udc-dev
* changes:
  Remove transition state tracing
  Update transition dumping structure
  Add real to elapsed offset to shell transition trace
  Update WM side transition trace file name
2023-05-05 12:03:01 +00:00
Mariia Sandrikova
b167e63c89 Merge "Clean up a flag for respecting nosensor and locked when docked." into udc-dev am: 56675d076c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23048038

Change-Id: If187f5b794e679f9ed7f7c43acbe8c2892ea5432
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 11:28:17 +00:00
Anton Potapov
b4fe1f6fac Merge "Fix componentName of a selected app" into udc-dev am: 3a9a83dad9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23026754

Change-Id: Id28b33e1a383598e4d45ba38c984e47e013e7ec8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 11:27:22 +00:00
Mariia Sandrikova
56675d076c Merge "Clean up a flag for respecting nosensor and locked when docked." into udc-dev 2023-05-05 11:15:49 +00:00
Nupur Saxena
4d6eca5b36 Add timeout to removeAccount during provisioning
Bug: http://b/279192742

Change-Id: I909bf2f38b9d09addaf768fd86bd3910b0a82d2f
(cherry picked from commit 378627c451)
2023-05-05 10:58:07 +00:00
Anton Potapov
3a9a83dad9 Merge "Fix componentName of a selected app" into udc-dev 2023-05-05 10:47:39 +00:00
Kholoud Mohamed
04b4c2e9e7 Mark inheritable policies for clone profiles
Bug: 251401809
Bug: 273494642
Test: btest android.devicepolicy.cts.PermitInputMethodsTest
Test: btest android.devicepolicy.cts.AccountManagementTest
Test: btest a.d.c.ScreenCaptureDisabledTest
Test: btest a.d.c.CameraTest
Test: btest a.d.c.ApplicationHiddenTest
Change-Id: I767f612101a6ca6449b58839dcae21ad65c2b91b
Merged-In: I767f612101a6ca6449b58839dcae21ad65c2b91b
2023-05-05 10:40:59 +00:00
Louis Chang
f3a5c58924 Unfreeze the surface when the transition is done
The surface was not unfreeze if the WindowContainer is closing and
changing after [1].

Always check and unfreeze the surface if needed when the transition
is done.

[1] d19ad2aa09

Bug: 280754787
Test: click web link on chat while having a Meet call
Change-Id: I98618477a828eb72b2173af6988e804471139e81
2023-05-05 10:24:40 +00:00
nsl
99e6fc16a1 Override work profile OEM telephony shortcuts with defaults
Using the DIALER and SMS role holders to replace the shortucts in the
launcher.

Bug: 279035836
Test: btest a.d.g.WorkTelephonyTest
Change-Id: I9e6dc0c8b751901f27b2744c2c2b9111e80906d6
2023-05-05 10:12:15 +00:00
Pavel Grafov
12febbcf50 Merge "Don't start work challenge unless auto-cancel." into udc-dev am: 83b3e82a7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22965581

Change-Id: Id373babd373fb4008602d923b63af2a55928f936
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 10:04:19 +00:00
Pavel Grafov
83b3e82a7c Merge "Don't start work challenge unless auto-cancel." into udc-dev 2023-05-05 09:41:49 +00:00
Ajinkya Chalke
0814ed7dbb Merge "Remove magnifier from app clips layout xml." into udc-dev am: e412fb46f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23026910

Change-Id: I0e56b8b536e3ee6de48aacae59dd3d9fb08e3f16
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 09:40:16 +00:00
Jerry Chang
c6499fb8a0 Fix not showing divider when re-entering split with rotation
I134c8c4e keeps a split pair in the background, the split layout might
not be updated properly if the next entering split comes with rotation.
This makes sure to update the split layout to show the divider with the
correct orientation.

Fix: 280876344
Test: atest WMShellFlickerTests:DismissSplitScreenByGoHomeBenchmark
Change-Id: I47659b791cc479b92aa1d1851663d65e8a93aeab
2023-05-05 09:37:22 +00:00
Tiger
75dd944a6b Let non-fill-screen app window control nav bar appearance
If the frame of a non-fill-screen app window contains the content frame
of navigation bar, it should be able to decide the icon color of the
bar. Note the content frame here is the navigation bar area subtract the
display cutout area.

Fix: 234602646
Test: Open an app which shifts its main window down by 200px, and see if
      the icon color of navigation bar can be controlled by the app.
Change-Id: I4dfeefe0f438922153cf26d217f9beddf88ad4c0
2023-05-05 17:35:44 +08:00
Anthony Alridge
909ade51cb Update strings for mini-resolver views
The strings will no longer be shared with the mini-resolver
for apps vs browser versions.

Test: Manually
Bug: 273907884
Change-Id: Ie61b7d4965ec5abe46a820d2dcca362b1e34ad34
2023-05-05 09:27:29 +00:00
Ajinkya Chalke
e412fb46f4 Merge "Remove magnifier from app clips layout xml." into udc-dev 2023-05-05 09:01:46 +00:00
Chaohui Wang
df084e7109 Merge "Add a open isPageEnabled() to BrowseActivity" into udc-dev am: 1190c08a84
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22948136

Change-Id: I1ecef100ae14d2ae167ba4e1e92b0da45e0d0cff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 08:19:39 +00:00
Shaowei Shen
5ed3ee2718 Merge "[Output Switcher] Fix ArrayIndexOutOfBoundsException" into udc-dev am: 4711434e64
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22891385

Change-Id: Ie35f36e3e0c1344e12f8c2d95fab485bc4978634
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 08:19:04 +00:00
Shaowei Shen
0381a6c5d2 Merge "[Output Switcher] Add switch confirm dialog" into udc-dev am: b875795205
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22952407

Change-Id: I28c419ae5dc411eb6bac122126e819117b1b1e01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 08:18:18 +00:00
Chaohui Wang
1190c08a84 Merge "Add a open isPageEnabled() to BrowseActivity" into udc-dev 2023-05-05 07:57:39 +00:00
Shaowei Shen
4711434e64 Merge "[Output Switcher] Fix ArrayIndexOutOfBoundsException" into udc-dev 2023-05-05 07:48:37 +00:00
Shaowei Shen
b875795205 Merge "[Output Switcher] Add switch confirm dialog" into udc-dev 2023-05-05 07:44:39 +00:00
Louis Chang
ad7d89c22b Skip letterboxing if the activity below is embedded
Embedded activities are resize-able and won't be letterboxed

Bug: 270681405
fixes: 280898266

Test: SizeCompatTests
Test: manual - repro step in bug

Merged-In: Ic7b1c4b40960fd04de9efbf4f6d7abee45c93025
Change-Id: Ic7b1c4b40960fd04de9efbf4f6d7abee45c93025
(cherry picked from commit b828087bbc)
2023-05-05 07:17:57 +00:00
Riddle Hsu
28c62b4550 Merge "Use pending transaction for setting transform hint" into udc-dev am: 9b195e0a78
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23013201

Change-Id: I2c85e27588eb048a853b078b9938bc6d1052180e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 06:30:23 +00:00
Riddle Hsu
9b195e0a78 Merge "Use pending transaction for setting transform hint" into udc-dev 2023-05-05 05:48:24 +00:00
Lyn
8490adb3b3 Remove GRANT_RUNTIME_PERMISSIONS from SpaPrivileged Manifest
Bug: 269689524
Test: AppOpsControllerTest, AppOpPermissionAppListTest
Change-Id: Ica012d3a9d345384beba341f2be43de8f40de70e
2023-05-05 05:06:36 +00:00
Tony Huang
cc1c88777f Fix RemoteTransitionTest
This test use FLAG_FIRST_CUSTOM which just same as
FLAG_IS_DIVIDER_BAR, and we did some special hanlde for divider.
Change test to using FLAG_IS_DIVIDER_BAR for readability and also
fix test assertion.

Fix: 280796126
Test: atest RemoteTransitionTest
Change-Id: I969947b4a2738a0760ccef2658ecd495e57edf54
2023-05-05 04:31:58 +00:00
Bill Yi
b98274246a Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-mainline-prod 2023-05-05 04:30:40 +00:00
Treehugger Robot
99ce346fa8 Merge "When the origin is empty but not null, app label should be used" into udc-dev am: 0d4cf06b31
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23048863

Change-Id: I1855eeeb29945ae0238468872f0908b6e6b0a625
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 03:58:15 +00:00
Shawn Lin
11fb3a9ab4 Merge "Fix incorrect talkback text for non-sfps devices" into udc-dev am: 2c9791ffc3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22982639

Change-Id: I997531a6037d7615129bad107878f15ffa1f1e75
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-05 03:56:53 +00:00
Treehugger Robot
0d4cf06b31 Merge "When the origin is empty but not null, app label should be used" into udc-dev 2023-05-05 03:44:58 +00:00