Commit Graph

640958 Commits

Author SHA1 Message Date
Chiachang Wang
5b6127dffb [automerger skipped] Merge "Address API review feedback" am: 13e89b75d3 am: 9d2158a9bf am: 786bf2e9bc -s ours
am skip reason: skip tag Change-Id I5e8c4bed8bda40d507afa894c359b5e24ee5d868 with SHA-1 11f5e63be5 is already in history

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

Change-Id: I859b0bd64ce3c38693e19209783bcdf91a562ef2
2021-04-26 01:34:33 +00:00
Louis Chang
d41d71e4f8 Merge "Do not relaunch bg activities when application info changes" into sc-dev 2021-04-26 01:19:44 +00:00
Chiachang Wang
786bf2e9bc Merge "Address API review feedback" am: 13e89b75d3 am: 9d2158a9bf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679763

Change-Id: I39de2c7701114faa0bf699a2fdb725a57188886a
2021-04-26 01:15:12 +00:00
Chiachang Wang
9d2158a9bf Merge "Address API review feedback" am: 13e89b75d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1679763

Change-Id: I7a454e891edf3177bd87f041473f2749d3ee309f
2021-04-26 00:43:15 +00:00
Chiachang Wang
13e89b75d3 Merge "Address API review feedback" 2021-04-26 00:22:27 +00:00
Riddle Hsu
dc4c8ea3f5 Merge "Support PiP with fixed rotation" into sc-dev 2021-04-26 00:18:29 +00:00
Jackal Guo
c4cf0d4927 Merge "Traverse all users to look up the names of the appId" into sc-dev 2021-04-25 23:45:17 +00:00
Joshua Mccloskey
1203a1c628 Merge "Add get/set feature implementation" into sc-dev 2021-04-25 23:20:35 +00:00
TreeHugger Robot
76cdac9f94 Merge "Enable IME to control the source of suggestions" into sc-dev 2021-04-25 22:00:33 +00:00
Siddika Parlak Polatkan
5261468910 Merge "Remove the flag gating logging and fix a bug." into sc-dev 2021-04-25 19:29:35 +00:00
Alex Buynytskyy
265ee86917 Restore app uninstall on cable disconnect during ADB streaming.
This is a redo of ag/10717946 to keep feature parity with R.

Bug: 182214420
Test: install an app via USB2, disconnect the cable, observe the app
being uninstalled.

Change-Id: I79f34268730ea783c9d64a534417b8460c639c21
2021-04-25 12:03:43 -07:00
Svet Ganov
7b7ea938f5 Prepare AttributionSource to expose to native
Separate the internal state of AttributionSource from the
class to make it a simple AIDL we can translate automatically
to native - keeping Java and native parts in sync. This
would allow writing a thin native lib for checking attribution
source permissions which would be used to teach camera and
audio about attributions.

Deinfe an AIDL interface for passing around an attribution
source and opr performing permission checker oprations allowing
native and Java permission checks on attribution chains to be
handled. The Java side permission checker functions are in a dedicated
permisison checker service on top of which sits the PermissionChecker.
We expose similar PermissionChecker native APIs sitting on top
of the same remote interface. The nice thing is that we have
native and Java permisison checkers in sync sharing remoting
code and being close in shape.

For now the PermissionChecker in Java is divorced from the
PermissionManager but in T we will consider how to unify them,
either by an extension object on the PermmissionManager or
APIs on the PermissionManager, or another approach, and then
migrate clients off the PermissionChecker APIs.

bug: 158792096

Test: atest CtsPermission5TestCases

Change-Id: I4e050e78b2361cbf524cc213802e0fef5b487f67
2021-04-25 19:00:30 +00:00
Joy Babafemi
adf4270f69 UWB: Add getAdapterState System API
Test: Updated tests for AdapterStateListener.java
Bug: 183254940

Merged-In: I9a7472be2c7cf835cda8910261ba641bf2345b27
Change-Id: I9a7472be2c7cf835cda8910261ba641bf2345b27
2021-04-25 06:49:42 +00:00
Lucas Dupin
15565a139c Merge "Color extraction OWNERS" am: 9ed1dac67c am: 4111abc621 am: f9215ba0ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685208

Change-Id: I68ae0f0233134718317dac205deac5a7a61d3d6d
2021-04-25 02:14:08 +00:00
Lucas Dupin
f9215ba0ef Merge "Color extraction OWNERS" am: 9ed1dac67c am: 4111abc621
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685208

Change-Id: I4a1b6666bbb1abd91641b256c3b5a2ddd119ca04
2021-04-25 02:00:36 +00:00
Lucas Dupin
4111abc621 Merge "Color extraction OWNERS" am: 9ed1dac67c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685208

