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
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
This code is managed as part of SystemUI screenshots.
(This is a manual cherrypick of
27df215eba from AOSP.)
Change-Id: I624a52754cffcca66798d2813d25d8896597a39a
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
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
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
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
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
- 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
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
- 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
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
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