Commit Graph

772314 Commits

Author SHA1 Message Date
Jeff DeCew
2b3924da48 [automerger skipped] Merge "Block FullScreenIntent while device is in use if notification has a silencing GroupAlertBehavior." into qt-dev am: b38c650ea9 am: 7330570922 -s ours am: d011967068 -s ours am: ac47d942ee -s ours am: 3bde57adaf -s ours
am skip reason: Merged-In Id82d20c9f1f2001400871b5381f52b40fbdf81c5 with SHA-1 09761a98b5 is already in history

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

Change-Id: I5eda1f4e84a7a36057fe186031b8ffa4c9a3b693
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 13:36:47 +00:00
Jordan Demeulenaere
735edc275a Merge "Move SystemUI test utils to SystemUI/tests/utils/ (1/2)" into tm-qpr-dev 2022-08-02 13:34:47 +00:00
Jeff DeCew
3bde57adaf [automerger skipped] Merge "Block FullScreenIntent while device is in use if notification has a silencing GroupAlertBehavior." into qt-dev am: b38c650ea9 am: 7330570922 -s ours am: d011967068 -s ours am: ac47d942ee -s ours
am skip reason: Merged-In Id82d20c9f1f2001400871b5381f52b40fbdf81c5 with SHA-1 09761a98b5 is already in history

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

Change-Id: I1a3878c2fe39b71b1cf347d0f3b41b0deecf8178
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 13:20:07 +00:00
TreeHugger Robot
5c0ba8f0f5 Merge "Add willShowImeOnTarget in RemoteAnimationTarget(Compat)" into tm-qpr-dev 2022-08-02 13:05:02 +00:00
Jeff DeCew
ac47d942ee [automerger skipped] Merge "Block FullScreenIntent while device is in use if notification has a silencing GroupAlertBehavior." into qt-dev am: b38c650ea9 am: 7330570922 -s ours am: d011967068 -s ours
am skip reason: Merged-In Id82d20c9f1f2001400871b5381f52b40fbdf81c5 with SHA-1 09761a98b5 is already in history

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

Change-Id: I14361fb68915b75ed0f231ea59442e22cb65e803
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 13:03:05 +00:00
Jeff DeCew
d011967068 [automerger skipped] Merge "Block FullScreenIntent while device is in use if notification has a silencing GroupAlertBehavior." into qt-dev am: b38c650ea9 am: 7330570922 -s ours
am skip reason: Merged-In Id82d20c9f1f2001400871b5381f52b40fbdf81c5 with SHA-1 09761a98b5 is already in history

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

Change-Id: Id519e6c7a071bc726f645eda89ddb36d547786fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 12:37:53 +00:00
Jeff DeCew
7330570922 Merge "Block FullScreenIntent while device is in use if notification has a silencing GroupAlertBehavior." into qt-dev am: b38c650ea9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19346142

Change-Id: If6faade37cf6df1dcd7a1574b341b4fc9f3dabbd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-02 12:22:05 +00:00
Jeff DeCew
b38c650ea9 Merge "Block FullScreenIntent while device is in use if notification has a silencing GroupAlertBehavior." into qt-dev 2022-08-02 11:56:41 +00:00
Wei Sheng Shih
24737bd8d1 Merge "Avoid collect window token which should be rotate independently" into tm-qpr-dev 2022-08-02 11:45:07 +00:00
Wei Sheng Shih
01276d685c Merge "Fix launch app crash could stuck system ui render thread." into tm-qpr-dev 2022-08-02 11:43:35 +00:00
Wei Sheng Shih
117bab591c Merge "Inject back key events if no focus window found." into tm-qpr-dev 2022-08-02 11:40:59 +00:00
Mark Renouf
afbac47080 Extracts image acquisition to a separate class
This is moved to a separate class for to avoid code duplication
and improve testability by providing the ability to unit test
in isolation from SurfaceFlinger and without an active physical
display.

Bug: 231957192
Test: atest ImageCaptureImplTest
Change-Id: Ie8d9dc1a2325856c09ab023099488f799d065a19
2022-08-02 06:59:57 -04:00
Mark Renouf
d1a0f4b13e Screenshot request processor
Inserts a preprocessing stage to screenshot request handling
to contain support for new features. This new branch is
guarded by the flag 'SCREENSHOT_REQUEST_PROCESSOR'.

To enable:

 adb shell cmd statusbar flag 1300 on

No other functional changes should be observed.

