Commit Graph

475906 Commits

Author SHA1 Message Date
Chris Li
1ac23bbf92 Allow Overlay Display to take display flags
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
2020-04-29 11:44:27 -07:00
TreeHugger Robot
2b49f81e7e Merge "Use POWER_MENU_LOCKED_SHOW_CONTENT in wallet" into rvc-dev 2020-04-29 18:08:23 +00:00
TreeHugger Robot
66bf0f533c Merge "Add mBouncer null checks for view-related requests." into rvc-dev 2020-04-29 18:05:18 +00:00
Heemin Seog
71f6afb212 Merge "Lazy load status icon related components" into rvc-dev 2020-04-29 17:41:48 +00:00
TreeHugger Robot
5630dc86ed Merge "Use TextClassicationSession to call smart selection APIs." into rvc-dev 2020-04-29 17:34:09 +00:00
Ben Lin
7291aad962 Merge "Don't check parent's persistTaskBounds unless child is UNDEFINED." into rvc-dev 2020-04-29 17:22:21 +00:00
Kweku Adams
7a97fd74d4 Merge "Fix QC alarm spamming." into rvc-dev 2020-04-29 16:50:27 +00:00
Ruchir Rastogi
272cae6e10 Merge "Reduce memory footprint of LogEvent" into rvc-dev 2020-04-29 16:21:46 +00:00
Julia Reynolds
74b8acae26 Merge "Remove unused development setting" into rvc-dev 2020-04-29 15:25:24 +00:00
Kweku Adams
b99b582f49 Fix QC alarm spamming.
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
2020-04-29 15:25:03 +00:00
TreeHugger Robot
ae052226b5 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-04-29 15:21:22 +00:00
Will Brockman
0f309dc04a Merge "Statsd TestDrive tool: Write output to stdout. Also: Option for less verbose output." into rvc-dev 2020-04-29 14:49:49 +00:00
Jorim Jaggi
1db61c9a6e Merge "Decouple InsetsController from ViewRootImpl" into rvc-dev 2020-04-29 14:35:10 +00:00
Mady Mellor
cf8ab8447e Merge "Fix CTS" into rvc-dev 2020-04-29 14:33:36 +00:00
Goven Liu
411dc8a066 Merge "[Wi-Fi] Add proto fields for Openroaming network." into rvc-dev 2020-04-29 14:19:49 +00:00
Santos Cordon
53f3ecd56c Merge "Add logging to Dream stop." into rvc-dev 2020-04-29 14:04:14 +00:00
Oli Lan
96fc1edd13 Merge "Update nullability of extension versions in Rollback." into rvc-dev 2020-04-29 13:24:17 +00:00
Julia Reynolds
ccd18a9d58 Remove unused development setting
Test: make, atest
Bug: 151821676
Change-Id: I74c2b7ac17d99f150c1c185f4b69b3b2e72d2575
2020-04-29 13:22:25 +00:00
Mohammad Samiul Islam
cd99932241 Merge "Make ApexManagerTest use resources that are not prebuilt" into rvc-dev 2020-04-29 13:21:52 +00:00
Jorim Jaggi
bf87c15b33 Decouple InsetsController from ViewRootImpl
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
2020-04-29 14:00:09 +02:00
Mohammad Samiul Islam
2de4baf183 Make ApexManagerTest use resources that are not prebuilt
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
2020-04-29 12:18:54 +01:00
Oli Lan
b03365182c Update nullability of extension versions in Rollback.
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
2020-04-29 11:20:21 +01:00
Santos Cordon
9c988b2980 Add logging to Dream stop.
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
2020-04-29 10:55:59 +01:00
TreeHugger Robot
edea65c7bd Merge "Replace some javadoc symbols with HTML encoding" into rvc-dev 2020-04-29 09:23:11 +00:00
Oli Lan
266fba1670 Merge changes I7fd7d98a,If770a615 into rvc-dev
* changes:
  Block rollback commit if it may violate min extension constraint.
  Record supported extension versions at rollback creation.
2020-04-29 09:16:12 +00:00
Riddle Hsu
33cf9d091c Merge changes Ic966923a,I92c6dfac,Id370d798 into rvc-dev
* changes:
  Clear fixed rotation if display config does not change
  Polish fixed rotated recents animation
  Extensive handling of fixed rotation launching app
