Commit Graph

640958 Commits

Author SHA1 Message Date
Peter Kalauskas
1a67982dfb Use falsing manager on click to open user switcher
Fix issue that prevented user switcher from opening on tap

Bug: 186244907
Test: With config_keyguard_user_switch_opens_qs_details=true, check that
      tapping user icon opens the user switcher QS panel
Change-Id: Idf3c5154b87b13ea046a89f3fd2ed2a4fafcc28c
2021-04-26 13:02:25 -07:00
Terry Wang
7ce25ed80e Merge "Register PackageChangedReceiver to AppSearchManagerService." into sc-dev 2021-04-26 19:57:14 +00:00
Kevin Chyn
1707d1267b Merge "Update biometric OWNERs to single source of truth" am: 8d75fd0d02 am: d72f38390a am: 9cbf1ef9ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685327

Change-Id: I7ce1bd2978d306ca2fbb58d61ea31d9c9de7887c
2021-04-26 19:52:31 +00:00
Bob Badour
6b3ffd27ab [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base
Added SPDX-license-identifier-Apache-2.0 to:
  location/tests/Android.bp
  services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp
  tests/DynamicCodeLoggerIntegrationTests/Android.mk
  tests/FlickerTests/test-apps/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: If81cb09cb5da063fe7cc00a70d46ce6d4ce5b10e
2021-04-26 12:42:45 -07:00
Leon Scroggins III
df33b95e68 AImageDecoder: only support animation for F16 and 8888 (impl)
Bug: 180594747
Test: I51dedd94aa8ff5d6846cada96861ffca30d509d7

See I03818703dc79942be4e574db31c6e2927ab571ed

Change-Id: Ibce55e4af38713d2e40fcb8846d9d7a939367fd6
2021-04-26 15:35:56 -04:00
Brad Ebinger
3cccf87d80 Expose parsing util methods for telephony validation
Bug: 173828358
Test: atest TeleServiceTests
Change-Id: I271a36bcecb332c30f04e7fb22c45098384bc634
2021-04-26 19:33:05 +00:00
Brad Ebinger
67a02c82dc Add String Map for Message Failure causes
Bug: 173828358
Test: manual - check logs during testing
Change-Id: Ic2ca8235e11e4bbc920e105033c4473c2ac665f3
2021-04-26 19:32:49 +00:00
Kevin Chyn
9cbf1ef9ef Merge "Update biometric OWNERs to single source of truth" am: 8d75fd0d02 am: d72f38390a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685327

Change-Id: Iceff96b2c4d993e1287528de9b122c4b9361904f
2021-04-26 19:23:18 +00:00
Dave Mankoff
8d2cf97e71 Merge "Make FalsingManager send out an event when second tap is required." into sc-dev 2021-04-26 19:22:47 +00:00
Vadim Caen
8773bbe881 Merge "API to override the splashscreen theme" into sc-dev 2021-04-26 19:20:04 +00:00
Pavel Grafov
bc32bd8cba Merge "Drive-by clean-up: remove redundant operation" into sc-dev 2021-04-26 19:15:05 +00:00
TreeHugger Robot
ecfc497460 Merge "Async startInputOrWindowGainedFocus" into sc-dev 2021-04-26 19:06:26 +00:00
Kevin Chyn
d72f38390a Merge "Update biometric OWNERs to single source of truth" am: 8d75fd0d02
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685327

Change-Id: I80ba7518569519efcb51d74906f4e71ae52799a7
2021-04-26 19:03:11 +00:00
Peter Kalauskas
1c3a6056f1 Update user icon when dark theme toggled
Previously, after toggling dark theme on/off, the keyguard user icon
would not update until it was clicked.

Also, remove unused private field mDarkAmount

Bug: 184204785
Test: With config_keyguard_user_switch_opens_qs_details=true, toggle
      dark theme on/off and observe keyguard user icon
Change-Id: Ic47ed44c0c970d050178ce2c26aaccb661286ece
2021-04-26 11:56:05 -07:00
Nate Myren
dc0bd5b516 Add information to EXTRA_AUDIO_INJECT_SOURCE
indicate the data for injection should be a URI to an audio resource.

Fixes: 186411622
Test: none
Change-Id: I70b650c8fb8fa6de648c03df3c5464a570222fee
2021-04-26 11:47:37 -07:00
Agatha Man
b851138c0b Ignore public volume state change event when user is null
Bug: 180131005
Test: presubmit
Change-Id: I0ff80646ab1d426b9011386a2843b2587f9296b5
2021-04-26 18:37:02 +00:00
Brian Osman
64ee324b93 Update frameworks/base to use newer SkRuntimeEffect::MakeForShader
This enforces stricter rules on the SkSL at effect creation time, and
ensures it's valid as an SkShader (vs. an SkColorFilter). Also updated
some SkSL that was already (or would become) illegal:

- Child shaders must be declared 'uniform', not 'in'
- sampling a child requires coordinates

Bug: skia:11813
Change-Id: I743b985b5012723186a43e58e9e3ccf29d809d2b
(cherry picked from commit 7556777511)
2021-04-26 18:31:36 +00:00
Guojing Yuan
9e703b97e6 Add examples for EXTRA_PERMISSION_GROUP_NAME and EXTRA_ATTRIBUTION_TAGS
Fix: 184890546

Test: N/A
Change-Id: I900995fc9d78da87a17013aaa56c86453eef7fb8
2021-04-26 18:22:29 +00:00
Kevin Chyn
8d75fd0d02 Merge "Update biometric OWNERs to single source of truth" 2021-04-26 18:22:02 +00:00
Alex Buynytskyy
de4b8230ab Retry on unavailable.
Bug: 182214420
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: Iaf61b6825ced45ffdc7e9c87dfea830e50633476
2021-04-26 11:21:01 -07:00
Jay Aliomer
da5a228752 Removed platform signing from icon pack victor
Fixes: 162480130
Test: no test required
Change-Id: I4c01de14340f1801f21abd56cd5557f9f47e08b1
(cherry picked from commit f1f8c6defc)
2021-04-26 18:09:57 +00:00
Fabian Kozynski
85851c6a3e Improve log of paused items in PrivacyItemController
Also, do not show dialog if there are no elements to show.

Test: atest PrivacyDialogControllerTest
Bug: 186033456
Change-Id: Ia860c63f2bb46beb80ca86cf9260ffeaafedb32d
2021-04-26 14:09:41 -04:00
TreeHugger Robot
c72ac760e1 Merge "Add Sony DualShock3 controller sensor axes mapping." into sc-dev 2021-04-26 17:48:53 +00:00
Anton Hansson
bbdd64be7d Convert java_library_static to java_library
They're the same, and the latter is preferred.

Test: presubmit
Change-Id: Ib201bccba60be2d3cd3a9fa940d9ab2ae22d5acf
2021-04-26 18:47:39 +01:00
Yan Yan
de7222cba5 Remove TunnelConnectionParams interface
To avoid exposing empty interface.

Test: atest FrameworksVcnTests
Bug: 180664474
Change-Id: Ia33e75b77f1563a1c3d31e0145b7ec2be728b6db
2021-04-26 10:47:05 -07:00
Hui Wang
09632a3a1c Support to search by characteristic for rcs provisioning config
Bug: 185177423
Test: atest FrameworksTelephonyTests:com.telephony.ims.RcsConfigTest
Change-Id: I32c51f7764a293d86440a77d57b29c5cf82e5928
2021-04-26 10:46:55 -07:00
Jack Nudelman
b9d126b428 [automerger skipped] Merge "Don't backup/restore sim-settings if Telephony not present." am: d50bb50f91 am: 68e5bb5582 am: 97882604f2 -s ours
am skip reason: skip tag Change-Id Id898d135ed64a704cc4707dcb796664d9b08264b with SHA-1 55fba4d55f is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685772

Change-Id: Ic2b923d358fe9f453c1da93dcdc79d892292853c
2021-04-26 17:35:39 +00:00
Ming-Shin Lu
2c8068c98a Consolidate InputMethodManager#toggleSoftInput reliability
As previously InputMethodManager#toggleSoftInput is designed to tell
InputMethodService directly through IInputMethodSession to toggle
soft-keyboard visibility, this could be happened some unexpected IME
visibility issues that when the app calling this method in the wrong
state like the app toggling IME visibility when the app is off-screen
but unexpectedly it ends up showing soft-keyboard when the IME is in
invisible state.

To minimize the app compatibility without changing the public API
surface and reducing unexpected IME visibilty been toggled behavior
especially happens when switching the apps, changed the internal IPC
protocols to call IMMS#showSoftInput or IMMS#hideSoftInput directly
according the previous IME consumer requested visibility state,
so that in IMMS side can validate to see if the token user is
still focused and ready to toggle the IME visibility to show or hide.

As the result, we deprecated toggleSoftInput and
toggleSoftInputFromWindow to state the reason as the above, and
recommand to use showSoftInput or hideSoftInputFromWindow instead,
so that framework side no longer has to call {InputMethodSessionWrapper,
InputMethodSessionImpl}#toggleSoftInput.

Bug: 182071625
Test: m checkapi doc-comment-check-docs
Test: atest KeyboardVisibilityControlTest#testToggleSoftInput
Change-Id: I390dc029e7bcc30c200926a9bfbbbd0268a1f714
2021-04-27 01:34:12 +08:00
Vishnu Nair
f752c800d3 Fix Magnifier position updates
When the magnifier content moves relative to the parent surface,
it will call setPosition on the content surface control. This conflicts
with position updates called by the BlastBufferQueue adapter
causing a flicker on screen. Fix this by providing a wrapper surface
to BlastBufferQueue adapater to send buffer updates.

Fixes: 186072574
Test: Select text and see magnifier surface does not flicker or move
around

Change-Id: Idfcc06a5d90f400f69e5cbe91008a0cb59fd4646
2021-04-26 10:27:50 -07:00
Jack Nudelman
97882604f2 Merge "Don't backup/restore sim-settings if Telephony not present." am: d50bb50f91 am: 68e5bb5582
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685772

Change-Id: Iae0db0a4457c035ca9d2a2d56190fa49a28e8c92
2021-04-26 17:12:51 +00:00
Songchun Fan
2ee0270cba [am] add place holders for new crash stats fields
Putting empty values for now to cope with proto changes. Will replace
the place holders with real values in follow-up CLs.

BUG: 184844615
Test: atest android.cts.statsdatom.incremental.AppErrorAtomTests
Change-Id: I5a6adcf91c67f331a43e76ee706fdb5f2ffe67d6
2021-04-26 10:10:15 -07:00
Jerry Chang
d8abe76ba1 Support FLAG_ACTIVITY_LAUNCH_ADJACENT for launch root with adjacent
Add window container transaction APIs to indicate launch root for task
launching with FLAG_ACTIVITY_LAUNCH_ADJACENT. If launch adjacent flag
root is available, consider to launch to its adjacent task if the launch
is coming from the same root task.

Fix: 169271875
Test: atest WMShellUnitTests
Test: atest TaskDisplayAreaTests
Test: manual test FLAG_ACTIVITY_LAUNCH_ADJACENT behavior with adjacent
root.

Change-Id: I1716aaa48745d2c32cd413c8eac0b1d17810f0de
2021-04-27 01:07:50 +08:00
Neil Fuller
181dc2acf0 Merge "Add OWNERS for android/providers" am: 30a6e0a4ae am: a8067dd770 am: 665d7c76bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684188

Change-Id: Idb428596216be3b15a5abb336f7dc8209f83d0d4
2021-04-26 17:03:23 +00:00
Flavio Fiszman
bf0507b001 Merge "Handling group chat sender" into sc-dev 2021-04-26 17:01:12 +00:00
Mady Mellor
2d80fed940 Bubbles: improve how rotation is listened for
Previously we relied on ConfigurationListener for
rotation, however, this relies on portrait / landscape
rather than the actual rotation of the device (e.g. 90
vs 270) so if the device was rotated from 90 to 270
(both 'landscape') we wouldn't be notified to update the
position of the bubble.

Fix is to use onDisplayChangingListener to get the exact
rotation. This is notified *before* the layout has
happened for the new config so updates to the positioner
have moved into BubbleStackView where there's a layout
listener in response to the orientation.

Fixes: 182172825
Fixes: 172530640
Test: - Have a bubble
      - Put device in landscape
      - Rotate it to be landscape again but on the other
        side
      - Rotate back to portrait
      => Note that the bubble is always along the edge
         of the phone & never goes off screen or is in
         the middle of the screen
      => Also expand the stack in each of these steps to
         ensure the bubbles are at the top in portrait
         and at the sides in landscape
Test: - Have a bubble, expand it
      - Rotate the device several times, make sure the
        position of the bubbles & expanded view are
        correct
Test: - Have bubbles on left edge
      - Change the screen size
      => Notice that the bubbles are placed correctly
Change-Id: I76e97529d991102e5b052176bff29e1063537273
2021-04-26 09:57:17 -07:00
Jack Nudelman
68e5bb5582 Merge "Don't backup/restore sim-settings if Telephony not present." am: d50bb50f91
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685772

Change-Id: I6f3b3874e1e4e0d0b48af77675b27192b91f023d
2021-04-26 16:53:09 +00:00
Pinyao Ting
525a89b21c Fixes a potential error in setDynamicShortcut
In the current implementation, ret.complete will still be called after
ret.completeExceptionally is called. Although the second call doesn't do
anything right now since the implementation of AndroidFuture ignores
consecutive attempts at calling complete on an already completed future,
it is better to avoid these kind of behaviors in the first place.

Bug: 186237458
Test: manual
Change-Id: I65e44c28ded947d499ba74aafd9a2686f02a9f18
2021-04-26 09:50:21 -07:00
TreeHugger Robot
a095d6b2b7 Merge "Prepare AttributionSource to expose to native" into sc-dev 2021-04-26 16:46:44 +00:00
Philip Junker
a9d9c267be Add test case for opening light session with priority
Bug: 185877106
Test: atest LightsServiceTest
Change-Id: I5f52e8b2213e82e055cb9fc98f54e7b060b1aafb
2021-04-26 18:43:33 +02:00
Christine Franks
1505d89322 Check real virtual display id for input devices
And update all display's configurations

Bug: 184615313
Test: manual
Change-Id: I3cebf22bebf650e31b554a412725de644c850e80
2021-04-26 09:41:01 -07:00
Neil Fuller
665d7c76bb Merge "Add OWNERS for android/providers" am: 30a6e0a4ae am: a8067dd770
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684188

Change-Id: I0f51602b2ca6115aec8402f1d76bb22377f28859
2021-04-26 16:36:52 +00:00
Martin Brabham
1cd46165dd OOB: Remove static creator methods in favor of public constructors
Bug: 184370881
Tag: #feature
Test: Manual compile
Change-Id: I502cdf5adde324b7a41cfb6974f0b43b0064a911
2021-04-26 09:35:54 -07:00
TreeHugger Robot
306e47692f Merge "Restore app uninstall on cable disconnect during ADB streaming." into sc-dev 2021-04-26 16:34:51 +00:00
Jeff DeCew
a91713d836 Fix CallStyle ranking & ensure correct features are used.
Fixes: 179178086
Test: atest SystemUITests NotificationComparatorTest
Change-Id: I8e0890954300f4fcf31d5927b1919e16e46a7801
2021-04-26 12:32:28 -04:00
Jack Nudelman
d50bb50f91 Merge "Don't backup/restore sim-settings if Telephony not present." 2021-04-26 16:23:57 +00:00
James Mattis
860c2d6dbb [automerger skipped] Merge "Changing per-app default request to TRACK_DEFAULT" am: bc4ca04caa am: 7bdd8f85d8 am: b146660993 -s ours
am skip reason: skip tag Change-Id I312e55a54f70aa82953a32ab9369d5afc02b75e5 with SHA-1 8d64dfc836 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682063

Change-Id: Ib805026108c1cb2afd04c6655c2f7092446009aa
2021-04-26 16:07:06 +00:00
Makoto Onuki
89f1f81ae0 Merge "Add sampling to FGS atom" into sc-dev 2021-04-26 16:03:55 +00:00
Neil Fuller
a8067dd770 Merge "Add OWNERS for android/providers" am: 30a6e0a4ae
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1684188

Change-Id: I7bc23561609dfddc24377bb4a0a5797abb8a445d
2021-04-26 15:59:26 +00:00
Santos Cordon
b4bed4d455 Merge "Turn OFF any changing displays during device-state transitions" into sc-dev 2021-04-26 15:54:00 +00:00
James Mattis
b146660993 Merge "Changing per-app default request to TRACK_DEFAULT" am: bc4ca04caa am: 7bdd8f85d8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1682063

Change-Id: I16f4bc417880aeef53a17cb1830666b5fefe5889
2021-04-26 15:42:37 +00:00