Commit Graph

114385 Commits

Author SHA1 Message Date
Rob Carr
f2f056ef71 Merge changes I98b51b43,I03cb69e1 into rvc-dev
* changes:
  InsetAnimationThreadControlRunner: Don't copy controls
  InsetsSourceConsumer: Release directly
2020-04-01 22:43:59 +00:00
Winson Chung
331cd1a9c9 Merge "Move always-on-top to the callers" into rvc-dev 2020-04-01 21:02:26 +00:00
Selim Cinek
a2b1d3753b Added back the recently alerted indicator to conversations
Previously this was dropped, it's now reintroduced.

Fixes: 150905003
Test: atest SystemUITests
Change-Id: Ia152bc4117fa9c656b3d477ef8e50708e1056148
2020-04-01 11:40:57 -07:00
Selim Cinek
4237e8277a Reintroduced app ops for conversation notifications
Previously app ops weren't showing in conversation notifications
Also made sure that they show in case the app name is long.
Additionally this fixes the coloring of the sender name.

Fixes: 150905003
Test: atest SystemUITests
Change-Id: Iae8026e7efdec8c207d1984dac4ee089abe116b9
2020-04-01 11:40:54 -07:00
Steven Thomas
b69f2bc126 Merge changes from topic "revert-10403399-pkg-override-label-icon-DCRMJNYAKW" into rvc-dev
* changes:
  Revert "Add test constructor to PackageManagerService"
  Revert "Allow overriding the label and icon of a MainComponent"
2020-04-01 18:13:13 +00:00
Steven Thomas
822bc84bfe Revert "Allow overriding the label and icon of a MainComponent"
Revert submission 10403399-pkg-override-label-icon

Reason for revert: Droidcop: Potential culprit for Bug 152987173 - verifying through Forrest before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.
Reverted Changes:
I4b20ec294:Add test constructor to PackageManagerService
Id48eda556:Allow overriding the label and icon of a MainCompo...

Change-Id: Ic5c719cbbd904f8cc1c5c6a6d826c7b807f03e39
2020-04-01 17:50:51 +00:00
Steve Elliott
4605ca9daa Merge changes Ie5bfc2f6,I38e7dc8c,I9308a15a into rvc-dev
* changes:
  Reinflate notif when [un]marked as conversation
  Update conversation UI when importance changed
  Add unread count badge to conversation layout
2020-04-01 17:34:36 +00:00
Winson Chung
06200523a1 Move always-on-top to the callers
- This was accidentally included in ag/10788780, where only the bubbles
  AV should be using an always-on-top MW task

Bug: 152808872
Test: Start auto in emulator and ensure the task is not always on top

Change-Id: If0de9d5856b15dbca7661bf97a88b10fd63ec9db
2020-04-01 09:55:39 -07:00
Winson Chiu
9249981abb Merge changes from topic "pkg-override-label-icon" into rvc-dev
* changes:
  Allow overriding the label and icon of a MainComponent
  Add test constructor to PackageManagerService
2020-04-01 16:53:57 +00:00
Jorim Jaggi
526632d15f Merge "Fix missing finish callback to fix running animation leak" into rvc-dev 2020-04-01 16:13:54 +00:00
Jeff Sharkey
4af9a76efb Merge "Deep copy arguments to avoid accidental mutation." into rvc-dev 2020-04-01 15:39:11 +00:00
Wale Ogunwale
1df5eb0130 Merge "Add TestApi interfaces for window organizers" into rvc-dev 2020-04-01 13:30:47 +00:00
Wale Ogunwale
adf116ec95 Add TestApi interfaces for window organizers
Enables testing the API surfaces from CTS.

Bug: 149338177
Test: they pass!
Change-Id: I7e1f2852585a10c20d299bd87e9a87f828d06d6a
2020-04-01 13:25:23 +00:00
Jorim Jaggi
f103588cc1 Fix missing finish callback to fix running animation leak
Make sure finish callback gets called when
applyChangeInsets gets called synchronously from
scheduleApplyChangeInsets

