Commit Graph

472963 Commits

Author SHA1 Message Date
Winson Chiu
bde104f8be Merge changes Id7d1ff26,Id53a2e65 into rvc-dev
* changes:
  Add am compat enable/disable/reset test for not installed app
  Gate stricter manifest enforcement on targetSdk R
2020-04-01 05:44:35 +00:00
Winson
db4355fed9 Add am compat enable/disable/reset test for not installed app
Should also cover installed apps, since this mocks at the
ApplicationInfo level.

The not installed behavior is used during package parsing to
pre-disable validation errors for an app that may not yet be
compliant with new targetSdk gated rules.

Bug: 152416067

Test: atest com.android.tests.gating.PlatformCompatCommandNotInstalledTest

Change-Id: Id7d1ff26f40626308d9b2e7c6cea60bce9b7f50f
2020-04-01 05:44:12 +00:00
Winson
727da64be5 Gate stricter manifest enforcement on targetSdk R
Two package parsing issues have been promoted to failures in R:
a missing <application>/<instrumentation> tag, and an empty
"android:name" attribute. The latter due to a bug in the parsing
code.

These need to be gated by targetSdkVersion so that APKs built for
previous versions can still scan/install properly. This change
introduces support for this through a framework that leverages
@ChangeId to introduce individually toggle-able errors, in
case a developer needs to install an app that isn't completely
migrated for a new SDK version yet.

The ignoreError method was removed from ParseResult as the errors
it was used for were manually compared to PackageParser and it's
likely they can be hard errors without breaking anything.

This also adds tests for general ParseInput/Result behavior.

Exempt-From-Owner-Approval: AppIntegrity already approved in older PS.

Bug: 150776642

Test: atest android.content.pm.parsing.result.ParseInputAndResultTest
Test: atest com.android.server.pm.parsing.PackageParsingDeferErrorTest
Test: atest com.android.server.integrity.AppIntegrityManagerServiceImplTest
Test: atest com.android.server.pm.parsing

Change-Id: Id53a2e65f6e5e4dee9a41cc77007275b3a220ac3
2020-04-01 05:42:52 +00:00
TreeHugger Robot
456365644b Merge "Simplify WindowState#reportResized" into rvc-dev 2020-04-01 05:38:20 +00:00
TreeHugger Robot
9c637474fb Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-04-01 05:31:03 +00:00
TreeHugger Robot
b72d2c5ee5 Merge "AppBinding: Respond to PACKAGE_CHANGED" into rvc-dev 2020-04-01 04:46:22 +00:00
Lorenzo Colitti
c9bdb4aa29 Merge "Add an Ethernet tethering test." into rvc-dev 2020-04-01 03:56:28 +00:00
TreeHugger Robot
dcea9181e5 Merge changes from topic "Fix WindowFocusTests Flaky-rvc-dev" into rvc-dev
* changes:
  Prevent waiting when inject event without animation
  Fix input infos are inconsistent between WMS and InputFlinger (1/2)
2020-04-01 03:05:26 +00:00
TreeHugger Robot
1d63b6c88a Merge "Fix possible NPE" into rvc-dev 2020-04-01 03:03:53 +00:00
TreeHugger Robot
2240431010 Merge "Prevent dream service finishSelf before it was attached" into rvc-dev 2020-04-01 03:01:03 +00:00
JW Wang
1d68911a9d Merge changes I10355143,I85adb8c3 into rvc-dev
* changes:
  Run expiration when rollback lifetime is changed. DO NOT MERGE
  Add logs for debugging
