Commit Graph

476252 Commits

Author SHA1 Message Date
Anton Hansson
48ee95e9b1 Change last-released filegroup
There were two different filegroups referencing the same last released
APIs. Delete the manually defined one and switch references over to use
the one defined by prebuilt_apis.

Bug: 155197156
Test: m
Change-Id: Ib15d2c08e6400546ca03de6bfd4e5cbcc938c992
2020-05-02 17:49:26 +01:00
TreeHugger Robot
a69cfa78e3 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-02 05:19:18 +00:00
Bill Yi
2cd497df33 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-02 03:52:08 +00:00
Winson Chung
a29ccb6fa3 Merge "Account for getDimension() also doing a pixel conversion" into rvc-dev 2020-05-02 02:38:51 +00:00
Steven Thomas
5724666853 Merge "Split refresh rate range into two ranges" into rvc-dev 2020-05-02 02:12:39 +00:00
Colin Cross
e230dd0d2e Merge "Set min_sdk_version for com.android.sdkext" into rvc-dev 2020-05-02 01:41:18 +00:00
Colin Cross
765563bea2 Merge changes from topic "sdk_version_variant" into rvc-dev
* changes:
  Make derive_sdk_prefer32 uninstallable
  Fix static dependency on libprotobuf-cpp-lite-ndk
2020-05-02 01:41:18 +00:00
Philip P. Moltmann
371634f4d0 Merge "Cache PM data in DPGP" into rvc-dev 2020-05-02 01:40:15 +00:00
Nikita Ioffe
dd6689ccf1 Merge "Collect certificates when parsing APEX packages" into rvc-dev 2020-05-02 01:08:44 +00:00
Danning Chen
d814608231 Merge "Uncache the shortcuts when Android system shuts down if the notification settings are not changed" into rvc-dev 2020-05-02 00:57:43 +00:00
Andrew Sapperstein
975ca816ec Merge changes from topic "cherrypick-ctor-refs-03y8i58ine" into rvc-dev
* changes:
  Update inner class constructor refs to use proper syntax.
  Fix broken @see tags in public documentation.
2020-05-02 00:21:33 +00:00
Garfield Tan
abe5a4f3f5 Merge changes I702d89c9,Id7bfc3e6 into rvc-dev
* changes:
  Remove TaskRecordFactory.
  Notify when task changes requested orientation.
2020-05-02 00:10:29 +00:00
Dheeraj Shetty
21b6e912c2 Merge "Revert^2 "hwui: remove FatVector"" into rvc-dev 2020-05-01 23:27:43 +00:00
Evan Severson
7714a18236 Merge "Check permission for soundtrigger detection service" into rvc-dev 2020-05-01 23:26:45 +00:00
Adam He
954c18bd5e Merge "Don't start new inline autofill flow if one started already." into rvc-dev 2020-05-01 23:07:38 +00:00
Darryl Johnson
ceb2befc1b Merge "Don't override activity display adjustments with app config" into rvc-dev 2020-05-01 23:05:10 +00:00
Adam Bookatz
5b94d36275 Merge "TalkBack user switch" into rvc-dev 2020-05-01 22:50:33 +00:00
Varun Shah
abe1037650 Merge "Update how UsageStats timestamps are written to disk." into rvc-dev 2020-05-01 22:50:28 +00:00
Nikita Ioffe
e568e0f5df Collect certificates when parsing APEX packages
This is a smallest possible change to fix the breakage.

This change will introduce a boot time regression, but unfortunately
there is no easy way around it. Will try to address the regression in a
follow-up CL.

Test: atest PackageManagerTest
Test: atest android.security.cts.PackageSignatureTest#testPackageSignatures
Bug: 155396683
Change-Id: If92b8ce6236a0ef38d228d0705ae4f5345066e64
2020-05-01 23:33:33 +01:00
Songchun Fan
ec60726cb4 Merge changes from topics "v2_metrics_add_size", "v2_metrics_optional_package_name" into rvc-dev
* changes:
  [pm/metrics] add apk size in the log
  [pm/metrics] do not log package name for adb installations