Bug: 152071027
Test: InsetsAnimationControlImplTest
Change-Id: I6808b3527f1d2e15de681c5260208d238dcf53e2
2020-04-01 14:50:59 +02:00
Galia Peycheva
5a0549cd42 Merge changes Id6161f92,Ie0d8849a into rvc-dev
* changes:
  Introduce security checks to startDreamActivity
  Add verification for setting ACTIVITY_TYPE_DREAM
2020-04-01 10:18:19 +00:00
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
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
Jeff Sharkey
b36acbf6a7 Deep copy arguments to avoid accidental mutation.
Otherwise we'd risk applying different arguments to active versus
future connections.

Bug: 152005629
Test: atest CtsDatabaseTestCases:android.database.sqlite.cts.SQLiteDatabaseTest
Change-Id: I6e83a47d9874825fd14940245412372ef9227e79
2020-03-31 21:10:22 -06:00
TreeHugger Robot
2240431010 Merge "Prevent dream service finishSelf before it was attached" into rvc-dev 2020-04-01 03:01:03 +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
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
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
Robert Carr
53be42a75d InsetAnimationThreadControlRunner: Don't copy controls
The controls are copied previously in collectSourceControls and
so this copy is unnecessary.

Bug: 150805473
Test: Existing tests pass
Change-Id: I98b51b4372ace95036e25e806d1ab646d2df7879
2020-03-31 14:44:36 -07:00
Robert Carr
4c101c3f68 InsetsSourceConsumer: Release directly
Since we copy the InsetSourceControl to the animation
runner, we don't need to release the InsetsSourceConsumer
copy from the render thread, as it wont be used there.

Bug: 150805473
Test: Existing tests pass.
Change-Id: I03cb69e17e036237410472e8b4601b61fc40bc0e
2020-03-31 14:43:25 -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
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
cbd80ea094 Merge "Send more IME events to autofill manager service." into rvc-dev 2020-03-31 20:22:28 +00:00
Steve Elliott
239e6cb1df Add unread count badge to conversation layout
Fixes: 152303800
Test: manual, visual
Change-Id: I9308a15ab223086398ba073b08d60cb7c50d8c30
2020-03-31 16:20:39 -04:00
Sean Pont
4fca5e9d5b Merge "Add text attributes to Wallet manifest entry" into rvc-dev 2020-03-31 20:09:29 +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
Dmitri Plotnikov
13c7d899da Merge "Use ParcelableException to put exception in bundle" into rvc-dev 2020-03-31 18:36:57 +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
Michael Wright
ca87d86d59 Merge "Remove registerSection API with optional Executor" into rvc-dev 2020-03-31 17:54:36 +00:00
Cody Kesting
221d383ff9 Merge "Clean up handling of NetworkCapabilities#administratorUids." into rvc-dev 2020-03-31 17:46:57 +00:00
Selim Cinek
e027da23c0 Indented the conversation action list
Previously the actions weren't aligned with the conversation content
start.

Bug: 150905003
Test: add conversations, observe normal layout
Change-Id: I0d79642db736c66419ae3e4a6982ebd17abf09e2
2020-03-31 10:42:34 -07:00
Benedict Wong
7df7129b40 Merge changes I97ba5903,Icd80b368 into rvc-dev
* changes:
  Make VpnProfile.maxMtu default value match Ikev2VpnProfile
  Add negotiated DNS servers to VPN config
2020-03-31 16:52:04 +00:00
Adrian Roos
53989971bf WindowInsetsAnimationController: Fix minor API issues
- make sure we only dispatch the controller in onCancelled after the app has seen onReady
- return a linearly interpolated getFraction() if there is no interpolator instead of -1

Bug: 118118435
Test: atest WindowInsetsAnimationControllerTests
Change-Id: Iccd0b6246b4cdc250f3111409821c1dac53c694e
2020-03-31 17:48:52 +02:00
Neil Fuller
71271db6bf Merge "Misc tidy up before adding geolocation classes" into rvc-dev 2020-03-31 14:52:09 +00:00
Winson
561e0afb94 Allow overriding the label and icon of a MainComponent
Normally these attributes are immutable once parsed from the
AndroidManifest.xml of the corresponding app, but there exists
a requirement for a special privileged app to change this
at runtime.

