Commit Graph

468701 Commits

Author SHA1 Message Date
TreeHugger Robot
da043aee24 Merge "Restore UnsupportedAppUsage method call" into rvc-dev 2020-02-26 03:05:31 +00:00
PETER LIANG
9c9ed396b5 Merge "Fine-tune the public APIs of allow rich content in Accessibility Settings for security." into rvc-dev 2020-02-26 02:51:57 +00:00
TreeHugger Robot
612529e5b3 Merge "wifi: Add document magic 0 value for KEY_HOTSPOT_MAX_CLIENT_COUNT" into rvc-dev 2020-02-26 02:51:00 +00:00
Evan Rosky
66279fe163 Merge "Generalize change transition into WindowContainer" into rvc-dev 2020-02-26 01:43:06 +00:00
Blake Kragten
bdfcea3440 Merge "Add Enhanced Connectivity To Backup Tests" into rvc-dev 2020-02-26 01:01:43 +00:00
Evan Severson
3df3b53b8b Merge "Persist the one-time permission flag if set" into rvc-dev 2020-02-26 00:46:50 +00:00
Etan Cohen
d506a78e94 Merge "[WIFI][SysUI] Update QS iconography for Wi-Fi" into rvc-dev 2020-02-25 23:58:41 +00:00
TreeHugger Robot
34127ce76a Merge "Catch all exception from statusReceiver.sendIntent." into rvc-dev 2020-02-25 23:57:51 +00:00
Ryan Mitchell
93f2b3f9a2 Restore UnsupportedAppUsage method call
4579c0aea2 changed the method signature
of the constructor of ResourcesKey, which is marked
UnsupportedappUsage. Restore the previous signature and provide a new
constructor that is hidden.

Bug: 147359613
Test: none
Change-Id: I391167e9064b1d88f4ad75200a190e5e3b0968cf
2020-02-25 22:10:22 +00:00
Kweku Adams
969e1e2759 Merge "Allow location when Car mode is active." into rvc-dev 2020-02-25 21:52:27 +00:00
Trung Lam
9d298d4d7c Merge "Delete package directory when app is uninstalled." into rvc-dev 2020-02-25 21:43:03 +00:00
Kevin Hufnagle
d697434fdc Merge "docs: Fix spelling of "environments"" into rvc-dev 2020-02-25 21:05:53 +00:00
Blake Kragten
ef0da07d27 Add Enhanced Connectivity To Backup Tests
Settings.Global.ENHANCED_CONNECTIVITY_ENABLED was not added to the
SettingsBackupTest.  Adding to test to fix android.provider.SettingsBackupTest#globalSettingsBackedUpOrBlacklisted

Bug: 150207643
Test: atest SettingsProviderTest
Test Result:
[1/107] android.provider.SettingsBackupTest#systemSettingsBackedUpOrBlacklisted: PASSED (26ms)
[2/107] android.provider.SettingsBackupTest#globalSettingsBackedUpOrBlacklisted: PASSED (0ms)

Change-Id: Ia5c225919c54594d17cbdfa4d8268be0aeb995b9
2020-02-25 12:56:14 -08:00
TreeHugger Robot
5a098f7775 Merge "Camera: Rename CameraActionEvent duration" into rvc-dev 2020-02-25 20:47:47 +00:00
TreeHugger Robot
10398d29f3 Merge "Atom for when fgs accesses appop" into rvc-dev 2020-02-25 19:59:16 +00:00
Evan Rosky
55bddd83ea Generalize change transition into WindowContainer
Created a SurfaceFreezer class which lives in WindowContainer
and manages/will-manage per-container freezing (snapshots).
This replaces the one-off change transition code.

Change Transitions used to create its own temporary leash
on initialization and that leash would be replaced/cleaned-up
as soon as the animation leash was created.

Now, the SurfaceFreezer creates the animation leash immediately
and SurfaceAnimator can take a SurfaceFreezer instance when it
starts an animation. At this point it will take the leash that
was already created by the freezer and use that. This removes
the messy reparenting/cleanup.

To deal with this, though, leash callbacks into Animatable
needed an extra stage: onLeashAnimationStarting. This is called
when SurfaceAnimatior is actually starting to animate the leash.

Next, DC.mChangingApps was converted to list of WindowContainers
rather than ActivityRecords. Some of the existing change code was
cleaned up (ie. there was some visibility stuff that doesn't make
sense because changing apps are visible->visible) and some of the
Activity-specific functions were generalized. For now, there are
a couple things that use the top-activity for changing Tasks.

The result of this means that windowing-mode change transition can
now fully live at the Task level. This also should allow freezing
at any hierarchy level which enables app-freezes that don't freeze
the whole screen and potentially mixed seamless/snapshot-based
rotations.