2020-05-01 22:27:59 +00:00
Winson Chung
4ef84183e7 Account for getDimension() also doing a pixel conversion
Change-Id: Ie35eb98d6063a0747851e06f6da17b86ede19b41
Bug: 148104018
Test: Ensure edge swipe thresholds match resources
2020-05-01 15:24:49 -07:00
Feng Cao
4e20f2b97c Merge "Support receiving touch event in the inline suggestion view" into rvc-dev 2020-05-01 22:07:39 +00:00
Bill Yi
d4258bb9be Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I61b9e96e20f0c892b216eff4d48d7ef3a1a4ce50
2020-05-01 14:58:29 -07:00
Robert Snoeberger
3779310359 Merge "Update progress without binder calls" into rvc-dev 2020-05-01 21:38:32 +00:00
Garfield Tan
5044a154f8 Remove TaskRecordFactory.
Bug: 150409355
Test: Builds and boots.
Change-Id: I702d89c973001482ffcb3d26500c8ef477392c1e
2020-05-01 14:25:01 -07:00
Patrick Baumann
9f9ffca0c2 Merge "Skip post install if package was deleted" into rvc-dev 2020-05-01 21:07:43 +00:00
Josh Tsuji
a48a152c84 Merge "Only notify the floating coordinator of new bounds if we're in PIP." into rvc-dev 2020-05-01 20:59:53 +00:00
Winson Chiu
2728af853a Merge "Add skip functionality to package parsing" into rvc-dev 2020-05-01 20:20:49 +00:00
Matt Pietal
7405357b53 Merge "Controls UI - Global actions enter/exit animations" into rvc-dev 2020-05-01 20:19:21 +00:00
Matt Pietal
e389091b2d Merge "Controls a11y - Various fixes" into rvc-dev 2020-05-01 20:16:21 +00:00
Julia Reynolds
479962ed01 Merge "Make ManagedServices intents immutable" into rvc-dev 2020-05-01 20:01:40 +00:00
Garfield Tan
afa0de8a91 Notify when task changes requested orientation.
This allows listener know task's orientation request change before
handling display rotation through IDisplayWindowRotationController if
they can register a local TaskStackListener.

Bug: 150409355
Test: atest WmTests:TaskStackChangedListenerTest#testNotifyTaskRequestedOrientationChanged
Change-Id: Id7bfc3e63329ce26d454b7e9c143e084e04dd365
2020-05-01 12:52:46 -07:00
Varun Shah
b924b1fe09 Merge "Ensure SyncManager PendingIntent is immutable." into rvc-dev 2020-05-01 19:51:38 +00:00
Philip P. Moltmann
be11ab634c Cache PM data in DPGP
DefaultPermissionGrantPolicy is run on user startup but also in other
cases. On user creation it loads a lot of data from the PackageManager
and applies a lot of permission state.

This change adds an abstraction layer to the
DefaultPermissionGrantPolicy that caches and delays the PackageManager
calls on user creation. As a side-effect it also duplicates the state by
UID as all runtime permission state is by UID.

If this is not for user creation NO_PM_CACHE is used which just forwards
the calls directly to PackageManager.

This carries around the PackageManagerWrapper to all methods which
causes a lot of trivial churn. Other options considered:
- Make it a field in DefaultPermissionGrantPolicy but this would require
  outside code to create multiple DefaultPermissionGrantPolicy for
  different use cases
- Make it a Thread-Local. This is brittle and causes overhead

Also: All app-op setting was removed as this is automatically handled by
PermissonPolicyService

Test: Created user: Before 800 to 1200 ms after ~450 ms spent in
      DefaultPermissionGrantPolicy on sargo-userdebug
Fixes: 150405484
Change-Id: If77214a193a39fec2f311a3aea324ef07c2dfb42
Merged-In: If77214a193a39fec2f311a3aea324ef07c2dfb42
2020-05-01 19:46:03 +00:00
Adam He
ce5c8023d6 Don't start new inline autofill flow if one started already.
Also fixes missing lock in regular autofill inline callback in
getRendererInfo().

Fixes: 154150263
Test: atest CtsAutofillServiceTestCases
Change-Id: I475e4e8f23f41b51702a4d3dd819777938694447
2020-05-01 12:37:48 -07:00
Feng Cao
c23bfc7819 Support receiving touch event in the inline suggestion view
* Before this change, the suggestionRoot would intercept all touch
  events so that it can optionally forward them to the IME process
  to support scrolling, no touch event will be sent to the child
  view through the regular event dispatching process.
* With this change, we move the touch event transferring (to IME)
  logic from SuggestionRoot's onTouchEvent to dispatchTouchEvent.
  Now the touch events before a scroll is detected will be sent to
  the child chip view, and only the touch events after a scroll is
  detected will be sent to the IME.
* This patch also move the OnClickListener and OnLongClickListener
  from the root view to the chip view, since the touch events now
  either goes to the chip view or to the IME process.
* Note that in order to achieve this, given that we can't change
  the API, and there is existing OnLongClickListener registered
  to the chip view, we have to add a @hide API to the View to
  get the existing OnLongClickListener and attach a new one to the
  chip view, such that we can do the additional work of sending
  the long click event to IME, when the view is long clicked.
* This patch should also fix the a11y talkback mode bug where
  double-tapping on the view doesn't autofill the value.
  Double-tap and hold also works that it triggers the attribution
  dialog.

Test: atest CtsAutoFillServiceTestCases (sanity test)
Bug: 155245913
Bug: 154149807