2020-04-01 02:49:40 +00:00
TreeHugger Robot
9ba74bee62 Merge "Cancel animation in previous rotation" into rvc-dev 2020-04-01 02:48:42 +00:00
Feng Cao
f1771c0d33 Merge "Replace Nullable bundle with NonNull and use Bundle.EMPTY" into rvc-dev 2020-04-01 02:32:43 +00:00
Bill Yi
75a3ed54c1 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I4fc12101652d5a28c0ec0f19032571fe28352dc7
2020-03-31 19:30:17 -07:00
Andrii Kulian
886d2cf0f1 Merge "3/n Refactor TaskContainers to TaskDisplayArea" into rvc-dev 2020-04-01 02:05:35 +00:00
Lucas Dupin
88c870e6e8 Merge "Reset blur radius after dialog is gone" into rvc-dev 2020-04-01 01:28:50 +00:00
Lucas Dupin
12a7967791 Merge "Do not crash if window is invalid" into rvc-dev 2020-04-01 01:28:19 +00:00
Cody Kesting
5add803be8 Merge changes I2431a6d2,I9096969a,I748bd9de,Ia5387ca2,I803bdec8, ... into rvc-dev
* changes:
  Update CS helper for clearing NetworkCapabilities UIDs.
  Simplify unregister logic for Connectivity Diagnostics callbacks.
  Clarify comments for Connectivity Diagnostics reports.
  Sort administrator UIDs for NetworkCapabilities.
  Add combine() and equals() for NetworkCapabilities admin UIDs.
  Use IBinder as key for ConnectivityDiagnostics storage in CS.
  Decrement networkRequestPerUid when callbacks are unregistered.
  Invoke onConnectivityReport on registering ConnectivityDiagnostics.
2020-04-01 01:13:11 +00:00
TreeHugger Robot
1db5f59dcf Merge "[SM06] Collect mobile NetworkStats metrics by collapsed rat type" into rvc-dev 2020-04-01 01:12:41 +00:00
Mady Mellor
add5c6a9f2 Fix possible NPE
bubble.getIconView() and getExpandedView() are now nullable
check for that in a couple of places it makes sense

Bug: 152917277
Test: treehugger
Change-Id: I6df7e97615e7d397a4acd19a4aa62f1b732bed87
2020-03-31 17:31:07 -07:00
TreeHugger Robot
d9f9a8d70f Merge "Tuner JNI: Dvr and DvrCallback" into rvc-dev 2020-04-01 00:02:48 +00:00
Zhen Sun
e31edc21a1 Merge "Add atom of TvSettings and its enum" into rvc-dev 2020-03-31 23:24:21 +00:00
Etan Cohen
16f2b57048 Merge "[SYSUI] Fix logging on test failure" into rvc-dev 2020-03-31 22:51:59 +00:00
TreeHugger Robot
690559375c Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-03-31 22:46:42 +00:00
Makoto Onuki
44ec9f289a AppBinding: Respond to PACKAGE_CHANGED
Fix: 148210449
Test: atest CtsAppBindingHostTestCases

Change-Id: I568b63033b6daac9b8ebb79965ed5d29cfb924af
2020-03-31 15:32:45 -07:00
Lucas Dupin
7ee64cc436 Do not crash if window is invalid
Fixes: 152664147
Test: atest NotificationShadeDepthControllerTest
Change-Id: If134426672072dfb3930ae5ad43d9eedc86de1b0
2020-03-31 14:55:05 -07:00
Feng Cao
edb332c645 Replace Nullable bundle with NonNull and use Bundle.EMPTY
Test: atest InlineSuggestionsRequestTest
Bug: 152525467