Bug: 149490428
Test: existing tests pass. Manually open app in freeform and
      maximize/restore it.
Change-Id: Ib32524ebbbb084a98442d3d035897306a11ee6c2
(cherry picked from commit e55b9e0f9d)
2020-02-25 11:51:36 -08:00
TreeHugger Robot
5291e518a4 Merge "Populate uniq field in uhid." into rvc-dev 2020-02-25 19:39:47 +00:00
TreeHugger Robot
7973854504 Merge "Fix widget restore flow" into rvc-dev 2020-02-25 19:31:08 +00:00
TreeHugger Robot
0253cc8f2f Merge changes from topics "input_events_id", "wire_input_event_id" into rvc-dev
* changes:
  Send input event ID in InputEventSender.
  Add ID to InputEvent.
2020-02-25 19:20:17 +00:00
TreeHugger Robot
6d03d973c0 Merge "Fix SecurityControllerTest" into rvc-dev 2020-02-25 19:08:38 +00:00
Fabian Kozynski
0fcf7f11a7 Merge "Prevent early destroying HotspotTile" into rvc-dev 2020-02-25 19:03:54 +00:00
Julia Reynolds
3e4c88087d Merge "Add owners file Fixes: 150217454" into rvc-dev 2020-02-25 18:54:45 +00:00
Julia Reynolds
36ff1ea03f Add owners file
Fixes: 150217454

Change-Id: I80e624dd3de150cbf1cf50465cadb676256a4063
2020-02-25 18:54:36 +00:00
TreeHugger Robot
a074a4b230 Merge "Removed permission check" into rvc-dev 2020-02-25 18:51:58 +00:00
Song Pan
85bdb47bcb Catch all exception from statusReceiver.sendIntent.
Any exception here (e.g., NPE) will crash the entire system process.

Bug: 150217444
Test: atest AppIntegrityManagerServiceImplTest
Change-Id: I86eaa0bf7cb9d39fb23ee6aa71e80547bb95cc7e
(cherry picked from commit 1787f31065)
2020-02-25 18:50:54 +00:00
TreeHugger Robot
2c89e32d34 Merge "Make MediaParser match ExoPlayer's sniffing order" into rvc-dev 2020-02-25 18:30:35 +00:00
Peter Kalauskas
81a320279e Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev
* changes:
  Disable reduced scale if reduced scale config is 0
  Store original task width and height instead of scale
2020-02-25 18:29:50 +00:00
TreeHugger Robot
7def6932cb Merge "Tablet-specific UI updates to user switcher. DO NOT MERGE" into rvc-dev 2020-02-25 18:24:59 +00:00
TreeHugger Robot
c5162ed949 Merge "media: fix MediaCodecTest#testException" into rvc-dev 2020-02-25 18:21:19 +00:00
Amy Zhang
282b5c2043 Merge "Add @NonNull annotation per API Council's suggestion" into rvc-dev 2020-02-25 18:16:49 +00:00
Chavi Weingarten
87293fda8d Merge "Fix Display SurfaceControl leak" into rvc-dev 2020-02-25 18:11:54 +00:00
Samuel Fufa
086e11fdb6 Merge "Clear registered prediction callbacks on destroy" into rvc-dev 2020-02-25 18:08:32 +00:00
Automerger Merge Worker
c644bff0c2 [automerger skipped] Merge "DO NOT MERGE Hold onto NotificationListener when reconnecting notifications UI." into qt-qpr1-dev am: b896072638 -s ours
am skip reason: subject contains skip directive

Change-Id: I45d10cb78a32e891fc3fcd05b6b5232ba7762457
2020-02-25 17:51:59 +00:00
Kevin Hufnagle
c027fa0d0d docs: Fix spelling of "environments"
Test: make ds-docs