Change-Id: Ica86b86aaf3e7dc0d2a480e27894753b7abb3686
2021-04-25 01:29:52 +00:00
Lucas Dupin
9ed1dac67c Merge "Color extraction OWNERS" 2021-04-25 01:03:51 +00:00
Lucas Dupin
477aab1fa3 Merge "A new shade pull down animation" into sc-dev 2021-04-25 01:03:18 +00:00
Jeff Sharkey
63721f8c7b Merge "Long-tail of AttributionSource plumbing." into sc-dev 2021-04-24 22:43:56 +00:00
Lucas Dupin
370279459d Color extraction OWNERS
Bug: 184891403
Test: none
Change-Id: Ieba5767a8c6f465bf8eca28c277aba5b9a6b7f9b
2021-04-24 13:51:21 -07:00
Lucas Dupin
976de38e37 A new shade pull down animation
Test: manual
Test: atest ScrimViewTest
Test: atest ScrimControllerTest
Bug: 185683835
Fixes: 184891403
Change-Id: I1c51f3dc0d8afe97457aea8712c4322ebbda6ae4
2021-04-24 13:08:34 -07:00
Siddika Parlak Polatkan
861c8d4a15 Remove the flag gating logging and fix a bug.
This flag was needed for gating the raw sensor data collection, which is
now moved to somewhere else.

Calling evaluateRotationChangeLocked() before setting
mDesiredRotation = reportedRotation is meaningless since it always
returns -1, so that is also removed.

Test: statsd_testdrive on Redfin

Bug: 186088594

Change-Id: I3389c0df9f0762ad15375edbfb391ba01ac6aa0f
2021-04-24 19:40:33 +00:00
cecilia
f685301e94 Add the guts control panel to Smartspace media recommendation card.
Bug: 184247458
Test: Studio builds
Change-Id: I62b2819eb0aab96eb9a9ddc851fb7f54b5122805
2021-04-24 14:26:34 -04:00
Santos Cordon
33946ea33f Merge "Add listener for brightness-specific changes." into sc-dev 2021-04-24 15:38:20 +00:00
Jeff Sharkey
dd5a4f39c8 Long-tail of AttributionSource plumbing.
Wires up AttributionSource across the remaining long-tail of
Bluetooth AIDL interfaces, ensuring that developers can accurately
make calls chained back to a specific Context.

Moves "for data delivery" permission checks to happen in a single
location on each interface to ensure they're performed consistently
with the new AttributionSource arguments.  Note that "for data
delivery" isn't the best name; it's designed to represent that the
requested action was performed and should result in the relevant
appop being noted for the caller.

This change has the positive side effect of ensuring that all
interfaces are consistently enforcing the BLUETOOTH_CONNECT
permission, even in the case where BLUETOOTH_PRIVILEGED is also
required; this is what ensures that revoking the "Nearby devices"
permission takes effect for all callers.

Additionally, standardizing on enforcing permissions closer to the
AIDL entry point reduces the need for @RequiresPermission annotations
to be carried around inside the Bluetooth stack.

Bug: 183626112
Test: atest BluetoothInstrumentationTests
Change-Id: I8023dda654e325b8bfa2f0cdb994ad63a2b429d4
2021-04-24 08:31:43 -06:00
bsears
250a563fbf Merge "Split up MODE_SHOW_BOUNCER and MODE_UNLOCK_COLLAPSING" into sc-dev 2021-04-24 05:31:12 +00:00
Chris Li
55a68d161b Fix EnterSplitScreenNotSupportNonResizable flaky
Before, it called openQuickstep before canSplitScreen, but the later one
is also calling openQuickstep. This caused the recent is pressed twice
to introduce the flakness.

Test: atest WMShellFlickerTests:EnterSplitScreenNotSupportNonResizable
Bug: 182235458
Change-Id: Iba5af5114fd8883b73d78ac34e6f891ee8ca798f
2021-04-23 21:50:14 -07:00
Jieru Shi
04c4a13edb Merge "Add click logging for Smartspace media recommendation card" into sc-dev 2021-04-24 03:47:53 +00:00
TreeHugger Robot
7a2b2a868e Merge "Redact cellIdentity from logs since it's PII." into sc-dev 2021-04-24 03:46:44 +00:00
Jieru Shi
7e72a16ed9 Add click logging for Smartspace media recommendation card
Test: statsd_testdrive output https://paste.googleplex.com/5438521440468992
Bug: 181364757

Change-Id: I2fdb8f60144a823a720e3bc3803eb350f6b36e7b
2021-04-24 03:46:25 +00:00
TreeHugger Robot
7edccec5c6 Merge "Avoid NetInitiatedActivity overlaid by non-system apps" into sc-dev 2021-04-24 03:41:24 +00:00
Sudheer Shanka
f8ebc39f7d Merge "Update a permission to be role based." into sc-dev 2021-04-24 03:24:57 +00:00
Treehugger Robot
05e6dd50ab Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" am: aa21d775a0 am: 58a6b364fa am: 1cacb3d497
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685885