Bug: 231957192
Bug: 200294244
Test: atest RequestProcessorTest
Test: manual; enable flags, take screenshots

Change-Id: I2fb26f9bf30513199b7e6d5cb97f6ccf99fcc0eb
2022-08-02 06:59:52 -04:00
Mark Renouf
dcc2bb37a3 Adds OWNERS for ScreenshotHelper
This code is managed as part of SystemUI screenshots.

(This is a manual cherrypick of
27df215eba from AOSP.)

Change-Id: I624a52754cffcca66798d2813d25d8896597a39a
2022-08-02 10:55:15 +00:00
Vali Calinescu
95a0aa965f Merge "Pass LetterboxDetails to SysUI" into tm-qpr-dev 2022-08-02 10:50:22 +00:00
Hyundo Moon
c189b90968 Set LE audio volume when audio mode is changed
Bug: 230643532
Test: Checked the volume is changed when entering call mode
Change-Id: Iae20b03e998a8a6064a85d6e7cf4858c85448618
Merged-In: Iae20b03e998a8a6064a85d6e7cf4858c85448618
2022-08-02 10:44:13 +00:00
Yan Yan
3c499c5c0a Minor cleanups in VPN
This commit includes few minor cleanups in VPN for better readability
and maintainability. Specifically this commit:
- explicitly sets IPsec tunnel's underlying network when Child SA is
   created
- nulls out ScheduledFuture when the task is finished or cancelled
- validates the IKE Session token before executing the scheduled
  handleSessionLost call

Bug: 192077544
Test: atest VpnTest, IkeV2VpnTest
Change-Id: Ib3cbdbfa594c55c27b78dffc00a82d371ca7a749
(cherry picked from commit 3491796336)
Merged-In: Ib3cbdbfa594c55c27b78dffc00a82d371ca7a749
2022-08-02 18:17:21 +08:00
Yan Yan
a54db145e6 Make VPN more testable and update NC during network change
This commit:
- Updates the NetworkCapabilities with new underlying network during
  IKE Session re-establishment
- Create wrapper classes for IkeSession
- Allow injecting executor and NetworkAgent with
  the Dependencies class

Bug: 192077544
Test: atest VpnTest(new tests)
Change-Id: Ic98e3906c2b02fa8b9f4a8e1366b1dd8a363bb47
(cherry picked from commit 673162c642)
Merged-In: Ic98e3906c2b02fa8b9f4a8e1366b1dd8a363bb47
2022-08-02 18:15:46 +08:00
Arthur Hung
5a47857643 Fix leakage of pointer location
When display is removing, we should explicitly remove the pointer
location view to ensure the client object would be released.

Bug: 239078899
Test: Enabled pointer location, add/remove virtual display, check if
      the surface would be released.
Change-Id: I89ef3dc8e5b4aa8c3b7d5c1393d6543a9d3d67db
2022-08-02 09:38:35 +00:00
Riddle Hsu
eb8882f09b Get the latest display info for overlay change
LocalDisplayAdapter.LocalDisplayDevice#updateDeviceInfoLocked
posts to display thread when receiving onOverlayChanged. So
the operation depends on it should run sequentially.

This partial relands commit 08a3049 to make sure that the display
info can include the latest cutout info after changing the cutout
overlay resources. The reconfigureDisplayLocked in previous commit
is not called in this change because that will require to fix
configuration calculation according to decor windows that provide
display config related insets.

Bug: 222572231
Bug: 240961743
Test: Toggle different types of cutout in developer options,
      the cutout change should be applied immediately on screen.
Change-Id: I393c7b2c2e95eabc21123b7c95c760323a5386ec
2022-08-02 17:38:25 +08:00
Chandru
e3022817d6 Convert all Log.* messages in KeyguardUpdateMonitor to use LogBuffer
Create a new helper class for logging.

Current messages being logged to Logcat won't be logged anymore, the
LogBuffer logs can be accessed by a dumpsys.

For debugging, LogBuffer can configured to echo to Logcat as well
using the following command:

```
adb shell settings put global systemui/buffer/KeyguardUpdateMonitorLog
<LogLevel>
```