Change-Id: Ie510e08ced8be4cc8df486f1acfa6eb330d194ef
2020-03-31 14:50:51 -07:00
TreeHugger Robot
c068acb6ae Merge "Add @UnsupportedAppUsage to the old inline APIs for compatibility" into rvc-dev 2020-03-31 21:23:09 +00:00
Lucas Dupin
77198561dc Reset blur radius after dialog is gone
Test: press power to show dialog, turn screen off and on
Fixes: 152805231
Change-Id: I6620d69c78d7b9028c0170f57569dd5ccec11a5e
2020-03-31 14:16:16 -07:00
Winson Chung
a531f922c9 Merge "Add task organizer based task embedder" into rvc-dev 2020-03-31 20:59:17 +00:00
TreeHugger Robot
63ff5bb6f1 Merge "PMS: Add shell command to toggle FIXED_PERFORMANCE" into rvc-dev 2020-03-31 20:38:47 +00:00
TreeHugger Robot
38d362ca86 Merge "iorap: AppLaunch - wait for background job to complete." into rvc-dev 2020-03-31 20:24:58 +00:00
TreeHugger Robot
cbd80ea094 Merge "Send more IME events to autofill manager service." into rvc-dev 2020-03-31 20:22:28 +00:00
Lyn Han
fb64e7f0ac Merge "Reset target, update pointer" into rvc-dev 2020-03-31 20:17:37 +00:00
Sean Pont
4fca5e9d5b Merge "Add text attributes to Wallet manifest entry" into rvc-dev 2020-03-31 20:09:29 +00:00
TreeHugger Robot
32f3bcfcd2 Merge "Log also the lang id model name that is involved in events" into rvc-dev 2020-03-31 20:04:47 +00:00
Selim Cinek
9bad85af2b Merge changes I0d79642d,If8756ac8,I29e73897,Ia8c5121a,I533b8f06 into rvc-dev
* changes:
  Indented the conversation action list
  Fixed some issues where conversation badges would not be visible
  Improved the animations of the conversation badges
  Important conversations now also transform into the shelf
  Adapted Shelf algorithm to also use conversation icons
2020-03-31 20:02:01 +00:00
TreeHugger Robot
b259d151ce Merge "WindowInsetsAnimationController: Fix minor API issues" into rvc-dev 2020-03-31 20:01:44 +00:00
TreeHugger Robot
aa9d95ed9f Merge "Add sample flags to MediaParser" into rvc-dev 2020-03-31 19:42:44 +00:00
Anton Hansson
2c592f0df3 Merge "Remove build workaround for wifi stubs" into rvc-dev 2020-03-31 19:42:28 +00:00
Bill Yi
8a07b0a7fe Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I5cde1c62019521b25b4260c733f71a1edb675157
2020-03-31 12:38:48 -07:00
TreeHugger Robot
c70636175c Merge "Disable conversation strip" into rvc-dev 2020-03-31 19:21:51 +00:00
Andrii Kulian
86d676c81f 3/n Refactor TaskContainers to TaskDisplayArea
Renamed TaskContainers to TaskDisplayArea and added getDisplayArea()
method to WindowContainer that finds the first display area in the
hierarchy above the node. ActivityRecord and Task override it to
return the TaskDisplayArea class.

Bug: 152116619
Test: WM CTS and unit tests
Change-Id: I4525afbcd794848e1020213cdca04d89a646dd55
2020-03-31 12:15:57 -07:00
Anton Hansson
b51f33f4cd Merge "Add wifi util lib to classpath for wifi stubs" into rvc-dev 2020-03-31 18:45:22 +00:00
Selim Cinek
7ca55ee7f6 Merge "Fixed error that was repeatedly polluting the log" into rvc-dev 2020-03-31 18:42:29 +00:00
TreeHugger Robot
8f08b1cd40 Merge "Delete bugreport file on bugreport cancel" into rvc-dev 2020-03-31 18:38:51 +00:00
Dmitri Plotnikov
13c7d899da Merge "Use ParcelableException to put exception in bundle" into rvc-dev 2020-03-31 18:36:57 +00:00
Jon Spivack
c44b78d47a Merge "ApexManager: Request apexservice only when needed" into rvc-dev 2020-03-31 18:33:31 +00:00
TreeHugger Robot
533a99f3b0 Merge "Guardrail for pull cooldown/timeout" into rvc-dev 2020-03-31 18:25:56 +00:00
Feng Cao
97ec1c4dcc Send more IME events to autofill manager service.
* In IME side, wait for the input start before calling back to Autofill,
  rather than returning inline unsupported immediately.
* Also adds an InlineSuggestionManager to simplify code in the
  InputMethodService

Test: atest CtsAutoFillServiceTestCases
Test: atest CtsInputMethodTestCases
Bug: 151123764

Change-Id: I199925d77aa508f259e98a8929120aeb96015b57
2020-03-31 18:11:24 +00:00