Change-Id: Ief2d184284fcb1640776ff1da11ee34fc25bad73
2021-04-24 01:58:02 +00:00
Treehugger Robot
1cacb3d497 Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" am: aa21d775a0 am: 58a6b364fa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685885

Change-Id: I0e359750dbf0971e41cb607bc40b8c4cc8c9ab5e
2021-04-24 01:35:21 +00:00
Evan Rosky
6e895c09c9 Merge "Fix surface release race when using Shell Transitions" into sc-dev 2021-04-24 01:29:41 +00:00
Terry Wang
2f8ab2bd61 Register PackageChangedReceiver to AppSearchManagerService.
The Receiver could receive ACTION_PACKAGE_FULLY_REMOVED and
ACTION_PACKAGE_DATA_CLEARED broadcast and clean the package data.

The CL has been reverted back since the receiver tries to write
to /data/system_ce/appSearch before user storage has been unlocked.
And this prevents encryption policy from being setup correctly.

Added check and only handle those actions if used is unlocked.

PatchSet 1 is the old version that has been reverted.

Bug: 145759910
Test: atest --rebuild-module-info CtsAppSearchHostTestCases
Test: atest StagedRollbackTest:com.android.tests.rollback.host.StagedRollbackTest#testRollbackDataPolicy -- --abi x86_64
Change-Id: I41dc0501ac227551ae9bf2c59f57accc66adc85f
2021-04-23 18:20:24 -07:00
Joy Babafemi
fa71757f91 Merge "UWB: Add getAdapterState System API" into sc-dev 2021-04-24 01:12:49 +00:00
Treehugger Robot
58a6b364fa Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" am: aa21d775a0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685885

Change-Id: Iefd25d339b9e54c392229fc49e43cdaefe5e37ab
2021-04-24 01:04:53 +00:00
Beverly
51c04d7a03 Split up MODE_SHOW_BOUNCER and MODE_UNLOCK_COLLAPSING
MODE_SHOW_BOUNCER shouldn't notifyKeyguardAuthenticated, but
MODE_UNLOCK_COLLAPSING should.

Test: use biometric auth right after reboot - goes to bouncer
Test: atest BiometricsUnlockControllerTest
Fixes: 186179437
Change-Id: I3f054a66de9125d8c61a52c2096779500c5012c0
2021-04-24 01:04:05 +00:00
TreeHugger Robot
b7966f9f56 Merge "Add extra null-checks to WallpaperManagerService." into sc-dev 2021-04-24 00:47:51 +00:00
Treehugger Robot
aa21d775a0 Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" 2021-04-24 00:41:31 +00:00
TreeHugger Robot
a553d62c56 Merge "Move more code that uses BQL to use BLAST layer" into sc-dev 2021-04-24 00:25:47 +00:00
Treehugger Robot
fac4949f01 [automerger skipped] Merge "Add constant values for MPEG-H." am: 6286d0952d am: 315d8a0faf am: 26b0f32060 -s ours
am skip reason: skip tag Change-Id Iea5432765abeb485a31c8848793dffce1d4c6a0b with SHA-1 f836836b3d is already in history

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

Change-Id: I260cfb2087709036326713ca87da4976b19b08ce
2021-04-24 00:13:54 +00:00
TreeHugger Robot
0b5dedfb14 Merge "Add pm command for getOwnersForDomain API" into sc-dev 2021-04-24 00:13:52 +00:00
Treehugger Robot
26b0f32060 Merge "Add constant values for MPEG-H." am: 6286d0952d am: 315d8a0faf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1670526

Change-Id: I065363f18a7fc389add1518213596bd930d562df
2021-04-23 23:47:59 +00:00
Amit Mahajan
02523f5cec Redact cellIdentity from logs since it's PII.
Test: manual
Bug: 185173370
Change-Id: Ib11def900cbd29981364a92208592790404ae647
2021-04-23 16:46:36 -07:00
TreeHugger Robot
e723159e6b Merge "Camera: Rename the extension latency query" into sc-dev 2021-04-23 23:40:42 +00:00
Treehugger Robot
315d8a0faf Merge "Add constant values for MPEG-H." am: 6286d0952d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1670526

Change-Id: I33d29921b8906609c508b0ca37f7c6f4ef48c486
2021-04-23 23:16:16 +00:00
Bob Badour
6a66a0714c [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/FlickerTests/test-apps/Android.bp
  tests/backup/Android.mk

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Ie3a7632b6f46a8a104bfdf52ab77fb7ffefbdd7c
2021-04-23 16:13:27 -07:00
Beth Thibodeau
a585030805 Merge "Only allow local sessions to be resumable" into sc-dev 2021-04-23 23:08:25 +00:00