Test: atest SystemUI passes
Fixes: 239819049
Change-Id: I8f234f930d1aab92ae3535d8f850d26c2eab6729
2022-08-02 09:33:44 +00:00
TreeHugger Robot
40f7ea9ef3 Merge "[StatusBar][Letterbox] Retrieve letterbox background info from WM" into tm-qpr-dev 2022-08-02 08:57:28 +00:00
TreeHugger Robot
68de89974b Merge "KeyguardBottomAreaView new impl. - UI layer" into tm-qpr-dev 2022-08-02 05:12:43 +00:00
Cliff Wu
d1f854d2c0 Fix generic wrong strings to comply with the UX guideline
- The generic error need to remove "Unavailable" in the header and
only show body text.
- The "Play Store" app needs to be added to the error for a specific
app and it says "Play Store not available".
- Dialer app uses generic alert dialog.

Bug: 230048652
Test: Manual, atest FrameworksServicesTests:VirtualDeviceManagerServiceTest
Change-Id: I8b56e2804c3204901a3551d3300ab8c0391e7260
2022-08-02 04:18:34 +00:00
Vinit Nayak
43a2a75736 Merge "Add flag to hide nav bar window in favor of taskbar." into tm-qpr-dev 2022-08-02 03:53:45 +00:00
Louis Chang
e2fc76758c Do not send new Intent to non-exported activity when navigateUpTo
The new Intent was delivered to a non-exported activity while
#navigateUpTo was called from an Activity of a different uid.

Bug: 238605611
Test: atest StartActivityTests
Change-Id: I854dd825bfd9a2c08851980d480d1f3a177af6cf
2022-08-02 03:33:39 +00:00
TreeHugger Robot
8a1fa44759 Merge "Do not evict starting task when startShortcut" into tm-qpr-dev 2022-08-02 03:06:36 +00:00
TreeHugger Robot
1587a36591 Merge "Make no button fallback to normal suggestions" into tm-qpr-dev 2022-08-02 02:43:53 +00:00
Chris Li
491a02bee1 Merge "Fix ActivityEmbedding crash when process died" into tm-qpr-dev 2022-08-02 02:11:24 +00:00
Hawkwood Glazier
42fa9df38c Prevent NPE when displaying a missing clock
Test: Manual
Bug: 229771520
Fixes: 237255645
Change-Id: I17cddba7aee082c118f9f63eaab8a8c025daee73
(cherry picked from commit 2a4d9e5d51)
Merged-In: I17cddba7aee082c118f9f63eaab8a8c025daee73
2022-08-02 02:01:16 +00:00
Hawkwood Glazier
a8aa52eaf9 Add exception handling to ClockRegistry to prevent crashes
Test: Manual
Bug: 229771520
Change-Id: I9db17a3d945b75846ac238b59634fb595a8c8706
(cherry picked from commit 901c0a5dcb)
Merged-In: I9db17a3d945b75846ac238b59634fb595a8c8706
2022-08-02 02:00:01 +00:00
Hawkwood Glazier
1110e66232 Add Flag for Custom Clocks
Test: Manual
Bug: 229771520
Change-Id: Ic06481b3da589ab6f27ae4ff79bd39a45dee3711
Merged-In: Ic06481b3da589ab6f27ae4ff79bd39a45dee3711
2022-08-02 01:59:20 +00:00
Hawkwood Glazier
5f092e150a Merge "Migrate KeyguardClockSwitch to new shared Clock library" into tm-qpr-dev 2022-08-02 01:55:12 +00:00
Yuncheol Heo
cfefeb72f4 Configure the number of tasks to scan to determine Home visibility.
- Auto uses the multi display and its Home uses TaskView, so it's not enough to peek the top Tasks to get the visibility of Home.
- Set the default number of tasks to retrieve as 10 to scan all visible tasks.
- Don't query PM to check if the task is Home, check the ActivityType instead.

Bug: 236099098
Test: atest android.app.cts.ActivityManagerTest#testHomeVisibilityListener