2020-04-29 08:32:47 +00:00
Tracy Zhou
e13fab2d48 Merge "Add pebble shape to Android.mk" into rvc-dev 2020-04-29 08:05:19 +00:00
Fiona Campbell
700c810706 Merge "Add lights HAL to watchdog" into rvc-dev 2020-04-29 07:30:12 +00:00
TreeHugger Robot
6b6cf16740 Merge "Fix HdmiCecLocalDevicePlaybackTest" into rvc-dev 2020-04-29 06:11:52 +00:00
TreeHugger Robot
447914fcfe Merge "Add RoleControllerManagerTest." into rvc-dev 2020-04-29 05:56:34 +00:00
kwaky
16e0cbc048 Add mBouncer null checks for view-related requests.
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
2020-04-28 22:53:15 -07:00
Tracy Zhou
d617c8c825 Add pebble shape to Android.mk
Fixes: 155249319
Test: manual
Change-Id: If0a291afa8ee97b4109ddd08c27c6708f6bceb0a
2020-04-28 22:43:28 -07:00
Heemin Seog
a3d358f277 Lazy load status icon related components
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
2020-04-28 22:41:54 -07:00
Tracy Zhou
1bad463073 Merge "Update icon shape for Sam" into rvc-dev 2020-04-29 05:35:51 +00:00
TreeHugger Robot
d3b000cafe Merge "Move ImeAwareTextEdit from Settings to android.widget" into rvc-dev 2020-04-29 05:17:30 +00:00
Arthur Hung
05e4028d77 Merge "Fix freeform window can't resize after maximize window and restore" into rvc-dev 2020-04-29 04:24:47 +00:00
PETER LIANG
c463e56a80 Merge "Replace the switch item with the text for multiple shortcut menu." into rvc-dev 2020-04-29 04:08:36 +00:00
Rob Carr
6fcbf83d5e Merge "BLAST: Avoid JNI call on creation" into rvc-dev 2020-04-29 03:59:14 +00:00
Kevin Chyn
90b27662ed Merge "Check for null HAT and add logging" into rvc-dev 2020-04-29 03:53:35 +00:00
govenliu
d64e9452e4 [Wi-Fi] Add proto fields for Openroaming network.
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
2020-04-29 11:11:15 +08:00
Mady Mellor
a114b79392 Fix CTS
* 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
2020-04-28 20:06:03 -07:00
TreeHugger Robot
32729dacab Merge "Compute visibilities when finishing activity with a translucent resume activity" into rvc-dev 2020-04-29 02:40:14 +00:00
Tracy Zhou
165e592e14 Update icon shape for Sam
And rename it to Vessel

Fixes: 153277903
Test: Manual
Change-Id: I63ffffce5162ba7ad59c1beb7a89e924b40e4454
2020-04-28 19:10:42 -07:00
TreeHugger Robot
13d7838088 Merge "Address leftover TODOs from inline suggestions." into rvc-dev 2020-04-29 01:46:47 +00:00
TreeHugger Robot
8ba4e7599a Merge "Resolve IndexOOBException in SigningDetails#hasAncestor" into rvc-dev 2020-04-29 01:21:27 +00:00
TreeHugger Robot
007a73c551 Merge "Don't remove OnAlarmListener mappings in the client" into rvc-dev 2020-04-29 01:09:32 +00:00
Kevin Chyn
412bd81933 Move ImeAwareTextEdit from Settings to android.widget
Also use it for AuthCredentialPasswordView

Bug: 154161590

Test: BiometricPromptDemo, authenticate with password
Change-Id: I17601848dd9be3d0580988e3ff613c3793dfed51
2020-04-28 18:06:25 -07:00
Sean Pont
d3cfe6204e Use POWER_MENU_LOCKED_SHOW_CONTENT in wallet
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
2020-04-28 17:40:09 -07:00
TreeHugger Robot
a1f9485de2 Merge "Enable edge gesture if quickstep has never started" into rvc-dev 2020-04-29 00:20:26 +00:00
Adam He
045c020636 Address leftover TODOs from inline suggestions.
Fixes: 146524826
Test: atest android.autofillservice.cts.inline
Change-Id: I50666e9fa012b18f74c20982068a452fdc9592f8
2020-04-28 17:17:47 -07:00