Change-Id: I6f7be1ea5c0955969abb4ccae0cb421423095c4d
2020-05-01 12:36:51 -07:00
Patrick Baumann
24070a6c95 Merge "Adds new activity flags to the @Flags annotation." into rvc-dev 2020-05-01 19:32:49 +00:00
Adam Bookatz
96654be734 TalkBack user switch
If TalkBack (accessibility speach) is enabled, then
when a user switch is performed (by clicking on the
user switch buttons), the device will announce that
it is switching users.

Test: manual (enable TalkBack, create a Guest)
Bug: 151669162
Change-Id: Ifa4a7b13f9a423d1dfa55873879fce71ca3a1673
2020-05-01 19:32:03 +00:00
Hongwei Wang
bb5aa1cbcc Merge "Track PictureInPictureParams in PipTaskOrganizer" into rvc-dev 2020-05-01 19:02:48 +00:00
Riddle Hsu
5ef61d2fe5 Merge "Do not apply minimal size for fullscreen task" into rvc-dev 2020-05-01 18:43:44 +00:00
Robert Snoeberger
9285c747e2 Update progress without binder calls
The implementation is pretty much a copy of
MediaSessionRecord#getStateWithUpdatedPosition.

Bug: 154352658
Test: manual - played music and checked that seek bar updated
Change-Id: Id494f01dd18095f5df6c0806f34a7a5c92ddaf35
2020-05-01 14:39:28 -04:00
Andrew Sapperstein
88d565e7e7 Update inner class constructor refs to use proper syntax.
Previously, we generally required fully qualified names for referring
to inner class constructors (like #Notification.Builder()) despite that
not being valid javadoc. Now, we properly support #Builder() syntax and
the old syntax will error.

Bug: 6963924
Test: make doc-comment-check-docs
Exempt-From-Owner-Approval: cherry-picked from master
Change-Id: Ib2e4360493275b79c72487ee1cb173bb5e0fd35f
Merged-In: Ib2e4360493275b79c72487ee1cb173bb5e0fd35f
(cherry picked from commit 4c4aa41272)
2020-05-01 18:33:15 +00:00
Chavi Weingarten
882ba30b8a Merge "Send drawFinish callback even if did not draw" into rvc-dev 2020-05-01 18:27:59 +00:00
Julia Reynolds
14a69d9ec5 Merge "Show FGS notifs even if app is over limit" into rvc-dev 2020-05-01 18:26:11 +00:00
Andrew Sapperstein
8fe35e5f21 Fix broken @see tags in public documentation.
These were previously being suppressed by doclava but with this change,
all failures are fixed and the suppression logic has been removed.

To fix the issues, there were a few possible changes made:
- broken reference to a public API (such as incorrect parameters): fixed
- unnecessary @link inside an @see tag: fixed
- @see referring to an @hide or @SystemApi: reference removed
- broken references to inner class constructors
 - worked around by fully qualifying the constructor

Bug: 6963924
Test: make doc-comment-check-docs
Exempt-From-Owner-Approval: cherry-picked from master
Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
Merged-In: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
(cherry picked from commit e0624c7a40)
2020-05-01 18:25:32 +00:00
Jeff Sharkey
96a80abf57 Merge "More cross-user Uri granting tests." into rvc-dev 2020-05-01 18:11:50 +00:00
Varun Shah
b44e22c8d9 Update how UsageStats timestamps are written to disk.
When writing UsageStats timestamps to disk in proto, we offset the time
by the begin time to save storage space. However, there was logic which
reset default timestamp values of 0 to begin time for those stats.

This CL standardizes how timestamps are written to disk in proto for
UsageStats and updates the parsers. Since backup and restore use
database version 4, UsageStatsProto is also updated in addition to
UsageStatsProtoV2.

Bug: 155149300
Test: atest UsageStatsDatabaseTest
Test: atest android.app.usage.cts.UsageStatsTest
Change-Id: I624e4d56c91762b56eb1c3be67cd8df033fcac95
2020-05-01 11:08:20 -07:00
Yin-Chia Yeh
ab59e9af27 Merge "Camera: add proper null check for mRemoteDevice" into rvc-dev 2020-05-01 18:05:49 +00:00
Matt Pietal
e9440b7207 Controls UI - Global actions enter/exit animations
Match specs from sliding in/out from the power button. Make sure all
popup windows are dismissed correctly to avoid them blinking on
animation completion.

Bug: 154755066
Test: manual

Change-Id: Ieb6468a29f3543cf9f69da1bd53f38fab76b26a5
2020-05-01 14:04:25 -04:00
Evan Severson
b07f0599bb Check permission for soundtrigger detection service
The app which gets bound to use microphone in the background should be
holding the CAPTURE_AUDIO_HOTWORD permission.

Test: Verify current services still work
      Verify that app without permission can't be registered
Bug: 155438570
Change-Id: I4b53c45bc74df4e91026e13c7e2bfa0f5461df52
2020-05-01 11:04:12 -07:00