This change allows overriding label/icon of any component
(Activity, Receiver, Provider, Service) that belongs to the
app declared as R.string.config_overrideComponentUiPackage.

This role can only be taken by 1 package, which must be a system
app, and state is stored per-user. Different users with potentially
different requirements can show a different label/icon.

Co-authored-by: Yoshiaki Naka <yoshiaki.naka@sony.com>

Bug: 113638339

Test: manual verify behavior using test app
Test: atest PackageManagerComponentOverrideTests

Change-Id: Id48eda55650ffc88854423498675b001c2500259
2020-03-31 03:14:25 -07:00
junyulai
317ba5bf3b [SM06] Collect mobile NetworkStats metrics by collapsed rat type
Test: adb shell cmd stats pull-source 10000~10003
      adb shell dumpsys netstats --uid
Bug: 129082217

Change-Id: I726e74f5c63a6ed456cb13ea259b58c7a33bec76
Merged-In: I726e74f5c63a6ed456cb13ea259b58c7a33bec76
(cherry picked from commit c82dfeb422)
2020-03-31 09:25:27 +00:00
Feng Cao
77636e89d0 Add @UnsupportedAppUsage to the old inline APIs for compatibility
Test: manually tested
Bug: 152799973

Change-Id: I6fed3fdbb9d3d872de8ed3bde8cbf45f5826975f
2020-03-30 23:08:21 -07:00
Benedict Wong
399c1365c2 Make VpnProfile.maxMtu default value match Ikev2VpnProfile
This change corrects the VpnProfile's maxMtu defaults to match that of
the Ikev2VpnProfile. 1400 is too high as a default, and Settings will
run into an issue here quite often.

Bug: 152573931
Test: FrameworksNetTests passing
Change-Id: I97ba5903b3cc1ed6a21c706ed3d78bd8ecbeee0c
Merged-In: I97ba5903b3cc1ed6a21c706ed3d78bd8ecbeee0c
(cherry picked from commit d0a44f49df)
2020-03-30 22:59:17 -07:00
TreeHugger Robot
7f70f707b5 Merge "Properly layout InlineContentView" into rvc-dev 2020-03-31 05:36:22 +00:00
Ugo Yu
dff3794ce1 Merge "Independent methods to enable/disable BLE mode" into rvc-dev 2020-03-31 04:41:43 +00:00
Svet Ganov
5baa279868 Properly layout InlineContentView
bug:152723089
bug:152319052

Test: atest android.view.inputmethod.cts.InlineSuggestionTest

Change-Id: I656c2fb75560719210aa1efe8b9f06a0ced4d7e0
2020-03-31 03:37:24 +00:00
Cody Kesting
95a98c2efd Clarify comments for Connectivity Diagnostics reports.
Clarify when
ConnectivityDiagnosticsCallback#onConnectivityReportAvailable will be
invoked. Clarify when NetworkAgentInfo#mConnectivityReport will be null
vs non-null.

Bug: 147849853
Test: atest FrameworksNetTests
Change-Id: I748bd9ded72a34d89f13bd4362d6d4da62b910b8
Merged-In: I748bd9ded72a34d89f13bd4362d6d4da62b910b8
(cherry picked from commit 604dd40cf0)
2020-03-30 17:14:56 -07:00
Cody Kesting
93c1e656b5 Sort administrator UIDs for NetworkCapabilities.
Administrator UIDs stored in NetworkCapabilities should be sorted. This
allows for easier equals checks and hashCode computation. Additionally,
duplicate UIDs should be prevented.

Bug: 147903575
Test: atest FrameworksNetTests
Change-Id: Ia5387ca2ce7c3fcbd04dc7fbff5266f7bcc71694
Merged-In: Ia5387ca2ce7c3fcbd04dc7fbff5266f7bcc71694
(cherry picked from commit 2091bd9059)
2020-03-30 17:14:44 -07:00