Bug: 150187311
Change-Id: Id8ecd7a7e4014e8256b60d6ce2f2f1085ee9cdfb
2020-02-25 17:50:14 +00:00
Sunny Goyal
9962f03b77 Merge "Updating documentation for isDefaultApplicationIcon API" into rvc-dev 2020-02-25 17:46:23 +00:00
Fabian Kozynski
c6616838c3 Merge "Set default for controls as enabled." into rvc-dev 2020-02-25 17:40:14 +00:00
Eric Berglund
b896072638 Merge "DO NOT MERGE Hold onto NotificationListener when reconnecting notifications UI." into qt-qpr1-dev 2020-02-25 17:37:15 +00:00
Santhosh Thangaraj
2ae4ec02f9 Merge "Fix the delay time for Assistant" into rvc-dev 2020-02-25 17:26:10 +00:00
Fabian Kozynski
8014ffec99 Merge "Migrate QS_EDIT metrics to WW" into rvc-dev 2020-02-25 17:11:27 +00:00
Fabian Kozynski
17623bfa8f Prevent early destroying HotspotTile
Due to the switch to Async HotspotControllerImpl, if the controller is
created with the tile it will think that tethering is not available
(because it hasn't received callbacks saying otherwise yet) and the tile
will be preemptively destroyed. This was observable on OTAs (or when
doing a full flash).

With this change, HotspotControllerImpl will assume that tethering is
available by default and will signal callbacks if it learns that it's
not.

There are currently no other consumers of
HotspotControllerImpl#isHotspotSupported.

Fixes: 149492796
Test: atest HotspotControllerImplTest
Test: manual full flash
Change-Id: Id1461b7fbe973b732bc69c7ad77a30e0f66247d8
2020-02-25 12:10:49 -05:00
Adam Bookatz
38767932a2 Atom for when fgs accesses appop
statsd logs when an sensitive appop is accessed while a foreground
service is held. These appops include
OP_FINE_LOCATION
OP_COARSE_LOCATION
OP_RECORD_AUDIO
OP_CAMERA

It logs the number of times each of these appops is requested per session
during which the uid holds any foreground service.
Appops requested while the app's process state is TOP are ignored.

Also, the pre-existing ForegroundServiceStateChanged atom has an
additional field that logs whether the fgs is considered 'in-use' in the
context of being allowed while-in-use permissions.

Bug: 149497535
Test: atest UidAtomTests#testForegroundServiceState UidAtomTests#testForegroundServiceAccessAppOp
Test: manually monitor: adb shell cmd stats print-logs && adb logcat -v uid -s statsd | grep "statsd  : {" | egrep '\((60|256)\)'

Change-Id: I991a427dc2ab00399188b10b266ab2d9aa92696d
Merged-In: I991a427dc2ab00399188b10b266ab2d9aa92696d
(cherry picked from commit 0c8637c067)
2020-02-25 17:09:48 +00:00
Rubin Xu
47fa2a88bd Fix SecurityControllerTest
Bug: 149912024
Test: atest com.android.systemui.statusbar.policy.SecurityControllerTest
Change-Id: Ia8e00a6fcd052dfcbe868b17d64f800b73da857f
2020-02-25 16:46:44 +00:00
Santiago Seifert
98127bca05 Make MediaParser match ExoPlayer's sniffing order
Bug: 148940600
Test: CTS.
Change-Id: I7c867f476e1e0b9ef1d7fc9d6779b56b739f5a01
2020-02-25 16:37:10 +00:00
Evan Severson
087b5773f7 Persist the one-time permission flag if set
This flag will now be used to show different ui if the permission has
been previously set as one-time

Test: Reboot and verify ui is consistent
Bug: 144389816
Change-Id: I86fb595b79819a604aaed613d9edf30c883d1440
2020-02-25 15:54:08 +00:00
Patrick Baumann
cb2d2ec786 Merge "Grants visibility on uri permission grant" into rvc-dev 2020-02-25 15:52:29 +00:00
Patrick Baumann
710d720db7 Grants visibility on uri permission grant
When permission is granted to another app via URI, we implicitly grant
visibility to that app of the app ID that that URI resolves to.

Test: atest AppSecurityTests
Fixes: 149781706
Fixes: 145677500
Exempt-From-Owner-Approval: Owner approved prior to cherry-pick
Change-Id: I7c8967a4464fd821e4f95d8eb6c0bcfadadb912e
2020-02-25 15:48:30 +00:00
Patrick Baumann
667af98d38 Merge "Disable caches for perf tests" into rvc-dev 2020-02-25 15:45:32 +00:00
Fabian Kozynski
0424ab1416 Set default for controls as enabled.
From this CL onwards, the default for controls is enabled (still not a
Setting).

The controls section in power menu and the new layout will only be used
if there's at least one app that can provide controls.

Test: manual
Bug: 149992619
Change-Id: I4e78735d642d24fe0080a0f0f4cbc58ffa2d5a94
2020-02-25 10:41:14 -05:00
Ben Murdoch
2724b00212 Tablet-specific UI updates to user switcher. DO NOT MERGE
- Draw a background pill instead of frame on the keyguard
   for the currently active user.
 - Set a different text style for the user switcher

Bug: 146426568
Test: Manual inspection

Change-Id: I5cfefbe375bb0f3b7df8729c473867b97578f81f
(cherry picked from commit d457eef32c)
2020-02-25 15:28:32 +00:00
Makoto Onuki
9577cd78ff Merge "Squash same ApplicationInfo's in Parcel" into rvc-dev 2020-02-25 15:17:14 +00:00