Before, CTS test used WindowManager#shouldShowSystemDecors() to set show
system decorations after overlay display launched, which wouldn't enable
system decorations without relaunching. Now, we can set those flag
before display launch similar to what VirtualDisplayHelper does.
Bug: 153624902
Bug: 154158053
Test: atest CtsWindowManagerDeviceTestCases:MultiDisplayClientTests
Test: atest CtsWindowManagerDeviceTestCases:MultiDisplaySystemDecorationTests
Change-Id: I83c21a74c722a23ac77141305a08d9f67c5bbcf0
Apps could reach their job count limit during an active session. When
this happened, QC would correctly identify that the app was out of
quota, but it wasn't correctly calculating the in quota time, so it was
trying to set a time at 0 (or whatever the last in quota time had been).
This caused a loop where AlarmManager would fire the alarm, QC would see
the app was still out of quota, and set a new alarm for the same old
time. This cycle was more common for apps in the RESTRICTED bucket that
had a much lower job limit. Now we correctly calculate the in quota time
and avoid the spammy loop.
Bug: 154444435
Bug: 155245660
Test: atest CountQuotaTrackerTest
Test: atest CtsJobSchedulerTestCases
Test: atest QuotaControllerTest
Change-Id: If07a6133b3ccf8201ac2fd86622bd8e1686f1b0a
Such that all it's goodness can also be used in context when
ViewRootImpl isn't available, like the SystemUI controller used
for Car and Split
Test: InsetsControllerTest
Fixes: 154631128
Change-Id: I54a3f8a34810472d9273e4627a7811b7abd0863f
Currently ApexManagerTest uses a prebuilt apex for testing. This
resource was built in a dev environment and targets R, which is not a
valid version on release builds.
This CL replaces the prebuilt resource with one that gets rebuilt
whenever the test is run.
Bug: 155242557
Test: atest ApexManagerTest
Change-Id: Id6e9e9f688b07da1ad80f44f7486d7266e3a21f3
This updates nullability annotations in Rollback and RollbackStore as
suggested in comments on ag/11256434.
Bug: 152737927
Test: atest RollbackUnitTest
Test: atest RollbackTest
Test: atest RollbackStoreTest
Change-Id: Ib0973378fdd24ce275b0f3e1a687f9161d3c0e7d
Unexpected stop in dreams get logged very generically and are difficult
to debug. Additionally, in many cases of stopping, DreamController
requests the dream to stop wherein the dream finishes itself.
This ultimately gets logged as a normal finish. Added code to save
the context of the original request to stop so that it gets logged
appropriately.
Bug: 150436621
Test: Manually tested the new logged reasons.
Change-Id: I25e348026b514dffe540cf8c4cf3a9b87d385fde
CarKeytuardView is inflated when CarKeyguardView is first started, and
mBouncer is assigned a value onFinishInflated.
Since some of the view-related requests that reference mBouncer could be
called before that event, we need to add null checks for them.
Such a check is redundant for methods that check for mShowing, since if
mShowing is true, it is guaranteed that mBouncer is assigned a value.
Bug: 154928953
Test: Manual and Existing Unit Tests
Change-Id: I796e8bc73459df3b2a0374818556262ebc2ea237
PhoneStatusBarPolicy is a complex object with many underlying
dependencies. Lazy load until there is a better story around it.
Bug: 147455109
Test: manual (systrace)
Change-Id: I726a797f37c0816ab189a4c5f4fd5eecb0692e53
Add two new proto fields for Openroaming network use.
In settings -> Network and Internet -> Wi-Fi, user may click on an Openroaming Wi-Fi AP for Wi-Fi service, so need to add two metrics to record this behavior:
1. OPENROAMING_TAP: records when user tap on the Openroaming Wi-Fi.
2. OPENROAMING_TAP_ON_WIFI_CONNECTION: records when user alreay connected to any wi-Fi network but still tap on the Openroaming Wi-Fi to change to Openroaming.
Bug: 146669261
Test: No, just add proto fields.
Change-Id: If203761052646e3a9df6e9a76fd5268c3db965fd
* fix BubbleExtractor tests to work with this & better
test things now that the channel is a tristate
Test: atest NotificationManagerTest BubbleExtractorTest
Bug: 155025024
Change-Id: I8b75c1b0087ca79cea29741e32c7c524cb056d04
Also use it for AuthCredentialPasswordView
Bug: 154161590
Test: BiometricPromptDemo, authenticate with password
Change-Id: I17601848dd9be3d0580988e3ff613c3793dfed51
Use POWER_MENU_LOCKED_SHOW_CONTENT to control lock screen behavior for
the Quick Access Wallet.
Do not provide Intents that will fail to start an Activity.
Update comments.
Bug:155232731
Bug:155186709
Test: manual
Test: atest CtsQuickAccessWalletTestCases
Change-Id: I78e5355a69d666aee6dd122389edabed170f07b2