Change-Id: I10b6d84292d3180f095dd9f8cf76b4c9db641091
2022-08-01 18:27:37 -07:00
Yuncheol Heo
5c8fd0ddbf Allow getTasks to filter tasks by displayId.
Bug: 236099098
Test: atest WmTests:RunningTasksTest WmTests:RecentTasksTest
Change-Id: I4fe5955a075f1482df3acdff8baefc7126ef9bd0
2022-08-01 18:27:25 -07:00
Aseem Kumar
cf62c760d4 Move accountname and typeName length check from Account.java to AccountManagerService.
Bug: 169762606
Test: atest AccountManagerServiceTest
Change-Id: I80fabf3a64c55837db98ff316e7e5420129c001b
(cherry picked from commit 0adcadb0b2)
2022-08-02 00:21:41 +00:00
Steve Elliott
5204191eca Merge "Inline notif pipeline flag in NotifEntryManager" into tm-qpr-dev 2022-08-01 23:39:25 +00:00
Dmitri Plotnikov
8b5e292fd6 Fix concurrency in BATTERY_USAGE_STATS_* statsd atom generation
Bug: 229906525
Test: atest --rerun-until-failure 100 FrameworksServicesTests:BatteryStatsManagerTest
Change-Id: Ib2d8ab6df40776c7cd2b5852bd956a3f9285b486
(cherry picked from commit 2a510708a1)
2022-08-01 16:38:53 -07:00
Bill Lin
67db8ebf75 Merge "Fix redundant move animation on Side-FPS indicator" into tm-qpr-dev 2022-08-01 23:22:40 +00:00
Evan Rosky
a929d5bf32 Hook up setWillFinishToHome in recents wrapper
When using 3p launcher, this extra call needs to be
tracked in order to prevent returning-to the live
app instead of the launcher

Bug: 238328090
Test: atest Launcher3Tests
Change-Id: I9748da0475536373750efe9aecc7fb91b66dd61e
2022-08-01 23:12:15 +00:00
TreeHugger Robot
9c448ce68a Merge "Fix Keep rules for MotionLayout" into tm-qpr-dev 2022-08-01 23:11:11 +00:00
TreeHugger Robot
f1937e7faf Merge "[SB Refactor] Redefine the processor as a CoreStartable." into tm-qpr-dev 2022-08-01 22:27:14 +00:00
TreeHugger Robot
2b94054351 Merge "[Media TTT] Re-display the chip when the density/font changes." into tm-qpr-dev 2022-08-01 22:09:58 +00:00
TreeHugger Robot
62c47f6c03 Merge "KeyguardBottomAreaView new impl. - domain layer" into tm-qpr-dev 2022-08-01 21:38:06 +00:00
TreeHugger Robot
d3a180b0fc Merge "KeyguardBottomAreaView new impl. - data layer" into tm-qpr-dev 2022-08-01 21:20:41 +00:00
Evan Laird
06af71dc43 Flow-based connectivity listener
Create a `NetworkCapabilities` repository (flow-based listener API) that
can replace any current network callback that exists inside of the
connectivity package. This is currently intended to be proof-of-concept
and can be patterned-after in order to fully flesh out the data model
for the connectivity icons.

Change-Id: If80905e79ee66df76a809cc1beb2934361d0f94e
Test: atest NetworkCapabilitiesRepositoryTest
Bug: 240492102
2022-08-01 17:12:17 -04:00
TreeHugger Robot
bbf7246779 Merge "Fix QSCarrierGroup click listeners" into tm-qpr-dev 2022-08-01 21:07:53 +00:00
Jeff DeCew
61051d08ca [automerger skipped] Merge "Block FullScreenIntent while device is in use if notification has a silencing GroupAlertBehavior." into rvc-dev am: e35bab3aa0 am: f7b8f7233a am: 722ca99029 am: f4b38cbaba am: 8bb45f2393 -s ours am: 4fb3676dca -s ours am: dcf05c8857 -s ours
am skip reason: Merged-In Id82d20c9f1f2001400871b5381f52b40fbdf81c5 with SHA-1 09761a98b5 is already in history

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

Change-Id: Ic1309304372aeddff372ee658776784625e36c65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 21:06:37 +00:00
Jeff DeCew
3972ea186e [automerger skipped] Merge "Block FullScreenIntent while device is in use if notification has a silencing GroupAlertBehavior." into rvc-dev am: e35bab3aa0 am: f7b8f7233a am: 722ca99029 am: 404ae95e7b -s ours am: 4fbe2d51fc -s ours am: ea0f411893 -s ours
am skip reason: Merged-In Id82d20c9f1f2001400871b5381f52b40fbdf81c5 with SHA-1 d107a27fe5 is already in history

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

Change-Id: I33253f41f464901b325f940e6f2d49d832fc9260
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-01 21:06:22 +00:00
Caitlin Cassidy
7c4c5375aa [Media TTT] Remove the tap-to-dismiss option for the phone chip.
Test: manual (verified tapping the screen doesn't remove the ttt chip)
Fixes: 240986362
Change-Id: I0d063c25a25ea47f3db240b42e62531d8836b104
2022-08-01 20:57:13 +00:00